/*
 * Sable marketing landing page styles.
 *
 * Ported verbatim from the Claude Design handoff (Sable Landing.html). This is a self-contained
 * design system (warm "paper" palette, terracotta/clay accent, Newsreader + Hanken Grotesk +
 * Spline Sans Mono, clamp() type scales, card-fan transforms, paper grain). It is loaded only by
 * the "marketing" layout, so it stays isolated from the app's Tailwind chrome.
 */
:root {
  --paper: #f5efe4;
  --paper-2: #efe6d6;
  --paper-3: #e9dcc6;
  --card: #fffdf8;
  --ink: #2b2722;
  --ink-soft: #756a59;
  --line: #ddd0ba;
  --line-soft: #e7dcc8;
  --clay: #bf6440;
  --clay-deep: #a04f30;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --shadow: 0 22px 44px -28px rgba(60,45,30,0.45);
  --shadow-sm: 0 10px 24px -18px rgba(60,45,30,0.5);
  --maxw: 1140px;
  --tilt: 1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain */
html.no-grain body::before { display: none; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: multiply;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  border: none; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-clay { background: var(--clay); color: #fff6ee; box-shadow: 0 12px 24px -14px rgba(160,79,48,0.7); }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }

/* ---------------- NAV ---------------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(245,239,228,0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(191,100,64,0.18); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.txt { font-size: 15.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a.txt:hover { color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------------- HERO ---------------- */
.hero { text-align: center; padding: 78px 0 30px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 26px auto 22px; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 50ch; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.01em; }

/* fanned cards */
.fan { display: flex; justify-content: center; align-items: flex-end; margin: 78px auto 0; padding: 24px 0 30px; }
.icard {
  width: 184px; min-height: 210px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 17px; text-align: left; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
  will-change: transform; transform-origin: bottom center;
}
.icard:not(:first-child) { margin-left: -30px; }
.icard:nth-child(1) { transform: rotate(calc(-5deg * var(--tilt))) translateY(10px); z-index: 1; }
.icard:nth-child(2) { transform: rotate(calc(-1.6deg * var(--tilt))) translateY(1px); z-index: 2; }
.icard:nth-child(3) { transform: rotate(calc(1.6deg * var(--tilt))) translateY(1px); z-index: 3; }
.icard:nth-child(4) { transform: rotate(calc(5deg * var(--tilt))) translateY(10px); z-index: 4; }
.icard .tab { width: 42px; height: 9px; border-radius: 5px; margin-bottom: 18px; }
.icard .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 7px; }
.icard .role { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 8px; }
.icard .desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.icard:hover { transform: rotate(0deg) translateY(-14px) !important; box-shadow: 0 34px 60px -28px rgba(60,45,30,0.55); z-index: 10 !important; }

/* ---------------- ROUTING STRIP ---------------- */
.routing { padding: 62px 0; }
.route-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 34px 38px;
  display: grid; grid-template-columns: 1.15fr auto 1fr; gap: 30px; align-items: center;
}
.route-said .label, .route-did .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.you-bubble { background: var(--clay); color: #fff6ee; padding: 15px 18px; border-radius: 16px 16px 16px 5px; font-size: 16.5px; line-height: 1.45; }
.route-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-soft); }
.route-arrow .who { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.route-arrow svg { width: 46px; height: 18px; }
.route-did { display: flex; flex-direction: column; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14.5px;
}
.chip .tag { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: #fff6ee; }

/* ---------------- TEAM ---------------- */
.team { padding: 40px 0 30px; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.018em; margin: 18px auto 16px; max-width: 18ch; }
.sec-head h2 em { font-style: italic; color: var(--clay); }
.sec-head p { font-size: 18px; color: var(--ink-soft); line-height: 1.55; max-width: 48ch; margin: 0 auto; }

/* featured Sable */
.feature {
  display: grid; grid-template-columns: 248px 1fr; gap: 38px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--clay);
}
.feature .portrait { width: 100%; height: 100%; min-height: 248px; display: block; background: var(--paper-3); border-radius: 16px; overflow: hidden; }
.feature .portrait svg { width: 100%; height: 100%; display: block; }
.feature .body { display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; }
.file-no { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 14px; }
.feature .name { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.feature .role { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; margin-bottom: 18px; }
.feature .bio { font-size: 17.5px; line-height: 1.58; color: var(--ink); max-width: 52ch; margin: 0 0 18px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); display: flex; align-items: baseline; gap: 10px; }
.quote::before { content: "\201C"; font-size: 30px; color: var(--clay); line-height: 0; position: relative; top: 6px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .pbody { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard .ptab { height: 5px; width: 100%; }
.pcard .phead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pcard .avatar { width: 54px; height: 54px; flex: 0 0 54px; display: block; background: var(--paper-3); border-radius: 50%; overflow: hidden; }
.pcard .avatar svg { width: 100%; height: 100%; display: block; }
.pcard .name { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.pcard .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.pcard .bio { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.pcard .quote { font-size: 14.5px; }
.pcard .quote::before { font-size: 24px; top: 5px; }

/* ---------------- WAITLIST ---------------- */
.waitlist { padding: 84px 0 96px; }
.wl-panel {
  background: #2b2722; color: #f3ece0; border-radius: 28px; padding: 64px 56px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(43,39,34,0.7);
}
.wl-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: screen; pointer-events: none;
}
.wl-panel .eyebrow { color: #c9bba8; }
.wl-panel .eyebrow .dot { background: #e08a63; }
.wl-panel h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.018em; margin: 20px auto 16px; max-width: 17ch; position: relative; }
.wl-panel h2 em { font-style: italic; color: #e89773; }
.wl-panel p.sub { font-size: 18px; line-height: 1.55; color: #cdbfac; max-width: 44ch; margin: 0 auto 34px; position: relative; }
.wl-form { display: flex; gap: 11px; justify-content: center; max-width: 480px; margin: 0 auto; position: relative; }
.wl-form input {
  flex: 1; font-family: var(--sans); font-size: 16px; color: #f3ece0;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 15px 22px; outline: none; transition: border-color .15s, background .15s;
}
.wl-form input::placeholder { color: #9a8e7d; }
.wl-form input:focus { border-color: #e08a63; background: rgba(255,255,255,0.1); }
.wl-form .btn-clay { background: #c0683f; }
.wl-form .btn-clay:hover { background: #d0764b; }
.wl-note { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: #9a8e7d; position: relative; }
.wl-success { font-size: 19px; line-height: 1.5; color: #f3ece0; position: relative; max-width: 40ch; margin: 8px auto 0; }
.wl-success .serif { font-family: var(--serif); font-style: italic; color: #e89773; }
.err { color: #e89773 !important; }

/* ---------------- FOOTER ---------------- */
footer { padding: 40px 0 60px; border-top: 1px solid var(--line-soft); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-left { display: flex; align-items: center; gap: 12px; }
.foot-left .brand { font-size: 21px; }
.foot-tag { font-size: 14px; color: var(--ink-soft); }
.foot-right { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.foot-right a:hover { color: var(--ink); }

/* reveal — only hidden when JS is active (so print / no-JS shows everything) */
.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.has-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .route-panel { grid-template-columns: 1fr; gap: 22px; }
  .route-arrow { flex-direction: row; }
  .route-arrow svg { transform: rotate(90deg); }
  .feature { grid-template-columns: 1fr; }
  .feature .portrait { min-height: 220px; height: 220px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .fan { flex-wrap: wrap; justify-content: center; gap: 16px; padding: 16px 0 24px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .icard { width: 185px; }
  .icard:not(:first-child) { margin-left: 0; }
  .icard:nth-child(1), .icard:nth-child(2), .icard:nth-child(3), .icard:nth-child(4) { transform: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-links .txt { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  .wl-panel { padding: 44px 26px; }
  .wl-form { flex-direction: column; }
  .wl-form input { text-align: center; }
}
