/* Sales site. Two self-hosted families, warm paper and ink, one "ringing" colour and one "booked" colour. Phone first. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrumentsans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f0e6; --paper-2: #efe6d6; --card: #fffaf2; --ink: #1c1915; --ink-2: #51493e; --line: rgba(28, 25, 21, .16);
  --ring: #b3401c; --ring-dark: #8f3113; --ring-soft: #f6dccf; --booked: #1e5a44; --booked-soft: #d8eadf;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px; --pad: 20px; --r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.018em; line-height: 1.08; margin: 0; hyphens: auto; overflow-wrap: break-word; font-optical-sizing: auto; }
h1 { font-size: clamp(2.15rem, 1.2rem + 4.6vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2.1vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--ring-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; color: var(--paper); }

/* header */
.top { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-block: 8px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 1.3rem/1 var(--serif); letter-spacing: -.02em; text-decoration: none; margin-right: auto; min-height: 44px; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav-wide { display: none; }
.top details { position: relative; }
.top summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; background: transparent; }
.top summary::-webkit-details-marker { display: none; }
.top summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.top details[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.drop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(28, 25, 21, .45); }
.drop a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.drop a:hover, .drop a[aria-current] { background: var(--paper-2); color: var(--ink); }
.drop a[aria-current] { font-weight: 700; }

/* tags */
.tag { display: inline-block; vertical-align: middle; font: 700 .7rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 6px; border: 1.5px solid currentColor; white-space: nowrap; }
.tag-draft { color: var(--ring-dark); background: var(--ring-soft); border-color: transparent; }
.tag-example { color: var(--ink); }
.tag-digital { color: var(--booked); background: var(--booked-soft); border-color: transparent; }
.tag-planned, .tag-notlive, .tag-review { color: var(--ink-2); border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 24px; border-radius: 14px; border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ring); color: #fff; box-shadow: 0 10px 24px -14px var(--ring-dark); }
.btn-primary:hover { background: var(--ring-dark); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: default; }
.link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.actions .link { justify-content: center; }

