/* Levada: zapa's look (cyborg docs/14 DSH-6), dressed for the public concierge site.
   Basalt and laurel, ochre as the one warm note, the contour lines of the levada channels as
   the one pattern. Loaded after style.css by the intake and input-form pages only; Feeling's
   pages keep style.css as it is. Fonts are bundled (SIL OFL, see fonts/LICENSES.txt). */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  /* DSH-6 light values */
  --basalt: #1c211b; --basalt-deep: #14190f; --on-basalt: #eef2e8; --on-basalt-muted: #a9b6a2;
  --basalt-chip: #2c342a; --sprout: #a9c48a; --ochre: #d39b3a;
  --bg: #e9ede3; --card: #f7f9f3; --text: #1b2219; --muted: #5e6a58; --line: #b9c4b0;
  --accent: #3f6a3a; --accent-text: #f3f8ee; --chip: #e3e9da; --code: #e3e9da;
  --shadow: 0 0 0 1px oklch(0.3 0.03 140 / 0.08), 0 1px 2px oklch(0.2 0.02 140 / 0.06), 0 10px 30px oklch(0.25 0.03 140 / 0.07);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Unbounded", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121611; --card: #1a2018; --text: #e6ebe0; --muted: #9aa893; --line: #33402f;
    --accent: #a9c48a; --accent-text: #14190f; --chip: #222b20; --code: #222b20;
    --shadow: 0 0 0 1px oklch(1 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.4), 0 10px 30px oklch(0 0 0 / 0.3);
  }
}

