/* ==========================================================================
   TIOO marketing design system — base (v3 "wide"): reset, type, buttons,
   eyebrows with a short accent rule, the wide container + 12-column grid +
   "spread" helpers (heading left / text right), full-width tinted bands,
   hairline feature rows, accessible tabs, reveal motion, pointer spotlight
   on cards. Loads after tokens.css. Vanilla CSS, mobile first.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-m);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; font-weight: 600; font-feature-settings: "ss01", "cv11"; }
h1, h2 { letter-spacing: var(--track-display); font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The wide container + 12-column grid ---------------------------- */
.mkt-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; }

/* a spread: heading on the left, paragraph (and whatever follows) on the
   right, like a magazine opening. Single column on phones. */
.spread { display: grid; gap: 18px 0; align-items: end; }
.spread > h2 { font-size: var(--fs-h2); text-wrap: balance; }
.spread > .eyebrow, .spread > .eyebrow-plain { grid-column: 1 / -1; }
.spread > p, .spread-copy > p { font-size: var(--fs-xl); color: var(--ink-3); line-height: 1.5; text-wrap: pretty; max-width: 56ch; }
.spread-copy { display: grid; gap: 18px; align-content: end; }
@media (min-width: 900px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 20px; }
  .spread > h2 { grid-column: 1 / 7; }
  .spread > p, .spread > .spread-copy { grid-column: 8 / 13; }
  .spread--tight > h2 { grid-column: 1 / 6; }
  .spread--tight > p, .spread--tight > .spread-copy { grid-column: 7 / 13; }
}
.spread + .spread-body { margin-top: 48px; }
@media (min-width: 900px) { .spread + .spread-body { margin-top: 64px; } }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---- Buttons: square-ish, 48 / 54px, solid ink or hairline --------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: var(--radius);
  font-weight: 500; font-size: 16px; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #26282f; border-color: #26282f; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-lg { --h: 54px; padding: 0 24px; font-size: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26282f; }
