/* AppRoster — Klein Paper editorial · v2 (icon-driven) */

:root {
  --klein:        #2540AF;      /* matches the app icon's blue */
  --klein-deep:   #1A2F8A;
  --klein-soft:   rgba(37, 64, 175, 0.10);
  --klein-text:   #0A1740;
  --gold:         #D4A024;      /* matches the icon's mustard star */
  --gold-soft:    rgba(212, 160, 36, 0.16);
  --canvas:       #F6F2E7;      /* warm cream, the icon's middle layer */
  --paper:        #FFFFFF;
  --ink:          #0E0E10;      /* near-black, the icon's bottom layer */
  --ink-soft:     #3F3F45;
  --muted:        #847F70;
  --border:       #DAD5C5;
  --border-soft:  #ECE7D7;
  --good:         #1E7E47;
  --bad:          #B83232;

  --r-card: 14px;     /* card corner radius — matches the icon's tile feel */
  --r-pill: 100px;
  --shadow-stack: 0 18px 36px -12px rgba(10, 23, 64, 0.18);
  --shadow-deep:  0 28px 60px -16px rgba(10, 23, 64, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(37, 64, 175, 0.07), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(212, 160, 36, 0.08), transparent 35%);
  background-attachment: fixed;
}

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

/* Site nav */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1.5px solid var(--border);
}
.site-nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 17px; letter-spacing: -0.6px;
  color: var(--klein-text); text-decoration: none;
}
.site-nav .brand img {
  width: 32px; height: 32px; border-radius: 7px;
  box-shadow: var(--shadow-stack);
}
.site-nav .links { display: flex; gap: 22px; }
.site-nav .links a {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.15s;
}
.site-nav .links a:hover { color: var(--klein); }

/* Footer */
.site-footer {
  margin-top: 80px; padding: 32px 0 44px;
  border-top: 1.5px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
}
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--klein-text); }
.site-footer .footer-brand img { width: 20px; height: 20px; border-radius: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 14px; }
.site-footer a:hover { color: var(--klein); }
.site-footer .gold-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--gold); margin-left: 6px; vertical-align: middle;
}

/* ─── Editorial tokens ─── */

.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.kicker.gold { color: var(--gold); }
.kicker.klein { color: var(--klein); }

.dek {
  font-size: 19px; font-weight: 500; font-style: italic;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--ink-soft); line-height: 1.5;
}

.rule { border: 0; border-top: 1.5px solid var(--border); margin: 22px 0; }
.rule.gold-tail { position: relative; }
.rule.gold-tail::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; background: var(--gold);
}

.text-link {
  color: var(--klein); font-weight: 800; font-size: 13px; letter-spacing: 0.4px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--klein); padding-bottom: 2px;
  transition: all 0.15s;
}
.text-link:hover { color: var(--klein-deep); border-color: var(--klein-deep); }

/* ─── HERO ─── */

.hero {
  padding: 60px 0 56px;
  border-bottom: 1.5px solid var(--border);
  position: relative;
}
.hero .issue-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}
.hero-composition {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(54px, 9vw, 104px); font-weight: 900;
  letter-spacing: -3.5px; line-height: 0.92;
  color: var(--klein-text);
}
.hero-text h1 .period { color: var(--gold); }
.hero-text .pull-quote {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 22px); font-weight: 500;
  font-family: "Iowan Old Style", Georgia, serif; font-style: italic;
  color: var(--ink-soft); max-width: 540px;
}
.hero-text .cta-row {
  margin-top: 36px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}

/* Big hero icon — the visual anchor */
.hero-icon {
  display: flex; justify-content: center; align-items: center;
}
.hero-icon img {
  width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(10, 23, 64, 0.25));
  transform:
    rotate(calc(var(--icon-tilt, 0) * -6deg))
    translateY(calc(var(--icon-tilt, 0) * -12px));
  transition: transform 80ms linear;
  will-change: transform;
}

@media (max-width: 820px) {
  .hero-composition { grid-template-columns: 1fr; }
  .hero-icon { order: -1; }
  .hero-icon img { max-width: 220px; }
}

/* App Store badge — Apple's official "Download on the App Store" lockup */
.app-store-badge {
  display: inline-flex; text-decoration: none;
  transition: transform 0.15s;
}
.app-store-badge:hover { transform: translateY(-1px); }
.app-store-badge img {
  height: 48px; width: auto; display: block;
}

/* ─── SECTIONS ─── */

.section {
  padding: 70px 0;
  border-bottom: 1.5px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 900; letter-spacing: -1.4px;
  color: var(--klein-text); margin-top: 8px; line-height: 1.04;
}
.section .lede {
  font-size: 18px; color: var(--ink-soft); max-width: 600px;
  margin-top: 18px; line-height: 1.6;
}

