/* ==============================================
   GRAIN — grainios.com  (redesign v4 · Pebble Kernel)
   Warm off-white base, sage accent, ink text.
   Fonts: Geist (sans) + Instrument Serif (italic accent) + Geist Mono.
   CSP: Google Fonts whitelisted in _headers.
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces */
  --bg: #F5F1E8;
  --bg-2: #EFEADE;
  --paper: #FDFBF5;
  --paper-2: #FAF6EC;

  /* Ink */
  --ink: #1A1814;
  --ink-dim: #4A4740;
  --ink-mute: #8A857A;

  /* Rules */
  --rule: #E3DCCB;
  --rule-2: #D5CCB6;

  /* Brand green */
  --sage: #8A9A6B;
  --sage-deep: #5F6F4C;
  --sage-soft: #DCE2CC;
  --sage-tint: #ECEFDE;

  /* Warm accents */
  --clay: #C08E5A;
  --clay-soft: #E8D6BE;

  /* States */
  --warn: #D68B3C;
  --warn-soft: #F5E1C2;
  --danger: #B55847;
  --danger-soft: #F2D5CD;
  --ok: #5F6F4C;
  --ok-soft: #D8E0C8;

  /* Type */
  --sans: "Geist", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;

  /* Shadows */
  --shadow-card:  0 2px 8px rgba(40,35,25,0.04), 0 12px 30px rgba(40,35,25,0.06);
  --shadow-phone: 0 6px 20px rgba(30,28,22,0.08), 0 40px 80px rgba(30,28,22,0.14);
  --shadow-float: 0 2px 6px rgba(40,35,25,0.04), 0 20px 50px rgba(40,35,25,0.10);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sage-deep); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.eyebrow-mini {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.h1-staccato {
  font-family: var(--sans);
  font-size: clamp(58px, 7.5vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--ink);
}
.h1-staccato .accent,
.italic-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.h2 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep); }

.h3 {
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.h3 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep); }

.sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 56ch;
}
.sub-lg { font-size: 20px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }

.btn-primary {
  background: var(--sage-deep);
  color: #F7F3EC;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 14px rgba(95,111,76,0.22);
}
.btn-primary:hover { background: #4E5C3E; color: #F7F3EC; transform: translateY(-1px); }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); }

.btn-outline {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  color: var(--ink);
}

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; color: var(--bg); }

.btn-inverse { background: var(--paper); color: var(--ink); }
.btn-inverse:hover { background: var(--bg); color: var(--ink); }

.btn-link { background: transparent; color: var(--sage-deep); padding: 14px 8px; font-weight: 500; }
.btn-link:hover { color: #4E5C3E; }

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Apple glyph via SVG (kept simple) */
.apple-glyph {
  width: 14px; height: 14px;
  display: inline-block;
  color: currentColor;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(245,241,232,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav-links { display: none; }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand:hover { color: var(--ink); }
.nav-brand img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 34px;
  justify-self: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 60px 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--sage-tint);
  color: var(--sage-deep);
  border: 1px solid var(--sage-soft);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow-dot { animation: dotPulse 2s ease-in-out infinite; }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.3); }
}

.hero-title { margin-bottom: 28px; }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.hero-meta .sep { opacity: 0.5; }

/* ---------- PHONE MOCKUP (hero visual) ---------- */
.hero-visual {
  position: relative;
  min-height: 620px;
}
.phone-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.phone-stage img {
  position: absolute;
  filter: drop-shadow(0 30px 60px rgba(40, 35, 25, 0.15));
}
.phone-back-left  { top: 8%;  left: -6%;  width: 76%; transform: rotate(-4deg); opacity: 0.95; z-index: 1; }
.phone-center     { top: 2%;  left: 14%;  width: 84%; z-index: 3; }
.phone-back-right { top: 8%;  right: -6%; width: 76%; transform: rotate(4deg);  opacity: 0.95; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .phone-center { animation: phoneFloat 6s ease-in-out infinite; }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 960px) {
  .hero-visual { min-height: 500px; max-width: 440px; margin: 0 auto; }
}

