/* TalkMerlin site. Monochrome: paper, ink and warm greys, no accent colour. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #EBE9E1;
  --paper-2: #F5F4F0;
  --ink: #1F1C1B;
  --grey-1: #4C423D;
  --grey-2: #746861;
  --grey-3: #A69B92;
  --line: #D9D6CE;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Film grain (SVG noise), laid over the hero photo, the earth tiles, the clay panel and the proof photos */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(31, 28, 27, .08), 0 18px 40px -16px rgba(31, 28, 27, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; line-height: 1.06; letter-spacing: -0.02em; margin: 0; font-variation-settings: 'opsz' 96; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- Type helpers ---------- */
.label, .card-num, .footnote, .msg-who { font-family: var(--mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-1); }
.hero-title { font-size: clamp(48px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 300; }
.intro-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; }
.service-title { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 400; }
.service-body { font-size: 16px; color: var(--grey-1); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--grey-1); max-width: 56ch; }
.section-head { display: grid; gap: 18px; max-width: 920px; margin-bottom: clamp(40px, 5vw, 72px); }

/* ---------- Themes ---------- */
[data-theme="dark"] { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .label, [data-theme="dark"] .lead, [data-theme="dark"] .hero-sub, [data-theme="dark"] .msg-who { color: var(--grey-3); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(235, 233, 225, .4); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(235, 233, 225, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { background: var(--paper); border-bottom-color: var(--line); }
.site-header.is-dark { color: var(--paper); }
.site-header.is-dark.is-scrolled { background: rgba(31, 28, 27, .92); border-bottom-color: rgba(235, 233, 225, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-bubble { fill: var(--paper); transition: fill .3s var(--ease); }
.is-dark .brand-bubble, [data-theme="dark"] .brand-bubble { fill: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; font-weight: 400; }
.nav-panel { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a, .link-login { font-size: 15px; text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"], .link-login:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 20px; padding-left: 24px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 25%, transparent); }
.btn { line-height: 1; }
.site-header .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.site-header.is-dark .btn-primary { background: var(--paper); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.is-open .nav-toggle-bar { background: transparent; }
.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-panel { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.is-open { background: var(--paper); color: var(--ink); }
  .site-header.is-open .brand-bubble { fill: var(--paper); }
  .site-header.is-open .btn-primary { background: var(--ink); color: var(--paper); }
  .is-open .nav-panel { display: flex; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { padding: 14px 0; font-size: 20px; font-family: var(--serif); border-bottom: 1px solid var(--line); }
  .header-actions { padding: 20px 0 0; border: 0; justify-content: space-between; }
  .site-header .btn { min-height: 44px; }
}

/* No JS: the header cannot follow the sections, so it scrolls away with the page and
   takes the dark styling when the page opens on a dark section (Home hero). */
html:not(.js) .site-header { position: absolute; }
html:not(.js) body:has(> main > :first-child[data-theme="dark"]) .site-header { color: var(--paper); }
html:not(.js) body:has(> main > :first-child[data-theme="dark"]) .site-header .brand-bubble { fill: var(--ink); }
html:not(.js) body:has(> main > :first-child[data-theme="dark"]) .site-header .btn-primary { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
/* Full-bleed photo (CMS image) under a left + bottom ink haze and a still film grain.
   Copy sits bottom-left, the cycling chat sits in a frosted glass card bottom-right. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 30%; }
.hero-haze { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(31, 28, 27, .6) 0%, rgba(31, 28, 27, 0) 55%), linear-gradient(180deg, rgba(31, 28, 27, 0) 35%, rgba(31, 28, 27, .3) 60%, rgba(31, 28, 27, .75) 100%); }
.hero-haze::after { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .22; mix-blend-mode: overlay; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 96px); align-items: end; padding-top: 140px; padding-bottom: clamp(56px, 7vw, 96px); }
.hero-copy { display: grid; gap: 28px; }
.hero-title { max-width: 12ch; }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.hero .hero-sub { color: rgba(245, 244, 240, .88); }

/* Hero chat: frosted glass over the photo; visitor bubbles paper, your replies ink */
.hero-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 340px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(31, 28, 27, .22); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.msg { max-width: 86%; display: grid; gap: 6px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.msg p { padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.42; }
.msg-visitor { align-self: flex-start; }
.msg-visitor p { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-agent { align-self: flex-end; text-align: right; }
.msg-agent p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; text-align: left; }
.hero .msg-who { font-size: 11px; color: rgba(245, 244, 240, .8); }
.msg-status { align-self: flex-start; max-width: none; }
.msg-status .msg-who { display: none; }
.msg-status p { display: flex; align-items: center; gap: 10px; padding: 6px 0 0; background: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
/* Status dot: the "replied" signal, as on the approved look board */
.msg-status p::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #9fd49a; box-shadow: 0 0 0 4px rgba(159, 212, 154, .2); }
.msg.is-pending { opacity: 0; transform: translateY(8px); }
html:not(.js) [data-convo="b"] { display: none; }

/* Tablets and phones: one column, the glass card drops below the copy; a stronger bottom haze keeps the copy readable */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 112px; }
  .hero-chat { min-height: 0; }
  .hero-haze { background: linear-gradient(90deg, rgba(31, 28, 27, .45) 0%, rgba(31, 28, 27, 0) 70%), linear-gradient(180deg, rgba(31, 28, 27, .15) 0%, rgba(31, 28, 27, .5) 35%, rgba(31, 28, 27, .85) 100%); }
}

/* ---------- Works on ---------- */
.works { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.works-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: center; }
.works-note { grid-column: 2; font-size: 14px; color: var(--grey-1); }
/* Platform marquee: two copies of the list in one track; moving the track by half its width loops
   seamlessly. Transform only, fixed row height, so nothing shifts. Edges fade out with a mask. */
.marquee { overflow: hidden; border-radius: var(--radius); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; -webkit-mask-image: none; mask-image: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.works-list { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
/* Each item carries its own right gap, so the seam between the two copies matches every other gap */
.works-list li { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-right: 44px; white-space: nowrap; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.01em; color: var(--grey-1); }
.works-list img { flex: none; width: 22px; height: 22px; }
/* WooCommerce's mark is a wide bubble (about 4.6:1), so it gets its own size. */
.works-list img[src$="woocommerce.svg"] { width: 74px; height: 16px; }
@media (max-width: 900px) {
  .works-inner { grid-template-columns: minmax(0, 1fr); }
  .works-note { grid-column: 1; }
  .works-list li { padding-right: 32px; }
}
/* Reduced motion: no loop; one copy wraps into a static centred block */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .works-list { flex: 1; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
  .works-list[aria-hidden="true"] { display: none; }
  .works-list li { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 600px) {
  .works-list li { height: 36px; padding: 0 10px; gap: 8px; font-size: 18px; }
  .works-list img { width: 18px; height: 18px; }
  .works-list img[src$="woocommerce.svg"] { width: 64px; height: 14px; }
}

/* ---------- Why cards ---------- */
.why, .inbox, .compare, .privacy { padding: var(--section) 0; }
.inbox, .compare { padding-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: grid; align-content: start; gap: 12px; }
/* Earth tiles (B2): clay, sage and sea mesh gradients with grain, each holding a small HTML piece of the product */
.tile { position: relative; isolation: isolate; aspect-ratio: 4 / 3.3; margin-bottom: 12px; padding: 26px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.grain::after { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.earth .t1 { background: radial-gradient(90% 80% at 20% 15%, #ECC9AD 0%, transparent 55%), radial-gradient(80% 90% at 85% 90%, #9A5B40 0%, transparent 60%), #C88A6A; }
.earth .t2 { background: radial-gradient(80% 70% at 80% 20%, #E1E4D2 0%, transparent 55%), radial-gradient(90% 80% at 15% 90%, #56634D 0%, transparent 60%), #9AA68B; }
.earth .t3 { background: radial-gradient(85% 75% at 25% 20%, #D6E2E4 0%, transparent 55%), radial-gradient(80% 80% at 85% 85%, #3F5563 0%, transparent 60%), #7D96A2; }
.frag { position: relative; z-index: 1; width: min(100%, 300px); padding: 14px; border-radius: 10px; background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; transition: transform .6s var(--ease); }
.card:hover .frag { transform: translateY(-4px); }
.frag .label { font-size: 11px; }
.frag pre { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 11.5px/1.5 var(--mono); color: var(--grey-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; background: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.mail { display: grid; gap: 4px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.mail strong { font-weight: 600; }
.mail small { font-size: 12px; color: var(--grey-1); }
.bubbles { display: grid; gap: 8px; }
.bub { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.38; }
.bub-in { background: var(--paper); border-bottom-left-radius: 4px; }
.bub-out { margin-left: auto; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 12px; font-size: 13px; }
.kv dt { margin: 0; }
.kv dd { margin: 0; font-family: var(--mono); color: var(--grey-1); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Inbox demo: the dark app as an HTML mockup (board D1 + D2) ----------
   Also the design spec for the app's dark rework. Flat colours only: no gradients, no glow.
   Every box has a fixed size, so the live updates (main.js section 8) never move the page. */
.app {
  --app-bg: #1F1C1B;       /* window, list, thread */
  --app-bg-2: #171514;     /* rail, details column, reply box */
  --app-bg-3: #2A2624;     /* selected row, visitor bubbles, chips */
  --app-line: #2E2A28;     /* hairlines */
  --app-mute: var(--grey-3);
  --app-soft: #D7D3CA;     /* secondary text that still needs weight (paths, site names) */
  --clay: #C88A6A; --sage: #9AA68B; --sea: #7D96A2; /* B2 earth, flat */
  display: grid; grid-template-columns: 64px minmax(0, 1fr); height: 600px;
  border: 1px solid var(--app-line); border-radius: 14px; overflow: hidden;
  background: var(--app-bg); color: var(--paper); box-shadow: var(--shadow);
  font-size: 13.5px; line-height: 1.45;
}
.app [hidden] { display: none !important; } /* the views and threads below set their own display */
.app :focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
/* Resets at zero specificity (:where), so the component rules below always win */
:where(.app) button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
:where(.app) p { margin: 0; }
.app-note { margin-top: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); }

/* Country tiles and site dots: flat earth colours */
.app-av { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--av); color: #fff; font: 500 12px/1 var(--mono); }
.av-1 { --av: #9C6A52; } .av-2 { --av: #6F7B62; } .av-3 { --av: #56717E; } .av-4 { --av: #8E7756; } .av-5 { --av: #87605A; }
.app-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--app-mute)); }
.app-dot.clay { --c: var(--clay); } .app-dot.sage { --c: var(--sage); } .app-dot.sea { --c: var(--sea); }

/* Rail: logo + the two view buttons */
.app-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; background: var(--app-bg-2); border-right: 1px solid var(--app-line); }
.app-logo { width: 30px; height: 30px; margin-bottom: 10px; }
.app-nav { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--app-mute); }
.app-nav:hover { background: var(--app-bg-3); color: var(--paper); }
.app-nav[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.app-nav svg { width: 19px; height: 19px; }

/* Shared bits: view title, online status, site filter pills */
.app-title { font: 350 26px/1.1 var(--serif); letter-spacing: -.02em; }
.app-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; background: rgba(154, 166, 139, .16); color: #E1E4D2; font-size: 12px; line-height: 1; }
.app-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.app-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--app-line); border-radius: 99px; color: var(--app-mute); font-size: 12px; line-height: 1.2; }
.app-pill.is-on { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Inbox view: list | thread | visitor details */
.app-inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 250px; min-height: 0; }
.app-list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--app-line); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px; }
.app-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--app-line); color: var(--app-mute); font-size: 13px; }
.app-tabs span { padding: 10px 0; }
.app-tabs .is-on { color: var(--paper); font-weight: 600; box-shadow: inset 0 -2px var(--paper); }
.app-tabs em { margin-left: 4px; font: 500 11px/1 var(--mono); }
.app-convs { margin: 0; padding: 0; list-style: none; }
.app-conv { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--app-line); }
.app-conv:hover { background: rgba(42, 38, 36, .6); }
.app-conv[aria-current="true"] { background: var(--app-bg-3); box-shadow: inset 3px 0 var(--paper); }
.app-conv:focus-visible { outline-offset: -2px; }
.app-row { display: block; min-width: 0; }
.app-r1 { display: flex; justify-content: space-between; gap: 8px; }
.app-r1 strong { font-weight: 600; }
.app-r1 time { flex: none; min-width: 4ch; text-align: right; font: 500 11px/1.6 var(--mono); color: var(--app-mute); } /* fixed box: "4m" to "now" moves nothing */
.app-r2 { display: block; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--app-mute); }
.app-conv.is-unread .app-r2 { color: var(--paper); font-weight: 500; }
.app-r3 { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 500 11px/1.2 var(--mono); color: var(--app-mute); }
.app-r3 span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Thread: header, messages (fixed-height scroll box, top-aligned, so new lines never push anything), reply box */
.app-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--app-line); }
.app-head strong { display: block; font-size: 15px; font-weight: 600; }
.app-head small { display: block; font: 500 11px/1.5 var(--mono); color: var(--app-mute); }
.app-acts { flex: none; display: flex; gap: 8px; }
.app-act { padding: 7px 11px; border: 1px solid var(--app-line); border-radius: 7px; font-size: 12.5px; line-height: 1.2; }
.app-act.is-pri { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.app-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.app-day { align-self: center; margin-bottom: 4px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--app-mute); }
.app-bub { flex: none; max-width: 72%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.app-bub.app-in { align-self: flex-start; background: var(--app-bg-3); border: 1px solid var(--app-line); border-bottom-left-radius: 4px; }
.app-bub.app-out { align-self: flex-end; background: var(--paper); color: var(--ink); border-bottom-right-radius: 4px; }
.app-bub.is-new { animation: app-in .35s var(--ease); }
.app-via { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--app-mute); }
.app-typing { flex: none; align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border: 1px solid var(--app-line); border-radius: 14px; border-bottom-left-radius: 4px; background: var(--app-bg-3); }
.app-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-mute); animation: app-blink 1.2s infinite; }
.app-typing i:nth-child(2) { animation-delay: .2s; }
.app-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes app-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes app-blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.app-composer { padding: 0 20px 18px; }
.app-canned { display: flex; gap: 6px; margin-bottom: 8px; }
.app-canned span { padding: 5px 9px; border-radius: 7px; background: var(--app-bg-3); font: 500 11.5px/1 var(--mono); color: var(--app-mute); }
.app-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--grey-1); border-radius: 12px; background: var(--app-bg-2); color: var(--app-mute); }
.app-box kbd { padding: 3px 5px; border-radius: 4px; background: var(--app-bg-3); font: 500 11px/1 var(--mono); color: var(--app-mute); }

/* Visitor details column */
.app-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 20px 18px; border-left: 1px solid var(--app-line); background: var(--app-bg-2); }
.app-card { display: grid; gap: 22px; }
.app-who { display: flex; align-items: center; gap: 12px; }
.app-who .app-av { width: 46px; height: 46px; border-radius: 12px; font-size: 14px; }
.app-who strong { display: block; font-size: 15px; font-weight: 600; }
.app-who small { font-size: 12px; color: var(--app-mute); }
.app-h { margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--app-mute); }
.app-journey { display: grid; gap: 12px; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--app-line); list-style: none; font: 400 12.5px/1.3 var(--mono); }
.app-journey li { position: relative; overflow-wrap: anywhere; }
.app-journey li::before { content: ''; position: absolute; left: -18px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #5A514B; }
.app-journey li.is-now::before { background: var(--paper); }
.app-journey time { display: block; font-size: 11px; color: var(--app-mute); }
.app-links { margin-top: auto; display: grid; gap: 8px; font-size: 12.5px; color: var(--app-mute); }
.app-links span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey-1); }

/* Live visitors view: fixed six rows, fixed column widths (text changes never move a column) */
.app-live { min-width: 0; padding: 22px 26px; overflow: hidden; }
.app-live-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; }
.app-live-top > .app-dot { width: 9px; height: 9px; }
.app-count { color: var(--app-mute); font-size: 13px; }
.app-live-top .app-pills { margin-left: auto; padding: 0; }
.app-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.app-table th { padding: 0 10px 10px; border-bottom: 1px solid var(--app-line); text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--app-mute); }
.app-table th:nth-child(1) { width: 20%; } .app-table th:nth-child(2) { width: 28%; } .app-table th:nth-child(3) { width: 15%; }
.app-table th:nth-child(4) { width: 11%; } .app-table th:nth-child(5) { width: 15%; } .app-table th:nth-child(6) { width: 11%; }
.app-table td { height: 58px; padding: 0 10px; border-bottom: 1px solid var(--app-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.app-table .app-av { width: 30px; height: 30px; display: inline-grid; margin-right: 10px; border-radius: 8px; font-size: 11px; vertical-align: middle; }
.app-path { font: 400 12.5px/1 var(--mono); color: var(--app-soft); }
.app-pages, .app-time { font: 400 12.5px/1 var(--mono); color: var(--app-mute); }
.app-bars { display: inline-flex; align-items: flex-end; gap: 2px; width: 34px; height: 16px; margin-right: 8px; vertical-align: middle; }
.app-bars i { width: 4px; height: 7px; border-radius: 1px; background: #8A817A; }
.app-bars i:nth-child(2) { height: 11px; } .app-bars i:nth-child(3) { height: 9px; } .app-bars i:nth-child(4) { height: 13px; } .app-bars i:nth-child(5) { height: 10px; }
.app-bars i:last-child { height: 16px; background: var(--paper); }
.app-site { display: inline-flex; align-items: center; gap: 7px; color: var(--app-soft); font-size: 12.5px; }
.app-say { display: inline-block; padding: 7px 11px; border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.app-say.is-ghost { border: 1px solid var(--app-line); background: transparent; color: var(--app-mute); }
.app-table tr.is-out td { opacity: 0; transform: translateX(14px); }        /* a visitor leaves */
.app-table tr.is-in td { opacity: 0; transform: translateX(-14px); transition: none; } /* start point of an arrival */

/* Phones and small tablets: rail on top, list above thread, no details column, visitors as compact rows */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); height: auto; border-radius: 12px; font-size: 13px; }
  .app-rail { flex-direction: row; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--app-line); }
  .app-logo, .app-r3 { display: none; }
  .app-inbox { grid-template-columns: minmax(0, 1fr); }
  .app-list { border-right: 0; border-bottom: 1px solid var(--app-line); }
  .app-list .app-pills, .app-info, .app-act:not(.is-pri), .app-live-top .app-pills { display: none; }
  .app-top { padding: 14px 14px 10px; }
  .app-tabs { padding: 0 14px; }
  .app-conv { padding: 11px 14px; }
  .app-title { font-size: 22px; }
  .app-head { padding: 12px 14px; }
  .app-msgs { flex: none; height: 416px; padding: 16px 14px; } /* fits a finished demo chat at 390px and up */
  .app-bub { max-width: 86%; font-size: 13.5px; }
  .app-composer { padding: 0 14px 14px; }
  .app-box { font-size: 12.5px; }
  .app-live { padding: 16px 14px 6px; }
  .app-live-top { margin-bottom: 6px; }
  .app-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* kept for screen readers */
  .app-table, .app-table tbody { display: block; }
  .app-table tr { display: grid; grid-template-columns: 112px 52px minmax(0, 1fr) auto; /* fixed widths: ticking numbers move nothing */
    align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--app-line); }
  .app-table tr:last-child { border-bottom: 0; }
  .app-table td { height: auto; padding: 0; border: 0; }
  /* Line 1: visitor + action. Line 2: page. Line 3: pages viewed, time on site, site */
  .app-table td:nth-child(1) { grid-area: 1 / 1 / 2 / 4; }
  .app-table td:nth-child(6) { grid-area: 1 / 4; }
  .app-table td:nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  .app-table td:nth-child(3) { grid-area: 3 / 1; }
  .app-table td:nth-child(4) { grid-area: 3 / 2; }
  .app-table td:nth-child(5) { grid-area: 3 / 3 / 4 / -1; justify-self: end; }
}

