/* =========================================================
   Redwood Digital — main stylesheet
   Edit the tokens in :root to restyle the whole site.
   ========================================================= */

:root {
  /* Colour: warm near-black, hairlines, redwood ember used sparingly */
  --bg:          #0a0807;
  --bg-raised:   #110e0d;
  --bg-card:     #171311;
  --line:        rgba(255, 240, 230, .09);
  --line-soft:   rgba(255, 240, 230, .06);
  --text:        #f5f0ec;
  --text-muted:  #a39892;
  --text-dim:    #8a7f79;
  --accent:      #e0562f;   /* redwood ember */
  --accent-2:    #ff9f80;   /* light ember for text, icons, numbers */
  --accent-glow: rgba(224, 86, 47, .32);
  --accent-soft: rgba(224, 86, 47, .1);
  --forest:      #3fa47a;
  --good:        #5ad69a;
  --warn:        #f2c46d;
  --bad:         #f47c6c;
  --grad:        linear-gradient(135deg, #ff9a6b 0%, #e0562f 50%, #a3361f 100%);
  --card:        #14100f;   /* soft raised surface, no border */
  --card-hover:  #191412;
  --fill:        rgba(255, 240, 230, .05);   /* chips, pills, quiet controls */
  --fill-strong: rgba(255, 240, 230, .08);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.25), 0 30px 60px -36px rgba(0,0,0,.75);

  /* Motion */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-code:    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max:     1200px;
  --gutter:  clamp(16px, 4vw, 40px);
  --radius-lg: 24px;
  --radius:    18px;
  --radius-sm: 12px;
  --section-gap: clamp(96px, 13vw, 168px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #3a302c var(--bg); accent-color: var(--accent); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain: a barely-there texture that keeps flat blacks from looking cheap */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent-2); }
html { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
.btn, .nav-toggle, .slider-controls button, .faq summary { user-select: none; -webkit-user-select: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--accent-2); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Reduced motion: keep fades that aid comprehension, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn:active { transform: none; }
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: #f5f0ec; color: #120d0b;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 10px 30px -12px rgba(224,86,47,.55);
}
.btn-ghost { background: var(--fill); color: var(--text); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 14px 36px -10px rgba(224,86,47,.7); }
  .btn-ghost:hover { background: var(--fill-strong); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,8,7,.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; flex: none; color: var(--accent); transition: transform 600ms var(--ease-out); }
.logo-word { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.035em; }
.logo-word span:last-child { font-weight: 400; color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo-mark { transform: rotate(-90deg); } }
@media (max-width: 480px) {
  .logo { gap: 9px; }
  .logo-mark { width: 24px; height: 24px; }
  .logo-word { font-size: 18px; }
}
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 14px; border-radius: 999px; color: var(--text-muted); font-size: 14.5px; transition: color 200ms ease, background-color 200ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav-toggle { display: none; background: var(--fill); border: 0; border-radius: 12px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform 250ms var(--ease-out), opacity 200ms ease; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: block; overflow: hidden; max-height: 0;
    transition: max-height 350ms var(--ease-out);
  }
  .mobile-menu.open { max-height: 420px; }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 12px var(--gutter) 24px; gap: 2px; }
  .mobile-menu a { padding: 12px 0; font-size: 18px; letter-spacing: -0.01em; }
  .mobile-menu a[aria-current="page"] { color: var(--accent-2); }
  .mobile-menu .btn { margin-top: 18px; color: #120d0b; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-gap); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 56px); }
.section-head p { margin: 20px auto 0; max-width: 560px; color: var(--text-muted); font-size: 17.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(80px, 12vw, 150px) 0 40px; text-align: center; isolation: isolate; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--fill); font-size: 13.5px; color: var(--text-muted); margin-bottom: 32px; transition: background-color 200ms ease, color 200ms ease; }
.hero-badge .founder-dots span { width: 26px; height: 26px; font-size: 9.5px; }
@media (hover: hover) and (pointer: fine) { .hero-badge:hover { background: var(--fill-strong); color: var(--text); } }
.hero h1 { font-size: clamp(44px, 7.6vw, 92px); max-width: 980px; margin: 0 auto; letter-spacing: -0.04em; line-height: 1; }
.hero .lede { max-width: 560px; margin: 28px auto 0; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--text-muted); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 520px) { .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; } .hero-actions .btn { height: 50px; } }
.btn-arrow { width: 15px; height: 15px; margin-right: -4px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn-arrow { transform: translate(2px, -2px); } }