/* hero */
.hero { padding-block: 14px 44px; display: grid; gap: 34px; }
.hero h1 { margin-bottom: 14px; }
.lead { font-size: 1.13rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.price-line { margin-top: 14px; font-weight: 600; line-height: 1.45; }
.price-line .tag { margin-right: 6px; }
.hero .actions { margin-top: 18px; }
.note { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.hero .note { margin-top: 10px; }
.hero .note .tag { margin-right: 4px; }
.hero-art { align-self: center; }
.art { display: block; width: 100%; max-width: 560px; margin-inline: auto; }
.art .wave { fill: none; stroke: var(--ring); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.art .cell { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.art .slot { fill: var(--booked); }
.art .slot-t { fill: #fff; font: 700 15px var(--sans); }
.art .day { fill: var(--ink-2); font: 600 13px var(--sans); text-anchor: middle; }
.art .dot { fill: var(--ring); }
.art .halo { fill: none; stroke: var(--ring); stroke-width: 2; opacity: 0; }
.art .tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lang-hint { margin-top: 14px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 12px; }
.lang-hint a, .lang-hint button { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; min-height: 32px; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: .18em; }

/* sections */
section { padding-block: 52px; }
.band { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .lead, .dark .note { color: #d9d0c1; }
.dark a:hover { color: #fff; }
.head { margin-bottom: 26px; max-width: 44rem; }
.head h2 + p, .head h1 + p { margin-top: 12px; }
.page-head { padding-block: 22px 30px; }
.page-head .tags { margin-bottom: 14px; }
.ringline { height: 18px; background: url("/assets/ringline.svg") left center / auto 18px no-repeat; margin-bottom: 18px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; }

.grid { display: grid; gap: 16px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 10px; }
.card .tag { margin-bottom: 12px; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 58px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 1.15rem/1 var(--serif); }
.steps h3 { margin-bottom: 6px; }
.steps h3 .tag { margin-left: 8px; }
.steps p { color: var(--ink-2); }
.steps > li.is-planned::before { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--ink-2); }

/* conversation */
.convo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 34rem; }
.convo li { max-width: 88%; padding: 12px 14px; border-radius: 16px; line-height: 1.45; }
.convo .who { display: block; font: 700 .7rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; opacity: .75; }
.convo .a { background: var(--card); border: 1.5px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.convo .c { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; justify-self: end; }
.split { display: grid; gap: 26px; }

/* what lands with you */
.msg { border-left: 5px solid var(--ring); }
.msg.day { border-left-color: var(--booked); }
.msg ul, .ticks, .plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg li:first-child { font-weight: 700; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 13px; height: 7px; border-left: 2.5px solid var(--booked); border-bottom: 2.5px solid var(--booked); transform: rotate(-45deg); }
.dark .ticks li::before { border-color: #8fd0b1; }
.plain li { position: relative; padding-left: 22px; }
.plain li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink-2); }

/* price */
.plan { border: 2px solid var(--ink); }
.amount { font: 600 clamp(2.8rem, 2rem + 4vw, 4rem)/1 var(--serif); letter-spacing: -.03em; display: block; margin: 10px 0 2px; }
.per { color: var(--ink-2); font-weight: 600; }
.plan .ticks { margin: 18px 0 22px; }
.rows { margin: 0; display: grid; }
.rows > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1.5px solid var(--line); }
.rows dt { font-weight: 700; }
.rows dd { margin: 0; color: var(--ink-2); }
.calc { display: grid; gap: 14px; max-width: 34rem; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea, select { font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--ink-2); border-radius: 12px; min-height: 50px; padding: 10px 14px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.result { font-weight: 600; padding: 14px 16px; background: var(--booked-soft); border-radius: 12px; }
.sent { margin-top: 16px; padding: 16px; background: var(--paper-2); border-radius: 12px; }
.sent dl { margin: 8px 0 0; display: grid; gap: 6px; }
.sent dt { font-weight: 700; font-size: .85rem; }
.sent dd { margin: 0; }

/* faq */
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; font: 600 1.12rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--ring); border-bottom: 2.5px solid var(--ring); transform: rotate(45deg); margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 44rem; }

/* how it works */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 12px; padding: 14px 0; border-top: 1.5px solid var(--line); }
.timeline time { font: 600 1.15rem/1.3 var(--serif); color: var(--ring-dark); }
.forward { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 26px; }
.forward li { position: relative; padding: 14px 16px; border: 1.5px dashed var(--ink-2); border-radius: 12px; font-weight: 600; text-align: center; background: var(--card); }
.forward li + li::before { content: ""; position: absolute; left: 50%; top: -19px; width: 9px; height: 9px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: translateX(-50%) rotate(45deg); }

/* trade chooser */
.chooser { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--ink); color: var(--paper); }
.trade-panel + .trade-panel { margin-top: 44px; padding-top: 44px; border-top: 1.5px solid var(--line); }
.js .trade-panel + .trade-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.kv h3 { font: 700 .78rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.pick label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); cursor: pointer; }
.pick input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--ring); }
.pick label:has(input:checked) { background: var(--ink); color: var(--paper); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 700 .78rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.tbl th, .tbl td { padding: 12px 14px 12px 0; vertical-align: top; border-top: 1.5px solid var(--line); }
.tbl td:first-child { font-weight: 700; }
@media (max-width: 699px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { display: block; padding: 12px 0; border-top: 1.5px solid var(--line); }
  .tbl td { display: block; padding: 2px 0; border: 0; }
  .tbl td:not(:first-child)::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-2); }
}

/* legal */
.legal h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal p { max-width: 44rem; }
.draft-note { padding: 14px 16px; border: 1.5px dashed var(--ink-2); border-radius: 12px; max-width: 44rem; }

