/* Homepage sections below the benefits: feature rows, comparison, audiences, guides, closing CTA.
   Uses the tokens defined in home.css, so it must load after it. */
/* The two pastel bands (.tt-band): the feature rows on light sky, the newsletter on a deeper blue (owner,
   2026-11-19: craft.do's colored panels, in our blue). Each is lit like the hero: a soft white light at the top left
   and a bluer one at the right.
   Feature rows (#platform-features): the title sits in a sticky column on the left; every feature is a card in one
   column on the right, its picture on top and its h3 and copy under it (owner, 2026-11-19, after Mobbin: Square's
   same-side rows, Linear and Miro's picture-over-copy cards). Pictures are placeholders (feature-placeholder.svg)
   until the real images land. The last card is account access (#phone-access). */
.tt-band { --tt-band-color: var(--tt-band-sky); --tt-band-glow: rgb(190 208 246 / .5); padding-block: var(--tt-band-space); }
/* The guides (#resources) sit on a deep navy, like tokportal.com's dark band (owner, 2026-11-19: "a deeper blue"), flat
   with no lights, a white title and a soft blue-gray line. White 17:1, the line 7.4:1. The cards and arrows stay white. */
.tt-band.is-deep { padding-block: var(--tt-band-space); background: #0b1838; }
.tt-band.is-deep .tt-section-head h2 { color: #fff; }
.tt-band.is-deep .tt-section-head p { color: #9ba9c5; }
.tt-band {
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(45% 35% at 8% 10%, rgb(255 255 255 / .55), transparent 70%),
    radial-gradient(42% 40% at 94% 55%, var(--tt-band-glow), transparent 70%),
    var(--tt-band-color);
}
.tt-features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.tt-features > .tt-section-head { position: sticky; top: 120px; margin: 0; text-align: left; }
.tt-feature-list { display: grid; gap: 64px; }
.tt-feature { margin: 0; scroll-margin-top: 90px; }
.tt-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--tt-radius-card); box-shadow: 0 0 0 1px rgb(26 35 64 / .06), 0 24px 48px -32px rgb(40 70 160 / .28); }
.tt-feature h3 { margin: 28px 0 0; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--tt-ink); }
.tt-feature p { max-width: 52ch; margin: 12px 0 0; font-size: 16px; line-height: 1.65; letter-spacing: -.01em; color: var(--tt-band-text); }
.tt-feature-note { margin-top: 8px; font-size: 13px; line-height: 1.6; letter-spacing: 0; }
@media (max-width: 991px) {
  .tt-features { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tt-features > .tt-section-head { position: static; }
}
@media (max-width: 767px) {
  .tt-feature-list { gap: 48px; }
  .tt-feature img { border-radius: var(--tt-radius); }
  .tt-feature h3 { margin-top: 20px; font-size: 22px; }
}

/* Comparison: TikTornado's column is a raised white card that rises out of the table, 16px above and below it, with a
   blue ring and a soft blue shadow (owner, 2026-11-19: "make this column stand out like it's 3d"). The rest of the
   table is white (owner, 2026-11-19); the column stands out by its ring, shadow and overhang. .comparison-lift draws the card behind column 2's cells, which sit above it;
   its left and width match the colgroup (20% and 30%). The scroll box pads its top and bottom so the card isn't cut. */
/* The comparison section sits on a lighter blue than the page (owner, 2026-11-19), fading in and out at its top and
   bottom so no edge shows. */
#platform-comparison { background: linear-gradient(180deg, var(--tt-ground), #fbfbfd 22%, #fbfbfd 78%, var(--tt-ground)); }
.comparison-scroll { overflow-x: auto; padding-block: 24px 80px; margin-bottom: -56px; } /* room for the raised column's shadow, which the scroll box would otherwise crop (owner, 2026-11-19); the negative margin keeps the footnote where it was */
.comparison-inner { position: relative; min-width: 860px; }
.comparison-lift {
  position: absolute; z-index: 1; top: -16px; bottom: -16px; left: 20%; width: 30%; border-radius: 20px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 2px var(--tt-pop), 0 22px 44px -18px rgb(56 83 255 / .45), 0 12px 24px -12px rgb(26 35 64 / .25), 0 2px 4px rgb(26 35 64 / .08); /* reaches about 45px below, inside the scroll box's 80px, so it is never cut (owner, 2026-11-19) */
}
.comparison-scroll:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 4px; }
#platform-comparison table { width: 100%; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-card); border-collapse: separate; border-spacing: 0; background: #fff; table-layout: fixed; font: 15px/1.6 var(--tt-font); }
#platform-comparison .comparison-service { width: 20%; }
#platform-comparison .comparison-ours { width: 30%; }
#platform-comparison th, #platform-comparison td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tt-line-soft); }
#platform-comparison tr:last-child > * { border-bottom: 0; }
#platform-comparison thead th { vertical-align: middle; font-size: 15px; font-weight: 500; color: var(--tt-ink); }
#platform-comparison :is(th, td):nth-child(2) { position: relative; z-index: 2; background: none; border-bottom-color: var(--tt-line-soft); }
#platform-comparison td:nth-child(2) { color: var(--tt-ink); font-weight: 500; }
#platform-comparison tbody th { font-weight: 500; color: var(--tt-ink); }
#platform-comparison td { color: var(--tt-muted); }
.comparison-brand-logo { display: block; width: 136px; max-width: 100%; height: auto; }
.comparison-label { display: flex; align-items: flex-start; gap: 12px; }
.comparison-label svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--tt-ink); }
.comparison-value { display: flex; align-items: flex-start; gap: 10px; }
.comparison-status { box-sizing: border-box; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.comparison-status.is-positive { padding: 3px; border-radius: 50%; background: var(--tt-pop); color: #fff; }
td:not(:nth-child(2)) .comparison-status.is-positive { background: var(--tt-surface-2); color: var(--tt-muted); }
.comparison-status.is-negative, .comparison-status.is-neutral { color: var(--tt-faint); }
.tt-footnote { max-width: 860px; margin: 20px auto 0; font-size: 13px; line-height: 1.6; color: var(--tt-muted); text-align: center; }
.comparison-sr, .tt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
  .tt-footnote { text-align: left; }
  #platform-comparison th, #platform-comparison td { padding: 16px 18px; }
}

/* Audiences: segmented tabs over one white card. */
.tt-audience-tabs {
  display: flex; gap: 4px; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 auto 32px; padding: 4px;
  border-radius: var(--tt-radius); background: var(--tt-surface-2); overflow-x: auto; scrollbar-width: none;
}
.tt-audience-tabs button {
  flex: none; padding: 10px 20px; border: 0; border-radius: var(--tt-radius-sm); background: transparent; color: var(--tt-muted);
  font: 500 15px/1.4 var(--tt-font); cursor: pointer; transition: background-color .2s, color .2s;
}
.tt-audience-tabs button:hover { color: var(--tt-ink); }
.tt-audience-tabs button[aria-selected="true"] { background: #fff; color: var(--tt-ink); }
/* With JS, one white pill (owner, 2026-11-19: no ink-filled controls) slides between tabs instead (audience-tabs.js sets the insets). The edge in the direction
   of travel moves in 280ms, the trailing edge in 440ms, so the pill stretches and settles; no overshoot. */
.tt-audience-tabs { position: relative; }
.tt-audience-tabs::before {
  content: ''; position: absolute; top: var(--tt-pill-top, 4px); bottom: var(--tt-pill-bottom, 4px); left: var(--tt-pill-left, 0); right: var(--tt-pill-right, 100%);
  border-radius: var(--tt-radius-sm); background: #fff; box-shadow: 0 1px 2px rgb(26 35 64 / .1), 0 4px 10px -4px rgb(26 35 64 / .18); opacity: 0; pointer-events: none;
}
.tt-audience-tabs.is-ready::before { opacity: 1; transition: left .44s var(--tt-ease), right .28s var(--tt-ease), top .44s var(--tt-ease), bottom .28s var(--tt-ease); }
.tt-audience-tabs.is-ready[data-dir="back"]::before { transition: left .28s var(--tt-ease), right .44s var(--tt-ease), top .28s var(--tt-ease), bottom .44s var(--tt-ease); }
.tt-audience-tabs.is-ready button { position: relative; }
.tt-audience-tabs.is-ready button[aria-selected="true"] { background: transparent; transition: color .3s var(--tt-ease); }
.tt-audience-tabs button:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
/* Panel: copy, three points and the Get started on the left; on the right the audience's soft 3D picture
   (scripts/generate-guide-cards.mjs, audience-*.jpg). The points are a check and a short title each, no icon tiles (owner,
   2026-11-19: the icon tiles looked bad, then the hairline rows; now a check and a short title each). */
.tt-audience-panel {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 40px 40px 40px 52px; box-sizing: border-box;
  border: 1px solid var(--tt-line); border-radius: var(--tt-radius-card); background: #fff; box-shadow: 0 1px 2px rgb(26 35 64 / .04), 0 24px 48px -32px rgb(26 35 64 / .12);
}
.tt-audience-panel[hidden] { display: none !important; }
.tt-audience-panel:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 4px; }
.tt-audience-copy h3 { margin: 0 0 12px; font-size: 30px; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.tt-audience-copy p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; letter-spacing: -.01em; color: var(--tt-muted); }
.tt-audience-list { display: grid; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.tt-audience-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: 15.5px; font-weight: 400; line-height: 1.45; color: var(--tt-text); }
.tt-audience-list svg { flex: none; width: 18px; height: 18px; color: var(--tt-accent); } /* a thin stroke check, no filled circle (owner, 2026-11-19: "more professional") */
.tt-audience-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tt-radius-card); }
@media (max-width: 767px) {
  /* Tabs stacked and centered, one per row (owner, 2026-11-20); the pill slides vertically. */
  .tt-audience-tabs { flex-direction: column; width: 100%; overflow: visible; }
  .tt-audience-tabs button { text-align: center; }
  .tt-audience-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px; }
  .tt-audience-copy h3 { font-size: 26px; }
}

