/* Caliper — calipercar.com
   Type: Syne ExtraBold (display) + SF Pro / Inter (body)
   Accent: #4A7FA5 (slate blue)
   Aesthetic: flat, generous whitespace, no gradients, no shadows. */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/syne/v22/8vIS7w4qzmVxsWxjBZRjr0FKM_04uQ.woff2") format("woff2");
}

:root {
  /* Brand */
  --accent: #4A7FA5;
  --accent-ink: #2F5876;

  /* Page glow */
  --glow-primary: rgba(74, 127, 165, 0.13);
  --glow-secondary: rgba(74, 127, 165, 0.08);

  /* Light surfaces (mirrors AppColors.swift D.bg / D.cardFill) */
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --ink: #1A1816;
  --ink-2: #6B6560;
  --ink-3: rgba(107, 101, 96, 0.6);
  --rule: #D5D1C8;

  /* Status (light) */
  --green: #16A34A;
  --green-bg: #DCF6E5;
  --amber: #78350F;
  --amber-bg: #FAEDD1;
  --red: #991B1B;
  --red-bg: #FAE6E6;

  /* Type */
  --display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Scale */
  --r-card: 14px;
  --r-card-lg: 18px;
  --r-chip: 999px;

  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1C1C1E;
    --ink: #FFFFFF;
    --ink-2: rgba(235, 235, 245, 0.6);
    --ink-3: rgba(235, 235, 245, 0.3);
    --rule: #38383A;

    --green: #4ADE80;
    --green-bg: #173524;
    --amber: #FCD34D;
    --amber-bg: #3F2E14;
    --red: #FF453A;
    --red-bg: #401F23;

    --accent: #6FA1C7;
    --accent-ink: #9DC4E2;

    --glow-primary: rgba(74, 127, 165, 0.22);
    --glow-secondary: rgba(74, 127, 165, 0.15);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle 380px at 78% 18%, var(--glow-primary), transparent 70%),
    radial-gradient(circle 360px at 18% 85%, var(--glow-secondary), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-rendering: optimizeLegibility;
}

body > header,
body > main,
body > footer { width: 100%; }

main { flex: 1; }

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand .wordmark { font-size: 22px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-block;
}

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

.hero {
  padding: 96px 24px 88px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 120px 24px 112px;
  }
  .hero .hero-art { order: -1; }
  .hero .hero-copy { order: 0; }
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}

.hero-copy .tagline {
  font-family: var(--body);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
}

.hero-copy .pitch {
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 36px;
  max-width: 38ch;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
  position: relative;
}
@media (min-width: 820px) {
  .hero-art { order: 0; }
}

.hero-art .iphone { position: relative; z-index: 1; }

.gauge {
  width: clamp(220px, 36vw, 380px);
  height: clamp(220px, 36vw, 380px);
}

/* ---------- App Store badge ---------- */

.appstore {
  display: inline-block;
  height: 56px;
}
.appstore svg { display: block; height: 100%; width: auto; }
.appstore:hover { transform: translateY(-1px); transition: transform .15s ease; }

/* ---------- iPhone mockup ---------- */

.iphone {
  --w: 280px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  background: #0a0a0a;
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.022);
  box-sizing: border-box;
  margin: 0 auto;
  /* Subtle bezel highlight — not a drop shadow, an inset edge */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 2px rgba(0,0,0,0.9);
}

.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  background: #555a60;
  border-radius: 2px;
  left: calc(var(--w) * -0.012);
}
/* Volume up */
.iphone::before {
  width: calc(var(--w) * 0.012);
  height: calc(var(--w) * 0.10);
  top: calc(var(--w) * 0.34);
  box-shadow:
    0 calc(var(--w) * 0.12) 0 #555a60,  /* volume down */
    0 calc(var(--w) * -0.18) 0 calc(var(--w) * -0.005) #555a60; /* silent switch */
}
/* Power button on right */
.iphone::after {
  width: calc(var(--w) * 0.012);
  height: calc(var(--w) * 0.16);
  top: calc(var(--w) * 0.42);
  left: auto;
  right: calc(var(--w) * -0.012);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.135);
  overflow: hidden;
  background: #000;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-art .iphone {
  --w: 320px;
}
@media (min-width: 1100px) {
  .hero-art .iphone { --w: 360px; }
}

.showcase {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 820px) {
  .showcase {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    padding: 112px 0;
  }
  .showcase.is-flipped .showcase-art { order: -1; }
}

.showcase h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.showcase p {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.showcase-art {
  display: flex;
  justify-content: center;
}
.showcase-art .iphone {
  --w: 280px;
}

.showcase-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Section ---------- */

section { padding: 64px 0; }

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.section-lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 56px;
  text-wrap: pretty;
}

/* ---------- Features grid (Liquid Glass cards) ---------- */

.features-section { padding: 80px 0 88px; }

.features-bg {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(74,127,165,0.18), transparent 55%),
    radial-gradient(ellipse at 82% 88%, rgba(74,127,165,0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--rule);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: transparent;
  border: 0;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: 1fr 1fr 1fr; } }

.feature {
  position: relative;
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 38%);
  mix-blend-mode: overlay;
}

@media (prefers-color-scheme: dark) {
  .features-bg {
    background:
      radial-gradient(ellipse at 18% 12%, rgba(111,161,199,0.20), transparent 55%),
      radial-gradient(ellipse at 82% 88%, rgba(111,161,199,0.10), transparent 60%),
      #1A1A1C;
    border-color: rgba(255,255,255,0.06);
  }
  .feature {
    background: rgba(40,40,44,0.55);
    border-color: rgba(255,255,255,0.07);
  }
  .feature::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 38%);
  }
}

.feature-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,127,165,0.16);
  color: var(--accent);
  margin-bottom: 4px;
}
.feature-glyph svg {
  width: 22px;
  height: 22px;
  display: block;
  color: currentColor;
}
.feature-glyph svg [data-stroke] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-glyph svg [data-fill] { fill: currentColor; }

.feature h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.feature-num { display: none; }

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

.faq-section { padding: 80px 0 96px; }

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 4px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--ink-2);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.faq details p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 64ch;
  text-wrap: pretty;
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.plan-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.plan-period {
  font-size: 14px;
  color: var(--ink-2);
  font-family: var(--body);
  font-weight: 500;
}

.plan-note {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: auto;
}

.plan.is-best {
  border-color: var(--accent);
}

.plan-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-chip);
}

/* ---------- Closing ---------- */

.closing {
  padding: 96px 0 80px;
  text-align: center;
}

.closing p {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto 36px;
  max-width: 22ch;
  text-wrap: balance;
}

.appstore-large {
  display: inline-block;
  width: 200px;
  height: 66px;
  color: var(--ink);
}
.appstore-large svg { display: block; width: 100%; height: 100%; }
.appstore-large:hover { transform: translateY(-1px); transition: transform .15s ease; }

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

.footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 56px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Document pages (support / privacy) ---------- */

.doc {
  padding: 64px 0 96px;
}

.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.doc .lede {
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 48px;
  max-width: 60ch;
  text-wrap: pretty;
}

.doc h2 {
  font-family: var(--body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 56px 0 12px;
  color: var(--ink);
}

.doc h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 6px;
  color: var(--ink);
}

.doc p, .doc li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

.doc p { margin: 0 0 16px; max-width: 62ch; }

.doc ul, .doc ol {
  padding-left: 22px;
  margin: 0 0 24px;
  max-width: 62ch;
}
.doc li { margin-bottom: 10px; }

.doc .meta {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 20px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