/* ---------- Comparison ---------- */
.compare { padding-top: var(--section); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.compare-table thead th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); padding-top: 16px; padding-bottom: 16px; }
.compare-table thead th:nth-child(2) { color: var(--ink); }
.compare-table tbody th { font-weight: 400; color: var(--grey-1); width: 30%; }
.compare-table td:nth-child(2) { color: var(--ink); font-weight: 500; width: 35%; }
.compare-table td:nth-child(3) { color: var(--grey-1); }
.compare-table tbody tr { transition: background-color .2s; }
.compare-table tbody tr:hover { background: var(--paper-2); }
.footnote { margin-top: 20px; text-transform: none; letter-spacing: .02em; color: var(--grey-1); }

/* ---------- Statement ---------- */
.statement { padding: var(--section) 0; border-top: 1px solid var(--line); }
.statement-text { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -0.025em; max-width: 20ch; margin-left: auto; margin-right: clamp(0px, 4vw, 80px); }
@media (max-width: 900px) { .statement-text { margin: 0; } }

/* ---------- Privacy ---------- */
.privacy { background: var(--paper-2); margin-bottom: var(--section); }
.privacy-inner { display: grid; gap: 22px; max-width: 900px; }
.privacy .actions { margin-top: 10px; }

/* ---------- Proof slider ---------- */
/* Photo tiles (3:4), one per site running TalkMerlin: native sideways scroll with snap, arrows step one tile (main.js) */
.proof { padding: 0 0 var(--section); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 320px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.qt { position: relative; isolation: isolate; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--grey-1); color: var(--paper); scroll-snap-align: start; }
.qt img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.qt:hover img { transform: scale(1.03); }
/* Ink fades at the top and bottom so the name and the details read on any photo */
.qt::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 28, 27, .6), rgba(31, 28, 27, 0) 40%, rgba(31, 28, 27, 0) 55%, rgba(31, 28, 27, .82)); }
.qt figcaption { position: absolute; inset: 0; z-index: 1; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.qt-name { font: 300 34px/1 var(--serif); letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
.qt-meta { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; }
.qt-meta span:last-child { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.arrows { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--grey-1); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s; }
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); }
/* No JS: the arrows cannot scroll, the slider still scrolls by touch, trackpad and keyboard */
html:not(.js) .arrows { display: none; }

