/* Ethos for behandlere. Tokens follow ethos-world.com (../styles.css):
   ivory and sand grounds, umber ink, clay accents, Cormorant + Jost.
   The demo app is the hero; the rest of the page explains it. */

:root {
  --ivory: #f6f1e7;
  --paper: #fdfaf4;
  --sand: #ede4d4;
  --sand-deep: #e3d6c0;
  --clay: #b3936c;
  --clay-deep: #96764d;
  --clay-text: #785e3d;
  --clay-btn: #7d6340;
  --umber: #3d3225;
  --umber-soft: #5c4e3c;
  --ink: #2e2619;
  --sage: #8e9476;
  --sage-deep: #5d634b;
  --sage-soft: #e6e8da;
  --rose: #b98a73;
  --rose-soft: #f2e1d6;
  --line: rgba(61, 50, 37, 0.14);
  --line-strong: rgba(61, 50, 37, 0.24);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px;
  --r: 18px;
  --shadow: 0 1px 2px rgba(46, 38, 25, .05), 0 18px 50px -18px rgba(46, 38, 25, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--clay-text); }
:focus-visible { outline: 2px solid var(--clay-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font: 500 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/1 var(--sans); padding: 16px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid var(--clay-btn); cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--clay-btn); color: var(--ivory); }
.btn-solid:hover { background: var(--umber); border-color: var(--umber); }
.btn-ghost { background: transparent; color: var(--clay-btn); }
.btn-ghost:hover { background: var(--sand); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(246, 241, 231, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-arch { width: 26px; height: 15px; border: 1.8px solid var(--clay-deep); border-bottom: 0; border-radius: 15px 15px 0 0; margin-bottom: 4px; }
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: .32em; font-weight: 500; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: 400; font-size: .66em; letter-spacing: .16em; margin-left: -.18em; color: var(--clay-deep); }
.brand-tag { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--umber-soft); padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--umber-soft); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 11px 18px; font-size: 14px; color: var(--ivory); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } .brand-tag { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: 64px 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.2vw, 70px); line-height: .98; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--clay-deep); display: block; }
.hero .lede { font-size: 19px; color: var(--umber-soft); margin-top: 22px; max-width: 34ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 30px; padding: 0; list-style: none; font-size: 15px; color: var(--umber); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--umber-soft); }
.hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hero-text > *:nth-child(5) { animation-delay: .32s; }
.hero-text > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero-app { position: relative; animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-app::before { content: ""; position: absolute; inset: -60px -80px -40px -40px; z-index: -1; background: radial-gradient(closest-side, rgba(179, 147, 108, .28), transparent 70%); }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero .lede { max-width: 46ch; } }

