/* TyraTag repo-owned overrides for the Claude Design export (public/tt-home).
 * scripts/sync-marketing.mjs never touches live/ and links this file after the export's CSS on
 * every marketing page and in the legal layout. After editing it, run
 * `node scripts/sync-marketing.mjs --restamp` so browsers fetch the new version. */

/* Page loader: just the Newton's cradle, no card behind it (Taran, 2026-11-21). */
.pl-box {
  background: none;
  box-shadow: none;
}

/* Real policy text has wide tables (sub-processors, cookies) that the design's sample did not.
 * A grid item is as wide as its content by default, so the column pushed the page sideways on a
 * phone; min-width:0 lets each table's own horizontal scroller do its job. */
.lg-body > * {
  min-width: 0;
}

/* A policy with no section headings (accessibility, legal notice, shipping) leaves the "On this
 * page" column hidden; without this its text would auto-place into that 200px column on desktop. */
.lg-toc[hidden] + .lg-doc {
  grid-column: -2 / -1;
}

/* One logo position on every page (Taran, 2026-11-21). The homepage nav sits inside .hero, so
 * its logo is inset by the hero's margin + padding; .nav.solo (every other page, the policies
 * too) used a flat 36px / 20px, which jumped the logo left and up on each page change. Same
 * inset here; the bottom padding keeps the bar's height, so nothing below it moves. */
.nav.solo {
  --nav-top: clamp(14px, 1.6vw, 22px);
  padding: var(--nav-top) calc(clamp(8px, 2vw, 28px) + clamp(14px, 2.6vw, 40px))
    calc(32px - var(--nav-top));
}
@media (max-width: 820px) {
  .nav.solo {
    padding-block: 14px;
  }
}
@media (max-width: 700px) {
  .nav.solo {
    padding-inline: 22px;
  }
}

/* Header logo and the footer wordmark, 5% smaller (Taran, 2026-11-21). */
.brand svg {
  width: 114px;
  height: 28.5px;
}
@media (max-width: 700px) {
  .brand svg {
    width: 98.8px;
    height: 24.7px;
  }
}
.foot-mark {
  width: calc((100% - 48px) * 0.95);
  max-width: 1330px;
}

/* Out of stock (live.js OUT_OF_STOCK): the design has no disabled button, so dim it. */
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Email forms built by live.js (Taran, 2026-11-21): the newsletter above every footer (.nl) and
 * "Email me when it's back" under the out-of-stock button (.rs). Both reuse the design's pill
 * (.code-bar) and buttons. */
.nl {
  padding: clamp(56px, 7vw, 100px) 0 clamp(36px, 4vw, 56px);
  text-align: center;
}
.nl-h {
  margin: 0;
  padding: 0 20px;
  font: 400 clamp(38px, 4.6vw, 64px) / 1.02 var(--serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.nl .sub {
  margin-top: 16px;
}
.ttf {
  width: min(520px, calc(100% - 32px));
  margin: 30px auto 0;
}
/* The pill's input is set for tag codes (upper case, tracked); an email is neither. */
.code-bar.ttf input {
  text-transform: none;
  letter-spacing: 0;
}
/* The pill styles every button as a 44px round arrow; this one carries a word. */
.code-bar.ttf .btn {
  width: auto;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
}
.ttf-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ttf-status {
  min-height: 1.4em;
  margin: 12px auto 0;
  padding: 0 16px;
  font-size: 14.5px;
  color: var(--ink2);
}
.ttf-fine {
  margin: 4px auto 0;
  padding: 0 16px;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray);
  text-wrap: balance;
}
.ttf-fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rs {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}
.rs .ttf {
  width: min(440px, 100%);
  height: 54px;
  margin-top: 6px;
  padding-left: 20px;
}
.rs .code-bar.ttf .btn {
  height: 40px;
}
.rs .ttf-status:empty {
  min-height: 0;
  margin: 0;
}
/* The US-storage line inside the Contact form card, just above the send button. */
.ttf-fine.fm-fine {
  margin: 0 0 14px;
  padding: 0;
  max-width: none;
  text-wrap: pretty;
}

/* The design gives .btn and .code-bar a display, which beats the [hidden] attribute. Same for the
 * forms' "Preview only" line (.fm-prev is display:table), which forms.js hides after a real send:
 * v6.css's global [hidden] rule covers it today; this keeps it so if an export drops that rule. */
.rs [hidden],
.nl [hidden],
.fm-done [hidden] {
  display: none !important;
}

/* No jump when the fonts arrive (Taran, 2026-11-24). Each page draws its text in a stand-in font
 * until Newsreader and Figtree download, then swaps (font-display: swap). The old stand-ins,
 * Georgia and system-ui, sit higher and set wider, so the homepage heading dropped ~7px and the
 * line under it slid ~12px when the real fonts landed (Safari swaps even on a return visit). These
 * stand-ins are Georgia and Arial given Newsreader's and Figtree's line metrics (the next/font
 * method; measured in Chrome and Safari's engine on 2026-11-24), so the swap moves nothing up or
 * down. Newsreader's letters widen as it grows up to 72px (its optical size), so one Georgia width
 * can't fit both a phone heading and a desktop one: the .h1 headings on screens 840px and wider
 * (72px+ type) get their own display stand-in. Measured on the homepage heading, lines now shift
 * sideways by 1px on phones, 2.5px on desktop, ~4px at the 840px handover. Where Georgia or Arial
 * is missing (Android), the browser skips to the old stand-ins.
 * The stacks below must match v6.css's --serif / --sans plus the stand-in: lib/marketing/
 * pages.test.ts fails if an export changes the fonts, so the numbers get re-measured, not kept. */
@font-face {
  font-family: 'Newsreader Fallback';
  src: local('Georgia');
  size-adjust: 96.93%;
  ascent-override: 75.83%;
  descent-override: 27.34%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Newsreader Display Fallback';
  src: local('Georgia');
  size-adjust: 100.46%;
  ascent-override: 73.16%;
  descent-override: 26.38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial');
  size-adjust: 99.79%;
  ascent-override: 95.2%;
  descent-override: 25.05%;
  line-gap-override: 0%;
}
:root {
  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Figtree', 'Figtree Fallback', system-ui, sans-serif;
}
@media (min-width: 840px) {
  .h1 {
    font-family: 'Newsreader', 'Newsreader Display Fallback', Georgia, serif;
  }
}

/* The homepage heading and the line under it rise a little into place on load (Taran,
 * 2026-11-24), like the other pages' headings but smaller: 12px, the brand's slow ease. Plain CSS,
 * so it starts with the first paint and needs no script. */
@keyframes tt-hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.hero > .h1,
.hero > .hero-sub {
  animation: tt-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero > .hero-sub {
  animation-delay: 0.08s;
}
@media (prefers-reduced-motion: reduce) {
  .hero > .h1,
  .hero > .hero-sub {
    animation: none;
  }
}