/* ---------- Closing CTA ---------- */
/* Clay mesh-gradient panel (B2) with ink text; the header turns light over it */
.cta { padding: 0 0 var(--section); }
.cta-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 56px; align-items: end; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); border-radius: 14px; overflow: hidden; color: var(--ink);
  background: radial-gradient(60% 90% at 10% 10%, #ECC9AD 0%, transparent 60%), radial-gradient(45% 70% at 100% 100%, rgba(141, 90, 69, .55) 0%, transparent 60%), radial-gradient(40% 60% at 60% 40%, #D9A283 0%, transparent 70%), #C88A6A; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-copy { display: grid; gap: 22px; }
.cta .intro-title { font-size: clamp(40px, 5.4vw, 80px); font-weight: 300; max-width: 14ch; }
.cta .lead { color: var(--ink); max-width: 46ch; }
.cta .actions { margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(31, 28, 27, .3); }
.fact { display: grid; align-content: start; gap: 8px; }
.fact dt { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.02em; }
.fact dd { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
@media (max-width: 900px) { .cta-panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 14px; } .fact { grid-template-columns: 112px 1fr; align-items: baseline; gap: 12px; } .fact dt { white-space: nowrap; } }

/* ---------- Newsletter ---------- */
.newsletter { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; }
.newsletter-inner > div { display: grid; gap: 16px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); font: 15px var(--sans); }
.newsletter-row input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.newsletter-msg { margin-top: 12px; font-size: 15px; }
.newsletter-msg.is-error { color: #8a2a1a; }
@media (max-width: 900px) { .newsletter-inner { grid-template-columns: 1fr; } .newsletter-row { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 7vw, 96px) 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 32px; }
.footer-brand { display: grid; align-content: start; gap: 16px; max-width: 34ch; }
.footer-tagline { color: var(--grey-1); font-size: 15px; }
.footer-note { color: var(--grey-1); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--grey-1); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); margin-bottom: 4px; }
.footer-sub { margin-top: 18px; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); font-size: 13px; color: var(--grey-1); }
.footer-bottom p { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; min-height: 70svh; display: flex; align-items: center; padding: 140px 0 80px; text-align: center; }
.notfound-inner { display: grid; justify-items: center; gap: 22px; }
.notfound .lead { margin: 0 auto; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, .msg.is-pending { opacity: 1; transform: none; }
}

