/* Joiner site. Craftsman feel: warm paper background, walnut accent, hairlines, system font. No glows or gradients. */
:root {
  --bg: #fbf9f5;
  --soft: #f3efe7;
  --line: #e7e1d6;
  --line-2: #d8cfc0;
  --fg: #1d1a16;
  --fg-2: #5e574d;
  --fg-3: #82796c;
  --accent: #8a5a32;
  --walnut: #74482a;
  --btn: #74482a;
  --btn-fg: #fffaf3;
  --card: #ffffff;
  --frame: 0 24px 60px rgba(60, 40, 20, 0.12), 0 2px 8px rgba(60, 40, 20, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gut: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1b18; --soft: #27231f; --line: #362f29; --line-2: #463d35; --card: #24201c;
    --fg: #efe9e1; --fg-2: #b6ac9f; --fg-3: #978c7f; --accent: #d8a676; --walnut: #d8a676;
    --btn: #d8a676; --btn-fg: #1e1b18;
    --frame: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1b18; --soft: #27231f; --line: #362f29; --line-2: #463d35; --card: #24201c;
  --fg: #efe9e1; --fg-2: #b6ac9f; --fg-3: #978c7f; --accent: #d8a676; --walnut: #d8a676;
  --btn: #d8a676; --btn-fg: #1e1b18;
  --frame: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--fg); color: var(--bg); }
.logo svg { width: 20px; height: 20px; }
.logo .pa { fill: currentColor; }
.logo .pb { fill: currentColor; opacity: 0.42; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--fg-2); }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--soft); text-decoration: none; }
.btn.dark { border-color: var(--btn); background: var(--btn); color: var(--btn-fg); }
.btn.dark:hover { opacity: 0.88; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(40px, 5.2vw, 60px); font-weight: 650; line-height: 1.04; letter-spacing: -0.035em; }
.hero .lede { max-width: 56ch; margin-top: 22px; color: var(--fg-2); font-size: clamp(17px, 2vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Demo window */
.window { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); box-shadow: var(--frame); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar span { margin-left: 10px; color: var(--fg-3); font-size: 13px; }
.window iframe { display: block; width: 100%; height: 680px; border: 0; }
.caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; color: var(--fg-3); font-size: 14px; }

/* Sections */
.sec { padding: 104px 0 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; }
.sec-head p { margin-top: 14px; color: var(--fg-2); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.grid > div { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.grid > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.grid h3 { font-size: 16px; font-weight: 600; }
.grid p { margin-top: 6px; color: var(--fg-2); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding-top: 18px; border-top: 2px solid var(--fg); counter-increment: s; }
.steps li::before { content: counter(s); display: block; margin-bottom: 10px; color: var(--fg-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--fg-2); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 48px; border-radius: 14px; background: var(--soft); }
.split h2 { font-size: clamp(26px, 3vw, 32px); }
.split p { color: var(--fg-2); }
.split h2 + p { margin-top: 16px; }
.split p + p, .split .btn { margin-top: 18px; }
[id] { scroll-margin-top: 76px; }
.ticks { display: grid; gap: 12px; margin: 0; padding: 8px 0 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(-45deg); }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 64ch; padding: 0 0 22px; color: var(--fg-2); }

.cta { margin-top: 104px; padding: 80px 0; border-top: 1px solid var(--line); text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 650; letter-spacing: -0.03em; }
.cta p { margin-top: 12px; color: var(--fg-2); font-size: 18px; }
.cta .actions { justify-content: center; }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--fg-3); }