/* ─── Feature grid — stacked card motif echoes the icon ─── */

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin-top: 36px;
}
.feature-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-stack);
}
.feature-card::before,
.feature-card::after {
  content: ""; position: absolute; left: 6px; right: 6px;
  border-radius: var(--r-card); pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.feature-card::before {
  bottom: 0; height: 18px;
  background: var(--canvas); border: 1.5px solid var(--border);
  z-index: -1;
  transform: translateY(0);
}
.feature-card::after {
  bottom: 0; height: 18px; left: 12px; right: 12px;
  background: var(--ink); opacity: 0;
  z-index: -2;
  transform: translateY(0);
}
.feature-card:hover::before {
  opacity: 1;
  transform: translateY(8px);
}
.feature-card:hover::after {
  opacity: 0.92;
  transform: translateY(14px);
}
.feature-card .num {
  font-family: Georgia, serif; font-weight: 900; font-size: 14px;
  color: var(--klein); margin-bottom: 8px;
}
.feature-card .num.gold { color: var(--gold); }
.feature-card h3 {
  font-size: 21px; font-weight: 900; letter-spacing: -0.3px;
  margin-bottom: 8px; color: var(--klein-text);
}
.feature-card p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  font-family: "Iowan Old Style", Georgia, serif; font-style: italic;
}

/* ─── Phone mockup — refined ─── */

.phone-mock {
  width: 290px; min-height: 580px; border-radius: 36px;
  background: var(--canvas); border: 8px solid var(--ink);
  box-shadow: var(--shadow-deep);
  padding: 24px 18px; position: relative;
  font-size: 13px;
}
.phone-mock .pm-masthead {
  font-size: 28px; font-weight: 900;
  color: var(--klein-text); letter-spacing: -1.2px;
}
.phone-mock .pm-strip {
  display: flex; gap: 5px; margin: 12px 0 6px; flex-wrap: wrap;
}
.phone-mock .pm-chip {
  padding: 4px 8px; font-size: 9px; font-weight: 800; letter-spacing: 1px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 3px;
}
.phone-mock .pm-chip.on {
  background: var(--klein); color: var(--paper); border-color: var(--klein);
}
.phone-mock .pm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; border-bottom: 1px solid var(--border);
}
.phone-mock .pm-icon {
  width: 36px; height: 36px;
  background: var(--klein-soft); border: 1px solid var(--border);
  border-radius: 4px;
}
.phone-mock .pm-name { font-weight: 800; font-size: 13px; flex: 1; }
.phone-mock .pm-score {
  font-weight: 900; font-size: 18px; color: var(--klein-text);
  font-variant-numeric: tabular-nums;
}
.phone-mock .pm-meta {
  font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
}

/* ─── PRICING ─── */

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 36px;
}
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  padding: 30px; border: 1.5px solid var(--border);
  background: var(--paper); border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-stack); }
.plan.featured {
  background: var(--klein); color: var(--paper); border-color: var(--klein);
  box-shadow: var(--shadow-stack);
}
.plan .ptitle {
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  opacity: 0.7;
}
.plan.featured .ptitle { opacity: 0.85; }
.plan .price {
  font-size: 60px; font-weight: 900; letter-spacing: -2.5px; line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: 4px;
}
.plan .punit {
  font-size: 12px; font-weight: 800; opacity: 0.65;
  text-transform: uppercase; letter-spacing: 1.4px;
}
.plan .pextra {
  font-family: "Iowan Old Style", Georgia, serif; font-style: italic;
  font-size: 14px; opacity: 0.88; margin-top: 4px;
}
.plan .save-badge {
  align-self: flex-start;
  padding: 5px 10px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: var(--r-pill);
}

/* ─── DOWNLOAD strip ─── */

.download-strip {
  margin-top: 32px;
  padding: 36px;
  background: var(--klein); color: var(--paper);
  border-radius: var(--r-card);
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-deep);
}
.download-strip img {
  width: 80px; height: 80px; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.download-strip .ds-text { flex: 1; min-width: 200px; }
.download-strip .ds-text h3 {
  font-size: 24px; font-weight: 900; letter-spacing: -0.5px;
}
.download-strip .ds-text p {
  font-size: 14px; opacity: 0.85; margin-top: 4px;
}

/* ─── Article (legal / support) ─── */

.article-head {
  padding: 56px 0 32px;
  border-bottom: 1.5px solid var(--border);
  display: flex; gap: 28px; align-items: flex-start; justify-content: space-between;
}
.article-head .ah-text { flex: 1; }
.article-head .issue-row { display: flex; justify-content: space-between; margin-bottom: 18px; }
.article-head h1 {
  font-size: clamp(44px, 7vw, 70px); font-weight: 900;
  letter-spacing: -2.2px; color: var(--klein-text); line-height: 0.95;
}
.article-head .dek { margin-top: 18px; max-width: 600px; }
.article-head .ah-icon {
  flex-shrink: 0; padding-top: 36px;
}
.article-head .ah-icon img {
  width: 88px; height: auto;
  filter: drop-shadow(0 12px 22px rgba(10, 23, 64, 0.2));
}
@media (max-width: 600px) {
  .article-head { flex-direction: column; }
  .article-head .ah-icon { padding-top: 0; }
  .article-head .ah-icon img { width: 60px; }
}

.article {
  padding: 40px 0 24px; max-width: 720px;
}
.article h2 {
  font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold); margin: 38px 0 12px;
  border-top: 1.5px solid var(--border); padding-top: 20px;
}
.article h2:first-of-type { margin-top: 18px; }
.article h2 .article-num {
  font-family: Georgia, serif; color: var(--klein); margin-right: 8px;
}
.article h3 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
  margin-bottom: 10px; color: var(--klein-text);
}
.article p { margin-bottom: 14px; color: var(--ink-soft); }
.article ul { margin: 8px 0 18px 22px; }
.article li { margin-bottom: 6px; color: var(--ink-soft); }
.article a { color: var(--klein); }
.article code {
  font-family: "SF Mono", Monaco, Menlo, monospace;
  background: var(--klein-soft); color: var(--klein-deep);
  padding: 2px 6px; border-radius: 4px; font-size: 13px;
}
.article .updated {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}