/* footer */
footer { background: var(--ink); color: var(--paper); padding-block: 44px 34px; font-size: .95rem; }
footer .logo { margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
footer li a { display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: #fff; }
footer .fine { margin-top: 18px; color: #cfc6b7; display: grid; gap: 4px; }
.foot-grid { display: grid; gap: 22px; }

/* demo window */
dialog.demo { width: 100%; max-width: 560px; max-height: 100dvh; margin: auto auto 0; border: 0; padding: 0; border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); }
dialog.demo::backdrop { background: rgba(28, 25, 21, .55); }
.demo-in { padding: 18px var(--pad) 24px; display: grid; gap: 14px; }
.demo-top { display: flex; align-items: flex-start; gap: 12px; }
.demo-top h2 { font-size: 1.45rem; margin-right: auto; }
.x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; cursor: pointer; position: relative; color: inherit; }
.x::before, .x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.state { font-weight: 600; min-height: 1.5em; }
.state.on { color: var(--booked); }
.live { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); }
.live p { line-height: 1.4; }
.live .lbl { font: 700 .7rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 3px; }
.left { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .9rem; }
.log { display: grid; gap: 8px; max-height: 42dvh; min-height: 120px; overflow-y: auto; padding: 4px 2px; align-content: start; }
.log p { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.42; white-space: pre-line; }
.log .a { background: var(--card); border: 1.5px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.log .c { background: var(--ink); color: var(--paper); justify-self: end; border-bottom-right-radius: 4px; }
.log .ev { justify-self: center; max-width: 100%; background: var(--booked-soft); color: var(--booked); font-weight: 700; font-size: .9rem; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 600 .9rem/1 var(--sans); min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: inherit; cursor: pointer; }
.send { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.send .btn { min-height: 50px; padding-inline: 18px; }
.demo .btn { width: 100%; }
.demo .send .btn { width: auto; }
.demo .link { justify-content: center; background: none; border: 0; font: 600 1rem var(--sans); color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* spacing helpers (the page allows no inline styles) */
[data-gap] { margin-top: 12px; }
[data-gapt] { margin-top: 24px; }
[data-gapb] { margin-bottom: 12px; }
section[data-flush] { padding-top: 0; }
.h-small { font-size: 1.4rem; }
.actions.stack { flex-direction: column; align-items: stretch; gap: 10px; }
.dark .tag-example { color: var(--paper); }
.dark .tag-digital { background: #8fd0b1; color: #10241b; }

/* wider screens */
@media (min-width: 700px) {
  :root { --pad: 32px; }
  section { padding-block: 76px; }
  .actions { flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .steps.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps.row > li { padding-left: 0; padding-top: 58px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .rows > div { grid-template-columns: 16rem 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1.4fr; }
  dialog.demo { margin: auto; border-radius: 22px; }
  .forward { grid-template-columns: repeat(5, 1fr); gap: 30px; }
  .forward li { display: grid; place-items: center; }
  .forward li + li::before { left: -20px; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}
.steps > li + li { margin-top: 24px; }
@media (min-width: 700px) { .steps.row > li + li { margin-top: 0; } }
@media (min-width: 980px) {
  .nav-wide { display: flex; gap: 2px; margin-right: 8px; }
  .nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .nav-wide a:hover { background: var(--paper-2); color: var(--ink); }
  .nav-wide a[aria-current] { background: var(--ink); color: var(--paper); }
  .menu { display: none; }
  .hero { grid-template-columns: 1.08fr .92fr; gap: 56px; padding-block: 40px 84px; align-items: center; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .lead { font-size: 1.22rem; }
}

/* light motion; off when the visitor asks for less */
@media (prefers-reduced-motion: no-preference) {
  .art .wave { stroke-dasharray: 1; animation: draw 1.5s .1s cubic-bezier(.3, .7, .2, 1) backwards; }
  .art .slot, .art .slot-t, .art .tick { animation: land .5s 1.45s ease-out backwards; }
  .art .halo { animation: halo 1.6s ease-out 3; transform-origin: center; transform-box: fill-box; }
  .art .halo.h2 { animation-delay: .35s; }
  .btn, .chip, .top summary { transition: background-color .15s, color .15s, border-color .15s; }
  dialog.demo[open] { animation: rise .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