/* Floating cards around hero phones */
.hero-floating-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  z-index: 4;
  pointer-events: none;
}
.fc-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.fc-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--danger);
}
.fc-title-ok    { color: var(--sage-deep); }
.fc-title-swap  { color: var(--clay); font-family: var(--serif); font-style: italic; font-size: 22px; }
.fc-body { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }

.hero-card-1 { top: 8%;  left: -6%; }
.hero-card-2 { top: 46%; right: -8%; }
.hero-card-3 { bottom: 6%; left: 2%; background: var(--ink); color: var(--bg); }
.hero-card-3 .fc-eyebrow { color: rgba(245,241,232,0.5); }
.hero-card-3 .fc-body { color: rgba(245,241,232,0.6); }

@media (prefers-reduced-motion: no-preference) {
  .hero-card-1, .hero-card-2, .hero-card-3 { animation: floatCard 6s ease-in-out infinite; }
  .hero-card-2 { animation-delay: -2s; }
  .hero-card-3 { animation-delay: -4s; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}

/* ---------- TICKER BAR ---------- */
.ticker {
  background: var(--sage-deep);
  color: var(--bg);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tickerScroll 40s linear infinite; }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
.ticker-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.9);
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.ticker-dot { color: var(--clay-soft); opacity: 0.7; }

/* ---------- PROSE SECTIONS (Problem, Independence) ---------- */
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose-center { text-align: center; }
.prose .eyebrow { margin-bottom: 18px; display: block; }
.prose .h2 { margin-bottom: 32px; }
.prose p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}
.prose .last-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--sage-deep);
}

/* ---------- DIFFERENTIATOR / ALT SECTION ---------- */
.section-alt { background: var(--bg-2); }
.grid-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .grid-50 { grid-template-columns: 1fr; } }

.differentiator-phone {
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(40,35,25,0.12));
}

/* ---------- SCENES ---------- */
.scene { padding: clamp(80px, 10vw, 120px) 0; }
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 1080px) {
  .scene-reverse .scene-text { order: 2; }
  .scene-reverse .scene-phone { order: 1; }
}
@media (max-width: 960px) { .scene-grid { grid-template-columns: 1fr; } }

.scene-text .eyebrow { margin-bottom: 16px; display: block; }
.scene-text .h3 { margin-bottom: 14px; }

.scene-phone {
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(40,35,25,0.12));
}

