/* Rize — website styles.
   Brand: the app icon's ink tile (#2E2925 → #141210), its cream R (#F4E9DC) and its amber sun
   (#FFD592 → #F0803F). Type: Geist, as in Rize's interface; JetBrains Mono for keys and code. */

@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #100e0d;
  --bg-raised: #171412;
  --cream: #f4e9dc;
  --text: #f4e9dc;
  --text-2: rgb(244 233 220 / 0.68);
  --text-3: rgb(244 233 220 / 0.46);
  --line: rgb(244 233 220 / 0.09);
  --line-2: rgb(244 233 220 / 0.16);
  --amber-1: #ffd592;
  --amber-2: #f9a65a;
  --amber-3: #f0803f;
  --sun: linear-gradient(180deg, var(--amber-1), var(--amber-3));
  --ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --radius: 16px;

  /* The window's theme (Rize's "Caret" theme), as HSL triplets. main.js swaps these. */
  --surface: 0 0% 12%;
  --sink: 0 8% 97%;
  --body: 0 0% 8.2%;
  --ink: 0 10% 95%;
  --accent: 25.2 30% 68%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p a, dd a, .faq a { color: var(--amber-1); text-decoration: underline; text-decoration-color: rgb(255 213 146 / 0.35); text-underline-offset: 3px; }
p a:hover, .faq a:hover { text-decoration-color: var(--amber-1); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.38em; border-radius: 5px; background: rgb(244 233 220 / 0.07); color: var(--cream); }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  margin: 0 0.08em;
  font: 500 0.82em/1.5 var(--ui);
  text-align: center;
  color: var(--cream);
  background: rgb(244 233 220 / 0.07);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  vertical-align: 0.08em;
}
::selection { background: rgb(240 128 63 / 0.4); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 6px; }

.i { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--cream); color: var(--bg); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 11px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.btn .i { font-size: 1.1em; stroke-width: 2.1; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-large { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary {
  color: #1f1712;
  background: var(--sun);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 8px 24px -8px rgb(240 128 63 / 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 12px 32px -8px rgb(240 128 63 / 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgb(244 233 220 / 0.02); }
.btn-ghost:hover { background: rgb(244 233 220 / 0.07); border-color: rgb(244 233 220 / 0.26); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(16 14 13 / 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgb(16 14 13 / 0.78); }
.nav-row { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 88px 0 40px; overflow-x: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(240 128 63 / 0.10), transparent 70%),
    radial-gradient(40% 40% at 50% 10%, rgb(255 213 146 / 0.06), transparent 70%);
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 11px; margin-bottom: 28px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px; background: rgb(244 233 220 / 0.03);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.eyebrow:hover { color: var(--text); border-color: rgb(244 233 220 / 0.28); }
.eyebrow .i { font-size: 13px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 3px rgb(249 166 90 / 0.2), 0 0 12px var(--amber-2); }
.hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 6.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.042em;
}
.lede { max-width: 700px; margin-top: 26px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

/* The stage holds the live window, laid out at 1440 × 900 and scaled to fit (main.js sets --s). */
.wrap.wide { max-width: 1408px; }
.stage {
  --s: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 900;
  margin: calc(min(100vw, 1360px) * 0.17 + 24px) auto 0;
}
.stage #rize-demo { position: absolute; inset: 0; }
.stage .rz { transform: scale(var(--s)); }

/* A half sun clearing the window's top edge, as on the app icon. */
.horizon { position: absolute; inset: 0; pointer-events: none; }
.horizon .sun, .horizon .sun-glow {
  position: absolute; left: 50%; top: 0; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.horizon .sun {
  width: 34%;
  background: linear-gradient(180deg, #ffe3b0 0%, var(--amber-2) 30%, var(--amber-3) 50%);
  box-shadow: 0 0 80px rgb(240 128 63 / 0.5);
  animation: rise 2.2s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.horizon .sun-glow {
  width: 90%;
  background: radial-gradient(closest-side, rgb(240 128 63 / 0.34), rgb(240 128 63 / 0.10) 55%, transparent);
  animation: glow 2.6s ease-out both;
}
.horizon .line {
  position: absolute; left: -12%; right: -12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 213 146 / 0.55) 30%, rgb(255 236 210 / 0.9) 50%, rgb(255 213 146 / 0.55) 70%, transparent);
}
@keyframes rise { from { transform: translate(-50%, -6%); opacity: 0.0; } 30% { opacity: 1; } to { transform: translate(-50%, -50%); } }
@keyframes glow { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ bits the theme preview shares */
.themed { color: hsl(var(--sink)); }
.w-lights { display: flex; gap: 8px; padding: 6px 8px 18px; }
.w-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); }
.w-lights i:nth-child(2) { background: #febc2e; }
.w-lights i:nth-child(3) { background: #28c840; }
.space-pill { width: 18px; height: 6px; border-radius: 3px; background: hsl(var(--accent)); transition: background-color 0.35s ease; }
.space-dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--sink) / 0.28); }

/* ------------------------------------------------------------------ works-with strip */
.strip { border-block: 1px solid var(--line); background: rgb(244 233 220 / 0.015); margin-top: 72px; }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-row > div { display: flex; flex-direction: column; gap: 2px; padding: 26px 20px; text-align: center; }
.strip-row > div + div { border-left: 1px solid var(--line); }
.strip b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.strip span { font-size: 13.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ sections */
.section { padding: 136px 0 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.kicker { margin-bottom: 14px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--amber-2); }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.036em; }
.sub { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.section-head .sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head.left .sub { margin-left: 0; }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(244 233 220 / 0.045), rgb(244 233 220 / 0.012));
}
.card h3 { margin-top: 18px; font-size: 18.5px; line-height: 1.3; letter-spacing: -0.018em; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.62; color: var(--text-2); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--amber-1);
  background: linear-gradient(180deg, rgb(255 213 146 / 0.16), rgb(240 128 63 / 0.10));
  box-shadow: 0 0 0 1px rgb(255 213 146 / 0.14) inset;
}
.card-icon .i { width: 20px; height: 20px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* agents */
.split { display: grid; grid-template-columns: 1fr 1.12fr; gap: 72px; align-items: center; margin-top: 128px; }
.split-copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.split-copy > p:not(.kicker) { margin-top: 18px; font-size: 17px; line-height: 1.62; color: var(--text-2); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.ticks .i { margin-top: 4px; width: 16px; height: 16px; color: var(--amber-2); stroke-width: 2.4; }
.term {
  border-radius: var(--radius);
  background: #0a0908;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 6px rgb(244 233 220 / 0.02);
  overflow: hidden;
}
.term-bar { position: relative; display: flex; gap: 7px; align-items: center; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(244 233 220 / 0.14); }
.term-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--text-3); pointer-events: none; }
.term-body { margin: 0; padding: 22px 22px 18px; font: 400 13.5px/1.75 var(--mono); color: var(--cream); white-space: pre; overflow-x: auto; }
.t-dim { color: var(--text-3); }
.t-acc { color: var(--amber-1); }
.t-ok { color: #8fd1a5; }
.term-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 22px 22px; border-top: 1px dashed var(--line); }
.term-tools span { font: 400 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; color: var(--text-2); background: rgb(244 233 220 / 0.05); border: 1px solid var(--line); }

/* shortcuts */
.keys { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; margin-top: 16px; padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(244 233 220 / 0.045), rgb(244 233 220 / 0.012)); }
.keys-copy h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.02em; }
.keys-copy p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
.keys-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.keys-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.keys-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.keys-list dt { order: 2; white-space: nowrap; }
.keys-list dd { margin: 0; font-size: 15px; color: var(--text-2); }
.keys-list kbd { font-size: 13px; }