/* Home hero background: faint grid + slowly breathing growth rings */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(#000 65%, transparent);
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
}
.hero-gridlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, #000 25%, transparent 75%);
}
.rings {
  --size: min(940px, 170vw);
  position: absolute; left: 50%; top: -60px; width: var(--size); height: var(--size); margin-left: calc(var(--size) / -2);
  overflow: visible; animation: rings-breathe 12s ease-in-out infinite;
}
.rings circle { fill: none; stroke: url(#ember); stroke-opacity: .4; stroke-dasharray: 1; stroke-dashoffset: 0; animation: ring-draw 2.4s var(--ease-out) backwards; animation-delay: calc(.15s + var(--d) * .1s); }
.rings circle:nth-child(n+6) { stroke-opacity: .22; }
@keyframes ring-draw { from { stroke-dashoffset: 1; opacity: 0; } }
@keyframes rings-breathe { 50% { transform: scale(1.025); } }
.hero-glow {
  position: absolute; left: 50%; top: clamp(80px, 11vw, 160px); width: min(640px, 110vw); height: min(520px, 90vw); transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224,86,47,.24), rgba(163,54,31,.08) 55%, transparent 80%);
  filter: blur(24px);
}

.page-hero { padding-bottom: 0; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -140px; width: min(760px, 120vw); height: 460px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224,86,47,.16), transparent 75%); filter: blur(20px);
}
.page-hero h1 { font-size: clamp(42px, 6.6vw, 76px); }


/* ---------- Cards (shared surface) ---------- */
.service, .step, .case, .pricing-card, .testimonial, .compare-col, .member, .form, .post-card, .contact-link, .faq details {
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-soft);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; transition: background-color 250ms ease, transform 250ms var(--ease-out); }
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 280px; background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(224,86,47,.11), transparent 70%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .service:hover { background: var(--card-hover); transform: translateY(-2px); } }
.service-visual { position: relative; height: 290px; overflow: hidden; display: grid; place-items: center; padding: 26px 22px 0; }
.service-body { padding: 26px 30px 32px; }
.service-body h3 { font-size: 24px; line-height: 1.2; margin: 0 0 12px; }
.service-body h3 span { color: var(--text-muted); }
.service-body p { color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 13px; padding: 6px 13px; background: var(--fill); border-radius: 999px; color: var(--text-muted); }

/* Mock UI pieces shared by visuals */
.mock { width: 100%; max-width: 380px; background: #1e1917; border-radius: 18px; padding: 16px; font-size: 13.5px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.9); }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-top b { font-weight: 500; }
.mock-top small { color: var(--text-dim); font-size: 12px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; }
.task:nth-child(odd) { background: rgba(255,255,255,.022); }
.task em { font-style: normal; color: var(--text-dim); font-size: 12px; }
.task .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.task .name { flex: 1; }
.scroll-y { height: 188px; overflow: hidden; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.scroll-y > div { animation: scrollY 16s linear infinite; }
@keyframes scrollY { to { transform: translateY(-50%); } }

.prompt-box { background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px; margin-top: 10px; color: var(--text-muted); min-height: 60px; }
.prompt-box .caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent-2); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prompt-actions span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text-muted); }

