:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --surface: #FFFFFF;
  --line: rgba(15, 23, 42, 0.10);
  --ink: #0F172A;
  --muted: #5B6475;
  --brand: #EAF2FE;
  --accent: #1E7BF2;        /* Formly blue, same as the app */
  --accent-light: #4A9BFF;
  --accent-deep: #1660C7;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 48px); }
.center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 19px; max-width: 34em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.store-badge { display: inline-block; transition: transform .15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 520px at 80% 20%, rgba(30, 123, 242, 0.08), transparent 70%),
    radial-gradient(700px 500px at 5% 90%, rgba(30, 123, 242, 0.05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.12; font-weight: 800; margin-bottom: 22px; padding-bottom: 2px; }
.cta-row { margin: 34px 0 26px; }
.proof { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.proof strong { color: var(--ink); }
.stars { color: #F5C04A; letter-spacing: 2px; font-size: 18px; }

/* Phone mockups */
/* Same device as the hero pair: proportions tied to the frame's own width so
   a 208px mockup reads as an iPhone, not a thick-bezelled case. */
.phone {
  position: relative;
  --pw: 280px;
  border-radius: calc(var(--pw) * 0.160);
  padding: calc(var(--pw) * 0.031);
  background: linear-gradient(150deg, #3A3F3D 0%, #0D100F 28%, #151A18 62%, #414644 100%);
  box-shadow:
    0 2px 5px rgba(0,0,0,.35),
    0 26px 50px -16px rgba(15, 23, 42, .32),
    0 50px 80px -40px rgba(15, 23, 42, .28);
}
.phone::before {
  content: ''; position: absolute; inset: calc(var(--pw) * 0.021);
  border-radius: calc(var(--pw) * 0.139); z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14);
}
/* Dynamic Island, sitting in the gap the screenshot's own status bar leaves */
.phone::after {
  content: ''; position: absolute; z-index: 4;
  top: calc(var(--pw) * 0.055); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * 0.29); height: calc(var(--pw) * 0.075);
  border-radius: 100px; background: #070A09;
}
.phone img { border-radius: calc(var(--pw) * 0.132); width: 100%; position: relative; z-index: 1; }
/* Both hero phones hold the same frame so the pair lines up; the source
   images have slightly different aspects. */
.ba .phone img, .ba .rec { aspect-ratio: 656 / 1300; object-fit: cover; }
.ba .rec > img { height: 100%; aspect-ratio: auto; object-position: 58% center; }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .back { left: 8%; top: 40px; transform: rotate(-6deg); opacity: .92; }
.hero-phones .front { right: 6%; top: 0; transform: rotate(4deg); }

/* Sections */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.show { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.show .phone { width: min(280px, 100%); --pw: min(280px, 100%); margin: 0 auto; }
.show figcaption { display: grid; gap: 6px; text-align: center; }
.show figcaption strong { font-family: 'Poppins', sans-serif; font-size: 21px; }
.show figcaption span:last-child { color: var(--muted); font-size: 16px; }
.step {
  justify-self: center; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--accent);
  font-weight: 700; font-size: 15px; border: 1px solid rgba(30, 123, 242, .30);
}

.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.prop-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.prop-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prop h3 { font-size: 22px; margin-bottom: 10px; }
.prop p { color: var(--muted); }

.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spotlight h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231E7BF2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.spot-phone .phone { width: 300px; --pw: 300px; margin: 0 auto; transform: rotate(3deg); }

/* Three reviews: three across on desktop so none sits alone in a row.
   The 900px query below collapses it to one column on phones. */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; max-width: 1080px; margin-inline: auto; }
.review { margin: 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; align-content: start; }
.review h3 { font-size: 20px; }
.review p { font-size: 17px; }
.review cite { font-style: normal; color: var(--muted); font-size: 14px; }

.faq { margin-top: 48px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 26px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

.cta-box {
  text-align: center; border-radius: 32px; padding: 72px 32px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(30, 123, 242, .10), transparent 70%), var(--brand);
  border: 1px solid rgba(30, 123, 242, .18);
  display: grid; justify-items: center; gap: 18px;
}
.cta-logo { border-radius: 22px; box-shadow: 0 16px 40px rgba(15, 23, 42, .22); }
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-box > p { color: #334155; font-size: 18px; }
.cta-box .fine { font-size: 13px; color: var(--muted); max-width: 520px; margin-top: 8px; }
.cta-box .fine a { color: var(--ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.foot-grid > div > a { display: block; text-decoration: none; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.foot-brand p { color: var(--muted); margin: 14px 0; font-size: 15px; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--muted); text-decoration: none; font-size: 15px; }
.socials a:hover { color: var(--ink); }
.copyright { margin-top: 48px; color: var(--muted); font-size: 14px; }

/* Legal pages */
.legal { padding: 72px 0 110px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid, .spotlight { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-phones { height: 520px; }
  .hero-phones .phone { width: 230px; }
  .showcase, .props { grid-template-columns: 1fr; }
  .showcase { gap: 64px; }
  .reviews { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 480px) {
  .store-badge.small img { height: 34px; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 190px; }
  .hero-phones .back { left: 0; }
  .hero-phones .front { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}



/* ---------------------------------------------------------------------------
   Hero: two overlapping iPhones, before and after, in the Erly arrangement.
   The frames are drawn rather than using mockup images so they stay crisp and
   can be re-skinned without new renders.
--------------------------------------------------------------------------- */
.iphone {
  container-type: inline-size;
  position: relative;
  --pw: 288px;                       /* overridden per size below */
  border-radius: calc(var(--pw) * 0.160);
  padding: calc(var(--pw) * 0.031);
  background: linear-gradient(150deg, #3A3F3D 0%, #0D100F 28%, #151A18 62%, #414644 100%);
  box-shadow:
    0 2px 5px rgba(0,0,0,.45),
    0 34px 60px -18px rgba(15, 23, 42, .45),
    0 60px 90px -40px rgba(15, 23, 42, .35);
}
/* thin polished rim between the steel band and the glass */
.iphone::after {
  content: ''; position: absolute; inset: calc(var(--pw) * 0.021);
  border-radius: calc(var(--pw) * 0.139);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); pointer-events: none; z-index: 3;
}
.iphone-screen { position: relative; border-radius: calc(var(--pw) * 0.132); overflow: hidden; background: #000; }
.hero-pair .iphone-screen { aspect-ratio: 1206 / 2622; }
.hero-pair .iphone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.iphone-screen > img { display: block; width: 100%; }
/* Dynamic Island */
.iphone-island {
  position: absolute; top: 1.3%; left: 50%; transform: translateX(-50%);
  width: 31%; height: 4.3%; border-radius: 100px;
  background: #070A09; z-index: 4;
}
.iphone-island::after {
  content: ''; position: absolute; right: 13%; top: 50%; transform: translateY(-50%);
  width: 2.4cqw; height: 2.4cqw; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #1E3A4A 0 42%, #070C10 60%);
}
/* side buttons */
.iphone-btn { position: absolute; background: linear-gradient(90deg,#2C3230,#171B1A); border-radius: calc(var(--pw) * 0.007); }
.iphone-btn.vol-up { left: calc(var(--pw) * -0.007); top: 22%;  width: calc(var(--pw) * 0.0104); height: 7%; }
.iphone-btn.vol-down { left: calc(var(--pw) * -0.007); top: 31%;  width: calc(var(--pw) * 0.0104); height: 7%; }
.iphone-btn.power { right: calc(var(--pw) * -0.007); top: 26%; width: calc(var(--pw) * 0.0104); height: 11%; }

.hero-pair { position: relative; display: flex; justify-content: center; align-items: center; min-height: 700px; }
body { overflow-x: hidden; }
.hero-pair .before { width: 268px; --pw: 268px; }
.hero-pair .after  { width: 320px; --pw: 320px; }
.hero-pair .before {
  transform: rotate(-7deg) translate(-38px, 44px);
  z-index: 1;
}
.hero-pair .after {
  transform: rotate(4deg) translate(74px, -30px);
  z-index: 2;
}
.pair-arrow {
  position: absolute; left: 47%; top: 53%; transform: translate(-50%, -50%);
  z-index: 5; width: 118px; pointer-events: none;
}
.pair-arrow svg { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.9)); }

/* Social proof pill */
.proof-pill {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  padding: 8px 18px 8px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  font-size: 15px; font-weight: 500;
}
.proof-pill .faces { display: flex; }
.proof-pill .faces img {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  margin-right: -11px; object-fit: cover; display: block;
}
.proof-pill .faces img:last-child { margin-right: 0; }
.proof-pill b { font-weight: 700; }

@media (max-width: 900px) {
  .hero-pair { min-height: 560px; }
  .hero-pair .before { width: 176px; --pw: 176px; }
  .hero-pair .after { width: 228px; --pw: 228px; }
  .hero-pair .before { transform: rotate(-7deg) translate(-52px, 20px); }
  .hero-pair .after  { transform: rotate(5deg) translate(44px, -14px); }
  .pair-arrow { width: 84px; }
  .pair-arrow svg { width: 100%; height: auto; }
}
@media (max-width: 480px) {
  .hero-pair { min-height: 106vw; margin-top: -12px; }
  /* rotation widens each frame's bounding box, so the offsets stay small */
  .hero-pair .before { width: 34vw; --pw: 34vw; }
  .hero-pair .after { width: 43vw; --pw: 43vw; }
  .hero-pair .before { transform: rotate(-7deg) translate(-3.7vw, 4.2vw); }
  .hero-pair .after  { transform: rotate(5deg) translate(4.8vw, -3.2vw); }
  .pair-arrow { width: 62px; }
  .pair-arrow svg { width: 100%; height: auto; }
  .proof-pill { font-size: 13.5px; }
}


/* Phones: scale the whole page down a notch so sections don't each fill the
   screen. Mockups in particular were rendering near full width. */
@media (max-width: 760px) {
  .section { padding: 58px 0; }
  .section h2 { font-size: clamp(26px, 6.6vw, 30px); }
  .lede { font-size: 17px; }
  .wrap { width: min(1160px, 100% - 36px); }

  .showcase { gap: 44px; margin-top: 40px; }
  .show { gap: 18px; }
  .show .phone { width: min(208px, 58vw); --pw: min(208px, 58vw); }
  .show figcaption strong { font-size: 19px; }
  .show figcaption span:last-child { font-size: 15px; }

  .props { gap: 16px; }
  .prop { padding: 24px; border-radius: 18px; }
  .prop h3 { font-size: 19px; }
  .prop p { font-size: 15.5px; }
  .prop-icon { width: 44px; height: 44px; margin-bottom: 16px; }

  .spotlight { gap: 36px; }
  .spot-phone .phone { width: min(230px, 62vw); --pw: min(230px, 62vw); }

  .reviews { gap: 16px; margin-top: 36px; }
  .review { padding: 22px; font-size: 15.5px; }

  .cta-box { padding: 48px 22px; border-radius: 24px; }
  .cta-box > p { font-size: 16px; }
  .faq details p { font-size: 15.5px; }
}

/* Legal entity name in the footer — Apple verifies the registered company
   is identifiable on the site during organization enrollment. */
.foot-grid .entity {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted, #5B6475);
  opacity: .85;
}

/* Formly: buttons instead of App Store badges (the app runs on the web for now) */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 18px;
  padding: 16px 30px; border-radius: 16px; transition: transform .15s, background .15s; white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(30, 123, 242, .6);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn.small { font-size: 15px; padding: 10px 18px; border-radius: 12px; box-shadow: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Placeholder reviews: clearly marked until real ones exist */
.placeholder-tag {
  justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 3px 10px;
}
@media (max-width: 480px) { .nav .btn.small { font-size: 14px; padding: 9px 14px; } }