/* themes */
.themes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.theme-preview { position: sticky; top: 96px; }
.mini {
  display: grid; grid-template-columns: 24% 1fr 27%; gap: 0;
  aspect-ratio: 16 / 10.4;
  padding: 6px;
  border-radius: 14px;
  background: hsl(var(--surface));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 80px -30px rgb(0 0 0 / 0.8);
  transition: background-color 0.35s ease;
}
.mini i { display: block; height: 7px; border-radius: 4px; }
.m-side { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 4px 4px; }
.mini .w-lights { padding: 6px 4px 10px; gap: 5px; }
.mini .w-lights i { width: 8px; height: 8px; border-radius: 50%; }
.m-pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.m-pins i { height: 20px; border-radius: 6px; background: hsl(var(--sink) / 0.08); }
.m-row { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 7px; border-radius: 6px; }
.m-row b { width: 10px; height: 10px; border-radius: 3px; background: hsl(var(--sink) / 0.3); flex-shrink: 0; }
.m-row i { background: hsl(var(--sink) / 0.22); height: 6px; }
.m-row.on { background: hsl(var(--sink) / 0.1); }
.m-row.on b { background: hsl(var(--accent)); }
.m-row.on i { background: hsl(var(--sink) / 0.5); }
.m-foot { display: flex; gap: 4px; align-items: center; margin-top: auto; padding: 6px; }
.m-foot .space-pill { width: 14px; height: 5px; }
.m-foot .space-dot { width: 5px; height: 5px; }
.m-card { display: flex; flex-direction: column; border-radius: 8px; background: hsl(var(--body)); box-shadow: 0 0 0 1px hsl(var(--ink) / 0.07); overflow: hidden; transition: background-color 0.35s ease; }
.m-bar { display: flex; align-items: center; height: 28px; padding: 0 10px; }
.m-bar i { flex: 1; height: 14px; border-radius: 5px; background: hsl(var(--ink) / 0.07); }
.m-page { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 9px; }
.m-page i { background: hsl(var(--ink) / 0.13); }
.m-page .m-h { height: 13px; width: 66%; margin-bottom: 6px; background: hsl(var(--ink) / 0.55); }
.m-page .m-hl { background: hsl(var(--accent) / 0.55); width: 88%; }
.m-chat { display: flex; flex-direction: column; gap: 8px; padding: 34px 6px 4px 10px; }
.m-chat i { background: hsl(var(--sink) / 0.2); height: 6px; }
.m-bubble { align-self: flex-end; width: 78%; height: 30px; border-radius: 9px 9px 3px 9px; background: hsl(var(--accent) / 0.25); margin-bottom: 8px; }
.m-composer { margin-top: auto; height: 44px; border-radius: 9px; background: hsl(var(--body)); box-shadow: 0 0 0 1px hsl(var(--ink) / 0.1); position: relative; }
.m-composer span { position: absolute; right: 7px; bottom: 7px; width: 14px; height: 14px; border-radius: 50%; background: hsl(var(--accent)); }
.theme-name { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; justify-content: center; }
#theme-name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.theme-kind { font-size: 13.5px; color: var(--text-3); }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgb(244 233 220 / 0.06); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button {
  appearance: none; border: 0; cursor: pointer;
  padding: 7px 16px; border-radius: 7px;
  font: 500 14px/1 var(--ui); color: var(--text-2); background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg button span { margin-left: 4px; color: var(--text-3); font-weight: 400; }
