@import url('./tokens.css');

/* =====================================================================
   Paper Planes — marketing site shell
   Built on the iOS design tokens. Adds an accessible web palette:
   dark product surfaces + neutral "paper" reading sections (WCAG AA).
   ===================================================================== */

:root {
  /* Neutral editorial paper — news-grade, neither warm nor cool */
  --web-paper:        #F3F4F4;
  --web-paper-2:      #E8EAEA;   /* subtle inset panels on light */
  --web-ink:          #0B1014;   /* headings on light */
  --web-ink-2:        rgba(11,16,20,0.66);  /* body on light */
  --web-ink-3:        rgba(11,16,20,0.46);  /* captions on light */
  --web-border-light: rgba(11,16,20,0.10);
  --web-border-light-strong: rgba(11,16,20,0.16);
  /* Green tuned for AA text on paper */
  --web-green-ink:    #0E5A40;

  --maxw: 1180px;
  --gutter: 24px;
  --sec-pad: 128px;   /* vertical section rhythm */
  --radius-card: 16px;
}

body[data-density="compact"] { --sec-pad: 88px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pp-bg-1);
  color: var(--pp-text-primary);
  font-family: var(--pp-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pp-primary-2); text-decoration: none; }
a:hover { color: #6f9e8b; }

::selection { background: rgba(46,191,115,0.28); }

/* Focus — visible AA focus ring everywhere */
:focus-visible {
  outline: 2px solid var(--pp-success);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sec-pad) 0; }
.section-tight { padding: calc(var(--sec-pad) * 0.6) 0; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--pp-primary); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* =====================================================================
   Surfaces — dark / light sections
   ===================================================================== */
.sec-dark  { background: var(--pp-bg-gradient); color: var(--pp-text-primary); }
.sec-darker{ background: var(--pp-bg-1); color: var(--pp-text-primary); }
.sec-light { background: var(--web-paper); color: var(--web-ink); }

.sec-light h1, .sec-light h2, .sec-light h3, .sec-light h4 { color: var(--web-ink); }
.sec-light p  { color: var(--web-ink-2); }
.sec-light a  { color: var(--web-green-ink); }
.sec-light a:hover { color: #0a4130; }

/* =====================================================================
   Type helpers
   ===================================================================== */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pp-primary-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.sec-light .eyebrow { color: var(--web-green-ink); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}

.display {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.028em; margin: 0;
}
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--pp-text-secondary); }
.sec-light .lede { color: var(--web-ink-2); }
.muted { color: var(--pp-text-secondary); }
.sec-light .muted { color: var(--web-ink-3); }

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--pp-font-sans); cursor: pointer; border: none;
  padding: 14px 22px; border-radius: var(--pp-r-2xl); transition: background .18s ease, opacity .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--pp-primary); color: #fff; }
.btn-primary:hover { background: #14724f; color: #fff; }
/* .sec-light a would otherwise out-rank .btn-primary and paint green on green */
.sec-light .btn-primary, .sec-light .btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--pp-text-primary); padding-left: 6px; padding-right: 6px; }
.sec-light .btn-ghost { color: var(--web-ink); }
.btn-ghost:hover { color: var(--pp-primary-2); }
.btn-outline {
  background: transparent; color: var(--pp-text-primary);
  box-shadow: inset 0 0 0 1px var(--pp-border-strong);
}
.sec-light .btn-outline { color: var(--web-ink); box-shadow: inset 0 0 0 1px var(--web-border-light-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--pp-primary-2); color: var(--pp-primary-2); }
.btn-lg { padding: 16px 26px; font-size: 17px; }

