/* eweryframe.app: Oat paper, Cocoa ink, Mist for the agent (dots, underlines, the logo square only), Ember for trouble.
   Noto Sans Thai Looped for everything, Bricolage Grotesque only in the wordmark. */
:root {
  color-scheme: light;
  --bg: #F4EEE3;        /* Oat */
  --card: #FBF8F2;      /* Linen */
  --sand: #EDE6DA;
  --line: #E2D9CA;
  --edge: #CFC5B4;
  --ink: #2B2420;       /* Cocoa */
  --ink-2: #4E463E;
  --ink-3: #5E554B;
  --ink-4: #72675B;
  --gone: #A39889;      /* struck-out words */
  --mist: #7CC4BC;
  --mist-ink: #2A716A;
  --ember: #C8553D;
  --cta-bg: #2B2420;
  --cta-ink: #F4EEE3;
  --shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(80, 55, 30, .25);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ui: "Noto Sans Thai Looped", "Noto Sans Thai", system-ui, sans-serif;
  --mark: "Bricolage Grotesque", var(--ui);
}
/* dark is there for whoever asks for it (data-theme="dark"), never the default */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #221C18; --card: #2B241F; --sand: #342C26; --line: #3D342D; --edge: #54493F;
  --ink: #F1E9DD; --ink-2: #D9CFC2; --ink-3: #C2B7A9; --ink-4: #A89C8D; --gone: #7D7266;
  --mist-ink: #8FD3CB; --cta-bg: #F1E9DD; --cta-ink: #221C18;
  --shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mist-ink); }
p a, li a, td a, summary a { text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--sand); border-radius: 6px; padding: 1px 6px; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.narrow { max-width: 760px; }

/* header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand span { font-family: var(--mark); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 16px; flex-wrap: wrap; }
#auth-area { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.who { font-size: 14px; color: var(--ink-4); max-width: 16ch; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  /* จอแคบซ่อนอีเมล เหลือแค่ปุ่มออกจากระบบ (อีเมลเต็มๆ อยู่ที่หน้าโปรแกรมของคุณ) */
  .who { display: none; }
}

/* buttons: one cocoa pill per view, the rest outlined */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: transparent; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
.btn.primary { background: var(--cta-bg); color: var(--cta-ink); box-shadow: 0 10px 24px -12px rgba(43, 36, 32, .6); font-weight: 500; padding: 0 24px 0 20px; }
.btn.primary:hover { color: var(--cta-ink); filter: brightness(1.12); }
.btn.big { min-height: 54px; border-radius: 27px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:disabled { opacity: .55; cursor: default; }
.link { display: inline-flex; align-items: center; gap: 8px; }
.link svg { width: 16px; height: 16px; }
.row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(24px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero h1 { font-size: clamp(3rem, 8vw, 5.25rem); line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 28px; }
.hero .lede { font-size: 19px; color: var(--ink-2); margin-bottom: 32px; }
.hero .kicker { font-size: 15px; font-weight: 600; color: var(--mist-ink); margin: 0 0 16px; }
.race-head { font-size: 20px; font-weight: 600; margin: 40px 0 16px; }
.hero .fine { font-size: 15px; color: var(--ink-4); margin: 24px 0 0; }

/* the script: a clip read as lines, what was cut struck out */
.script { margin: 0; background: var(--card); border-radius: 20px; padding: 28px 32px; box-shadow: var(--shadow); }
.script figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-4); padding-bottom: 14px; border-bottom: 1px solid var(--sand); margin-bottom: 10px; }
.script p { margin: 0; font-size: 20px; line-height: 1.9; }
.script .t { display: inline-block; min-width: 3em; font-size: 13px; color: var(--ink-4); margin-right: 10px; font-variant-numeric: tabular-nums; }
.script s { color: var(--gone); text-decoration: none; position: relative; border-radius: 4px; transition: color .3s ease; }
.script s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; border-radius: 1px; background: currentColor; transform-origin: left center; transition: transform .35s var(--ease-out); }
.mark { background: linear-gradient(var(--mist), var(--mist)) left bottom / 100% 3px no-repeat; transition: background-size .5s var(--ease-out); }
.script footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sand); font-size: 15px; color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--mist); flex-shrink: 0; }
.said { display: inline-flex; align-items: center; gap: 10px; }