.wheat-rule {
  height: 1px;
  background: var(--rule);
  opacity: 0.6;
  border: none;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- INDEPENDENCE STATEMENTS ---------- */
.statement-lines {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 32px;
}
.statement-lines .sep { color: var(--rule-2); }
.statement-after {
  margin-top: 28px;
  text-align: center;
}
.statement-after a {
  color: var(--sage-deep);
  font-weight: 500;
}

/* ---------- FINAL CTA BAND ---------- */
.cta-final {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 24px;
  position: relative;
  overflow: hidden;
}
.cta-final-inner { max-width: 720px; margin: 0 auto; }
.cta-final .h2 { color: var(--bg); margin-bottom: 14px; }
.cta-final .h2 .accent { color: var(--clay-soft); }
.cta-final p { color: rgba(245,241,232,0.72); font-size: 18px; margin-bottom: 32px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 24px 28px;
}
.footer .nav-brand, .footer .nav-brand:hover { color: var(--bg); }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-soft);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(245,241,232,0.65);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--bg); }
.footer-tagline {
  color: rgba(245,241,232,0.6);
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(192,172,142,0.18);
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(245,241,232,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-languages { letter-spacing: 0.12em; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- LEGAL / STATIC PAGES ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 5vw, 64px) 96px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal .last-updated {
  color: var(--ink-mute);
  font-size: 13px;
  font-family: var(--mono);
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal p { margin-bottom: 14px; color: var(--ink); line-height: 1.7; }
.legal ul, .legal ol { margin-bottom: 14px; padding-left: 24px; }
.legal li { margin-bottom: 6px; line-height: 1.6; }
.legal strong { color: var(--ink); }
.legal a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- PRICING PAGE ---------- */
.pricing-page {
  padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 64px);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pricing-page .h1-staccato { font-size: clamp(44px, 7vw, 72px); margin-bottom: 20px; }
.pricing-page .sub { margin: 0 auto 64px; }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 720px) { .pricing-cards { grid-template-columns: 1fr 1fr; } }
.price-card {
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  text-align: left;
  position: relative;
}
.price-card.featured { border: 2px solid var(--sage-deep); box-shadow: var(--shadow-card); }
.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--sage-deep);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.price-amount {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 2px;
}
.price-amount small {
  font-size: 16px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
}
.price-note {
  color: var(--ink-mute);
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 22px;
}
.price-features { list-style: none; margin-top: 22px; padding: 0; }
.price-features li {
  padding: 7px 0;
  color: var(--ink-dim);
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.price-features li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='%235F6F4C'%3E%3Cpath d='M12.3 3.3a1 1 0 0 0-1.4 0L5.5 8.7 3.1 6.3a1 1 0 0 0-1.4 1.4l3.1 3.1a1 1 0 0 0 1.4 0l6.1-6.1a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
}
.pricing-after {
  margin-top: 40px;
  color: var(--ink-mute);
  font-size: 14px;
}

/* ---------- METHODOLOGY PAGE ---------- */
.method {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.method h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--ink);
}
.method .intro {
  font-size: 19px;
  color: var(--ink-dim);
  margin-bottom: 56px;
  line-height: 1.6;
}
.method-section { margin-top: 64px; }
.method-section h2 {
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 600;
}
.method-section h2 .step {
  display: inline-block;
  margin-right: 12px;
  color: var(--clay);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.method-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .method-inputs { grid-template-columns: 1fr 1fr; } }
.method-input {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.method-input h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.method-input p { font-size: 14px; color: var(--ink-dim); margin: 0; line-height: 1.5; }

.method-formula {
  padding: 28px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  border: 1px solid var(--rule);
  white-space: pre;
  overflow-x: auto;
}

.method-worked {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.method-worked h3 { font-size: 16px; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.method-worked .sub-title { font-size: 13px; color: var(--ink-mute); margin-bottom: 22px; }
.method-step-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
  color: var(--ink-dim);
}
.method-step-row:last-child { border-bottom: none; }
.method-step-row .change {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--danger);
}
.method-step-row .change.positive { color: var(--sage-deep); }
.method-step-row .change.neutral  { color: var(--ink-mute); }
.method-step-row .label { color: var(--ink); font-weight: 500; }
.method-step-row small { color: var(--ink-mute); font-size: 12px; }
.method-step-total {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}
.method-step-total .change { color: var(--sage-deep); font-size: 20px; font-family: var(--mono); }

.method-banner {
  margin-top: 64px;
  padding: 20px 24px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ---------- ABOUT PAGE ---------- */
.about-page {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.about-page h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 48px;
  color: var(--ink);
}
.about-page h1 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep); }
.about-page h2 {
  font-family: var(--sans);
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.about-page p {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 18px;
}
.about-page .contact {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
  font-size: 15px;
}

/* ---------- SUPPORT / FAQ PAGE ---------- */
.support-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 64px);
}
.support-page h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.05;
}
.support-page .lead { color: var(--ink-dim); font-size: 17px; margin-bottom: 48px; }

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  padding-right: 32px;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--sage-deep);
  font-weight: 400;
  font-size: 22px;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
}
details ol, details ul { color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 10px 0; padding-left: 22px; }

.support-contact {
  margin-top: 56px;
  padding: 28px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- 404 ---------- */
.nf {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(120px, 18vw, 220px) 32px;
  text-align: center;
}
.nf h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}
.nf .sub { font-size: 17px; color: var(--ink-mute); margin: 0 auto 32px; }
.nf-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.nf-links a {
  display: block;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.nf-links a:hover { border-color: var(--sage-deep); transform: translateY(-1px); }

/* ---------- PROSE HELPERS ---------- */
.prose-top-lg { margin-top: 32px; }