/* FAQ (#faq, after the audiences): on the page ground like its neighbours (owner, 2026-11-19: the full-width blue band
   was too loud). One column of questions between hairlines, after tokportal.com's list. Native
   <details> with a shared name, so one answer is open at a time and it works without JS. Where the browser supports
   ::details-content, the answer's height eases open and the text clears a short blur; elsewhere it opens at once.
   Motion brief in docs/homepage.md. */
.tt-inline-link { display: inline; color: var(--tt-ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; } /* a clear ink underline (owner, 2026-11-19) */
.tt-inline-link:hover { color: var(--tt-accent); text-decoration-color: currentColor; }
.tt-inline-link:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 3px; border-radius: 4px; }
/* Title and contact line on the left (sticky on desktop), the questions on the right. */
.tt-faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.tt-faq-layout > .tt-section-head { position: sticky; top: 120px; margin: 0; text-align: left; }
@media (max-width: 991px) {
  .tt-faq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tt-faq-layout > .tt-section-head { position: static; margin-bottom: 40px; }
}
.tt-faq { margin: 0; border-top: 1px solid var(--tt-line); interpolate-size: allow-keywords; }
.tt-faq-item { border-bottom: 1px solid var(--tt-line); }
.tt-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer;
  font: 500 18px/1.4 var(--tt-font); color: var(--tt-ink);
}
.tt-faq-item summary::-webkit-details-marker { display: none; }
.tt-faq-item summary:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 4px; border-radius: 8px; }
/* Plus that turns into a minus: two 1.5px strokes in a white tile with a hairline, the tile goes navy when open. */
.tt-faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--tt-radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--tt-line); color: var(--tt-ink); transition: background-color .3s var(--tt-ease), color .3s var(--tt-ease); }
.tt-faq-icon::before, .tt-faq-icon::after { content: ''; position: absolute; left: 10px; top: 15.25px; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transition: rotate .3s var(--tt-ease); }
.tt-faq-icon::after { rotate: 90deg; }
.tt-faq-item summary:hover .tt-faq-icon { background: var(--tt-surface-2); }
.tt-faq-item[open] .tt-faq-icon { background: var(--tt-pop); box-shadow: none; color: #fff; }
.tt-faq-item[open] summary:hover .tt-faq-icon { background: #5a70ff; } /* an open icon only lightens its blue on hover (owner, 2026-11-19) */
.tt-faq-item[open] .tt-faq-icon::after { rotate: 0deg; }
.tt-faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--tt-ease), content-visibility .35s allow-discrete; }
.tt-faq-item[open]::details-content { block-size: auto; }
/* With faq.js the height is animated by script in every browser, so the CSS transition steps aside. */
.tt-faq.is-scripted .tt-faq-item::details-content { transition: none; }
.tt-faq-a { opacity: 0; filter: blur(3px); transition: opacity .2s ease, filter .2s ease; }
.tt-faq-item[open] .tt-faq-a { opacity: 1; filter: none; transition: opacity .35s var(--tt-ease) .08s, filter .35s var(--tt-ease) .08s; }
.tt-faq-a p { max-width: 70ch; margin: 0; padding: 0 56px 26px 0; font-size: 16px; line-height: 1.65; color: var(--tt-muted); }
@media (max-width: 767px) {
  .tt-faq-item summary { padding: 20px 0; font-size: 16.5px; }
  .tt-faq-a p { padding-right: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-faq-icon, .tt-faq-icon::before, .tt-faq-icon::after, .tt-faq-item::details-content, .tt-faq-a, .tt-faq-item[open] .tt-faq-a { transition: none; }
}

/* Guides */
/* Guides carousel, after tokportal.com's feature rail (owner, 2026-11-19): a full-bleed track whose cards line up with
   the page's content edge, faded at both screen edges, drifting continuously and dragged with the mouse
   (guides-carousel.js). Under it, "Drag to explore" on the left and two round outline arrows on the right.
   Three cards per view on desktop, two on tablets, one and a peek on phones. Motion brief in docs/homepage.md. */
.tt-guides {
  --tt-guide-gap: 24px; --tt-guide-per-view: 3;
  display: flex; gap: var(--tt-guide-gap); overflow-x: auto; scrollbar-width: none; cursor: grab;
  margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tt-guides::-webkit-scrollbar { display: none; }
.tt-guides.is-dragging { cursor: grabbing; user-select: none; }
.tt-guides > .tt-guide { flex: 0 0 calc((100% - (var(--tt-guide-per-view) - 1) * var(--tt-guide-gap)) / var(--tt-guide-per-view)); }
.tt-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.tt-carousel-hint { font-size: 13px; line-height: 1.4; color: var(--tt-muted); }
.tt-carousel-arrows { display: flex; gap: 6px; }
.tt-carousel-arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--tt-line-strong); border-radius: 50%; background: #fff; color: var(--tt-ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.tt-carousel-arrow svg { width: 16px; height: 16px; }
.tt-carousel-arrow:hover { border-color: var(--tt-faint); }
.tt-carousel-arrow:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 3px; }
/* On the navy guides band: translucent outline circles with light arrows, like tokportal.com. */
.tt-band.is-deep .tt-carousel-hint { color: #9ba9c5; }
.tt-band.is-deep .tt-carousel-arrow { border-color: rgb(255 255 255 / .14); background: rgb(255 255 255 / .03); color: #e8edfa; }
.tt-band.is-deep .tt-carousel-arrow:hover { border-color: rgb(255 255 255 / .3); background: rgb(255 255 255 / .08); }
.tt-band.is-deep .tt-carousel-arrow:focus-visible { outline-color: #fff; }
.tt-guide {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-card); background: #fff;
  color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .3s var(--tt-ease);
}
.tt-guide:hover { border-color: var(--tt-line-strong); box-shadow: 0 16px 40px -24px rgb(26 35 64 / .2); }
.tt-guide-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tt-surface-2); }
.tt-guide-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-guide-copy { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.tt-guide-meta { font-size: 13px; line-height: 1.4; color: var(--tt-muted); }
.tt-guide h3 { margin: 8px 0 10px; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.tt-guide-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tt-muted); }
.tt-guide-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 15px; font-weight: 500; color: var(--tt-ink); }
@media (max-width: 991px) { .tt-guides { --tt-guide-gap: 16px; --tt-guide-per-view: 2; } .tt-guide-copy { padding: 20px; } }
@media (max-width: 767px) { .tt-guides { --tt-guide-per-view: 1.15; -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) {
  .tt-audience-tabs.is-ready::before, .tt-audience-tabs.is-ready[data-dir="back"]::before { transition: none; }
}