.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover { background: #e9e9ec; border-color: #e9e9ec; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; }
.btn .arrow { transition: transform var(--dur-1) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.play-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.btn-primary .play-dot, .btn-on-dark .play-dot { background: #22c58b; }

/* ---- Section scaffolding + full-width bands ------------------------- */
.section { padding: 56px 0; }
@media (min-width: 600px) { .section { padding: var(--sp-8) 0; } }
.section-tight { padding: var(--sp-7) 0; }
@media (min-width: 900px) { .section { padding: var(--sp-9) 0; } .section-tight { padding: 80px 0; } }
.section-alt { background: var(--bg-2); }
.band-blue { background: var(--band-blue); }
.band-warm { background: var(--band-warm); }
/* calm apricot: the money band (pricing); body text on it uses the darker ink */
.band-price { background: var(--band-price); }
.band-price .spread > p, .band-price .price-note { color: var(--ink-2); }
.band-price .btn-secondary { background: #fff; }
.band-price .price-grid { border-color: var(--band-price-line); }
.band-price .price-grid > .price { border-color: var(--band-price-line); }
.section + .section:not(.section-alt):not(.dark):not(.band-blue):not(.band-warm):not(.band-price) { border-top: 1px solid var(--line); }
/* Two bands of the same colour next to each other would show two full
   paddings of empty colour; close the gap and mark the break with a line. */
.band-blue + .band-blue, .band-warm + .band-warm, .band-price + .band-price { padding-top: 0; }
.band-blue + .band-blue > .mkt-container, .band-warm + .band-warm > .mkt-container, .band-price + .band-price > .mkt-container { border-top: 1px solid var(--line); padding-top: var(--sp-8); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* eyebrow: short accent rule + tiny spaced uppercase + optional number */
.eyebrow, .eyebrow-plain {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1;
}
.eyebrow::before, .eyebrow-plain::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.eyebrow .num { color: var(--ink-4); font-weight: 500; letter-spacing: .08em; }
.eyebrow .dot { display: none; }

.section-head { max-width: 900px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); text-wrap: balance; }
.section-head .eyebrow + h2, .section-head .eyebrow-plain + h2 { margin-top: 22px; }
.section-head p { margin-top: 18px; font-size: var(--fs-xl); color: var(--ink-3); max-width: 58ch; text-wrap: pretty; line-height: 1.5; }
.section-head.center p { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .section-head { margin-bottom: 64px; } }

.copy h2 { font-size: var(--fs-h2-s); text-wrap: balance; }
.copy .eyebrow + h2, .copy .eyebrow-plain + h2 { margin-top: 20px; }
.copy > p { margin-top: 18px; font-size: var(--fs-xl); color: var(--ink-3); line-height: 1.5; }
.checks { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 12px; font-size: var(--fs-m); color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.checks svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 5px; }

/* hairline feature rows with an arrow (Cloudbeds-style list): each row is
   a link to the feature page; tappable on phones (56px+) */
.feature-list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.feature-list li { border-bottom: 1px solid var(--line); }
.feature-list a, .feature-list .row { display: grid; grid-template-columns: 36px 1fr 24px; gap: 16px; align-items: start; padding: 18px 0; color: inherit; transition: color var(--dur-1); min-height: 56px; }
.feature-list .ic { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; background: #fff; }
.feature-list .ic svg { width: 17px; height: 17px; }
.feature-list b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: var(--fs-l); letter-spacing: -0.01em; }
.feature-list p { color: var(--ink-3); font-size: var(--fs-m); line-height: 1.5; }
.feature-list .go { width: 24px; height: 24px; color: var(--ink-3); margin-top: 4px; transition: transform var(--dur-1) var(--ease), color var(--dur-1); }
.feature-list .go svg { width: 18px; height: 18px; }
.feature-list a:hover .go { transform: translateX(4px); color: var(--ink); }
.feature-list a:hover .ic { border-color: var(--ink); }
@media (max-width: 599px) { .feature-list a, .feature-list .row { grid-template-columns: 32px 1fr 20px; gap: 12px; padding: 16px 0; } .feature-list .ic { width: 32px; height: 32px; } }

.actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: stretch; }
.actions.center { justify-content: center; }
/* phones: two buttons side by side, sharing the width */
@media (max-width: 539px) {
  .actions > .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }
  .actions > .btn-lg { --h: 52px; }
  .actions > .btn > svg:last-child { display: none; }
}
.note-row { margin-top: 16px; font-size: var(--fs-s); color: var(--ink-3); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.note-row.center { justify-content: center; }
.note-row span { display: inline-flex; align-items: center; gap: 6px; }
.note-row span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin-right: 18px; }
.note-row svg { width: 13px; height: 13px; color: var(--ink-4); flex: none; }
.text-link { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link svg { width: 14px; height: 14px; transition: transform var(--dur-1); }
.text-link:hover { border-color: var(--ink); }
.text-link:hover svg { transform: translateX(3px); }

/* ---- Tabs (accessible: real buttons with role=tab, home.js) ----------
   A hairline row with an underline on the open tab; on phones it is a
   horizontally scrollable segmented control (no page scroll sideways). */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 40px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 14px 18px 16px; border: 0; background: none; cursor: pointer; font-size: var(--fs-m); font-weight: 500; color: var(--ink-3); white-space: nowrap; scroll-snap-align: start; min-height: 48px; transition: color var(--dur-1); }
.tab:first-child { padding-left: 2px; }
.tab::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.tab:first-child::after { left: 0; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -3px; }
.tab-panels { display: grid; }
.tab-panel { grid-area: 1 / 1; min-width: 0; }
.tab-panel[hidden] { display: none; }
html.js-anim .tab-panel { animation: tab-in .4s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 899px) {
  .tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-bottom: 0; gap: 8px; margin-bottom: 28px; }
  .tab { padding: 0 16px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 15px; }
  .tab:first-child { padding-left: 16px; }
  .tab::after { display: none; }
  .tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* ---- Reveal on scroll: short, straight, no bounce ------------------- */
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
.reveal { transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
html.reduced .reveal { opacity: 1; transform: none; transition: none; }

/* ---- Pointer spotlight: a 1px border that lights up under the cursor,
   plus a faint inner wash (site.js sets --mx / --my) ------------------- */
.spot { position: relative; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.spot::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .07), transparent 55%);
}
.spot::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}
.spot > * { position: relative; z-index: 1; }
html.reduced .spot::before, html.reduced .spot::after { display: none; }

/* ---- Dark band (one per page): near-black with a faint grid + noise -- */
.dark { background: var(--dark); color: #fff; position: relative; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 85%);
}
.dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
.dark > .mkt-container { position: relative; z-index: 1; }
.dark .eyebrow, .dark .eyebrow-plain { color: var(--on-dark-2); }
.dark .eyebrow .num { color: var(--on-dark-3); }
.dark .eyebrow::before, .dark .eyebrow-plain::before { background: var(--on-dark-accent); }
.dark .section-head p, .dark .copy > p, .dark .spread > p { color: var(--on-dark-2); }
.dark .text-link { color: #fff; border-color: rgba(255,255,255,.3); }
.dark .text-link:hover { border-color: #fff; }

/* ---- Reduced motion: everything static ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