/* ─── FAQ ─── */

.faq-item {
  border-top: 1.5px solid var(--border); padding: 26px 0;
  transition: padding 0.15s;
}
.faq-item:last-child { border-bottom: 1.5px solid var(--border); }
.faq-item .faq-num {
  font-family: Georgia, serif; font-weight: 900; font-size: 13px;
  color: var(--gold); letter-spacing: 1px;
}
.faq-item h3 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
  color: var(--klein-text); margin: 5px 0 9px;
}
.faq-item p { color: var(--ink-soft); font-size: 15px; }

/* ─── Contact card ─── */

.contact-card {
  margin-top: 40px; padding: 32px;
  background: var(--klein); color: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-deep);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px;
}
.contact-card .kicker { color: rgba(255,255,255,0.7); }
.contact-card h3 {
  font-size: 28px; font-weight: 900; letter-spacing: -0.5px; margin: 5px 0 0;
}
.contact-card a {
  font-family: "Iowan Old Style", Georgia, serif; font-style: italic; font-size: 19px;
  color: var(--gold); text-decoration: none; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.contact-card a:hover { text-decoration: underline; }

/* === Hero marquee ticker === */
.marquee {
  margin: 40px -28px 0;     /* break out of .wrap padding */
  background: var(--klein-text);
  color: var(--paper);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding-left: 28px;
}
.marquee-track > span {
  display: inline-block;
  padding-right: 36px;
}
.marquee-dot {
  color: var(--gold);
}

/* === §02 In Use sticky-scroll story === */
.in-use { padding-top: 70px; padding-bottom: 70px; }
.iu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 32px;
  align-items: start;
}
.iu-captions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.iu-caption {
  min-height: 32vh;        /* still > 20vh observer trigger zone; tight visually */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 5vh;
  padding-right: 12px;
}
.iu-caption h3 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--klein-text);
  margin-top: 10px;
}
.iu-caption .dek { margin-top: 16px; max-width: 460px; }

.iu-phone-col {
  position: relative;
  align-self: start;
}
.iu-phone {
  position: sticky;
  top: 18vh;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .iu-grid { grid-template-columns: 1fr; gap: 32px; }
  .iu-caption { min-height: 0; padding-top: 0; padding-right: 0; }
  .iu-phone { position: static; top: auto; margin-top: 18px; }
  /* On mobile we render the phone after each caption — see Step 4. */
}

/* === §03 magazine spread pull-quote === */
.pull-quote-bleed {
  margin: 50px -28px;     /* break out of .wrap padding */
  padding: 56px 36px;
  background: var(--klein);
  color: var(--paper);
  position: relative;
}
.pull-quote-bleed .pq-mark {
  position: absolute;
  top: 28px; left: 24px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}
.pull-quote-bleed .pq-text {
  padding-left: 70px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.pull-quote-bleed .pq-cite {
  padding-left: 70px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}
@media (max-width: 620px) {
  .pull-quote-bleed { padding: 40px 24px; }
  .pull-quote-bleed .pq-mark { font-size: 64px; top: 18px; left: 14px; }
  .pull-quote-bleed .pq-text { padding-left: 46px; }
  .pull-quote-bleed .pq-cite { padding-left: 46px; }
}

/* === §04 Yearly card hover-unfold — mirrors the app icon === */
.plan-stack {
  position: relative;
  isolation: isolate;
}
.plan-stack::before,
.plan-stack::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  border-radius: var(--r-card);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease-out;
  pointer-events: none;
}
.plan-stack::before {        /* cream layer */
  top: 0; bottom: -8px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  z-index: -1;
  transform: scale(0.97);
}
.plan-stack::after {         /* ink layer */
  top: 0; bottom: -16px;
  background: var(--ink);
  z-index: -2;
  transform: scale(0.94);
}
.plan-stack:hover .plan.featured {
  transform: translateY(-6px);
}
.plan-stack:hover::before {
  opacity: 1;
  transform: translateY(8px) scale(0.97);
}
.plan-stack:hover::after {
  opacity: 0.92;
  transform: translateY(16px) scale(0.94);
}
/* Transition for the lift */
.plan.featured {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease-out;
}