/* App Store badge (placeholder — links to /app until real URL exists) */
.app-badge {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #000; color: #fff; padding: 10px 18px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  transition: transform .18s ease;
}
.app-badge:hover { color: #fff; transform: translateY(-1px); }
.app-badge svg { width: 26px; height: 26px; stroke: none; fill: #fff; }
.app-badge .ab-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-badge .ab-small { font-size: 11px; font-weight: 500; opacity: .85; letter-spacing: .01em; }
.app-badge .ab-big { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =====================================================================
   Header / nav
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,16,20,0.72);
  backdrop-filter: var(--pp-blur-thin); -webkit-backdrop-filter: var(--pp-blur-thin);
  border-bottom: 1px solid var(--pp-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg, .brand img { width: 34px; height: 26px; }
.brand .wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--pp-text-primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--pp-text-secondary);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--pp-text-primary); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; background: none; border: none; color: var(--pp-text-primary); cursor: pointer; padding: 8px; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; border-top: 1px solid var(--pp-border);
    background: rgba(11,16,20,0.96); backdrop-filter: var(--pp-blur-thin);
    max-height: 0; overflow: hidden;
    /* visibility keeps the collapsed menu out of the tab order and a11y
       tree in browsers without inert; the delay hides it after the
       collapse animation instead of cutting it off */
    visibility: hidden;
    transition: max-height .28s ease, visibility 0s linear .28s;
  }
  .mobile-menu[data-open="true"] {
    max-height: 420px; visibility: visible;
    transition: max-height .28s ease;
  }
  .mobile-menu .container { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 20px; }
  .mobile-menu a { padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--pp-text-primary); border-bottom: 1px solid var(--pp-border); }
  .mobile-menu .btn { margin-top: 14px; }
}

/* =====================================================================
   iPhone frame
   ===================================================================== */
.phone {
  position: relative; width: 300px; flex-shrink: 0;
  aspect-ratio: 300 / 620;
  background: var(--pp-bg-gradient); border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 0 0 11px #05080b, 0 0 0 13px rgba(255,255,255,0.06), 0 40px 80px -30px rgba(0,0,0,0.85);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; min-height: 0;
  background: var(--pp-bg-gradient);
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px; background: #05080b; border-radius: 14px; z-index: 5;
}
.phone-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 46px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.hero-demo[hidden] { display: none; }
.phone-statusbar {
  position: absolute; top: 12px; left: 20px; right: 20px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.92);
}
.phone-statusbar .sb-right { display: flex; gap: 5px; align-items: center; }
.phone-topbar { display: flex; align-items: center; gap: 8px; padding: 2px 2px 6px; }
.phone-topbar svg, .phone-topbar img { width: 26px; height: 20px; }
.phone-topbar .pt-title { font-size: 15px; font-weight: 600; }

/* =====================================================================
   Product cards — faithful to ShareCarouselView action cards
   ===================================================================== */
.pp-card {
  background: rgba(28,33,40,0.95); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px;
  color: var(--pp-text-primary);
}
.pp-card .c-icon { color: rgba(255,255,255,0.95); }
.pp-card .c-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pp-card .c-sub { font-size: 13px; color: var(--pp-text-secondary); line-height: 1.45; }
.pp-card .c-source { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pp-text-secondary); }
.pp-card .c-source svg { width: 13px; height: 13px; }

.card-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--pp-r-md);
  border: none; cursor: pointer;
}
.card-btn-primary { background: var(--pp-primary); color: #fff; }
.card-btn-bordered { background: transparent; color: var(--pp-text-primary); box-shadow: inset 0 0 0 1px var(--pp-border-strong); }
.card-btn.full { align-self: stretch; justify-content: center; }

/* verdict header (truth card) */
.card-verdict { background: #1A2128; border-radius: var(--radius-card); overflow: hidden; }
.verdict-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; }
.verdict-head svg { width: 17px; height: 17px; }
.verdict-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.verdict-body { padding: 14px; }
.verdict-body .c-title { margin-bottom: 8px; }
.verdict-divider { height: 1px; background: var(--pp-border); margin: 12px 0 10px; }
.verdict-source { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--pp-text-secondary); }
.v-true    { color: var(--pp-success); background: rgba(46,191,115,0.14); }
.v-false   { color: var(--pp-error);   background: rgba(217,77,77,0.16); }
.v-unclear { color: var(--pp-warning); background: rgba(255,159,10,0.16); }