/* Narrow screens */
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid > div, .grid > div + div { padding: 22px 20px 24px 0; border-left: 0; }
  .grid > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding: 40px 0 0; }
  .actions .btn { flex: 1 1 auto; }
  .window-bar span { display: none; }
  .window iframe { height: 620px; }
  .sec { padding-top: 72px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .split { padding: 28px 20px; }
  .cta { margin-top: 72px; padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Contact form */
.contact { display: grid; gap: 16px; max-width: 640px; margin: 36px auto 0; text-align: left; }
.contact .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact .opt { color: var(--fg-3); font-weight: 400; }
.contact input, .contact textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
.contact textarea { min-height: 116px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--fg-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent); }
.contact textarea::placeholder { color: var(--fg-3); }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.form-note { color: var(--fg-3); font-size: 14px; }
.form-note.err { color: #d0453a; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.sent { max-width: 640px; margin: 36px auto 0; padding: 28px; border-radius: 12px; background: var(--soft); text-align: left; }
.sent h3 { font-size: 18px; font-weight: 600; }
.sent p { margin-top: 6px; color: var(--fg-2); font-size: 16px; }
@media (max-width: 640px) {
  .contact .row2 { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { flex: 1 1 100%; }
}
.cta p { text-wrap: balance; }
.cta .alt { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 640px; margin: 32px auto 0; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--soft); text-align: left; }
.cta .alt strong { display: block; font-size: 16px; font-weight: 600; }
.cta .alt span { display: block; margin-top: 2px; color: var(--fg-2); font-size: 15px; }
.cta .alt .btn { flex: none; gap: 9px; height: 42px; padding: 0 16px; background: var(--bg); font-weight: 600; }
.cta .alt .btn:hover { border-color: var(--fg-2); }
.cta .alt svg { flex: none; width: 20px; height: 20px; }
@media (max-width: 640px) {
  .cta .alt { flex-direction: column; align-items: stretch; padding: 18px; }
  .cta .alt .btn { width: 100%; }
}

/* Hero call card: a sample call that turns into a filed note (livecall.js) */
.lc { margin: 0; padding: 18px 20px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--frame); transition: opacity 0.35s ease; }
.lc.lc-out { opacity: 0; }
.lc-top { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 13px; font-weight: 500; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--walnut); }
.lc[data-phase="ring"] .lc-dot { animation: lc-pulse 0.9s ease-in-out infinite; }
.lc[data-phase="live"] .lc-dot { background: #3f8f5a; }
.lc[data-phase="writing"] .lc-dot { background: var(--line-2); }
@keyframes lc-pulse { 50% { opacity: 0.2; } }
.lc-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.lc-who { margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lc-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lc-sub { color: var(--fg-2); font-size: 14px; }
.lc-body { min-height: 236px; padding-top: 14px; }
.lc-line { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; margin-bottom: 10px; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.lc-line.in { opacity: 1; transform: none; }
.lc-line b { padding-top: 1px; color: var(--fg-3); font-size: 13px; font-weight: 600; }
.lc-writing { color: var(--fg-3); font-size: 14px; }
.lc-writing::after { content: ""; animation: lc-dots 1.2s steps(1) infinite; }
@keyframes lc-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.lc-note { animation: lc-in 0.35s ease; }
@keyframes lc-in { from { opacity: 0; transform: translateY(4px); } }
.lc-sum { font-size: 15px; line-height: 1.5; }
.lc-follow { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.lc-follow li { position: relative; padding-left: 24px; }
.lc-follow li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border: 1.5px solid var(--line-2); border-radius: 4px; }
.lc-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.lc-meta dt { color: var(--fg-3); }
.lc-meta dd { margin: 0; font-weight: 500; }
.lc-cap { margin-top: 12px; color: var(--fg-3); font-size: 12px; }

/* Same Tuesday, two ways. A walnut seam joins the two columns. */
.day { border-top: 1px solid var(--line); }
.day-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 20px; align-items: start; border-bottom: 1px solid var(--line); }
.day-row > time, .day-row > p { padding: 18px 0 20px; }
.day-row > time { padding-top: 20px; color: var(--fg-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.day-row p { color: var(--fg-2); font-size: 15px; }
.day-row p b { color: var(--fg); font-weight: 600; }
.day-row > p:last-child b { color: var(--walnut); }
.day-row > i { justify-self: center; width: 1.5px; align-self: stretch; background: color-mix(in srgb, var(--walnut) 55%, transparent); }
.day-head > span { padding: 14px 0 12px; color: var(--fg-3); font-size: 13px; font-weight: 600; }
.day-head > span:last-child { color: var(--walnut); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lc { max-width: 560px; }
}
@media (max-width: 640px) {
  .lc { padding: 16px; }
  .lc-body { min-height: 260px; }
  .day-head { display: none; }
  .day-row { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; }
  .day-row > i { display: none; }
  .day-row > time { grid-row: span 2; }
  .day-row > p:nth-of-type(1) { padding-bottom: 8px; }
  .day-row > p:nth-of-type(2) { padding-top: 0; }
  .day-row > p::before { display: block; margin-bottom: 2px; color: var(--fg-3); font-size: 12px; font-weight: 600; }
  .day-row > p:nth-of-type(1)::before { content: "Today"; }
  .day-row > p:nth-of-type(2)::before { content: "With Joiner"; color: var(--walnut); }
}
@media (prefers-reduced-motion: reduce) {
  .lc, .lc-line, .lc-note { transition: none; animation: none; }
}
