/* pertain.app — built from the app's own design: Geist with tight display
   tracking, the Newsreader wordmark, a night hero with the indigo glow from
   the Welcome screen, white cards on the app's light ground, lime for
   "done" and gold only for the wordmark's dot. Light everywhere except the
   hero, pricing and privacy bands, like the app's dark panels. */
:root {
  --night: #0B0C10;
  --ink: #0E1015;
  --ground: #F4F5F7;
  --card: #FFFFFF;
  --secondary: #555B69;
  --tertiary: #626877;
  --hairline: #E1E3E9;
  --well: #E9EBEF;
  --on-dark: #A4A8B6;
  --on-dark-body: #C4C7D2;
  --indigo: #4A3AFF;
  --indigo-text: #3A2BD9;
  --indigo-light: #9D94FF;
  --indigo-soft: #EEECFF;
  --lime: #C5F25E;
  --gold: #C9A15A;
  --green: #0B7A47;
  --green-soft: #E3F5EB;
  --orange: #C2410C;
  --orange-soft: #FFEFE8;
  --purple: #9D1FA8;
  --purple-soft: #F9E9FB;
  --blue: #0466A6;
  --blue-soft: #E3F2FB;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--indigo-text); }
a:focus-visible, .pill:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

/* Wordmark: "pertain" in the logo's serif with the gold dot. */
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--gold); }
.on-dark .wordmark { color: #fff; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.bar nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.bar nav a { color: var(--secondary); text-decoration: none; }
.on-dark .bar nav a { color: var(--on-dark); }
.bar nav a:hover { color: var(--ink); }
.on-dark .bar nav a:hover { color: #fff; }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); margin: 0 0 12px; }
.eyebrow.lime { color: var(--lime); }
.eyebrow.accent { color: var(--orange); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.accent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 84px); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.04em; line-height: 1.04; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--secondary); max-width: 34em; }
.on-dark .lede { color: var(--on-dark); }
.muted { color: var(--secondary); }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 999px; }
.pill.light { background: #fff; color: var(--ink); padding: 8px 8px 8px 24px; }
.pill.light .go { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 18px; }
.pill.dark { background: var(--ink); color: #fff; padding: 14px 22px; }
.small-print { font-size: 13px; color: var(--on-dark); display: flex; align-items: center; gap: 6px; margin-top: 14px; }

/* Hero: the Welcome screen, made wide */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 900px; height: 900px; right: -260px; top: -420px; background: radial-gradient(closest-side, rgba(74,58,255,0.55), transparent); }
.hero::after { width: 700px; height: 700px; left: -320px; bottom: -360px; background: radial-gradient(closest-side, rgba(232,85,43,0.18), transparent); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: 40px 80px; }
.hero h1 .accent { color: var(--indigo-light); }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 36px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phones .phone { width: min(300px, 62vw); }
.hero-phones .phone.back { position: absolute; right: 0; top: 50%; width: min(230px, 46vw); opacity: 0.9; transform: translateY(-46%) rotate(5deg); }
.hero-phones .phone.front { position: relative; z-index: 2; transform: translateX(-16%); }

/* Phone frame around real app screenshots */
.phone { background: #000; border-radius: 46px; padding: 9px; box-shadow: 0 40px 80px -30px rgba(14,16,21,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; }

/* Sections */
section.band { padding-block: 96px; }
.band-head { display: grid; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.dark-band { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; width: 760px; height: 760px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,58,255,0.45), transparent); pointer-events: none; }
.dark-band .wrap { position: relative; z-index: 1; }
.dark-band .muted { color: var(--on-dark); }

/* Brief cards, drawn like the app's Today cards */
.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.story { background: var(--card); border-radius: 26px; padding: 20px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 0 rgba(14,16,21,0.04), 0 20px 40px -32px rgba(14,16,21,0.25); }
.story .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tag.money { color: var(--green); background: var(--green-soft); }
.tag.visa { color: var(--purple); background: var(--purple-soft); }
.tag.travel { color: var(--blue); background: var(--blue-soft); }
.tag.home { color: #8A5A00; background: #FFF3D6; }
.when { font-size: 13px; color: var(--tertiary); }
.story h3 { font-size: 19px; }
.foryou { background: var(--ground); border-radius: 18px; padding: 14px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.foryou b.fy { color: var(--indigo-text); }
.foryou b.td { color: var(--green); }
.because { font-size: 13px; color: var(--tertiary); }

/* How it works */
/* Each step is badge, title, text, phone. Subgrid lines those rows up across
   the three columns, so the phones start level however long the text is. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 20px; }
.step { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 20px; align-content: start; }
.step .phone { width: 100%; max-width: 280px; justify-self: center; }
.step .num { font-size: 13px; font-weight: 600; color: var(--indigo-text); background: var(--indigo-soft); border-radius: 999px; padding: 4px 10px; justify-self: start; }
.step p { color: var(--secondary); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 40px; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature .copy { display: grid; gap: 16px; max-width: 460px; }
.feature .phone { width: 100%; max-width: 300px; justify-self: center; }
.feature.flip .copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--secondary); }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--night); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }

/* Pricing, drawn like the paywall */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }
.plan { border: 1px solid #262832; border-radius: 22px; padding: 22px; display: grid; gap: 6px; }
.plan.best { border: 2px solid var(--lime); background: #16171D; }
.plan .name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.plan .save { font-size: 11px; font-weight: 700; color: var(--night); background: var(--lime); border-radius: 999px; padding: 3px 8px; letter-spacing: 0.04em; }
.plan .price { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .sub { color: var(--on-dark); font-size: 15px; }
.trial { margin-top: 24px; color: var(--on-dark); font-size: 15px; }

/* Privacy points */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust .card { background: var(--card); border-radius: 22px; padding: 22px; display: grid; gap: 8px; }
.trust .card p { color: var(--secondary); font-size: 15px; }

/* Documents (privacy, terms, support) */
.doc { padding-block: 24px 40px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 24px 0 8px; }
.doc .updated { color: var(--tertiary); font-size: 14px; margin-bottom: 28px; }
.doc .paper { background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--secondary); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc strong { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--hairline); color: var(--secondary); }
.doc th { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.summary { background: var(--indigo-soft); border-radius: 18px; padding: 18px 20px; color: var(--ink); margin-bottom: 8px; }
.summary p { color: var(--ink); }

/* Footer */
footer.site { padding-block: 48px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
footer.site nav a, footer.site small { color: var(--tertiary); text-decoration: none; font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .step + .step { margin-top: 36px; }
  .step .phone, .feature .phone { max-width: 260px; }
  .hero-grid { padding-block: 24px 64px; }
  .hero-phones .phone.front { transform: none; }
  .hero-phones .phone.back { display: none; }
  section.band { padding-block: 72px; }
  .bar nav { display: none; }
}