/* stock card */
.card-stock .stock-head { display: flex; align-items: center; justify-content: space-between; }
.card-stock .stock-sym { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card-stock .stock-name { font-size: 12px; color: var(--pp-text-secondary); }
.card-stock .stock-px { display: flex; align-items: baseline; gap: 9px; }
.card-stock .stock-px .px { font-size: 26px; font-weight: 600; }
.card-stock .stock-chg { font-size: 14px; font-weight: 600; }
.up { color: var(--pp-success); } .down { color: var(--pp-error); }

/* place card */
.card-place .place-row { display: flex; align-items: flex-start; gap: 12px; }
.place-pin { width: 40px; height: 40px; border-radius: 12px; background: var(--pp-primary-18); color: var(--pp-success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.place-pin svg { width: 18px; height: 18px; }

/* commerce / hero-image card */
.card-media .media {
  height: 128px; background: linear-gradient(135deg, #2B343D, #1A2128);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.card-media .media .glyph { color: rgba(255,255,255,0.16); }
.card-media .media .glyph svg { width: 40px; height: 40px; }
.card-media .media-pills { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; }
.media-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0)); }
.pill-dark { background: rgba(0,0,0,0.5); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: var(--pp-r-sm); backdrop-filter: blur(6px); z-index: 1; }
.card-media .media-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.price { font-size: 20px; font-weight: 600; }

/* discussion thread card */
.card-thread { background: rgba(28,33,40,0.95); border-radius: var(--radius-card); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.thread-attach { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--pp-border); }
.thread-attach .ta-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--pp-primary-18); color: var(--pp-primary-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thread-attach .ta-ic svg { width: 16px; height: 16px; }
.msg { display: flex; gap: 8px; max-width: 84%; }
.msg .avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; }
.msg .bubble { padding: 8px 12px; border-radius: 15px; font-size: 13px; line-height: 1.35; }
.msg.them .bubble { background: var(--pp-surface-2); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; }
.msg.me .bubble { background: var(--pp-primary); color: #fff; border-bottom-right-radius: 5px; }
.msg .react { font-size: 11px; }

/* small labels used on cards */
.pp-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pp-text-secondary); }

/* chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: var(--pp-r-sm);
  background: var(--pp-primary-18); color: var(--pp-primary-2);
}
.chip svg { width: 13px; height: 13px; }

/* share-sheet fragment (the "Act on Paper Planes" moment) */
.share-sheet {
  background: rgba(28,33,40,0.96); border-radius: 20px; padding: 14px;
  box-shadow: inset 0 0 0 1px var(--pp-border-strong), 0 20px 50px -20px rgba(0,0,0,0.7);
  backdrop-filter: var(--pp-blur-regular);
}
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--pp-text-secondary); text-align: center; }
.share-app .ic { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--pp-surface-2); }
.share-app .ic svg, .share-app .ic img { width: 24px; height: 24px; color: var(--pp-text-secondary); }
.share-app.active .ic { background: var(--pp-bg-1); box-shadow: 0 0 0 2px var(--pp-success); overflow: hidden; }
.share-app.active { color: var(--pp-text-primary); font-weight: 600; }