.lead-row { display: flex; gap: 10px; overflow: hidden; }
.lead { flex: none; width: 170px; background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px; font-size: 12.5px; }
.lead b { display: block; font-size: 13.5px; font-weight: 500; }
.lead .ok { color: var(--good); font-size: 11.5px; }
.lead dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; color: var(--text-dim); }
.lead dd { margin: 0; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.pill-tabs { display: flex; gap: 6px; margin-top: 12px; }
.pill-tabs span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text-dim); }
.pill-tabs span.on { background: #f5f0ec; color: #120d0b; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 12px; text-align: center; font-size: 12px; color: var(--text-dim); }
.days span { padding: 6px 0; border-radius: 7px; }
.days span.on { background: #f5f0ec; color: #120d0b; }
.slot { display: flex; justify-content: space-between; padding: 9px 10px; background: var(--accent-soft); border-radius: 10px; font-size: 12.5px; }
.slot + .slot { margin-top: 6px; }
.slot small { color: var(--text-dim); }
.progress { height: 5px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.band { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.step-num { font-size: 13px; font-weight: 500; color: var(--accent-2); align-self: flex-start; }
.step h3 { font-size: 24px; }
.step p { color: var(--text-muted); margin-top: 8px; }
.step-visual { margin-top: auto; background: rgba(0,0,0,.28); border-radius: var(--radius); padding: 18px; min-height: 190px; font-size: 13.5px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-muted); }
.checklist li::before { content: ""; width: 14px; height: 14px; border-radius: 5px; background: rgba(255,159,128,.2); flex: none; }
.analyzing { color: var(--accent-2); margin-bottom: 8px; font-family: var(--font-code); font-size: 12.5px; }
.code { font-family: var(--font-code); font-size: 12.5px; line-height: 1.7; color: #d9cfc9; white-space: pre; overflow: hidden; margin: 0; }
.code .k { color: #ff9f80; } .code .f { color: #9fd9bd; } .code .s { color: #f2c46d; } .code .c { color: var(--text-dim); }
.stack { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: 100%; min-height: 150px; }
.stack-box { background: var(--fill); border-radius: 14px; padding: 14px; text-align: center; color: var(--text-muted); }
.stack-box.main { background: rgba(224,86,47,.16); color: var(--text); }
.stack-line { width: 40px; height: 1px; background: linear-gradient(90deg, var(--accent-2), transparent); }
.stack-icons { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.stack-icons i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.07); }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.status-row small { display: block; color: var(--text-dim); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge.good { color: var(--good); background: rgba(90,214,154,.1); }
.badge.warn { color: var(--warn); background: rgba(242,196,109,.1); }

@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } .step { padding: 26px 22px; } }

/* ---------- Case studies ---------- */
.cases-wrap { position: relative; }
.cases { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; cursor: grab; }
.cases::-webkit-scrollbar { display: none; }
.cases.dragging { cursor: grabbing; scroll-snap-type: none; }
.case { flex: 0 0 min(100%, 1020px); scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; }
.case { background: radial-gradient(ellipse 55% 75% at 0% 0%, rgba(224,86,47,.11), transparent 65%), var(--card); }
.case-body { padding: clamp(28px, 4.5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.case-body blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(23px, 2.7vw, 33px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.case-body > p { color: var(--text-muted); padding-top: 6px; }
.impact { grid-column: 1 / -1; margin-top: 28px; }
.impact h4 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); margin-bottom: 12px; }
.impact ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.impact li { padding: 18px 20px 20px; background: var(--fill); border-radius: var(--radius); font-size: 14px; color: var(--text-muted); }
.impact li strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 4px; }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.slider-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); cursor: pointer; display: grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.slider-controls button:active { transform: scale(0.94); }
.slider-controls button svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .slider-controls button:hover { background: var(--fill-strong); } }
.slider-controls small { color: var(--text-dim); font-size: 13px; }
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } .case-body > p { padding-top: 0; } .impact { margin-top: 16px; } .impact ul { grid-template-columns: 1fr 1fr; } .impact li strong { font-size: 26px; } }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.benefit svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--accent-2); background: var(--accent-soft); margin-bottom: 22px; }
.benefit h3 { font-size: 19px; letter-spacing: -0.02em; }
.benefit p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; max-width: 34ch; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; gap: 44px 32px; } }
@media (max-width: 580px) { .benefits { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Pricing ---------- */
.pricing-card { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft), 0 40px 90px -40px rgba(224,86,47,.28); }
.pricing-main { position: relative; padding: 44px; display: flex; flex-direction: column; background: radial-gradient(ellipse 100% 80% at 0% 0%, rgba(224,86,47,.2), transparent 70%), #1a1412; }
.pricing-main .plan { align-self: flex-start; color: var(--accent-2); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); }
.pricing-main .price { font-size: 64px; margin: 20px 0 12px; letter-spacing: -0.04em; }
.pricing-main p { color: var(--text-muted); }
.pricing-main .btn { margin-top: 34px; align-self: flex-start; }
.pricing-list { padding: 44px; }
.pricing-list h4 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); margin-bottom: 14px; }
.pricing-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.pricing-list li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); flex: none; }
@media (max-width: 720px) { .pricing-card { grid-template-columns: 1fr; } .pricing-main, .pricing-list { padding: 32px 26px; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial { margin: 0; border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; gap: 30px; }
.testimonial blockquote { margin: 0; font-size: 18.5px; line-height: 1.55; letter-spacing: -0.01em; color: #e9e2dd; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption b { display: block; font-weight: 500; }
.testimonial figcaption span { color: var(--text-dim); font-size: 14px; }
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } .testimonial { padding: 26px 22px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); transition: background-color 250ms ease; }
.faq details[open] { background: var(--card-hover); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 17px; font-weight: 400; line-height: 1; color: var(--text-muted); transition: transform 250ms var(--ease-out), color 200ms ease, background-color 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-2); background: var(--accent-soft); }
.faq details p { padding: 0 22px 22px; color: var(--text-muted); max-width: 680px; }