/* ---------- demo app ---------- */
.app {
  --app-side: 184px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; display: grid;
  grid-template-columns: var(--app-side) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  height: 600px; font-size: 14px; color: var(--ink); position: relative;
}
.app-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand-deep); }
.app-url { flex: 1; min-width: 0; display: flex; justify-content: center; }
.app-url span { font-size: 12px; color: var(--umber-soft); background: var(--ivory); border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--umber-soft); white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--sans); color: var(--paper); background: var(--clay-deep); flex: none; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #fbf7ef; overflow-y: auto; }
.app-side button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; font: 400 14px/1 var(--sans); color: var(--umber-soft);
  padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s;
}
.app-side button svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-side button:hover { background: var(--sand); color: var(--ink); }
.app-side button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.app-side .side-label { font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-text); padding: 14px 12px 6px; }
.app-side .side-card { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--sand); font-size: 12px; line-height: 1.45; color: var(--umber-soft); }
.app-side .side-card b { display: block; font-weight: 500; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.app-main { overflow: auto; padding: 22px 24px; position: relative; container-type: inline-size; }
.view { animation: viewIn .45s cubic-bezier(.2, .7, .2, 1) both; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.view-head h3 { font-size: 28px; line-height: 1.05; }
.view-head p { font-size: 13px; color: var(--umber-soft); margin-top: 4px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tbtn { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 400 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.tbtn:hover { background: var(--sand); }
.tbtn.on, .tbtn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tbtn.primary:hover { background: var(--umber); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--ivory); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--umber-soft); }
.kpi b { font: 500 22px/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.kpi small { font-size: 12px; color: var(--sage-deep); }
.kpi small.neg { color: var(--rose); }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); min-width: 0; }
.panel h4 { margin: 0 0 12px; font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--clay-text); }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .t { font-variant-numeric: tabular-nums; color: var(--umber-soft); width: 46px; flex: none; font-size: 13px; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who span { font-size: 12px; color: var(--umber-soft); }
.row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { font: 500 11px/1 var(--sans); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.src-ny { background: var(--rose-soft); color: #8a5a43; }
.src-igen { background: var(--sage-soft); color: var(--sage-deep); }
.src-egen { background: var(--sand); color: var(--umber); }
.src-ics { background: transparent; color: var(--umber-soft); border: 1px dashed var(--line-strong); }

/* calendar */
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cal { display: grid; grid-template-columns: 44px repeat(7, minmax(62px, 1fr)); min-width: 480px; position: relative; }
.cal-h { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: center; font-size: 12px; color: var(--umber-soft); }
.cal-h b { display: block; font: 500 18px/1.1 var(--serif); color: var(--ink); }
.cal-h.today b { color: var(--paper); background: var(--clay-deep); border-radius: 999px; width: 30px; height: 30px; line-height: 30px; margin: 2px auto 0; }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 8px; font-size: 11px; color: var(--umber-soft); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-day { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--hour); }
.cal-day.closed { background-color: #f8f3ea; background-image: linear-gradient(var(--line) 1px, transparent 1px), repeating-linear-gradient(135deg, transparent 0 8px, rgba(61, 50, 37, .04) 8px 9px); background-size: 100% var(--hour), auto; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--rose); z-index: 3; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.ev {
  position: absolute; left: 4px; right: 4px; border-radius: 9px; padding: 6px 7px; overflow: hidden; cursor: pointer;
  font-size: 11.5px; line-height: 1.25; border: 0; text-align: left; font-family: var(--sans); color: var(--ink);
  transition: transform .2s, box-shadow .2s; animation: evIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ev:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(46, 38, 25, .45); z-index: 4; }
.ev b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { opacity: .8; white-space: nowrap; }
.ev.ny { background: #efd9cb; box-shadow: inset 3px 0 0 var(--rose); }
.ev.igen { background: #dfe3cf; box-shadow: inset 3px 0 0 var(--sage); }
.ev.egen { background: #e9dfcd; box-shadow: inset 3px 0 0 var(--clay); }
.ev.ics { background: repeating-linear-gradient(135deg, #f1ebdf 0 6px, #ebe3d4 6px 12px); color: var(--umber-soft); cursor: default; }
.ev.fresh { animation: evPop .8s cubic-bezier(.2, .9, .3, 1.3) both; box-shadow: inset 3px 0 0 var(--rose), 0 0 0 3px rgba(185, 138, 115, .35); }
@keyframes evIn { from { opacity: 0; transform: scale(.96); } }
@keyframes evPop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.04); } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--umber-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* drawer + toast inside the app */
.drawer { position: absolute; top: 52px; right: 0; bottom: 0; width: min(330px, 100%); background: var(--paper); border-left: 1px solid var(--line); box-shadow: -20px 0 40px -24px rgba(46, 38, 25, .35); z-index: 10; padding: 22px; display: flex; flex-direction: column; gap: 14px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer h4 { font: 500 26px/1.1 var(--serif); margin: 0; }
.drawer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.drawer dt { color: var(--umber-soft); }
.drawer dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.drawer dd.big { font-weight: 500; }
.drawer .x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--sand); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--ink); }
.drawer .note { font-size: 12px; color: var(--umber-soft); background: var(--ivory); padding: 10px 12px; border-radius: 10px; }
.toast { position: absolute; right: 16px; bottom: 16px; z-index: 12; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; max-width: calc(100% - 32px); transform: translateY(20px); opacity: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1.2), opacity .3s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
.toast .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); flex: none; }
.toast .dot svg { width: 16px; height: 16px; stroke: var(--paper); fill: none; stroke-width: 2; }
.toast b { font-weight: 500; display: block; }
.toast span { opacity: .75; }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--umber-soft); }
.chart .grid { stroke: var(--line); }
.bar { transform-box: fill-box; transform-origin: bottom; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.line-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.area-fade { animation: fade 1s .6s both; }
@keyframes fade { from { opacity: 0; } }
.donut-seg { transition: stroke-dasharray 1.1s cubic-bezier(.2, .7, .2, 1); }
.split { display: flex; flex-direction: column; gap: 10px; }
.split-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.split-bar { grid-column: 1 / -1; height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.split-bar i { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: growX 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* tables in app */
.tab { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tab th { text-align: left; font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--clay-text); padding: 0 8px 10px; }
.tab td { padding: 11px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.tab td.r, .tab th.r { text-align: right; }
.tab-wrap { overflow-x: auto; }
.payout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.payout span { font-size: 13px; opacity: .75; display: block; }
.payout b { font: 500 34px/1.05 var(--sans); font-variant-numeric: tabular-nums; display: block; margin-top: 6px; }
.payout .meter { grid-column: 1 / -1; height: 6px; background: rgba(253, 250, 244, .15); border-radius: 999px; overflow: hidden; }
.payout .meter i { display: block; height: 100%; background: var(--clay); border-radius: 999px; transform-origin: left; animation: growX 1.4s cubic-bezier(.2, .7, .2, 1) both; }

/* services, sync, embed, profile */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.svc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.svc svg { display: block; width: 100%; height: 74px; }
.svc div { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.svc b { font-weight: 500; }
.svc span { font-size: 12px; color: var(--umber-soft); }
.svc .price { font: 500 20px/1 var(--serif); margin-top: 4px; }
.switch { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--sand-deep); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.switch:checked { background: var(--sage-deep); }
.switch:checked::after { transform: translateX(14px); }
.sync { display: flex; flex-direction: column; gap: 10px; }
.sync-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.sync-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--sans); color: var(--paper); }
.sync-row b { font-weight: 500; display: block; }
.sync-row span { font-size: 12px; color: var(--umber-soft); }
.sync-row .ok { color: var(--sage-deep); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--sand-deep); border-top-color: var(--clay-deep); display: inline-block; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.code { font: 12px/1.6 ui-monospace, Menlo, monospace; background: var(--ink); color: #efe4cf; padding: 14px; border-radius: 12px; overflow-x: auto; white-space: pre; }
.embed-prev { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--ivory); }
.embed-btn { display: inline-flex; gap: 10px; align-items: center; background: var(--clay-btn); color: var(--ivory); border-radius: 999px; padding: 12px 18px; font-weight: 500; border: 0; font-family: var(--sans); font-size: 14px; }
.embed-btn i { width: 16px; height: 9px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 9px 9px 0 0; }
.prof { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); max-width: 560px; }
.prof-art svg { display: block; width: 100%; height: 150px; }
.prof-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.prof-av { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--paper); margin-top: -36px; background: var(--clay-deep); display: grid; place-items: center; font: 500 26px/1 var(--serif); color: var(--paper); }
.prof h4 { margin: 0; font: 500 28px/1.05 var(--serif); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--umber); }
.badge.rec { background: var(--ink); color: var(--paper); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { font-size: 12px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); font-variant-numeric: tabular-nums; }
.quote { font: italic 400 18px/1.45 var(--serif); color: var(--umber); border-left: 2px solid var(--clay); padding-left: 12px; }
.quote span { display: block; font: 400 12px/1.4 var(--sans); color: var(--umber-soft); margin-top: 4px; font-style: normal; }
.tour { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--umber-soft); white-space: nowrap; }
.tour .track { width: 90px; height: 3px; border-radius: 999px; background: var(--sand-deep); overflow: hidden; }
.tour .track i { display: block; height: 100%; width: 100%; background: var(--clay-deep); transform-origin: left; transform: scaleX(0); }
.tour.run .track i { animation: tourbar var(--tour) linear forwards; }
@keyframes tourbar { to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); height: 640px; border-radius: 18px; }
  .app-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; scrollbar-width: none; }
  .app-side::-webkit-scrollbar { display: none; }
  .app-side button { width: auto; white-space: nowrap; padding: 9px 12px; }
  .app-side .side-label, .app-side .side-card { display: none; }
  .app-main { padding: 16px; }
  .app-url { display: none; }
  .app-top { justify-content: space-between; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
  .drawer { top: 0; }
}