/* =====================================================================
   Steps (how it works)
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-num { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--pp-primary-2); }
.sec-light .step-num { color: var(--web-green-ink); }
.step .step-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--pp-primary-18); color: var(--pp-primary-2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step .step-ic svg { width: 22px; height: 22px; }

/* =====================================================================
   Outcomes grid
   ===================================================================== */
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--pp-border); border-radius: 18px; overflow: hidden; }
.outcome { background: var(--pp-bg-1); padding: 34px; }
.sec-light .outcomes { background: var(--web-border-light); }
.sec-light .outcome { background: var(--web-paper); }
.outcome .o-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--pp-primary-18); color: var(--pp-primary-2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.outcome .o-ic svg { width: 20px; height: 20px; }
.sec-light .outcome .o-ic { background: rgba(15,89,64,0.12); color: var(--web-green-ink); }

/* =====================================================================
   Use-case rows
   ===================================================================== */
.usecase { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--pp-border); }
.sec-light .usecase { border-top-color: var(--web-border-light); }
.usecase .uc-arrow { color: var(--pp-primary-2); }
.uc-from, .uc-to { display: flex; flex-direction: column; gap: 6px; }
.uc-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.uc-from .uc-tag { color: var(--pp-text-tertiary); }
.sec-light .uc-from .uc-tag { color: var(--web-ink-3); }
.uc-to .uc-tag { color: var(--pp-primary-2); }
.sec-light .uc-to .uc-tag { color: var(--web-green-ink); }

/* =====================================================================
   Fade-in on scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--pp-bg-1); border-top: 1px solid var(--pp-border); padding: 64px 0 40px; color: var(--pp-text-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-text-tertiary); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { color: var(--pp-text-secondary); font-size: 15px; }
.footer-grid a:hover { color: var(--pp-text-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--pp-border); font-size: 13px; color: var(--pp-text-tertiary); }

/* =====================================================================
   Hero + two-column product blocks
   ===================================================================== */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lede { margin-top: 20px; }
.hero-copy .cta-row { margin-top: 30px; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-sheet-chip {
  position: absolute; left: -6px; top: 40px; z-index: 10;
  background: rgba(20,25,31,0.92); backdrop-filter: var(--pp-blur-regular);
  border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 1px var(--pp-success), 0 20px 44px -18px rgba(0,0,0,0.8);
}
.hero-sheet-chip .share-app { font-size: 11px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero-sheet-chip { left: 0; top: 24px; }
  #discussions .hero-visual { order: 0; }
}

/* source strip inside phone */
.src-strip { border-radius: 12px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--pp-border); padding: 11px 12px; }
.src-strip .src-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-top: 5px; color: var(--pp-text-primary); }
.hero-demo { display: flex; flex-direction: column; gap: 12px; }