/* Phones: fit all three comparison columns instead of hiding the third behind a sideways scroll */
@media (max-width: 600px) {
  .compare-table { min-width: 0; }
  .compare-table th, .compare-table td { padding: 14px 10px 14px 0; font-size: 14px; }
}

/* ---------- Inner pages (Features, Pricing, Orbit) ---------- */
/* Light page head: the fixed header sits over paper, so the title starts below it */
.page-head { padding: calc(68px + clamp(56px, 8vw, 112px)) 0 clamp(64px, 8vw, 120px); }
.page-head-inner { display: grid; justify-items: start; gap: 22px; } /* no max-width here: it is also the .container */
.page-title { max-width: 1000px; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 300; }
.page-head .actions { margin-top: 8px; }
.band { padding: 0 0 var(--section); }
[id] { scroll-margin-top: 84px; } /* anchors such as /#inbox land below the fixed header */
.chip.is-line { background: transparent; border: 1px solid currentColor; }
.card > .chip { justify-self: start; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--grey-1); }
.more { margin-top: clamp(32px, 4vw, 48px); }
.link-arrow { font-weight: 500; text-underline-offset: 4px; }
.link-arrow::after { content: ' \2192'; }

/* Features: six earth tiles in two rows, and the fragments the Home does not have */
.cards.rows { row-gap: clamp(56px, 6vw, 88px); }
.mini { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mini li { position: relative; display: grid; gap: 1px; padding: 7px 10px 7px 24px; border-radius: 8px; background: var(--paper); font-size: 12.5px; }
.mini li::before { content: ''; position: absolute; left: 10px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #8D5A45; }
.mini li:nth-child(2)::before { background: #56634D; }
.mini strong { font-weight: 600; }
.mini span { color: var(--grey-1); }
.fields { display: grid; gap: 6px; margin: 10px 0; }
.fields span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--grey-1); }
.fields .is-tall { min-height: 52px; }
.mini-btn { display: inline-block; padding: 7px 14px; border-radius: 7px; background: var(--ink); color: var(--paper); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chips .chip { text-transform: none; letter-spacing: 0; }

/* Lists of points under a rule: privacy model, coming features */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
.points-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.points li { display: grid; align-content: start; gap: 12px; padding-top: 20px; border-top: 1px solid var(--ink); }
.points .chip { justify-self: start; }
@media (max-width: 1100px) { .points-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .points, .points-4 { grid-template-columns: 1fr; } }

/* Pricing: two plan cards (Pro in ink), tick lists, the Orbit note, FAQ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 20px; padding: clamp(28px, 3.5vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.plan.is-pro { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.plan-name { font-size: clamp(28px, 2.6vw, 36px); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan-price strong { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.plan-price span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); }
.plan-sum { color: var(--grey-1); }
.plan.is-pro .plan-price span, .plan.is-pro .plan-sum, .plan.is-pro .is-coming { color: var(--grey-3); }
.plan.is-pro .chip { color: var(--ink); }
.plan.is-pro .chip.is-line { color: var(--grey-3); }
.plan .btn { justify-self: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); } /* a tick */
.ticks .is-coming::before { top: .5em; left: 3px; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; transform: none; } /* a ring: not in the plan yet */
.ticks .chip { margin-left: 6px; vertical-align: 1px; }
.ticks-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.orbit-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 3vw, 40px); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 14px; }
.orbit-note .service-body { margin-top: 6px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font: 400 20px/1 var(--mono); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 24px; color: var(--grey-1); }
@media (max-width: 900px) {
  .plans, .faq-grid { grid-template-columns: 1fr; }
  .ticks-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .orbit-note { grid-template-columns: 1fr; justify-items: start; } }