/* motion (only with JS: <html class="motion"> is set in the head). The hero comes in once, then the script plays
   the edit: each cut is struck through, the label is underlined, the count appears; a struck word can be tapped back.
   Sections rise in as they scroll into view; the race bars fill at one speed, so each takes as long as its time says. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.motion .hero > div > * { animation: rise .6s var(--ease-out) both; }
.motion .hero > div > :nth-child(2) { animation-delay: 60ms; }
.motion .hero > div > :nth-child(3) { animation-delay: 120ms; }
.motion .hero > div > :nth-child(4) { animation-delay: 180ms; }
.motion .hero > div > :nth-child(5) { animation-delay: 240ms; }
.motion .hero .script { animation: rise .7s var(--ease-out) .2s both; }
.motion .script s:not(.struck) { color: var(--ink); }
.motion .script s:not(.struck)::after { transform: scaleX(0); }
.motion .script .mark:not(.on) { background-size: 0% 3px; }
.motion .script footer { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.motion .script footer.on { opacity: 1; transform: none; }
.script s[role="button"] { cursor: pointer; }
.script s[role="button"]:focus-visible { outline: 2px solid var(--mist); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .script s[role="button"]:hover { background: var(--sand); } }
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out) var(--rd, 0ms), transform .6s var(--ease-out) var(--rd, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .race .fill { clip-path: inset(0 100% 0 0); transition: clip-path var(--grow, .5s) linear .3s; }
.motion .race.in .fill { clip-path: inset(0 0 0 0); }
.motion .race .lane-note { opacity: 0; transition: opacity .4s ease calc(var(--grow, .5s) + .3s); }
.motion .race.in .lane-note { opacity: 1; }
/* the headline comes in word by word, the way the captions do; the last word stays in mist */
.kin .w { display: inline-block; clip-path: inset(-0.6em -0.2em 0 -0.2em); }
.kin .w > span { display: inline-block; }
.kin .last > span { color: var(--mist-ink); }
.motion .kin .w > span { transform: translateY(105%); transition: transform .7s var(--ease-out), color .35s ease; }
.motion .kin .w.in > span { transform: none; }
.motion .kin .w.now > span { color: var(--mist-ink); }
.motion .kin .w:not(.last):not(.now) > span { color: var(--ink); }
.motion .hero h1.kin { animation: none; }

/* the tape: a talk as bars. It sticks while you scroll past it, and the scroll plays the cut: the playhead runs and
   marks what goes, the cuts drop out and the rest closes up. Scrolling back plays it backwards. */
.tape { padding-top: clamp(24px, 4vw, 48px); }
.motion .tape { height: 240vh; }
.tape-stick { position: relative; }
.motion .tape-stick { position: sticky; top: max(12vh, 64px); }
.tape-say { position: relative; height: 1.4em; margin-bottom: 18px; }
.tape-say span { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.tape-say span.on { opacity: 1; transform: none; }
.tape-track { position: relative; height: clamp(110px, 16vw, 190px); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.bars { position: absolute; inset: 14px 20px; }
.bars i { position: absolute; left: 0; top: 50%; width: var(--bw, 4px); height: var(--h); margin-top: calc(var(--h) / -2); border-radius: 3px; background: var(--ink-3);
  transition: background-color .2s ease; will-change: transform; }
.bars i.g { background: var(--edge); }
.bars i.marked { background: var(--ember); }
.playhead { position: absolute; top: 10px; bottom: 10px; left: 20px; width: 2px; border-radius: 1px; background: var(--ink); }
.tape-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.tape-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--ink-3); }
.tape-legend i.g { background: var(--edge); }
.tape-legend i.m { background: var(--ember); }
.tape-note { margin-left: auto; color: var(--ink-4); }
@media (max-width: 760px) { .tape-note { margin-left: 0; flex-basis: 100%; } .bars { inset: 12px 12px; } }

