@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

/* Fonts */
@font-face {
  font-family: "Mariupol Strong";
  src: url("assets/fonts/Mariupol_Strong.woff2") format("woff2"),
       url("assets/fonts/Mariupol_Strong.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Mariupol";
  src: local("Mariupol"), local("Mariupol Strong"),
       url("assets/fonts/Mariupol_Strong.woff2") format("woff2"),
       url("assets/fonts/Mariupol_Strong.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Design tokens (from Figma) */
:root {
  --color-beige: #fcf0e5; /* Beige */
  --color-brown: #241d1b; /* Brown */
  --color-green: #338528; /* Green */
  --color-text: #000000; /* Labels/Primary */
  --color-muted: #999999; /* Tab - Unselected */

  --radius-lg: 32px;
  --radius-md: 12px;

  --shadow-hero-icon: 13px 24px 40px 0 rgba(92, 67, 64, 0.25);
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  background: var(--color-beige);
  color: var(--color-text);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: "Mariupol", "Mariupol Strong", system-ui, sans-serif;
  font-weight: 900;
}

.container {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  padding: 34px 0 0; /* matches top spacing in Figma */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10.24px;
  outline: 0.5px solid #e3d5ca; /* subtle border from Figma */
  background: var(--color-brown);
}
.brand-name {
  font-family: "Mariupol", "Mariupol Strong", system-ui, sans-serif;
  font-size: 21px;
  line-height: 15px;
  font-weight: 900;
}
.email-link {
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Hero */
.hero {
  padding-top: 60px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Below 768px, hero content spans full width with padding from .container */
@media (max-width: 768px) {
  .hero-inner { max-width: 100%; }
}
.app-icon-large {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: var(--color-brown);
  box-shadow: var(--shadow-hero-icon);
}
.hero-title {
  font-family: "Mariupol", "Mariupol Strong", system-ui, sans-serif;
  font-size: 72px;
  line-height: 65px;
  margin: 0;
  font-weight: 900;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
  max-width: 500px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  border-radius: 50px;
  background: var(--color-green);
  background-image: linear-gradient(0deg, #0000001a, #0000 60%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(36, 29, 27, 0.12);
  transition: background-image .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cta:hover {
  background-image: linear-gradient(0deg, #00000033, #0000 80%);
  box-shadow: 0 12px 24px rgba(36, 29, 27, 0.18);
  transform: translateY(-1px);
}

.cta:active {
  background-image: linear-gradient(0deg, #00000026, #0000 70%);
  box-shadow: 0 6px 12px rgba(36, 29, 27, 0.14);
  transform: translateY(0);
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 60px auto 0;
}
.hero-image picture, .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* No cropping on mobile: image scales with its own aspect ratio */

/* Scale hero image larger on big screens */
@media (min-width: 1280px) {
  .hero-image { max-width: 1200px; }
}
@media (min-width: 1536px) {
  .hero-image { max-width: 1400px; }
}

/* Footer */
.site-footer {
  margin-top: 120px;
  padding-bottom: 40px;
  color: rgba(0, 0, 0, 0.8);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: inline-flex;
  gap: 31px;
}
.footer-links a {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  opacity: 1;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Legal pages link styling */
.legal a {
  color: black;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal a:hover {
  text-decoration: none;
}

/* Responsive */
/* Base: ≥768px */
@media (min-width: 768px) {
  .hero-title { font-size: 72px; line-height: 65px; }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
  .hero-title { font-size: 48px; line-height: 48px; }
  .container { padding-left: 32px; padding-right: 32px; }
  .hero-inner { gap: 24px; }
  .app-icon-large { display: none; } /* Hide large app icon on mobile */
  /* Header and footer span full width via .container; adjust footer layout */
  .footer-inner { flex-direction: column; align-items: center; gap: 16px; }
  .footer-links { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
    width: 100%; 
    text-align: center; 
  }
}

/* Very small screens: tighten CTA paddings */
@media (max-width: 375px) {
  .cta { padding: 20px 24px; }
}

/* Header and footer: full-width with 32px side padding below 1024px */
@media (max-width: 1023px) {
  .site-header .container,
  .site-footer .container {
    max-width: none;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
  }
}