/* ---------- sections ---------- */
section.s { padding-block: 110px; }
.s-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.s-head h2 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.02; }
.s-head h2 em { font-style: italic; color: var(--clay-deep); }
.s-head p { font-size: 18px; color: var(--umber-soft); max-width: 60ch; }
.works { padding-block: 70px 30px; }
.works p { text-align: center; color: var(--umber-soft); font-size: 15px; }
.works ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.works li { font: 500 22px/1 var(--serif); color: var(--umber); letter-spacing: .01em; opacity: .75; }

/* flow motion graphic */
.flow { background: var(--ink); color: var(--paper); border-radius: 32px; padding: 64px clamp(20px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; align-items: center; overflow: hidden; }
.flow h2 { color: var(--paper); font-size: clamp(36px, 4.6vw, 54px); line-height: 1.02; }
.flow h2 em { color: var(--clay); font-style: italic; }
.flow p { color: rgba(253, 250, 244, .72); margin-top: 18px; font-size: 17px; }
.flow .eyebrow { color: var(--clay); }
.flow-svg text { font-family: var(--sans); }
.flow-svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* features */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fcard .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; }
.fcard .ic svg { width: 22px; height: 22px; stroke: var(--clay-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { font-size: 26px; line-height: 1.1; }
.fcard p { color: var(--umber-soft); font-size: 15.5px; }
.fcard .tag { align-self: flex-start; font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); margin-top: auto; }
@media (max-width: 960px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feat { grid-template-columns: 1fr; } }

/* pricing */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.price-main { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.price-big { display: flex; align-items: baseline; gap: 10px; }
.price-big b { font: 500 92px/.9 var(--serif); letter-spacing: -.02em; }
.price-big span { color: var(--umber-soft); }
.compare { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cmp { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.cmp .bar-t { grid-column: 1 / -1; height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.cmp .bar-t i { display: block; height: 100%; border-radius: 999px; transform-origin: left; transform: scaleX(var(--w, 1)); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.pre .cmp .bar-t i, .pre .stack i { transform: scaleX(0); }
.price-main ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; }
.price-main li { display: flex; gap: 8px; align-items: flex-start; }
.price-main li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 7px; border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: rotate(-45deg); }
.price-side { display: flex; flex-direction: column; gap: 16px; }
.example { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.example h3 { color: var(--paper); font-size: 28px; line-height: 1.15; }
.example p { color: rgba(253, 250, 244, .72); font-size: 15px; }
.stack { display: flex; height: 46px; border-radius: 12px; overflow: hidden; gap: 3px; }
.stack i { display: grid; place-items: center; font: 500 13px/1 var(--sans); font-style: normal; color: var(--ink); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); white-space: nowrap; overflow: hidden; }
.stack-legend { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 22px; font-size: 13px; color: rgba(253, 250, 244, .8); }
.stack-legend b { display: block; font: 500 24px/1.1 var(--serif); color: var(--paper); font-variant-numeric: tabular-nums; }
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tiers th, .tiers td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tiers thead th { border-top: 0; font: 500 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--clay-text); background: var(--ivory); }
.tiers td:first-child { font-weight: 500; }
.tiers tr.hi td { background: #fbf4e8; }
.tiers-wrap { overflow-x: auto; border-radius: 20px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price-main ul { grid-template-columns: 1fr; } .price-big b { font-size: 74px; } }

/* not-included + trust */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.box h3 { font-size: 30px; line-height: 1.1; }
.box p { color: var(--umber-soft); }
.box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.box li { padding-left: 24px; position: relative; color: var(--umber); }
.box li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 1.5px; background: var(--clay); }
.box.sand { background: var(--sand); }
.box.line { border: 1px solid var(--line-strong); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line-strong); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 500 24px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--clay-text); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--umber-soft); max-width: 64ch; }