body { font-family: var(--body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.card, .tile { border-radius: var(--radius); }
.task-title { font-family: var(--display); font-weight: 500; font-size: .98rem; letter-spacing: -0.01em; }
button, a.btn { border-radius: 999px; min-height: 48px; }
button.primary { font-weight: 600; }
::selection { background: color-mix(in oklch, var(--sprout), transparent 40%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- labels ------------------------------------------------------------------ */
.eyebrow, .section-head p.eyebrow { font: 500 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.on-basalt .eyebrow, .on-basalt .section-head p.eyebrow { color: var(--sprout); }

/* --- the header (every page) ------------------------------------------------- */
.site-head { background: var(--basalt); color: var(--on-basalt); padding-top: env(safe-area-inset-top, 0px); position: relative; z-index: 2; }
.site-head-inner { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--on-basalt); text-decoration: none; }
.brand b { font: 600 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.brand span { font: .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-basalt-muted); }
.site-head nav { display: flex; gap: 6px; align-items: center; }
.site-head nav a { color: var(--on-basalt-muted); text-decoration: none; font-size: .92rem; padding: 10px 12px; border-radius: 999px;
  transition-property: color, background-color; transition-duration: 160ms; transition-timing-function: ease-out; }
@media (hover: hover) { .site-head nav a:hover { color: var(--on-basalt); background: var(--basalt-chip); } }
.site-head nav a.btn-sprout { color: var(--basalt-deep); }
@media (max-width: 640px) { .site-head nav a:not(.btn-sprout) { display: none; } }

/* The one pattern: levada contour lines, as a band under the header. */
.contour-band { display: block; width: 100%; height: 28px; background: var(--basalt); color: var(--sprout); }
.contour-band svg { display: block; width: 100%; height: 100%; }

/* --- buttons as links ---------------------------------------------------------- */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition-property: background-color, color, border-color, scale; transition-duration: 160ms; transition-timing-function: ease-out; }
a.btn-primary { background: var(--accent); color: var(--accent-text); }
a.btn-sprout { background: var(--sprout); color: var(--basalt-deep); }
a.btn-ghost { color: var(--on-basalt); border-color: color-mix(in oklch, var(--on-basalt), transparent 70%); }
a.btn .arrow { transition: translate 200ms var(--ease-out); }
@media (hover: hover) {
  a.btn-primary:hover { background: color-mix(in oklch, var(--accent), white 10%); }
  a.btn-sprout:hover { background: color-mix(in oklch, var(--sprout), white 18%); }
  a.btn-ghost:hover { border-color: var(--on-basalt); }
  a.btn:hover .arrow { translate: 3px 0; }
}
@media (prefers-reduced-motion: no-preference) { a.btn:active { scale: 0.97; } }

/* --- the welcome page ---------------------------------------------------------- */
.welcome main { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.on-basalt { background: var(--basalt); color: var(--on-basalt); }
.on-basalt p { color: var(--on-basalt-muted); }
.on-basalt h1, .on-basalt h2, .on-basalt h3 { color: var(--on-basalt); }

.hero { position: relative; overflow: hidden; padding-block: 56px 88px; }
.hero .lines { position: absolute; inset: 0; color: var(--sprout); opacity: .16; pointer-events: none; }
.hero .lines svg { width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero h1 { margin-bottom: 20px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--sprout); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 46ch; margin-bottom: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .reassure { margin-top: 22px; font: .78rem/1.5 var(--mono); letter-spacing: .04em; color: var(--on-basalt-muted); }

/* the example conversation */
.phone { justify-self: center; width: min(100%, 360px); background: var(--basalt-deep); border-radius: 34px; padding: 12px;
  box-shadow: 0 0 0 1px oklch(1 0 0 / .08), 0 30px 80px oklch(0 0 0 / .45); }
.phone-screen { background: #e5ebdd; border-radius: 24px; overflow: hidden; color: #1b2219; }
.phone-top { background: #2c342a; color: #eef2e8; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.phone-top .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--sprout); display: grid; place-items: center; color: var(--basalt-deep); font: 600 .8rem var(--display); }
.phone-top b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.phone-top small { color: #a9b6a2; font-size: .75rem; }
.chat { display: grid; gap: 8px; padding: 14px 12px 16px; min-height: 492px; align-content: start; }
.chat[hidden] { display: none; }
.scenes { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.scenes button { min-height: 40px; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--on-basalt-muted); background: var(--basalt-chip);
  border: 1px solid transparent; transition-property: background-color, color, scale; transition-duration: 180ms; transition-timing-function: ease-out; }
.scenes button[aria-pressed="true"] { background: var(--sprout); color: var(--basalt-deep); }
@media (hover: hover) { .scenes button[aria-pressed="false"]:hover { color: var(--on-basalt); background: #343e31; } }
.bubble .auto { display: block; font: .6rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #3f6a3a; margin-bottom: 3px; }
.bubble { max-width: 82%; padding: 8px 12px 6px; border-radius: 14px; font-size: .9rem; line-height: 1.42; background: #ffffff;
  box-shadow: 0 1px 1px oklch(0 0 0 / .08); }
.bubble.me { justify-self: end; background: #d4e8c2; border-bottom-right-radius: 4px; }
.bubble.them { border-bottom-left-radius: 4px; }
.bubble time { display: block; text-align: right; font: .62rem var(--mono); color: #6b7765; margin-top: 2px; }
.team-card { justify-self: stretch; background: #1c211b; color: #eef2e8; border-radius: 14px; padding: 10px 12px; font-size: .82rem; }
.team-card .label { font: .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sprout); }
.team-card .row { display: flex; gap: 6px; margin-top: 8px; }
.team-card .k { font: 600 .68rem var(--mono); letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: #2c342a; color: #eef2e8;
  transition-property: background-color, color; transition-duration: 250ms; transition-timing-function: ease-out; }
.team-card .k.pressed { background: var(--sprout); color: #14190f; }
.typing { justify-self: start; background: #fff; border-radius: 14px; padding: 10px 12px; display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa893; }
.example-note { text-align: center; margin-top: 12px; font: .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-basalt-muted); }
.example-note button { min-height: 0; padding: 2px 8px; margin-left: 6px; font: inherit; color: var(--sprout); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The chat plays in once, on screen; without JS (or with reduced motion) it simply shows. */
.js .chat [data-step] { opacity: 0; translate: 0 10px; scale: .98;
  transition-property: opacity, translate, scale; transition-duration: 420ms; transition-timing-function: var(--ease-out); }
.js .chat [data-step].on { opacity: 1; translate: 0 0; scale: 1; }
.js .chat .typing { display: none; }
.js .chat .typing.on { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: blink 1.2s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  .hero .lines svg path { animation: drift 38s linear infinite; }
  .hero .lines svg path:nth-child(even) { animation-duration: 52s; animation-direction: reverse; }
}
@keyframes blink { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@keyframes drift { from { translate: 0 0; } to { translate: -240px 0; } }

/* sections */
.improve { padding-top: 8px; }
#how { padding-bottom: 32px; }
.improve-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .improve-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.points h3 { margin: 6px 0 4px; }
.points p { margin: 0; color: var(--muted); }
.learn-card { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: relative; overflow: hidden; }
.learn-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--sprout) 60%, var(--ochre)); }
.lc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lc-day { font: .72rem var(--mono); color: var(--muted); }
.lc-q { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.lc-q b { color: var(--text); font-weight: 600; }
.lc-row { display: grid; gap: 4px; margin-bottom: 12px; }
.lc-label { font: .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lc-bubble { background: var(--bg); border-radius: 14px; border-bottom-left-radius: 4px; padding: 10px 14px; font-size: .95rem; }
.lc-bubble.yours { background: var(--chip); box-shadow: inset 3px 0 0 var(--accent); }
.lc-lesson { margin-top: 4px; border: 1px dashed color-mix(in oklch, var(--accent), transparent 40%); border-radius: 14px; padding: 12px 14px; }
.lc-lesson .lc-label { color: var(--accent); }
.lc-lesson p { margin: 4px 0 0; font-weight: 600; }
.lc-foot { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }

.section { padding-block: 88px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.on-basalt .section-head p { color: var(--on-basalt-muted); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid transparent;
  transition-property: box-shadow, translate; transition-duration: 220ms; transition-timing-function: var(--ease-out); }
@media (hover: hover) { .feature:hover { box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklch, var(--accent), transparent 55%); } }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.icon svg { width: 22px; height: 22px; }

.guard { background: var(--basalt-chip); border-radius: var(--radius); padding: 24px; border: 1px solid oklch(1 0 0 / .06); }
.guard h3 { margin: 14px 0 6px; }
.guard p { margin: 0; font-size: .98rem; }
.guard .icon { background: oklch(1 0 0 / .06); color: var(--sprout); }
.guard code { background: oklch(1 0 0 / .08); color: var(--on-basalt); }
.section.on-basalt { position: relative; overflow: hidden; }

.compare { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border-radius: var(--radius); padding: 24px; }
.compare .generic { border: 1px dashed var(--line); }
.compare .tailored { background: var(--card); box-shadow: var(--shadow); }
.compare h3 { margin-top: 0; }
.compare ul { margin: 0; padding-left: 1.1em; }
.compare li { margin-bottom: 6px; color: var(--muted); }
.compare .tailored li { color: var(--text); }
.compare .tailored li::marker { color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 36px 64px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 500 .8rem var(--mono); background: var(--accent); color: var(--accent-text); }
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); max-width: 60ch; }
.steps .when { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.start .tiles { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.start .tile { padding: 24px; }
.start .tile strong { font: 500 1.05rem/1.3 var(--display); letter-spacing: -0.01em; }
.closing { text-align: center; }
.closing h2 { max-width: 20ch; margin-inline: auto; }
.closing p { max-width: 52ch; margin-inline: auto; }
.closing .ctas { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.site-foot { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--on-basalt-muted); font-size: .88rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal on scroll: transitions, so a fast scroll never leaves anything half-drawn. */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition-property: opacity, translate; transition-duration: 700ms; transition-timing-function: var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .chat [data-step] { translate: 0 0; scale: 1; transition-duration: 1ms; }
}

/* --- the form pages and messages ------------------------------------------------ */
.form-page main { padding-top: 36px; }
.form-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
.form-page .bar { background: color-mix(in oklch, var(--card), transparent 6%); backdrop-filter: blur(10px); }
.form-page .back { font-size: .92rem; }
.form-page h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); margin-top: 48px; }
