/* Landing page only; builds on the tokens in styles.css. */
:root { --leaf-soft: #e4eee7; --shadow: 0 40px 70px -30px rgb(29 49 39 / 0.45); --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-color-scheme: dark) {
  :root { --leaf-soft: #1f2d25; --shadow: 0 40px 70px -30px rgb(0 0 0 / 0.85); }
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Links: underlined body links, quiet nav and footer links, every one with hover and keyboard focus states. */
a { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color 0.15s, text-decoration-color 0.15s, background-color 0.15s, opacity 0.15s, transform 0.2s var(--ease); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.brand { transition: opacity 0.15s; }
.brand:hover { opacity: 0.8; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-lang { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.nav-lang:hover { color: var(--ink); border-color: var(--muted); }
.nav-cta { margin-left: 8px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-cta:hover { background: var(--leaf); color: #fff; }

/* Shared type */
.eyebrow { margin: 0 0 12px; color: var(--leaf); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2 { letter-spacing: -0.025em; text-wrap: balance; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }

/* Store badges: Apple's official badge links to the listing; Android is a matching, non-interactive "coming soon" badge. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.store-badge { display: inline-block; border-radius: 10px; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(0); }
.store-soon { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 10px; border: 1.5px dashed var(--line); color: var(--muted); line-height: 1.1; font-size: 19px; font-weight: 600; cursor: default; user-select: none; }
.store-soon svg { width: 28px; height: 28px; }
.store-soon .dot { fill: currentColor; stroke: none; }
.store-soon small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Hero */
.hero { display: grid; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 88px; overflow-x: clip; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.03; margin: 0 0 20px; }
.hero-devices { position: relative; height: clamp(500px, 66vw, 640px); }
.hero-devices .phone { position: absolute; width: clamp(210px, 25vw, 262px); }
.hero-devices .front { left: 50%; top: 0; transform: translateX(-84%); z-index: 1; }
.hero-devices .back { left: 50%; top: 56px; transform: translateX(-12%) rotate(5deg); }

/*
 * iPhone 17 Pro Max frame around a full-screen simulator capture (1320 × 2868), all sized in cqw of the screen width so it scales
 * as one piece: screen corners 12.5%, bezel and titanium band outside the screen, Dynamic Island 125 × 37 pt of 440 pt, 11 pt down,
 * side buttons behind the frame.
 */
.phone { position: relative; isolation: isolate; container-type: inline-size; margin: 0 auto; width: min(100%, 280px); }
.phone img { display: block; width: 100%; height: auto; border-radius: 12.5cqw; }
.phone::after {
  content: ""; position: absolute; inset: -3.6cqw; pointer-events: none;
  border: 3.6cqw solid #050706; border-radius: 16.1cqw;
  box-shadow: 0 0 0 1cqw #4a524e, 0 0 0 1.3cqw #8d9691, var(--shadow);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 125 37'%3E%3Crect width='125' height='37' rx='18.5'/%3E%3Ccircle cx='106' cy='18.5' r='6' fill='%23111a2b'/%3E%3C/svg%3E") center 2.5cqw / 28.4cqw auto no-repeat;
}
.phone::before {
  content: ""; position: absolute; z-index: -1; top: 22cqw; left: -5.6cqw; right: -5.6cqw; height: 44cqw;
  background:
    linear-gradient(#59625d 0 15.9%, transparent 15.9% 29.5%, #59625d 29.5% 61.4%, transparent 61.4% 68.2%, #59625d 68.2%) left / 1.4cqw 100% no-repeat,
    linear-gradient(transparent 0 36.4%, #59625d 36.4% 86.4%, transparent 86.4%) right / 1.4cqw 100% no-repeat;
}

/* Ways to save */
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 80px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 40px; }
.cards { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.card svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--leaf-soft); color: var(--leaf); }
.card h3 { margin: 16px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Feature rows */
.feature { display: grid; gap: 48px; align-items: center; padding-top: 104px; }
.feature h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; margin: 0 0 16px; }
.feature-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 3 3 5-6' fill='none' stroke='%23286044' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Closing */
.closing { text-align: center; padding-top: 128px; padding-bottom: 104px; }
.closing > img { border-radius: 18px; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(30px, 4.4vw, 44px); margin: 24px 0 12px; }
.closing p { color: var(--muted); margin: 0 auto; }
.closing .stores { justify-content: center; }

/* Footer (overrides the legal pages' footer) */
.site-footer { margin: 0; padding: 32px 0 48px; border-top: 1px solid var(--line); display: block; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; }
.footer-inner .brand { font-size: 17px; }
.fine { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; max-width: none; }
.fine a { color: inherit; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 88px; padding-bottom: 112px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip > .phone { order: 2; }
  .feature-copy { max-width: 460px; }
}
@media (max-width: 520px) {
  .nav-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
  .store-badge:hover { transform: none; }
}
