/* Realply.ai — "Casa": warm paper, near-black ink, deep olive, brass details.
   Fonts are self-hosted (SIL Open Font License), so the site makes no third-party requests. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f4efe6;
  --linen: #fbf8f2;
  --sand: #ebe3d4;
  --line: #e2d9c8;
  --line-strong: #cfc5b3;
  --ink: #1d1b17;
  --ink-2: #4f483e;
  --muted: #6a6358;
  --olive: #2f3a22;
  --olive-hover: #25301a;
  --olive-press: #222b18;
  --olive-text: #3e4a2c;
  --olive-soft: #e3e8d6;
  --brass: #9a7434;
  --wheat: #f4e6cc;
  --wheat-ink: #7a4f12;
  --on-olive: #f7f3ea;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--olive-text); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--wheat); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: one family, every state. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 10px; font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), color .18s; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--olive); color: var(--on-olive); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(29,27,23,.28), 0 8px 20px -10px rgba(47,58,34,.6); }
.btn-primary:hover { background: var(--olive-hover); color: var(--on-olive); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 3px rgba(29,27,23,.3), 0 12px 24px -10px rgba(47,58,34,.7); }
.btn-primary:active { background: var(--olive-press); transform: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.28); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-secondary:active { background: rgba(29,27,23,.04); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.btn-on-olive { background: var(--on-olive); color: var(--olive); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn-on-olive:hover { background: #fff; color: var(--olive); transform: translateY(-1px); }
.btn-ghost-on-olive { background: transparent; color: var(--on-olive); box-shadow: inset 0 0 0 1px rgba(247,243,234,.35); }
.btn-ghost-on-olive:hover { color: var(--on-olive); box-shadow: inset 0 0 0 1px var(--on-olive); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.wordmark { font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.wordmark i { color: var(--brass); }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }

/* Shared type */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: .98; letter-spacing: -.035em; }
h1 em, h2 em { font-style: italic; color: var(--olive-text); }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-weight: 500; font-size: 25px; line-height: 1.2; letter-spacing: -.015em; }
.lede { margin: 30px 0 40px; max-width: 30em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.sub { margin: 20px 0 0; max-width: 34em; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { margin: 28px 0 0; font-size: 14px; color: var(--muted); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.stage { background: var(--sand); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px #ded3bf; }
.phone { background: var(--linen); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(29,27,23,.04), 0 24px 48px -24px rgba(56,44,24,.35); }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #ece4d6; }
.av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dccfb8; color: #4a3b22; font-size: 13px; font-weight: 600; }
.phone-head b { display: block; font-weight: 600; font-size: 15px; }
.phone-head small { display: block; font-size: 13px; color: var(--muted); }
.phone-head time { margin-left: auto; font-size: 12px; color: var(--muted); }
.thread { display: grid; gap: 16px; padding: 22px 20px; background: #f7f2e9; }
.msg { max-width: 84%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 15px; line-height: 1.5; box-shadow: 0 1px 1px rgba(29,27,23,.06); }
.gloss { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.gloss b { color: var(--ink-2); font-weight: 600; }
.draft { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 0 0 1px var(--line-strong), 0 12px 28px -18px rgba(47,58,34,.45); }
.draft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.draft-head span { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--olive-text); }
.pill { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--wheat-ink); background: var(--wheat); border-radius: 999px; padding: 4px 10px; }
.draft p { margin: 0; font-size: 15px; line-height: 1.55; }
.draft .en { margin-top: 8px; font-size: 13px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip.on { background: var(--olive); color: var(--on-olive); box-shadow: none; }
.chip.quiet { color: var(--muted); box-shadow: none; }

/* Sections */
section { padding: 104px 0; }
.rule { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.step { padding: 0 36px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.numeral { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brass); }
.step h3 { margin: 18px 0 8px; }
.step p, .item p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.item { padding: 32px 32px 34px 0; border-bottom: 1px solid var(--line); }
.item:nth-child(even) { padding: 32px 0 34px 32px; border-left: 1px solid var(--line); }
.item svg { width: 22px; height: 22px; color: var(--brass); }
.item h3 { margin: 14px 0 8px; font-size: 23px; }

.band { background: var(--olive); color: var(--on-olive); }
.band h2 em { color: #d9c08f; }
.band .sub { color: #cfd3c2; }
.band .eyebrow { color: #b9bea9; }
.band .eyebrow::before { background: #d9c08f; }
.safe { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.safe li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(247,243,234,.16); font-size: 16.5px; line-height: 1.55; }
.safe svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: #d9c08f; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(38px, 5vw, 66px); }
.cta .sub { margin-inline: auto; }
.cta .ctas { justify-content: center; margin-top: 40px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.legal { display: grid; gap: 4px; }
.legal .wordmark { font-size: 22px; margin-bottom: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.doc { max-width: 740px; margin: 0 auto; padding: 72px 32px 96px; }
.doc h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 0 0 12px; }
.doc .meta { margin: 0 0 44px; font-size: 14.5px; color: var(--muted); }
.doc h2 { font-size: 27px; letter-spacing: -.015em; margin: 52px 0 12px; }
.doc h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 28px 0 6px; }
.doc p, .doc li { color: #2e2a24; font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--brass); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step, .step:first-child { padding: 0; border-left: 0; }
  .step + .step { padding-top: 36px; border-top: 1px solid var(--line); }
  .safe { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 64px; gap: 16px; }
  .wordmark { font-size: 24px; }
  .items { grid-template-columns: 1fr; }
  .item, .item:nth-child(even) { padding: 28px 0; border-left: 0; }
  .stage { padding: 14px; border-radius: 18px; }
  .thread { padding: 16px 14px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .doc { padding: 48px 16px 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