/* ---------- Why Redwood ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-intro h2 { font-size: clamp(32px, 4.2vw, 50px); }
.why-intro p { color: var(--text-muted); margin-top: 18px; font-size: 17.5px; max-width: 420px; }
.founders { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 7px 20px 7px 7px; border-radius: 999px; background: var(--fill); transition: background-color 200ms ease; }
.founder-dots { display: flex; gap: 5px; }
.founder-dots span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: -0.02em; color: #fff; background: #c94a27; position: relative; }
/* Optically centre the initials: trim the line box to the capitals */
.founder-dots span { line-height: 1; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) { .founder-dots span { padding-top: .12em; } }
/* "Online" presence dot: contact page and booking page only */
.contact-link .founder-dots span::after, .booker-info .founder-dots span::after { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 28%; min-width: 7px; min-height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 2px #14100f; }
.founder-dots span.alt { background: #2b7f5b; }
.founders b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.founders small { color: var(--text-dim); font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .founders:hover { background: var(--fill-strong); } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-list li { padding: 28px 28px 32px; border-radius: var(--radius); background: var(--card); }
.why-list h3 { font-size: 20px; letter-spacing: -0.02em; }
.why-list p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; gap: 44px; }
  .why-intro { position: static; }
}
@media (max-width: 560px) {
  .why-list { grid-template-columns: 1fr; }
  .why-list li { padding: 24px 22px 26px; }
}

/* FAQ: heading left, questions right */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-layout .section-head { text-align: left; margin: 0; position: sticky; top: 120px; }
.faq-layout .section-head p { margin-left: 0; }
.faq-layout .faq { max-width: none; margin: 0; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .faq-layout .section-head { position: static; margin-bottom: 40px; }
}

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-intro h2 { font-size: clamp(34px, 4.6vw, 50px); }
.about-intro > div > p { color: var(--text-muted); font-size: 18px; margin-top: 22px; }
.stats { display: grid; gap: 10px; }
.stat { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; padding: 24px 26px; border-radius: var(--radius); background: var(--card); }
.stat strong { font-family: var(--font-display); font-size: 42px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.stat strong small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--accent-2); margin-top: 10px; }
.stat p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .stat { grid-template-columns: 1fr; gap: 10px; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 36px; }
.value svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--accent-2); background: var(--accent-soft); margin-bottom: 22px; }
.value h3 { font-size: 19px; letter-spacing: -0.02em; }
.value p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; gap: 36px; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.compare-col { border-radius: var(--radius-lg); padding: 34px; }
.compare-col.win { background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(224,86,47,.2), transparent 70%), #1a1412; }
.compare-col h3 { font-size: 21px; margin-bottom: 18px; }
.compare-col li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text-muted); }
.compare-col.win li { color: var(--text); }
.compare-col li svg { width: 18px; height: 18px; flex: none; }
.compare-col li svg.x { color: var(--text-dim); }
.compare-col li svg.y { color: var(--accent-2); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 20px; }
.member { border-radius: var(--radius-lg); padding: 12px 12px 24px; }
.avatar { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--bg-card); }
.avatar::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 62%, transparent 0 24px, rgba(255,159,128,.12) 24px 25px), radial-gradient(closest-side at 50% 62%, rgba(224,86,47,.38), transparent 85%); }
.avatar.alt::before { background: repeating-radial-gradient(circle at 50% 62%, transparent 0 24px, rgba(159,217,189,.12) 24px 25px), radial-gradient(closest-side at 50% 62%, rgba(63,164,122,.36), transparent 85%); }
.avatar span { position: relative; font-family: var(--font-display); font-weight: 500; font-size: clamp(60px, 8vw, 84px); letter-spacing: -0.04em; color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,.5); }
.member h3 { font-size: 19px; margin: 18px 10px 4px; }
.member p { color: var(--text-dim); margin: 0 10px; font-size: 14.5px; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-page { position: relative; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); }
.contact-page::before { content: ""; position: absolute; z-index: -1; left: 10%; top: -120px; width: min(720px, 120vw); height: 520px; background: radial-gradient(closest-side, rgba(224,86,47,.16), transparent 75%); filter: blur(20px); }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-intro { position: sticky; top: 112px; }
.contact-intro h1 { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: -0.04em; line-height: 1.02; }
.contact-intro .lede { color: var(--text-muted); font-size: 18px; margin-top: 20px; max-width: 460px; }
.contact-options { display: grid; gap: 10px; margin-top: 36px; max-width: 460px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: var(--radius); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.contact-link:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .contact-link:hover { background: var(--card-hover); } .contact-link:hover .contact-arrow { transform: translate(2px, -2px); color: var(--text); } }
.contact-link small { display: block; color: var(--text-dim); font-size: 13px; }
.contact-link .founder-dots span { width: 38px; height: 38px; font-size: 12px; }
.contact-icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: var(--accent-2); background: var(--accent-soft); flex: none; }
.contact-arrow { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--text-dim); transition: transform 200ms var(--ease-out), color 200ms ease; }
.next-steps { margin-top: 48px; max-width: 460px; }
.next-steps h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); margin-bottom: 18px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--accent-2); background: var(--accent-soft); }
.next-steps b { font-weight: 500; }
.next-steps li span { color: var(--text-muted); font-size: 15px; }
.form { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.form-title { grid-column: 1 / -1; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13.5px; color: var(--text-muted); }
.optional { color: var(--text-dim); }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.32); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,240,230,.06); transition: box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,159,128,.55), 0 0 0 4px rgba(224,86,47,.14); }
.field input:user-invalid, .field textarea:user-invalid { box-shadow: inset 0 0 0 1px rgba(244,124,108,.7); }
.hint { color: var(--text-dim); font-size: 13px; }
.topics { border: 0; margin: 0; padding: 0; }
.topics legend { padding: 0; margin-bottom: 10px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list label { position: relative; cursor: pointer; }
.topic-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-list span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fill); font-size: 14px; color: var(--text-muted); user-select: none; -webkit-user-select: none; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.topic-list label:active span { transform: scale(0.97); }
.topic-list input:checked + span { background: rgba(224,86,47,.2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,159,128,.45); }
.topic-list input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .topic-list label:hover span { background: var(--fill-strong); color: var(--text); } }
.form .btn { grid-column: 1 / -1; width: 100%; height: 52px; margin-top: 4px; }
.form-status { grid-column: 1 / -1; font-size: 14.5px; min-height: 1em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .contact-intro { position: static; }
}
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Booking (book.html + js/book.js) ---------- */
.book-page { position: relative; isolation: isolate; padding-top: clamp(48px, 7vw, 88px); }
.book-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.book-head h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.04em; }
.book-head .lede { color: var(--text-muted); font-size: 17.5px; margin: 18px auto 0; max-width: 540px; }
.booker [hidden] { display: none !important; }
.booker { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 520px; border-radius: 24px; overflow: hidden; background: var(--card); scroll-margin-top: 96px; }