@media (max-width: 560px) { .ticks-cols { grid-template-columns: 1fr; } }

/* Orbit: setting switch and billing line fragments */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--paper); }
.switch-row strong { display: block; font-weight: 600; }
.switch-row small, .frag-note { display: block; font: 500 11px/1.5 var(--mono); color: var(--grey-1); }
.switch-state { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.switch { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--ink); }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; }
.plan-line strong { font: 350 26px/1 var(--serif); }

/* ---------- Legal pages (Privacy, Terms, DPA, Sub-processors) ---------- */
/* Side nav of the legal pages (the footer's legal links) next to a readable text column */
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--ink); }
.legal-nav a { padding: 6px 0; color: var(--grey-1); text-decoration: none; }
.legal-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 14px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
.prose h3 { margin: 32px 0 8px; font: 600 17px/1.4 var(--sans); }
.prose p, .prose li { color: var(--grey-1); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--grey-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.legal-table { width: 100%; margin: 8px 0 24px; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { padding-top: 0; border-bottom-color: var(--ink); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); }
.legal-table tbody th { width: 30%; font-weight: 600; }
.legal-table td { color: var(--grey-1); }
.legal-table .where { width: 28%; font: 400 13px/1.5 var(--mono); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 12px; }
}
/* Phones: each row becomes a small block (name, what it does, where), no sideways scroll */
@media (max-width: 600px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .legal-table tbody th, .legal-table td, .legal-table .where { width: auto; padding: 0; border: 0; }
}