/* what the AI puts in: each row shows its thing, live while it is on screen */
.showcase .lines li { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) minmax(0, 15em); align-items: center; }
@media (max-width: 860px) { .showcase .lines li { grid-template-columns: minmax(0, 1fr); } }
.spec { justify-self: end; display: flex; align-items: center; gap: 6px; min-height: 44px; font-style: normal; }
.spec i { font-style: normal; }
@media (max-width: 860px) { .spec { justify-self: start; margin-top: 6px; } }
.spec.subs { white-space: nowrap; background: #2B2420; color: #F4EEE3; padding: 6px 10px; border-radius: 12px; font-weight: 600; gap: 2px; }
.spec.subs i { padding: 2px 6px; border-radius: 7px; transition: background-color .15s ease, color .15s ease; }
.spec.subs i.now { background: var(--mist); color: #12312e; }
.spec.tag { flex-direction: column; align-items: flex-start; gap: 0; background: var(--card); border-left: 4px solid var(--mist); padding: 6px 14px; border-radius: 0 10px 10px 0; box-shadow: var(--shadow); line-height: 1.35;
  transition: clip-path .6s var(--ease-out), transform .6s var(--ease-out); }
.spec.tag b { font-size: 16px; }
.spec.tag i { font-size: 13px; color: var(--ink-3); }
.motion .spec.tag:not(.on) { clip-path: inset(0 100% 0 0); transform: translateX(-12px); }
.spec.num { font-weight: 600; color: var(--ink-2); gap: 8px; }
.spec.num b { font-family: var(--mark); font-size: 40px; line-height: 1; color: var(--mist-ink); font-variant-numeric: tabular-nums; min-width: 1.3em; text-align: right; }
.spec.stars { gap: 3px; font-size: 24px; color: #E7B53B; }
.spec.stars i { display: inline-block; transition: transform .35s var(--ease-out), opacity .25s ease, color .25s ease; }
.motion .spec.stars i:not(.on) { opacity: .25; color: var(--edge); transform: scale(.8); }

/* a band of what people make, running across */
.marquee { overflow: hidden; margin-top: clamp(48px, 8vw, 96px); border-block: 1px solid var(--line); padding: 10px 0; }
.mq { display: flex; width: max-content; gap: .6em; font-size: clamp(40px, 7vw, 92px); font-weight: 700; line-height: 1.35; white-space: nowrap; }
.mq span { color: transparent; -webkit-text-stroke: 1.5px var(--edge); }
.mq b { font-weight: 700; color: var(--ink); }
.mq > *::after { content: "·"; margin-left: .6em; color: var(--mist); -webkit-text-stroke: 0; }
.mq { will-change: transform; }

/* the three steps: big numbers that land */
.steps li::before { font-size: 44px; }
.motion .steps li.rv::before { display: inline-block; transform: scale(.6); opacity: 0; transition: transform .6s var(--ease-out) calc(var(--rd, 0ms) + 150ms), opacity .3s ease calc(var(--rd, 0ms) + 150ms); transform-origin: left bottom; }
.motion .steps li.rv.in::before { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  @keyframes appear { from { opacity: 0; } }
  .motion .hero > div > *, .motion .hero .script { animation-name: appear; }
  .motion .rv, .motion .script footer { transform: none; }
  .script s::after { transition: opacity .25s ease; }
  .motion .script s:not(.struck)::after { transform: none; opacity: 0; }
  .mark { transition: none; }
  .motion .kin .w > span { transform: none; transition: color .35s ease; }
  .motion .tape { height: auto; }
  .motion .tape-stick { position: relative; top: auto; }
  .motion .spec.tag:not(.on) { transform: none; }
  .motion .spec.stars i:not(.on) { transform: none; }
  .motion .steps li.rv::before { transform: none; }
}

/* three plain points under a rule, not cards */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.points strong { display: block; font-size: 17px; font-weight: 600; }
.points span { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* sections */
section { padding: clamp(48px, 8vw, 96px) 0 0; }
section > .intro { max-width: 680px; color: var(--ink-2); margin-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 72px); align-items: start; }

/* how it goes: a conversation, not numbered cards */
.chat { display: flex; flex-direction: column; gap: 14px; }
.say { max-width: 88%; padding: 14px 18px; border-radius: 18px; font-size: 16px; line-height: 1.65; }
.say.you { align-self: flex-end; background: var(--cta-bg); color: var(--cta-ink); border-bottom-right-radius: 6px; }
.say.agent { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.say.agent .who-said { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-4); margin-bottom: 4px; }

/* plain lists with a hairline, used instead of card grids */
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines strong { font-weight: 600; }
.lines span { color: var(--ink-3); }
.lines.stack li { grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* time to a finished clip, same brief, with and without the kit */
.race { margin: 0; background: var(--card); border-radius: 20px; padding: 28px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.race figcaption { font-size: 15px; line-height: 1.6; color: var(--ink-3); padding-bottom: 16px; border-bottom: 1px solid var(--sand); }
.lane { display: flex; flex-direction: column; gap: 8px; }
.lane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lane-head strong { font-weight: 600; font-size: 16px; }
.lane-head span { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.track { height: 12px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 6px; background: var(--edge); }
.fill.ours { background: var(--mist); min-width: 12px; }
.fill.open { background: repeating-linear-gradient(-45deg, var(--edge) 0 6px, transparent 6px 12px); }
.lane-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-4); }

ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin-bottom: 8px; }
ul.plain li::marker { color: var(--mist); }


/* compare */
.table-scroll { overflow-x: auto; background: var(--card); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--sand); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; font-weight: 600; color: var(--ink-4); }
tbody th { font-weight: 600; white-space: nowrap; }
td.ours { color: var(--ink); }
td.theirs { color: var(--ink-3); }
.compare { min-width: 640px; }

/* products and prices */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.offer { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.offer.quiet { box-shadow: inset 0 0 0 1px var(--line); }
.offer h3 { margin: 0; font-size: 20px; }
.offer .price { font-size: 34px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.offer .price small { font-size: 15px; font-weight: 400; color: var(--ink-4); margin-left: 6px; }
.offer .blurb { color: var(--ink-3); font-size: 15px; line-height: 1.65; }
.offer .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.offer .note { font-size: 14px; color: var(--ink-4); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.tag.ok .dot { background: var(--mist); }
.tag.wait .dot { background: var(--edge); }
.tag.bad { color: var(--ember); }
.tag.bad .dot { background: var(--ember); }
.loading { color: var(--ink-4); }

/* account */
.owned { display: flex; flex-direction: column; gap: 16px; }
.orders td, .orders th { white-space: nowrap; }

/* receipt */
.receipt { background: var(--card); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.receipt table { font-size: 16px; }
.receipt th { width: 10em; color: var(--ink-3); font-weight: 500; }
.receipt th, .receipt td { padding: 12px 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-4); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* closing call */
.closing { margin-top: clamp(56px, 9vw, 112px); padding: clamp(32px, 6vw, 56px); background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.closing h2 { margin: 0 0 8px; }
.closing p { margin: 0; color: var(--ink-3); }

.page-head { padding: clamp(24px, 5vw, 56px) 0 8px; }
.page-head p { color: var(--ink-2); max-width: 680px; }

footer.site { margin-top: clamp(56px, 9vw, 112px); padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-4);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .lines li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .script { padding: 20px; }
  .script p { font-size: 17px; }
  .nav nav { gap: 14px; font-size: 15px; }
  .nav nav .hide-sm { display: none; }
  .say { max-width: 100%; }
}

@media print {
  .nav, .no-print, #auth-area, footer.site { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; }
  .receipt { box-shadow: none; border: 1px solid #000; border-radius: 0; padding: 24px; background: #fff; }
}

/* how it works: three numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--mark); font-size: 28px; line-height: 1; color: var(--mist-ink); margin-bottom: 8px; }
.steps strong { font-size: 17px; font-weight: 600; }
.steps span { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* "ถามเรา": a quiet pill in the corner, the box opens above it */
.ask-open { position: fixed; right: 20px; bottom: 20px; z-index: 10; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow); }
.ask-open:hover { box-shadow: inset 0 0 0 1px var(--ink-3), var(--shadow); }
dialog.ask { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto 20px 20px auto; padding: 24px; border: 0; border-radius: 20px;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: auto; }
dialog.ask::backdrop { background: rgba(43, 36, 32, .25); }
dialog.ask h2 { font-size: 20px; margin: 0 40px 12px 0; }
dialog.ask p { margin: 0 0 12px; }
.ask-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--ink-3); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ask-close:hover { background: var(--sand); color: var(--ink); }
.ask textarea { display: block; width: 100%; margin: 0 0 8px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; }
.ask textarea:focus { outline: 2px solid var(--mist-ink); outline-offset: 1px; }
.ask textarea::placeholder { color: var(--ink-4); }
.ask-error { color: var(--ember); font-size: 15px; }
.ask-error a { text-decoration: underline; }
.ask-alt { margin: 12px 0 0 !important; }
dialog.ask.login-first { width: min(460px, calc(100vw - 32px)); margin: auto; }
.login-perks { margin: 0 0 16px; padding-left: 1.2em; }
.login-perks li { margin: 0 0 6px; }
.checkout-h { margin: 0 0 20px; }
.receipt.checkout h2 { font-size: 24px; margin: 0; }
.receipt.checkout .blurb { color: var(--ink-3); margin: 8px 0 16px; }
.receipt.checkout tr.total th, .receipt.checkout tr.total td { font-size: 20px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.checkout-action { margin-top: 24px; }
.checkout-action h3 { margin: 0 0 8px; }
.checkout-action .btn.big { margin: 4px 0 12px; }
.checkout-action p { margin: 0 0 10px; }
@media (max-width: 560px) {
  .ask-open { right: 16px; bottom: 16px; }
  dialog.ask { margin: auto 16px 16px; }
  footer.site { padding-bottom: 88px; } /* keep the last links clear of the pill */
}

/* the conversation, in the box and on the admin page */
.thread { max-height: 40dvh; overflow-y: auto; margin-bottom: 14px; }
.thread:empty { display: none; }
.thread .say { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; padding: 10px 14px; }
.ask-open.unread .dot { background: var(--ember); }
.ask-open.unread { font-weight: 600; }

/* admin inbox: people on the left, one conversation on the right */
.inbox { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
.inbox-list { border-top: 1px solid var(--line); }
.inbox-item { display: grid; gap: 2px; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.inbox-item.on { background: var(--card); }
.inbox-who { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-last { font-size: 14px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-thread:empty { display: none; }
.inbox-thread h2 { font-size: 20px; margin-bottom: 0; overflow-wrap: anywhere; }
.inbox-thread .thread { max-height: 55dvh; }
.reply textarea { display: block; width: 100%; margin: 0 0 8px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; }
.reply textarea:focus { outline: 2px solid var(--mist-ink); outline-offset: 1px; }
@media (max-width: 860px) { .inbox { grid-template-columns: minmax(0, 1fr); } }

/* install through the agent, on the account page */
.install-guide ol { margin: 0; padding-left: 1.4em; font-size: 15px; color: var(--ink-2); }
.install-prompt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.install-prompt code { flex: 1 1 260px; min-width: 0; background: none; padding: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 560px) { .tape-say { height: 2.7em; } }
.devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.devices li { padding: 10px 0; border-top: 1px solid var(--line); }
.devices li:first-child { border-top: 0; }
details .table-scroll { margin-top: 16px; }
details p strong { color: var(--ink); }

/* a platform not out yet (Mac Intel): shown, not pressable */
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* guides / articles */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ink-4); margin: 0 0 14px; }
.crumb span[aria-hidden="true"] { color: var(--edge); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-4); margin: 14px 0 0; }
.article section { padding: clamp(32px, 5vw, 56px) 0 0; }
.article h2 { margin: 0 0 .55em; }
.article h3 { margin: 1.4em 0 .45em; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); }
.callout { background: var(--card); border-left: 4px solid var(--mist); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 22px 0; box-shadow: inset 0 0 0 1px var(--line); }
.callout p:last-child { margin-bottom: 0; }
.prompt-box { background: var(--card); border-radius: 16px; padding: 18px 20px; margin: 18px 0; box-shadow: inset 0 0 0 1px var(--line); }
.prompt-box .prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--ink-4); }
.prompt-box .install-prompt { margin: 0; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-card { display: block; padding: 22px 0; text-decoration: none !important; }
.guide-card:hover h3 { color: var(--mist-ink); }
.guide-card .guide-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mist-ink); margin-bottom: 6px; }
.guide-card h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); margin: 0 0 6px; color: var(--ink); transition: color .2s ease; }
.guide-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-3); }
.related-guides { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.related-guides h2 { font-size: 1.25rem; margin-bottom: 12px; }