/* sign-up */
.join { background: var(--sand); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
.join h2 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.02; }
.join h2 em { font-style: italic; color: var(--clay-deep); }
.join .copy p { margin-top: 16px; color: var(--umber-soft); }
.join ol { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: j; }
.join ol li { counter-increment: j; display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: var(--umber); }
.join ol li::before { content: counter(j); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--clay); display: grid; place-items: center; font: 500 15px/1 var(--serif); color: var(--clay-text); }
form.f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--umber); }
.f .full { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; width: 100%; }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: transparent; }
.f .check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--umber-soft); }
.f .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--clay-btn); }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f .msg { grid-column: 1 / -1; font-size: 14px; min-height: 1.4em; }
.f .msg.err { color: #9b3d2a; }
.f button[disabled] { opacity: .6; cursor: progress; }
.done { grid-column: 1 / -1; background: var(--paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; animation: viewIn .5s both; }
.done h3 { font-size: 32px; }
.done p { color: var(--umber-soft); }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { form.f { grid-template-columns: 1fr; } }

/* footer */
footer.foot { padding-block: 60px 50px; color: var(--umber-soft); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot a { color: var(--umber-soft); }

/* reveal on scroll: visible at rest, only animated once JS has marked it */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

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

@container (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
  .payout { grid-template-columns: 1fr; }
  .payout > div:nth-child(2) { text-align: left !important; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 20px; }
  .nav-links .btn { white-space: nowrap; font-size: 13px; padding: 10px 14px; }
}