/* composer bar in discussion phone */
.composer { display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 9px 15px; border-radius: 22px; background: var(--pp-surface-2); box-shadow: inset 0 0 0 1px var(--pp-border); font-size: 13px; color: var(--pp-text-tertiary); }
.composer-send { width: 30px; height: 30px; border-radius: 50%; background: var(--pp-primary); color: #fff; display: flex; align-items: center; justify-content: center; }

/* card gallery — editorial staggered columns, not a dense grid */
.card-gallery { columns: 3; column-gap: 24px; }
.card-gallery > * { break-inside: avoid; margin-bottom: 24px; }
@media (max-width: 980px) { .card-gallery { columns: 2; } }
@media (max-width: 640px) { .card-gallery { columns: 1; } }

/* tick list */
.tick-list { list-style: none; margin: 24px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tick-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; color: var(--pp-text-primary); }
.tick-list li svg { width: 18px; height: 18px; color: var(--pp-success); flex-shrink: 0; margin-top: 3px; }
.sec-light .tick-list li { color: var(--web-ink); }

/* use case featured emphasis */
.usecases { display: flex; flex-direction: column; }
.usecase.featured { }
.usecase.featured .uc-to .h3 { color: var(--pp-primary-2); }
.sec-light .usecase.featured .uc-to .h3 { color: var(--web-green-ink); }

/* premium band */
.premium-band {
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: center;
  background: var(--pp-bg-1); border-radius: 24px; padding: 48px;
  box-shadow: inset 0 0 0 1px var(--pp-border);
  background-image: radial-gradient(120% 120% at 100% 0%, var(--pp-primary-06), transparent 55%);
}
.sec-light .premium-band { background: var(--web-paper); box-shadow: inset 0 0 0 1px var(--web-border-light); }
.plan-mini { display: flex; flex-direction: column; gap: 14px; background: var(--pp-surface-1); border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px var(--pp-border); }
.sec-light .plan-mini { background: var(--web-paper-2); box-shadow: inset 0 0 0 1px var(--web-border-light); }
.plan-mini-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
.plan-mini-row strong { font-size: 24px; font-weight: 700; }
@media (max-width: 820px) { .premium-band { grid-template-columns: 1fr; gap: 32px; padding: 32px; } }

/* trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { display: flex; flex-direction: column; gap: 12px; }
.trust-item svg { width: 22px; height: 22px; color: var(--pp-primary-2); }
.sec-light .trust-item svg { color: var(--web-green-ink); }
.trust-item p { font-size: 15px; line-height: 1.5; margin: 0; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; gap: 22px; } }

/* final cta */
.final-cta { padding-top: calc(var(--sec-pad) * 0.9); padding-bottom: calc(var(--sec-pad) * 0.9); }

/* flow composition (Direction B hero: source → result) */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: 400px; }
.flow-source { background: #fff; border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px var(--web-border-light), 0 24px 60px -34px rgba(11,16,20,0.45); }
.flow-source .pp-label { color: var(--web-ink-3); }
.fs-title { color: var(--web-ink); font-size: 16px; font-weight: 600; line-height: 1.32; margin-top: 9px; }
.fs-share { margin-top: 15px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--web-green-ink); background: rgba(15,89,64,0.09); padding: 9px 13px; border-radius: 11px; }
.fs-share svg { width: 22px; height: 17px; }
.flow-arrow { align-self: center; color: var(--web-green-ink); display: flex; }
.flow-arrow svg { width: 24px; height: 24px; transform: rotate(90deg); }
.flow-result { display: flex; flex-direction: column; gap: 12px; }
.flow-result .hero-demo[hidden] { display: none; }

/* =====================================================================
   Support + Premium page components
   ===================================================================== */
.page-hero { padding: 96px 0 72px; }
.page-hero .display { max-width: 18ch; }
.page-hero .lede { margin-top: 18px; max-width: 56ch; }

/* contact card */
.contact-card {
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between;
  background: var(--pp-surface-1); border-radius: 18px; padding: 24px 28px;
  box-shadow: inset 0 0 0 1px var(--pp-border); margin-top: 30px;
}
.sec-light .contact-card { background: #fff; box-shadow: inset 0 0 0 1px var(--web-border-light); }
.contact-card .cc-mail { font-size: clamp(18px,2vw,22px); font-weight: 600; }
.contact-card .cc-mail a { color: var(--pp-primary-2); }
.sec-light .contact-card .cc-mail a { color: var(--web-green-ink); }

/* topic quick-grid */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px;
  background: var(--pp-surface-1); box-shadow: inset 0 0 0 1px var(--pp-border);
  color: inherit; transition: box-shadow .16s ease, transform .16s ease;
}
.sec-light .topic-card { background: #fff; box-shadow: inset 0 0 0 1px var(--web-border-light); }
.topic-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--pp-primary-2); color: inherit; }
.sec-light .topic-card:hover { box-shadow: inset 0 0 0 1px var(--web-green-ink); }
.topic-card .tc-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--pp-primary-18); color: var(--pp-primary-2); display: flex; align-items: center; justify-content: center; }
.sec-light .topic-card .tc-ic { background: rgba(15,89,64,0.1); color: var(--web-green-ink); }
.topic-card .tc-ic svg { width: 20px; height: 20px; }
.topic-card h3 { font-size: 17px; }
.topic-card p { font-size: 14px; margin: 0; }
@media (max-width: 860px) { .topic-grid { grid-template-columns: 1fr; } }