/* ---------- Blog ---------- */
/* Post cards: each cover is its own flat earth-palette SVG (so a hidden future post never shifts the
   colours of the others), with the site's grain over it for the matte look */
.post-card { color: inherit; text-decoration: none; }
.post-card .tile, .post-cover { padding: 0; aspect-ratio: 1200 / 630; background: var(--paper-2); }
.post-card .tile img, .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .service-title { text-decoration: underline; text-underline-offset: 4px; }
.post-card.pending { display: none; }
.cards.post-grid { row-gap: clamp(56px, 6vw, 88px); }
.blog-empty { max-width: none; padding: 28px 0 0; border-top: 1px solid var(--ink); }
.post-grid:not(:empty) + .blog-empty { display: none; }
.post-grid:not(:empty) + .blog-empty.is-shown { display: block; }
/* Phones: compact rows with a square thumbnail of the cover. Keeps the page title as the LCP element
   (a full-width cover would take it, and an image LCP waits for every font in Lighthouse's estimate). */
@media (max-width: 600px) {
  .cards.post-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .post-card { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; }
  .post-card > :not(.tile) { grid-column: 2; }
  .post-card .tile { grid-row: 1 / span 4; aspect-ratio: 1; margin: 0; border-radius: 10px; }
  .post-card .service-title { font-size: 21px; }
  .post-card .service-body { font-size: 15px; }
}