.seg button[aria-selected="true"] { background: rgb(244 233 220 / 0.11); color: var(--text); box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swatch {
  appearance: none; border: 0; cursor: pointer; padding: 0; background: none; text-align: left; color: var(--text-2);
  font: 500 12.5px/1.2 var(--ui);
}
.swatch .chip {
  display: grid; grid-template-columns: 34% 1fr; gap: 3px;
  height: 54px; padding: 3px; margin-bottom: 7px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.swatch .chip b { border-radius: 6px; position: relative; }
.swatch .chip b::after { content: ""; position: absolute; left: 7px; top: 8px; width: 14px; height: 4px; border-radius: 2px; background: var(--a); }
.swatch:hover .chip { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2); }
.swatch[aria-selected="true"] { color: var(--text); }
.swatch[aria-selected="true"] .chip { box-shadow: 0 0 0 2px var(--amber-2), 0 6px 18px -6px rgb(240 128 63 / 0.5); }

/* privacy */
.nos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px auto 0; max-width: 1100px; }
.nos span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line-2); background: rgb(244 233 220 / 0.03);
}
.nos .i { width: 15px; height: 15px; color: var(--amber-2); stroke-width: 2.5; }
.leaves { margin: 64px 0 20px; text-align: center; font-size: 15px; color: var(--text-3); }
.num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #1f1712; background: var(--sun);
}
.more-link { margin-top: 28px; text-align: center; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 500; color: var(--amber-1); text-decoration: none; }
.more-link a:hover { gap: 9px; }
.more-link .i { width: 16px; height: 16px; transition: transform 0.15s ease; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: 17.5px; font-weight: 500; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text-2), var(--text-2)) center / 9px 1.5px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 9px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cream); }
.faq details p { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* final call */
.final { position: relative; margin-top: 160px; padding: 120px 0 128px; overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1100px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 128 63 / 0.22), rgb(240 128 63 / 0.06) 55%, transparent);
  pointer-events: none;
}
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 128px; height: 128px; margin-bottom: 28px; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.6)); }
.final .sub { max-width: 520px; }
.final .cta-row { margin-top: 32px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14.5px; }
.footer-brand img { border-radius: 5px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-fine { margin-left: auto; font-size: 13.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .trio, .grid { grid-template-columns: 1fr 1fr; }
  .split, .themes, .faq-wrap, .keys { grid-template-columns: 1fr; gap: 40px; }
  .theme-preview { position: static; }
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-row > div:nth-child(3) { border-left: 0; }
  .strip-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 104px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .strip { margin-top: 32px; }
  .section { padding-top: 88px; }
  .split { margin-top: 88px; }
  .trio, .grid, .keys-list { grid-template-columns: 1fr; }
  .keys-list > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .keys { padding: 26px; }
  .cta-row { width: 100%; flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .card { padding: 24px; }
  .term-body { font-size: 12px; padding: 18px 16px; }
  .faq details p { padding-right: 0; }
  .footer-fine { margin-left: 0; width: 100%; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ privacy page (privacy.html) */
.doc { max-width: 780px; padding-top: 72px; padding-bottom: 120px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 24px; }
.doc h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; margin: 64px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: 16.5px; line-height: 1.72; color: var(--text-2); }
.doc p { margin: 0 0 16px; }
.doc > p:first-of-type { font-size: 19px; color: var(--text); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--amber-2); }
.doc a { color: var(--amber-1); text-decoration: underline; text-decoration-color: rgb(255 213 146 / 0.35); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 24px; font-size: 14.5px; line-height: 1.55; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; background: rgb(244 233 220 / 0.04); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { width: 58%; }
.doc td:last-child { overflow-wrap: anywhere; }
.doc code { font-size: 0.84em; }
@media (max-width: 640px) { .doc th, .doc td { padding: 10px 12px; } .doc td:first-child { width: 50%; } }