/* support topic sections */
.support-topic { padding: 40px 0; border-top: 1px solid var(--web-border-light); }
.sec-dark .support-topic { border-top-color: var(--pp-border); }
.support-topic h2 { font-size: clamp(22px,2.6vw,28px); }
.topic-cols { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.topic-cols .tc-side { position: sticky; top: 90px; }
.qa { margin-top: 24px; }
.qa:first-child { margin-top: 0; }
.qa h4 { font-size: 16px; margin: 0 0 7px; }
.qa p { font-size: 15px; margin: 0; max-width: 68ch; }
.qa + .qa { margin-top: 26px; }
.callout {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-top: 18px;
  background: rgba(255,159,10,0.1); box-shadow: inset 0 0 0 1px rgba(255,159,10,0.28);
}
.callout svg { width: 20px; height: 20px; color: var(--pp-warning); flex-shrink: 0; }
.callout p { font-size: 14px; margin: 0; color: var(--web-ink); }
.sec-dark .callout p { color: var(--pp-text-primary); }
@media (max-width: 820px) { .topic-cols { grid-template-columns: 1fr; gap: 16px; } .topic-cols .tc-side { position: static; } }

/* FAQ accordion */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--web-border-light); }
.sec-dark .faq-item { border-bottom-color: var(--pp-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 22px 0; font: 600 17px/1.4 var(--pp-font-sans); color: var(--web-ink);
}
.sec-dark .faq-q { color: var(--pp-text-primary); }
.faq-q .faq-ic { flex-shrink: 0; transition: transform .2s ease; color: var(--web-green-ink); }
.sec-dark .faq-q .faq-ic { color: var(--pp-primary-2); }
.faq-item[data-open="true"] .faq-ic { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }
.faq-item[data-open="true"] .faq-a { max-height: 480px; }
.faq-a p { font-size: 15px; margin: 0 0 22px; max-width: 70ch; }
.faq-a p:first-child { padding-top: 2px; }

/* Premium plan comparison */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.plan {
  border-radius: 20px; padding: 30px; background: var(--pp-surface-1);
  box-shadow: inset 0 0 0 1px var(--pp-border); display: flex; flex-direction: column; gap: 18px;
}
.sec-light .plan { background: #fff; box-shadow: inset 0 0 0 1px var(--web-border-light); }
.plan.featured { box-shadow: inset 0 0 0 1.5px var(--pp-primary-2); background-image: radial-gradient(120% 120% at 100% 0%, var(--pp-primary-06), transparent 60%); }
.plan .plan-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.plan .plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.plan .plan-price small { font-size: 16px; font-weight: 500; color: var(--pp-text-secondary); }
.sec-light .plan .plan-price small { color: var(--web-ink-3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.plan ul li svg { width: 18px; height: 18px; color: var(--pp-success); flex-shrink: 0; margin-top: 2px; }
.plan .badge-save { font-size: 12px; font-weight: 600; color: var(--web-green-ink); background: rgba(15,89,64,0.1); padding: 4px 10px; border-radius: 999px; }
.sec-dark .plan .badge-save { color: var(--pp-primary-2); background: var(--pp-primary-18); }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

/* comparison table free vs premium */
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--web-border-light); font-size: 15px; vertical-align: top; }
.sec-dark .compare th, .sec-dark .compare td { border-bottom-color: var(--pp-border); }
.compare thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--web-ink-3); }
.sec-dark .compare thead th { color: var(--pp-text-tertiary); }
.compare tbody th { font-weight: 500; color: var(--web-ink-2); }
.sec-dark .compare tbody th { color: var(--pp-text-secondary); }
.compare .col-feat { font-weight: 600; }
.compare td svg { width: 18px; height: 18px; color: var(--pp-success); }
.compare .dash { color: var(--web-ink-3); }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px 10px; font-size: 14px; } }

/* prose (legal shell) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; color: var(--web-ink-2); }
.prose ul { padding-left: 20px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .outcomes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  :root { --sec-pad: 80px; }
  .usecase { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .usecase .uc-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .display { font-size: clamp(34px, 9vw, 48px); }
}