/* ---------- Blog post ---------- */
/* Title and short answer, the cover, then a side column (back link, a note) next to the article */
.post-head .label a { color: inherit; text-underline-offset: 3px; }
.post-title { max-width: 22ch; font-size: clamp(40px, 5.4vw, 80px); }
.post-intro { max-width: 62ch; color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); }
.post-cover { max-width: 1120px; margin: 0 0 clamp(48px, 6vw, 88px); }
.post-grid-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.post-aside { position: sticky; top: 96px; display: grid; justify-items: start; gap: 14px; padding-top: 16px; border-top: 1px solid var(--ink); }
.post-aside-note { max-width: 30ch; font-size: 15px; color: var(--grey-1); }
.link-back { font-weight: 500; text-underline-offset: 4px; }
.link-back::before { content: '\2190  '; }
.post-main { min-width: 0; max-width: 70ch; }
.post-body { max-width: none; }
.post-body p, .post-body li { font-size: 18px; line-height: 1.65; }
.prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid #8D5A45; }
.prose blockquote p { margin: 0 0 10px; font: 350 clamp(21px, 2vw, 26px)/1.3 var(--serif); color: var(--ink); }
.prose blockquote footer { font-size: 15px; color: var(--grey-1); }
.prose .note { padding: 18px 22px; border-radius: 10px; background: var(--paper-2); }
.prose table { width: 100%; margin: 20px 0 28px; border-collapse: collapse; font-size: 15px; }
.prose caption { padding-bottom: 12px; text-align: left; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); }
.prose th, .prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { border-bottom-color: var(--ink); font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); }
.prose tbody th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--grey-1); }
.post-faq { margin-top: clamp(56px, 7vw, 96px); }
.post-faq .intro-title { margin-bottom: 24px; font-size: clamp(30px, 3vw, 44px); }
.related { margin-top: clamp(56px, 7vw, 96px); padding-top: 20px; border-top: 1px solid var(--ink); }
.related h2 { margin-bottom: 18px; font-size: clamp(24px, 2.2vw, 30px); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-list a { display: grid; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); text-decoration: none; }
.related-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.related-list strong { font: 400 20px/1.2 var(--serif); }
@media (max-width: 900px) {
  .post-grid-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { display: none; } /* phones and tablets: the breadcrumb and the CTA panel already link back */
}
/* Phones: each table row becomes a small block (the row name, then each cell with its column label) */
@media (max-width: 600px) {
  .post-body p, .post-body li { font-size: 17px; }
  .related-list { grid-template-columns: 1fr; }
  .prose thead { display: none; }
  .prose tr { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .prose tbody th, .prose td { padding: 0; border: 0; }
  .prose td[data-label]::before { content: attr(data-label) ': '; font-weight: 600; color: var(--ink); }
}
