/* Landing pages (/ and /en/). Loaded after style.css. Mobile first. */

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.logo img { border-radius: 9px; }

.site-header nav { display: flex; align-items: center; gap: 4px 18px; }

.site-header nav a:not(.lang) {
  display: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:not(.lang):hover { color: var(--text); }

@media (min-width: 760px) {
  .site-header nav a:not(.lang) { display: inline; }
}

/* Generic sections -------------------------------------------------------- */

body.landing main { width: auto; padding: 0; }

.section { padding: 56px 0; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.landing h1,
body.landing h2 {
  color: var(--text);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

body.landing h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

body.landing h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4.6vw, 28px);
  line-height: 1.2;
}

.lead { font-size: 18px; max-width: 60ch; }

.glow-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 24px 0 64px;
}

/* Soft light behind the hero, from the world colours. Orange only as a
   decorative gradient stop, never as a data or text colour. Static on
   purpose: animating this full-width layer cost ~700 ms of main-thread time
   per Lighthouse run (performance 77 -> 100 without it). */
.hero::before {
  content: "";
  position: absolute;
  /* Full-bleed, but never wider than the viewport: no sideways scrolling. */
  inset: -160px 0 0;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 75% 30%, rgb(255 92 154 / .22), transparent 70%),
    radial-gradient(45% 50% at 60% 70%, rgb(255 122 47 / .20), transparent 70%),
    radial-gradient(30% 35% at 20% 15%, rgb(255 225 77 / .10), transparent 70%);
}

@media (prefers-color-scheme: light) {
  .hero::before { opacity: .55; }
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 9.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.hero .lead { color: var(--muted); margin: 0 0 28px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

/* Official Apple badge: unmodified artwork, clear space >= 1/4 badge height. */
.store-badge {
  display: inline-block;
  padding: 0;
  line-height: 0;
  border-radius: 10px;
}

.store-badge img { height: 54px; width: auto; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.fineprint { margin: 18px 0 0; font-size: 14px; }

.phone {
  justify-self: center;
  position: relative;
  width: min(74vw, 330px);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 12% 0 -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 176 102 / .35), rgb(255 92 154 / .12) 60%, transparent);
  filter: blur(24px);
}

.phone img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6);
}

@media (min-width: 880px) {
  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .phone { width: min(340px, 100%); }
}

/* Features --------------------------------------------------------------- */

.features { display: grid; gap: 72px; margin-top: 48px; }

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}

.feature p { margin: 0 0 14px; }

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

.shot { justify-self: center; width: min(72vw, 300px); }

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  justify-self: center;
  width: min(92vw, 520px, 100%);
}

.shot-pair .shot { width: 100%; }

@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-media { order: -1; }
}

/* Cards (AI, health, plans) ---------------------------------------------- */

.cards { display: grid; gap: 16px; margin-top: 32px; }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.card h3 { font-size: 21px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.plan-premium {
  position: relative;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--gold), var(--accent), var(--accent-2)) border-box;
  border: 1px solid transparent;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 14px 14px 0;
}

/* FAQ -------------------------------------------------------------------- */

.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 820px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  /* Decorative: keep the plus out of the summary's accessible name. */
  content: "+" / "";
  flex: none;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

.faq .answer { padding: 0 20px 6px; }

/* Closing call to action ------------------------------------------------- */

.closing {
  text-align: center;
  padding: 72px 0 88px;
}

.closing .cta-row { justify-content: center; }
.closing .lead { margin: 0 auto 28px; }

/* Footer ----------------------------------------------------------------- */

body.landing footer {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  gap: 14px;
  padding: 28px 0 44px;
}

body.landing footer p { margin: 0; font-size: 13px; }