/* Left: who, what, how long, where */
.booker-info { padding: 30px 28px; }
.booker-info .founder-dots span { width: 36px; height: 36px; font-size: 12px; }
.booker-title { font-size: 24px; letter-spacing: -0.03em; margin-top: 18px; }
.duration { display: inline-flex; gap: 4px; padding: 4px; margin-top: 22px; border-radius: 999px; background: var(--fill); }
.duration button { border: 0; background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.duration button:active { transform: scale(0.97); }
.duration button[aria-checked="true"] { background: #f5f0ec; color: #120d0b; }
.booker-meta { display: grid; gap: 14px; margin-top: 22px; }
.booker-meta li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14.5px; min-width: 0; }
.meta-icon { width: 18px; height: 18px; flex: none; color: var(--accent-2); }
.booker-meta select { min-width: 0; max-width: 100%; flex: 1; appearance: none; -webkit-appearance: none; border: 0; border-radius: 10px; padding: 8px 30px 8px 10px; margin-left: -10px; font-size: 14.5px; color: var(--text-muted); cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23a39892' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; transition: background-color 200ms ease, color 200ms ease; }
.booker-meta select:hover, .booker-meta select:focus-visible { background-color: var(--fill); color: var(--text); }
.booker-meta select option { background: #1a1412; color: var(--text); }
@media (pointer: coarse) { .booker-meta select { font-size: 16px; } }
.picked { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: 14.5px; }
.picked .meta-icon { margin-top: 2px; }

/* Middle + right: calendar and times */
.booker-main { min-width: 0; }
.step-time { display: grid; grid-template-columns: minmax(0, 1fr) 260px; height: 100%; }
.cal { padding: 30px 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cal-head h3 { font-size: 18px; letter-spacing: -0.02em; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--fill); display: grid; place-items: center; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out), opacity 200ms ease; }
.cal-nav button svg { width: 16px; height: 16px; }
.cal-nav button:active:not(:disabled) { transform: scale(0.94); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week { margin-bottom: 8px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.cal-day:active:not(:disabled) { transform: scale(0.95); }
.cal-day:disabled { background: transparent; color: var(--text-dim); opacity: .5; cursor: default; }
.cal-day[aria-pressed="true"] { background: #f5f0ec; color: #120d0b; }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-2); }
.cal-day[aria-pressed="true"].is-today::after { background: var(--accent); }
.booker[aria-busy="true"] .cal-days { opacity: .45; pointer-events: none; transition: opacity 200ms ease; }

.slots { display: flex; flex-direction: column; padding: 30px 24px 30px 8px; min-height: 0; }
.slots-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.slots-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.slots-head h3 span { color: var(--text-muted); font-weight: 400; }
.fmt { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.fmt button { border: 0; background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.fmt button[aria-pressed="true"] { background: var(--fill-strong); color: var(--text); }
.slot-list { display: grid; gap: 8px; max-height: 452px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; scrollbar-width: thin; }
.time-slot { height: 46px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.time-slot:active { transform: scale(0.98); }
.slot-skeleton { height: 46px; border-radius: 12px; background: var(--fill); animation: skeleton 1.2s ease-in-out infinite alternate; }
@keyframes skeleton { to { opacity: .45; } }
.slot-note { color: var(--text-muted); font-size: 14.5px; }
.slot-note a, .link-btn, .book-alt a, .form-status a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .cal-day:not(:disabled):not([aria-pressed="true"]):hover { background: rgba(224,86,47,.2); }
  .time-slot:hover { background: rgba(224,86,47,.2); }
  .cal-nav button:not(:disabled):hover, .duration button[aria-checked="false"]:hover { background: var(--fill-strong); color: var(--text); }
}

/* Details + confirmation */
.step-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 30px 32px 36px; align-content: start; max-width: 720px; }
.step-details .back-link { grid-column: 1 / -1; justify-self: start; margin: 0; border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 14px; }
.step-details .back-link svg { width: 16px; height: 16px; }
.details-title { grid-column: 1 / -1; font-size: 22px; letter-spacing: -0.02em; }
.step-details .btn { grid-column: 1 / -1; height: 52px; margin-top: 4px; }
.step-details .form-status { grid-column: 1 / -1; }
.step-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(32px, 5vw, 56px); max-width: 600px; outline: none; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--good); background: rgba(90,214,154,.12); }
.done-icon svg { width: 26px; height: 26px; }
.step-done h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.done-when { font-size: 17px; color: var(--text); }
.step-done p:not(.done-when) { color: var(--text-muted); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.page-book .btn-primary, .page-book .btn-primary:hover { box-shadow: none; }
.book-alt { text-align: center; color: var(--text-muted); font-size: 14.5px; margin-top: 28px; }

@media (max-width: 1000px) {
  .booker { grid-template-columns: 1fr; }
  .booker-info { padding: 24px 22px; }
}
@media (max-width: 680px) {
  .step-time { grid-template-columns: 1fr; }
  .slots { padding: 8px 16px 24px; }
  .cal { padding: 22px 16px; }
  .cal-week, .cal-days { gap: 4px; }
  .cal-day { border-radius: 12px; font-size: 14px; }
  .slots { padding: 22px 16px 24px; }
  .slot-list { max-height: none; grid-template-columns: 1fr 1fr; }
  .step-details { grid-template-columns: 1fr; padding: 24px 18px 28px; }
  .booker { border-radius: 22px; }
}

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; transition: background-color 250ms ease, transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { background: var(--card-hover); transform: translateY(-2px); }
  .post-card:hover .thumb img { transform: scale(1.03); }
}
.post-card .thumb { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.post-card .body { padding: 24px 26px 28px; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--text-dim); }
.post-meta .cat { color: var(--accent-2); font-size: 12.5px; font-weight: 500; background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.post-card h2 { font-size: 23px; margin-top: 14px; letter-spacing: -0.03em; line-height: 1.2; }

.article { max-width: 760px; margin: 0 auto; padding-top: clamp(48px, 7vw, 80px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14.5px; margin-bottom: 36px; transition: color 200ms ease; }
.back-link:hover { color: var(--text); }
.article h1 { font-size: clamp(36px, 5.4vw, 58px); margin: 18px 0 22px; }
.article .summary { color: var(--text-muted); font-size: 19px; }
.article .cover { margin: 40px 0 52px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.8; color: #d8cfc9; }
.prose h2, .prose h3 { font-size: 26px; margin: 52px 0 14px; color: var(--text); letter-spacing: -0.03em; }
.prose h4 { font-size: 18.5px; margin: 30px 0 8px; color: var(--text); letter-spacing: -0.015em; }
.prose p { margin: 0 0 18px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 12px; }
.prose li::marker { color: var(--accent-2); }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: var(--section-gap); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-cta {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 88px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px); border-radius: 28px;
  background: var(--card); box-shadow: var(--shadow-soft);
}
.footer-cta::before {
  content: ""; position: absolute; z-index: -1; right: -280px; bottom: -420px; width: 900px; height: 900px;
  background: repeating-radial-gradient(circle, transparent 0 40px, rgba(255,159,128,.12) 40px 41px), radial-gradient(closest-side, rgba(224,86,47,.32), transparent 70%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
}
.footer-cta h2 { font-size: clamp(34px, 4.8vw, 58px); max-width: 620px; }
.footer-cta p { color: var(--text-muted); margin-top: 18px; font-size: 17.5px; max-width: 460px; }
.footer-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-email { font-size: 15px; color: var(--text-muted); padding-bottom: 2px; border-bottom: 1px solid var(--line); transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-email:hover { color: var(--text); border-color: var(--accent-2); } }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-top: 8px; }
.footer-brand p { color: var(--text-muted); margin: 18px 0 24px; max-width: 320px; font-size: 14.5px; }
.newsletter { display: flex; gap: 8px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; background: var(--fill); border: 0; border-radius: 999px; font-size: 16px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms ease; }
.newsletter input::placeholder { color: var(--text-dim); }
.newsletter input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(255,159,128,.5); }
.newsletter .btn { height: 42px; }
.newsletter-status { font-size: 13.5px; margin-top: 8px; color: var(--good); min-height: 1em; }
.footer-col h3 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14.5px; transition: color 200ms ease; }
.footer-col a:hover { color: var(--text); }
.footer-wordmark {
  margin: 72px 0 -0.16em; text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(64px, 18.5vw, 258px); line-height: .85; letter-spacing: -0.04em; color: #1a1412;
  mask-image: linear-gradient(#000 30%, transparent 95%); -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
  user-select: none; -webkit-user-select: none; pointer-events: none;
}
.footer-bottom { position: relative; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); padding: 6px 0; transition: color 200ms ease; }
.to-top svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { color: var(--text); } .to-top:hover svg { transform: translateY(-2px); } }
@media (max-width: 860px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-cta { margin-bottom: 64px; border-radius: 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-wordmark { margin-top: 56px; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 140px var(--gutter) 40px; }
.notfound h1 { font-size: clamp(80px, 15vw, 160px); letter-spacing: -0.04em; color: var(--accent-2); }
.notfound p { color: var(--text-muted); margin: 10px 0 30px; font-size: 18px; }

/* Grid children must be allowed to shrink below their content width */
.services-grid > *, .process-grid > *, .service-visual, .mock, .step-visual, .testimonials > *, .posts > *, .contact-wrap > *, .about-intro > * { min-width: 0; }
.mock-top { gap: 10px; }
.mock-top small { text-align: right; }
.step-visual { overflow: hidden; }
.task .name, .task em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .name { min-width: 0; }
