/* ============================================================================
   TradeYoke landing — public site styles. Everything references --ty-* tokens
   (tokens.css) so the two platform themes and the per-trade palettes apply.
   ============================================================================ */

:root {
  /* The product's own type stack (themes/trusty.css + graft.css): neutral Helvetica, so the site reads as the app. */
  --ty-font-base: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ty-font-display: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --reveal-duration: 640ms;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page past the screen: Android Chrome lets a finger drag the whole page sideways when any
   element pokes out. `clip`, not `hidden` — hidden on body would make it a scroll container and break the sticky header. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ty-font-base);
  font-size: var(--ty-font-size-md);
  line-height: var(--ty-leading-body);
  color: var(--ty-color-text);
  background: var(--ty-color-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ty-color-primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--ty-font-display);
  font-weight: var(--ty-weight-bold);
  line-height: var(--ty-leading-heading);
  letter-spacing: var(--ty-tracking-tight);
  margin: 0 0 var(--ty-space-md);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.25rem, 2.4vw + 1.4rem, 3.9rem); font-weight: var(--ty-weight-bold); }
h2 { font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.6rem); }
h3 { font-size: var(--ty-font-size-lg); font-weight: var(--ty-weight-semibold); }
p { margin: 0 0 var(--ty-space-lg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--ty-focus-ring); border-radius: var(--ty-radius-control); }
h1:focus, h2:focus { outline: none; }

.container { width: min(100% - 2 * var(--ty-space-xl), var(--ty-container)); margin-inline: auto; }
.container.narrow, .narrow { max-width: var(--ty-container-narrow); }
.center { text-align: center; }
.muted { color: var(--ty-color-text-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ty-color-primary); color: #fff; padding: 8px 14px; border-radius: var(--ty-radius-control); z-index: 1000; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: var(--ty-font-size-xs);
  font-weight: var(--ty-weight-semibold);
  letter-spacing: var(--ty-tracking-wide);
  text-transform: uppercase;
  color: var(--ty-color-primary-strong);
  margin: 0 0 var(--ty-space-md);
}
.eyebrow--onink { color: var(--ty-color-primary-onink); }
.eyebrow a { color: inherit; }
.lead { font-size: clamp(1.05rem, .35vw + 1rem, 1.25rem); color: var(--ty-color-text-muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--ty-radius-pill);
  font-weight: var(--ty-weight-semibold);
  font-size: var(--ty-font-size-sm);
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard) var(--ty-ease), background var(--ty-motion-standard) var(--ty-ease), color var(--ty-motion-standard);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--ty-motion-standard) var(--ty-ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 26px; font-size: var(--ty-font-size-md); }
.btn--sm { padding: 8px 14px; font-size: var(--ty-font-size-sm); }
.btn--primary { background: var(--ty-color-primary); color: var(--ty-color-primary-contrast); box-shadow: var(--ty-shadow-primary); }
.btn--primary:hover { background: var(--ty-color-primary-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ty-color-text); border-color: var(--ty-color-border-strong); }
.btn--ghost:hover { border-color: var(--ty-color-primary); color: var(--ty-color-primary-strong); }
.btn--onink { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn--onink:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--ghost-onink { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-onink:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--ty-z-nav);
  border-bottom: 1px solid transparent;
  transition: transform var(--ty-motion-standard) var(--ty-ease), border-color var(--ty-motion-standard), box-shadow var(--ty-motion-standard);
}
/* The frosted glass lives on a layer behind the header, not on the header itself: backdrop-filter on an element
   makes it the containing block for its position:fixed children, which squeezed the phone menu (.main-nav, fixed
   to the viewport) into the header's own 68px and clipped every link below the first. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--ty-color-surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--ty-color-border); box-shadow: var(--ty-shadow-sm); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__row { display: flex; align-items: center; gap: var(--ty-space-lg); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ty-font-display); font-weight: var(--ty-weight-bold); font-size: 1.2rem; color: var(--ty-color-text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
/* The mark is the app's bare yoke (64×48, no tile), so it keeps its own 4:3 shape; an uploaded CMS logo keeps the square tile. */
.brand__mark { display: inline-flex; }
.brand__mark svg { width: 34px; height: 25.5px; }
.brand__logo { width: 32px; height: 32px; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: var(--ty-space-xl); margin-left: auto; }
.main-nav > a { color: var(--ty-color-text); font-weight: var(--ty-weight-medium); font-size: var(--ty-font-size-sm); position: relative; padding: 6px 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--ty-color-primary); border-radius: 2px; transition: right var(--ty-motion-standard) var(--ty-ease); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.is-current::after { right: 0; }
.main-nav > a:hover { text-decoration: none; }
.main-nav__signin { color: var(--ty-color-text-muted) !important; }
.main-nav > a.btn { padding: 9px 16px; color: #fff; }
.site-header__tools { display: flex; align-items: center; gap: var(--ty-space-sm); }
.theme-toggle, .nav-toggle {
  width: 40px; height: 40px; border-radius: var(--ty-radius-pill); border: 1px solid var(--ty-color-border);
  background: var(--ty-color-surface); color: var(--ty-color-text); display: inline-grid; place-items: center; cursor: pointer;
  transition: background var(--ty-motion-standard), transform var(--ty-motion-standard) var(--ty-ease);
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--ty-color-surface-2); transform: rotate(-8deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__moon, [data-theme="graft"] .theme-toggle__sun { display: none; }
[data-theme="graft"] .theme-toggle__moon { display: block; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; } /* shown as inline-flex on phones, where place-items no longer centres the bars */
.nav-toggle__bar { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--ty-motion-standard) var(--ty-ease), opacity var(--ty-motion-standard); }
.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-pill); cursor: pointer; font-size: var(--ty-font-size-xs); font-weight: var(--ty-weight-semibold); background: var(--ty-color-surface); }
.lang summary::-webkit-details-marker { display: none; }
.lang__flag svg { width: 20px; height: 14px; border-radius: 2px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); box-shadow: var(--ty-shadow-lg); z-index: var(--ty-z-dropdown); animation: pop var(--ty-motion-standard) var(--ty-ease); }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--ty-radius-control); color: var(--ty-color-text); font-size: var(--ty-font-size-sm); }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--ty-color-primary-soft); text-decoration: none; color: var(--ty-color-primary-strong); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 68px 0 0 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: var(--ty-space-xl); background: var(--ty-color-surface); border-top: 1px solid var(--ty-color-border);
    /* Closed, the menu waits hidden in place (not parked off the right edge, which widened the page on phones) and
       out of the tab order; open, it fades and drops in. Visibility flips after the fade on close, at once on open. */
    visibility: hidden; opacity: 0; transform: translateY(-8px); overflow: auto;
    transition: opacity var(--ty-motion-standard) var(--ty-ease), transform var(--ty-motion-standard) var(--ty-ease), visibility 0s linear var(--ty-motion-standard);
  }
  .site-header.is-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav > a { font-size: 1.15rem; padding: 14px 8px; border-bottom: 1px solid var(--ty-color-border-soft); }
  .main-nav > a::after { display: none; }
  .main-nav .btn { margin-top: var(--ty-space-lg); justify-content: center; padding: 15px; font-size: 1rem; }
}

/* ---- Sections ---------------------------------------------------------------- */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }
.section--alt { background: var(--ty-color-surface-2); }
.section--ink { background: var(--ty-color-ink); color: var(--ty-color-text-onink); }
.section--ink .lead { color: var(--ty-color-text-onink-muted); }
.section--ink .eyebrow { color: var(--ty-color-primary-onink); }
.section--surface { background: var(--ty-color-surface); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-foot { margin-top: clamp(24px, 3vw, 40px); }
.section-foot p { margin-top: var(--ty-space-md); font-size: var(--ty-font-size-sm); }
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(16px, 2vw, 32px); }
.page-head--blog { background: var(--ty-color-surface-2); padding-bottom: clamp(32px, 4vw, 56px); }
.tag-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--ty-space-lg); }

/* ---- Reveal-on-scroll ------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--reveal-duration) var(--ty-ease), transform var(--reveal-duration) var(--ty-ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---- Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ty-color-ink); color: var(--ty-color-text-onink);
  padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 104px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero__blob--1 { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: var(--ty-color-primary); }
.hero__blob--2 { width: 40vw; height: 40vw; right: -10vw; bottom: -18vw; background: var(--ty-domain-gardening); animation-delay: -9s; opacity: .35; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%); }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.12); } }
.hero__grid-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--text .hero__grid-layout { grid-template-columns: 1fr; }
.hero--text .hero__copy { max-width: 780px; }
.hero h1, .hero .h1 { color: #fff; margin-bottom: var(--ty-space-lg); }
.hero .accent { background: linear-gradient(92deg, var(--ty-color-primary-onink), #fff 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--ty-color-text-onink-muted); font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--ty-space-xl) 0 var(--ty-space-md); }
.hero__note { font-size: var(--ty-font-size-sm); color: var(--ty-color-text-onink-muted); margin: 0; }
@media (max-width: 900px) {
  .hero__grid-layout { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin-inline: auto; }
}

/* ---- Animated app art (hero) ---------------------------------------------- */
.app-art { position: relative; padding: 8px 0 56px 0; perspective: 1400px; }
.app-art__window {
  background: var(--ty-color-surface); color: var(--ty-color-text); border-radius: var(--ty-radius-panel);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden; transform: rotateY(-8deg) rotateX(4deg); transform-origin: 60% 50%;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-8px); } }
.app-art__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ty-color-surface-2); border-bottom: 1px solid var(--ty-color-border); font-size: 11px; color: var(--ty-color-text-muted); }
.app-art__dots { display: inline-flex; gap: 5px; }
.app-art__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ty-color-border-strong); }
.app-art__url { flex: 1; background: var(--ty-color-surface); border-radius: 6px; padding: 4px 10px; border: 1px solid var(--ty-color-border); }
.app-art__sync { display: inline-flex; align-items: center; gap: 6px; color: var(--ty-color-success-ink); font-weight: 600; }
.app-art__sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ty-color-success); box-shadow: 0 0 0 0 var(--ty-color-success); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ty-color-success) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.app-art__body { display: grid; grid-template-columns: 44px 1fr; min-height: 300px; }
.app-art__side { background: var(--ty-color-surface-2); border-right: 1px solid var(--ty-color-border); padding: 12px 10px; display: flex; flex-direction: column; gap: 12px; }
.app-art__side-item { height: 22px; border-radius: 6px; background: var(--ty-color-surface-3); }
.app-art__side-item.is-active { background: var(--ty-color-primary); }
.app-art__diary { padding: 12px; }
.app-art__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 10px; font-weight: 600; color: var(--ty-color-text-muted); margin-bottom: 8px; text-align: center; }
.app-art__days .is-today { color: var(--ty-color-primary-strong); }
.app-art__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 240px; }
.app-art__col { position: relative; background: repeating-linear-gradient(to bottom, transparent 0 23px, var(--ty-color-border-soft) 23px 24px); border-radius: 6px; }
.app-art__col.is-today { background-color: var(--ty-color-primary-softer); outline: 1px dashed color-mix(in srgb, var(--ty-color-primary) 40%, transparent); }
.job {
  position: absolute; left: 3px; right: 3px; top: calc(var(--d) * 24px); height: calc(var(--h) * 24px - 4px);
  border-radius: 6px; padding: 5px 7px; font-size: 9.5px; font-weight: 600; line-height: 1.25; color: #fff; overflow: hidden;
  box-shadow: var(--ty-shadow-sm); transform: translateX(-12px); opacity: 0; animation: slideIn .6s var(--ty-ease) forwards; animation-delay: calc(var(--d) * 90ms + 300ms);
}
.job--wc { background: var(--ty-domain-window-cleaning); }
.job--gd { background: var(--ty-domain-gardening); }
.job--done { opacity: .75; }
.job--done b { float: right; }
.job--live { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ty-domain-window-cleaning); animation: slideIn .6s var(--ty-ease) forwards, glow 2.4s ease-in-out infinite; animation-delay: 660ms, 1.4s; }
@keyframes slideIn { to { transform: none; opacity: 1; } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.app-art__phone {
  position: absolute; right: -6px; bottom: 0; width: 34%; max-width: 190px; aspect-ratio: 9 / 16;
  background: #0b131b; border-radius: 22px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
  animation: floatPhone 7s ease-in-out infinite;
}
@keyframes floatPhone { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
.app-art__phone-screen { background: var(--ty-color-surface); color: var(--ty-color-text); border-radius: 16px; height: 100%; padding: 26px 10px 10px; display: flex; flex-direction: column; gap: 7px; font-size: 9.5px; overflow: hidden; }
.app-art__phone-title { font-weight: 700; font-size: 11px; margin-bottom: 4px; }
.app-art__phone-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; background: var(--ty-color-surface-2); }
.app-art__phone-row i { width: 8px; height: 8px; border-radius: 50%; }
.app-art__phone-row b { margin-left: auto; font-weight: 600; color: var(--ty-color-text-muted); }
.app-art__phone-row.is-done { background: var(--ty-color-success-soft); }
.app-art__phone-row.is-done b { color: var(--ty-color-success-ink); }
.app-art__phone-offline { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: var(--ty-color-warning-ink); background: var(--ty-color-warning-soft); padding: 6px 8px; border-radius: 8px; }
.app-art__phone-offline i { width: 7px; height: 7px; border-radius: 50%; background: var(--ty-color-warning); animation: pulse 2s infinite; }
.app-art__toast {
  position: absolute; left: -8px; bottom: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--ty-color-surface); color: var(--ty-color-text); border-radius: 12px; box-shadow: var(--ty-shadow-lg); font-size: 12px; line-height: 1.2;
  animation: toastIn .7s var(--ty-ease) 1.6s both;
}
.app-art__toast small { display: block; color: var(--ty-color-text-muted); font-size: 10.5px; margin-top: 2px; }
.app-art__toast-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ty-color-success); color: #fff; display: grid; place-items: center; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__art--image img { border-radius: var(--ty-radius-panel); box-shadow: var(--ty-shadow-lg); }

/* ---- Stats band -------------------------------------------------------------- */
.stats-band--ink { background: var(--ty-color-ink); color: var(--ty-color-text-onink); }
.stats-band--alt { background: var(--ty-color-surface-2); }
.stats-band__title { text-align: center; margin-bottom: var(--ty-space-xl); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--ty-space-lg); }
.stat { text-align: center; padding: var(--ty-space-lg); border-radius: var(--ty-radius-card); }
.stats-band--ink .stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.stat__n { display: block; font-family: var(--ty-font-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ty-color-primary-onink); }
.stats-band--alt .stat__n, .stats-band--surface .stat__n { color: var(--ty-color-primary-strong); }
.stat__l { display: block; margin-top: 8px; font-size: var(--ty-font-size-sm); color: var(--ty-color-text-onink-muted); }
.stats-band--alt .stat__l, .stats-band--surface .stat__l { color: var(--ty-color-text-muted); }

/* ---- Feature grid ---------------------------------------------------------- */
.grid { display: grid; gap: var(--ty-space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.feature {
  position: relative; padding: var(--ty-space-xl); background: var(--ty-color-surface); border: 1px solid var(--ty-color-border);
  border-radius: var(--ty-radius-card); transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard), border-color var(--ty-motion-standard);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow-md); border-color: color-mix(in srgb, var(--ty-color-primary) 35%, var(--ty-color-border)); }
/* A tile with a picture: the screenshot runs edge to edge across the top of the card. */
.feature--shot { overflow: hidden; }
.feature__shot {
  display: block; width: calc(100% + 2 * var(--ty-space-xl)); max-width: none; height: auto; aspect-ratio: 16 / 10;
  margin: calc(-1 * var(--ty-space-xl)) calc(-1 * var(--ty-space-xl)) var(--ty-space-md);
  object-fit: cover; object-position: top left; border-bottom: 1px solid var(--ty-color-border); background: var(--ty-color-surface-alt, var(--ty-color-surface));
}
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ty-color-primary-soft); color: var(--ty-color-primary-strong); margin-bottom: var(--ty-space-md); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.stretch { position: absolute; inset: 0; }
.section--ink .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--ink .feature p { color: var(--ty-color-text-onink-muted); }
.section--ink .feature h3 { color: #fff; }

/* ---- Steps ---------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ty-space-lg); counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--ty-space-lg); align-items: start; padding: var(--ty-space-xl); background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); }
.step__num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ty-font-display); font-weight: 800; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--ty-color-primary), var(--ty-color-primary-ink)); box-shadow: var(--ty-shadow-primary); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ty-color-text-muted); }

/* ---- Trades ------------------------------------------------------------------- */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--ty-space-lg); }
.trade-card {
  position: relative; padding: var(--ty-space-xl); border-radius: var(--ty-radius-card); background: var(--ty-color-surface);
  border: 1px solid var(--ty-color-border); border-top: 4px solid var(--ty-color-primary); overflow: hidden;
  transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard);
}
.trade-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--ty-color-primary-soft); opacity: .9; transition: transform var(--ty-motion-standard) var(--ty-ease); }
.trade-card:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow-md); }
.trade-card:hover::before { transform: scale(1.4); }
.trade-card > * { position: relative; }
.trade-card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ty-color-primary); color: #fff; margin-bottom: var(--ty-space-md); }
.trade-card p { color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.trade-card__meta { margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--ty-radius-pill); font-size: var(--ty-font-size-xs); font-weight: var(--ty-weight-semibold); background: var(--ty-color-surface-2); color: var(--ty-color-text-muted); border: 1px solid var(--ty-color-border); }
.chip--sm { padding: 3px 9px; }
.chip--active, a.chip:hover { background: var(--ty-color-primary-soft); color: var(--ty-color-primary-strong); border-color: transparent; text-decoration: none; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--live { background: var(--ty-color-success-soft); color: var(--ty-color-success-ink); border-color: transparent; }
.chip--live .dot { animation: pulse 2s infinite; }
.chip--pilot { background: var(--ty-color-warning-soft); color: var(--ty-color-warning-ink); border-color: transparent; }
.chip--soon { background: var(--ty-color-surface-3); }

/* ---- Testimonials ---------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--ty-space-lg); }
.quote-card { margin: 0; padding: var(--ty-space-xl); background: var(--ty-color-surface-2); border-radius: var(--ty-radius-card); border-left: 4px solid var(--ty-color-primary); display: flex; flex-direction: column; gap: var(--ty-space-lg); }
.quote-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; font-weight: 500; }
.quote-card blockquote::before { content: "“"; font-family: var(--ty-font-display); font-size: 2.4rem; line-height: 0; color: var(--ty-color-primary); margin-right: 4px; vertical-align: -0.4em; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; font-size: var(--ty-font-size-sm); margin-top: auto; }
.quote-card figcaption img, .quote-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card__avatar { display: grid; place-items: center; background: var(--ty-color-primary); color: #fff; font-weight: 700; }
.quote-card figcaption small { display: block; color: var(--ty-color-text-muted); }

/* ---- FAQ ---------------------------------------------------------------------- */
.faq details { border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); background: var(--ty-color-surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: var(--ty-weight-semibold); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ty-color-primary); border-bottom: 2px solid var(--ty-color-primary); transform: translateY(-70%) rotate(45deg); transition: transform var(--ty-motion-standard) var(--ty-ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--ty-color-primary-strong); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--ty-color-text-muted); }

/* ---- CTA band ------------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px); border-radius: var(--ty-radius-lg);
  background: linear-gradient(135deg, var(--ty-color-primary-ink), var(--ty-color-primary) 60%, color-mix(in srgb, var(--ty-color-primary) 70%, #fff)); color: #fff;
  box-shadow: var(--ty-shadow-primary);
}
.cta-band__glow { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.28), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.16), transparent 40%); animation: drift 14s ease-in-out infinite alternate; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 56ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }

/* ---- Media, gallery, video ------------------------------------------------- */
.media { margin: 0 auto; width: min(100% - 2 * var(--ty-space-xl), var(--ty-container)); }
.media--narrow { max-width: var(--ty-container-narrow); }
.media--wide { width: min(100% - 2 * var(--ty-space-xl), 1400px); }
.media--full { width: 100%; }
.media img, .media video { width: 100%; border-radius: var(--ty-radius-panel); box-shadow: var(--ty-shadow-md); }
.media--full img, .media--full video { border-radius: 0; }
.media figcaption, .gallery figcaption { margin-top: 10px; text-align: center; font-size: var(--ty-font-size-sm); color: var(--ty-color-text-muted); }
.media__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ty-radius-panel); overflow: hidden; box-shadow: var(--ty-shadow-md); background: #000; }
.media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: var(--ty-space-md); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .gallery--3, .gallery--4 { grid-template-columns: repeat(2, 1fr); } }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--ty-radius-card); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ty-ease); }
.gallery__item:hover img { transform: scale(1.04); }
.embed { overflow: hidden; }
.embed--narrow { max-width: var(--ty-container-narrow); }
.divider { margin: 0 auto; width: min(100% - 2 * var(--ty-space-xl), var(--ty-container-narrow)); }
.divider--line { border-top: 1px solid var(--ty-color-border); margin-block: var(--ty-space-xl); }
.divider--space { height: var(--ty-space-3xl); }

/* ---- Prose / rich text ------------------------------------------------------ */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ty-color-primary) 40%, transparent); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6rem 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ty-color-primary); font-size: 1.2rem; font-style: italic; color: var(--ty-color-text-muted); }
.prose img { border-radius: var(--ty-radius-card); margin: 1.2rem 0; }
.prose code { font-family: var(--ty-font-mono); font-size: .9em; background: var(--ty-color-surface-2); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--ty-color-ink); color: var(--ty-color-text-onink); padding: 16px 20px; border-radius: var(--ty-radius-card); overflow: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--ty-color-border); padding: 8px 12px; text-align: left; }
.pull-quote { margin: 0; text-align: center; font-family: var(--ty-font-display); font-size: clamp(1.3rem, 1.4vw + 1rem, 2rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.pull-quote p { margin: 0 0 var(--ty-space-md); }
.pull-quote p::before { content: "“"; color: var(--ty-color-primary); }
.pull-quote p::after { content: "”"; color: var(--ty-color-primary); }
.pull-quote cite { display: block; font-family: var(--ty-font-base); font-style: normal; font-size: var(--ty-font-size-sm); font-weight: 500; color: var(--ty-color-text-muted); }

/* ---- Articles ----------------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ty-space-xl); }
.article-card { display: flex; flex-direction: column; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); overflow: hidden; transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow-md); }
.article-card--featured { grid-column: 1 / -1; }
@media (min-width: 800px) { .article-card--featured { flex-direction: row; } .article-card--featured .article-card__media { flex: 1 1 55%; aspect-ratio: auto; } .article-card--featured .article-card__body { flex: 1 1 45%; justify-content: center; } .article-card--featured .article-card__title { font-size: 1.7rem; } }
.article-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ty-color-surface-2); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ty-ease); }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; background: linear-gradient(135deg, var(--ty-color-primary-ink), var(--ty-color-primary)); }
.article-card__placeholder svg { width: 48px; height: 48px; opacity: .8; }
.article-card__placeholder[data-seed="1"], .article-card__placeholder[data-seed="4"], .article-card__placeholder[data-seed="7"] { background: linear-gradient(135deg, #1f7a38, var(--ty-domain-gardening)); }
.article-card__body { padding: var(--ty-space-xl); display: flex; flex-direction: column; gap: 8px; }
.article-card__tags { display: flex; gap: 6px; margin: 0; }
.article-card__title { font-size: 1.25rem; margin: 0; }
.article-card__title a { color: var(--ty-color-text); }
.article-card__excerpt { margin: 0; color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.article-card__meta, .article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; font-size: var(--ty-font-size-xs); color: var(--ty-color-text-subtle); }
.article-meta { font-size: var(--ty-font-size-sm); color: var(--ty-color-text-muted); }
.article-meta__author { font-weight: 600; color: var(--ty-color-text); }
.article-head { padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 2vw, 24px); }
.article-head__image { margin-top: var(--ty-space-2xl); }
.article-head__image img { width: 100%; border-radius: var(--ty-radius-panel); box-shadow: var(--ty-shadow-md); aspect-ratio: 16 / 9; object-fit: cover; }
.article .section--text { padding-top: clamp(16px, 2vw, 32px); }
.article-foot { padding-bottom: clamp(40px, 5vw, 64px); }

/* ---- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--ty-color-ink); color: var(--ty-color-text-onink); padding: clamp(48px, 6vw, 80px) 0 var(--ty-space-xl); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr)); gap: var(--ty-space-2xl); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.brand--footer { color: #fff; }
.footer-brand__tagline { margin-top: var(--ty-space-md); font-weight: 500; color: #fff; }
.footer-brand__note { color: var(--ty-color-text-onink-muted); font-size: var(--ty-font-size-sm); max-width: 40ch; }
.footer-col__title { font-size: var(--ty-font-size-xs); letter-spacing: var(--ty-tracking-wide); text-transform: uppercase; color: var(--ty-color-text-onink-muted); margin-bottom: var(--ty-space-md); font-family: var(--ty-font-base); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a, .footer-bottom a { color: var(--ty-color-text-onink); font-size: var(--ty-font-size-sm); }
.footer-col a:hover { color: var(--ty-color-primary-onink); }
.social { display: flex; gap: 8px; list-style: none; margin: var(--ty-space-lg) 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background var(--ty-motion-standard); }
.social a:hover { background: var(--ty-color-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ty-space-md); margin-top: var(--ty-space-3xl); padding-top: var(--ty-space-lg); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--ty-font-size-xs); color: var(--ty-color-text-onink-muted); }
.footer-bottom p { margin: 0; }
/* The deployed version, stamped by the static export — so a glance at the footer says which deploy is live. */
.footer-version { margin-left: var(--ty-space-sm); font-variant-numeric: tabular-nums; opacity: .8; }
.footer-bottom__links { display: flex; gap: var(--ty-space-lg); }
.footer-edit { opacity: .55; }

/* ---- Status bars, 404 ----------------------------------------------------------- */
.preview-bar, .fallback-bar { display: flex; justify-content: center; gap: 16px; padding: 10px 16px; font-size: var(--ty-font-size-sm); font-weight: 500; text-align: center; }
.preview-bar { background: var(--ty-color-warning); color: #1c1306; }
.preview-bar a { color: inherit; text-decoration: underline; }
.fallback-bar { background: var(--ty-color-info-soft); color: var(--ty-color-info-ink); }
.notfound { min-height: 50vh; display: grid; place-items: center; }
.loading { padding: 40px; text-align: center; color: var(--ty-color-text-muted); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--ty-color-danger-soft); color: var(--ty-color-danger-ink); padding: 12px 48px 12px 16px; box-shadow: var(--ty-shadow-md); }
#blazor-error-ui .dismiss { position: absolute; right: 14px; top: 10px; cursor: pointer; }
#blazor-error-ui .reload { margin-left: 8px; color: inherit; text-decoration: underline; }

/* ============================================================================
   Second-wave blocks
   ============================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--ty-radius-card); border: 1px solid var(--ty-color-border); background: var(--ty-color-surface); }
.media__title { text-align: center; margin-bottom: var(--ty-space-lg); }

/* Pricing */
.pricing { display: grid; gap: var(--ty-space-lg); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--ty-space-xl); background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-panel); transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow-md); }
.plan--highlight { border-color: var(--ty-color-primary); box-shadow: var(--ty-shadow-primary); background: linear-gradient(180deg, var(--ty-color-primary-softer), var(--ty-color-surface) 40%); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: var(--ty-radius-pill); background: var(--ty-color-primary); color: #fff; font-size: var(--ty-font-size-xs); font-weight: 700; white-space: nowrap; }
.plan__name { margin: 0; font-size: 1.1rem; }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--ty-font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.plan__desc { margin: 0; color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.plan__features { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--ty-font-size-sm); }
.plan__features li { display: flex; gap: 8px; align-items: flex-start; }
.plan__features svg { width: 18px; height: 18px; flex: none; color: var(--ty-color-success-ink); margin-top: 2px; }
.plan__cta { margin-top: auto; justify-content: center; }

/* Comparison + data tables */
.compare, .data-table { width: 100%; border-collapse: collapse; font-size: var(--ty-font-size-sm); }
.compare th, .compare td, .data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ty-color-border-soft); vertical-align: middle; }
.compare thead th, .data-table thead th { background: var(--ty-color-surface-2); font-size: var(--ty-font-size-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ty-color-text-muted); }
.compare tbody th { font-weight: 500; }
.compare td { text-align: center; width: 22%; }
.compare thead th:not(:first-child) { text-align: center; }
.compare__us { background: var(--ty-color-primary-softer); color: var(--ty-color-primary-strong); font-weight: 700; }
.compare .yes svg { width: 22px; height: 22px; color: var(--ty-color-success-ink); display: inline-block; }
.compare .no svg { width: 20px; height: 20px; color: var(--ty-color-text-subtle); display: inline-block; }
/* Plan mode (Free | Essentials | Premium | Ultimate): the plan columns share the width; on a phone the header
   letters close up and the padding tightens so four columns fit beside the feature name without scrolling. */
.compare--plans td { width: auto; min-width: 56px; }
.compare--plans thead th:not(:first-child) { white-space: nowrap; }
@media (max-width: 560px) {
  .compare--plans th, .compare--plans td { padding: 10px 6px; }
  .compare--plans thead th { letter-spacing: 0; font-size: 0.66rem; }
  .compare--plans tbody th { font-size: 0.8rem; }
  .compare--plans td { min-width: 0; }
  .compare--plans .yes svg, .compare--plans .no svg { width: 18px; height: 18px; }
}
.data-table caption { caption-side: bottom; padding: 10px; font-size: var(--ty-font-size-xs); color: var(--ty-color-text-muted); }
.data-table--striped tbody tr:nth-child(even) { background: var(--ty-color-surface-2); }
.data-table tbody th { font-weight: 600; }

/* Logos & badges */
.logos__title { text-align: center; font-size: var(--ty-font-size-xs); font-weight: 600; letter-spacing: var(--ty-tracking-wide); text-transform: uppercase; color: var(--ty-color-text-muted); margin-bottom: var(--ty-space-lg); }
.logos__track { overflow: hidden; }
.logos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 56px); align-items: center; }
.logos__item img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.logos--logos .logos__item img { filter: grayscale(1); opacity: .65; transition: filter var(--ty-motion-standard), opacity var(--ty-motion-standard); }
.logos--logos .logos__item:hover img { filter: none; opacity: 1; }
.logos__item a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.logos--badges .logos__item { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); }
.logos--badges .logos__item img { height: 56px; }
.logos__label { font-size: var(--ty-font-size-xs); font-weight: 600; color: var(--ty-color-text-muted); }
.logos__text { font-family: var(--ty-font-display); font-weight: 700; font-size: 1.1rem; color: var(--ty-color-text-muted); }
.logos__track--marquee { display: flex; gap: clamp(20px, 4vw, 56px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track--marquee .logos__list { flex: none; flex-wrap: nowrap; animation: marquee 28s linear infinite; }
.logos__track--marquee:hover .logos__list { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - clamp(20px, 4vw, 56px))); } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: var(--ty-space-xl); }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--ty-color-border-strong); }
.timeline__item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: var(--ty-space-lg); }
@media (max-width: 600px) { .timeline__item { grid-template-columns: 1fr; gap: 4px; } }
.timeline__dot { position: absolute; left: -28px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ty-color-surface); border: 3px solid var(--ty-color-border-strong); }
.timeline__item--done .timeline__dot { background: var(--ty-color-success); border-color: var(--ty-color-success); }
.timeline__item--now .timeline__dot { border-color: var(--ty-color-primary); background: var(--ty-color-primary); box-shadow: 0 0 0 0 var(--ty-color-primary); animation: pulse 2.2s infinite; }
.timeline__date { font-size: var(--ty-font-size-sm); font-weight: 600; color: var(--ty-color-text-muted); padding-top: 4px; }
.timeline__body h3 { margin-bottom: 4px; }
.timeline__body p { color: var(--ty-color-text-muted); margin-bottom: 10px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--ty-space-lg); }
.person { text-align: center; padding: var(--ty-space-xl); background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); }
.person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--ty-space-md); }
.person__photo--initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--ty-color-primary-ink), var(--ty-color-primary)); color: #fff; font-family: var(--ty-font-display); font-size: 2rem; font-weight: 800; }
.person h3 { margin-bottom: 2px; }
.person__role { color: var(--ty-color-primary-strong); font-size: var(--ty-font-size-sm); font-weight: 600; margin-bottom: 8px; }
.person__bio { color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); }
.person__link { font-size: var(--ty-font-size-sm); font-weight: 600; }

/* Two columns + image/text split */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--right .split__media { order: 2; }
@media (max-width: 800px) { .split__grid { grid-template-columns: 1fr; } .split--right .split__media { order: 0; } }
.split__media img { width: 100%; border-radius: var(--ty-radius-panel); box-shadow: var(--ty-shadow-lg); }
.split__placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--ty-radius-panel); background: linear-gradient(135deg, var(--ty-color-primary-soft), var(--ty-color-surface-2)); color: var(--ty-color-primary-strong); }
.split__placeholder svg { width: 56px; height: 56px; }
.split__copy .prose { font-size: 1rem; }

/* Banner */
.banner { font-size: var(--ty-font-size-sm); font-weight: 500; }
.banner__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 10px 0; }
.banner a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.banner--primary { background: var(--ty-color-primary); color: #fff; }
.banner--ink { background: var(--ty-color-ink); color: var(--ty-color-text-onink); }
.banner--success { background: var(--ty-color-success-soft); color: var(--ty-color-success-ink); }
.banner--warning { background: var(--ty-color-warning-soft); color: var(--ty-color-warning-ink); }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter .lead { margin-inline: auto; }
.newsletter__form { display: flex; gap: 10px; max-width: 560px; margin: var(--ty-space-xl) auto var(--ty-space-md); }
.newsletter__input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: var(--ty-radius-pill); border: 1.5px solid var(--ty-color-border-strong); background: var(--ty-color-surface); color: var(--ty-color-text); font: inherit; }
.section--ink .newsletter__input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.section--ink .newsletter__input::placeholder { color: var(--ty-color-text-onink-muted); }
.newsletter__note { font-size: var(--ty-font-size-xs); color: var(--ty-color-text-muted); margin: 0; }
.section--ink .newsletter__note { color: var(--ty-color-text-onink-muted); }
@media (max-width: 520px) { .newsletter__form { flex-direction: column; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); background: var(--ty-color-surface-2); border-radius: var(--ty-radius-panel); }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }
.contact__facts { margin: 0; display: grid; gap: var(--ty-space-lg); }
.contact__facts dt { display: flex; align-items: center; gap: 8px; font-size: var(--ty-font-size-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ty-color-text-muted); font-weight: 600; }
.contact__facts dt svg { width: 16px; height: 16px; color: var(--ty-color-primary-strong); }
.contact__facts dd { margin: 4px 0 0; font-weight: 500; }

/* Map */
.media__frame--map { aspect-ratio: 16 / 8; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 28px; }
.checklist--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .checklist--2 { grid-template-columns: 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist__tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ty-color-success-soft); color: var(--ty-color-success-ink); }
.checklist__tick svg { width: 16px; height: 16px; }
.checklist small { display: block; color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); margin-top: 2px; }

/* App stores */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 12px; background: var(--ty-color-ink); color: #fff; text-align: left; line-height: 1.1; transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard); }
.store:hover { transform: translateY(-2px); box-shadow: var(--ty-shadow-md); text-decoration: none; color: #fff; }
.store__icon svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 10px; opacity: .75; letter-spacing: .04em; }
.store b { font-size: 1.05rem; }
[data-theme="graft"] .store { background: var(--ty-color-surface-3); }

/* Before / after */
.compare-img { position: relative; overflow: hidden; border-radius: var(--ty-radius-panel); box-shadow: var(--ty-shadow-md); aspect-ratio: 16 / 10; user-select: none; }
.compare-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.compare-img__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-img__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.compare-img__handle::after { content: "\21C6"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ty-color-ink); display: grid; place-items: center; font-size: 20px; box-shadow: var(--ty-shadow-md); }
.compare-img__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-img__label { position: absolute; top: 12px; padding: 4px 10px; border-radius: var(--ty-radius-pill); background: rgba(11,31,51,.72); color: #fff; font-size: var(--ty-font-size-xs); font-weight: 600; pointer-events: none; }
.compare-img__label--before { left: 12px; }
.compare-img__label--after { right: 12px; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--ty-space-lg); }
.case { position: relative; display: flex; flex-direction: column; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); overflow: hidden; transition: transform var(--ty-motion-standard) var(--ty-ease), box-shadow var(--ty-motion-standard); }
.case:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow-md); }
.case__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ty-color-primary-ink), var(--ty-color-primary)); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__result { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--ty-radius-pill); background: #fff; color: var(--ty-color-primary-strong); font-family: var(--ty-font-display); font-weight: 800; box-shadow: var(--ty-shadow-md); }
.case__body { padding: var(--ty-space-xl); }
.case__body .eyebrow { margin-bottom: 6px; }
.case__body h3 { margin-bottom: 6px; }
.case__body p { color: var(--ty-color-text-muted); font-size: var(--ty-font-size-sm); margin: 0; }

/* Downloads */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.download { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-card); color: var(--ty-color-text); transition: border-color var(--ty-motion-standard), box-shadow var(--ty-motion-standard); }
.download:hover { text-decoration: none; border-color: var(--ty-color-primary); box-shadow: var(--ty-shadow-sm); }
.download__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--ty-color-primary-soft); color: var(--ty-color-primary-strong); }
.download__text small { display: block; color: var(--ty-color-text-muted); font-size: var(--ty-font-size-xs); }
.download__meta { font-size: var(--ty-font-size-xs); color: var(--ty-color-text-subtle); white-space: nowrap; }

/* Rating */
.rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 18px 24px; background: var(--ty-color-surface-2); border-radius: var(--ty-radius-pill); }
.rating__stars { position: relative; display: inline-flex; color: var(--ty-color-border-strong); }
.rating__stars svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.rating__stars::after { content: ""; position: absolute; inset: 0; width: calc(var(--score) / 5 * 100%); overflow: hidden; background: var(--ty-color-warning); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/></svg>") 0 0/26px 26px repeat-x; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/></svg>") 0 0/26px 26px repeat-x; }
.rating__score { font-family: var(--ty-font-display); font-weight: 800; font-size: 1.4rem; }
.rating__score small { font-weight: 500; color: var(--ty-color-text-muted); font-size: .9rem; }
.rating__text { font-size: var(--ty-font-size-sm); }
.rating__text small { display: block; color: var(--ty-color-text-muted); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ty-space-xl); padding: clamp(20px, 3vw, 36px); background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-panel); }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }
.calc__inputs { display: grid; gap: var(--ty-space-md); }
.calc__inputs label { display: grid; gap: 6px; font-size: var(--ty-font-size-sm); font-weight: 600; }
.calc__inputs input { padding: 12px 14px; border: 1.5px solid var(--ty-color-border-strong); border-radius: var(--ty-radius-control); font: inherit; font-size: 1.1rem; background: var(--ty-color-surface); color: var(--ty-color-text); }
.calc__inputs input:focus { border-color: var(--ty-color-primary); outline: none; box-shadow: var(--ty-focus-ring); }
.calc__result { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: var(--ty-space-xl); border-radius: var(--ty-radius-card); background: linear-gradient(135deg, var(--ty-color-primary-ink), var(--ty-color-primary)); color: #fff; }
.calc__big { font-family: var(--ty-font-display); font-size: 1.4rem; font-weight: 700; }
.calc__big b { font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1; display: block; }
.calc__sub, .calc__money { opacity: .9; font-size: var(--ty-font-size-sm); }
.calc__money b { font-size: 1.3rem; }
.calc__result .btn { margin-top: var(--ty-space-md); background: #fff; color: var(--ty-color-primary-strong); }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: clamp(10px, 2vw, 24px); margin: var(--ty-space-xl) 0 var(--ty-space-md); }
.countdown__unit { display: grid; gap: 4px; min-width: 86px; padding: 14px 10px; border-radius: var(--ty-radius-card); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.section--alt .countdown__unit, .section--surface .countdown__unit { background: var(--ty-color-surface); border-color: var(--ty-color-border); }
.countdown__unit b { font-family: var(--ty-font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ty-color-primary-onink); }
.section--alt .countdown__unit b, .section--surface .countdown__unit b { color: var(--ty-color-primary-strong); }
.countdown__unit small { font-size: var(--ty-font-size-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ty-color-text-onink-muted); }
.section--alt .countdown__unit small, .section--surface .countdown__unit small { color: var(--ty-color-text-muted); }
.countdown--ended { font-family: var(--ty-font-display); font-size: 1.6rem; font-weight: 800; }
.countdown__date { font-size: var(--ty-font-size-sm); }
.section--ink .countdown__date { color: var(--ty-color-text-onink-muted); }

/* ---- Product identity: the app shell gradient (MainLayout sidebar) on the dark surfaces ---------- */
:root { --ty-gradient-ink: linear-gradient(160deg, rgb(5, 39, 103) 0%, #3a0647 80%); }
.hero { background: var(--ty-gradient-ink); }
.hero__blob--1 { background: var(--ty-color-primary); opacity: .45; }
.hero__blob--2 { background: #7C3AED; opacity: .3; }
.site-footer, .section--ink, .stats-band--ink { background: var(--ty-gradient-ink); }
.app-shot { border-radius: var(--ty-radius-panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; background: var(--ty-color-surface); }
.app-shot img { display: block; width: 100%; height: auto; }
.hero__art--image img { border-radius: var(--ty-radius-panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transform-origin: 60% 50%; animation: float 9s ease-in-out infinite; }
@keyframes floatShot { 0%, 100% { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) translateY(0); } 50% { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) translateY(-8px); } }
.hero__art--image img { animation-name: floatShot; }

/* ── Live plans: "See what you get", showcases, plan badges (from the app's public plans feed) ───── */
.plan__line { flex: 1 1 0; min-width: 0; }
.plan__features li { flex-wrap: wrap; }
.plan__peek { flex-basis: 100%; padding-left: 26px; font-size: var(--ty-font-size-xs); font-weight: 600; color: var(--ty-color-primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.plan__peek:hover { color: var(--ty-color-primary); }
.compare__group th { background: var(--ty-color-surface-2); font-size: var(--ty-font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ty-color-text-muted); }

.showcases-wrap { margin-top: clamp(40px, 6vw, 72px); }
.showcases-wrap__title { text-align: center; margin: 0 0 8px; }
.showcases { display: grid; gap: var(--ty-space-xl); margin-top: var(--ty-space-xl); }
.showcases--compact { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; background: var(--ty-color-surface); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-panel); overflow: hidden; scroll-margin-top: 96px; }
.showcases--compact .showcase { grid-template-columns: minmax(0, 1fr); }
.showcase:target { box-shadow: 0 0 0 3px var(--ty-color-primary); }
.showcase__media { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--ty-space-lg); background: radial-gradient(120% 90% at 0% 0%, var(--ty-color-primary-softer) 0%, transparent 60%), var(--ty-color-surface-2); }
.showcase__shot { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.showcase__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: var(--ty-radius-card); border: 1px solid var(--ty-color-border); box-shadow: var(--ty-shadow-md); background: var(--ty-color-surface); }
.showcase__shot figcaption { margin-top: 8px; text-align: center; font-size: var(--ty-font-size-sm); color: var(--ty-color-text-muted); }
.showcase__body { padding: var(--ty-space-xl); display: flex; flex-direction: column; gap: 10px; }
.showcase__eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--ty-font-size-sm); font-weight: 700; color: var(--ty-color-primary-strong); }
.showcase__plan { font-size: var(--ty-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ty-color-text-muted); background: var(--ty-color-surface-2); border: 1px solid var(--ty-color-border); border-radius: var(--ty-radius-pill); padding: 2px 10px; }
.showcase__title { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.showcase__pitch { margin: 0; color: var(--ty-color-text-muted); }
.showcase__benefits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--ty-font-size-sm); }
.showcase__benefits li { display: flex; gap: 8px; align-items: flex-start; }
.showcase__benefits svg { width: 18px; height: 18px; flex: none; color: var(--ty-color-success-ink); margin-top: 2px; }
.showcase__benefits li > span:first-child, .plan__features li > span:first-child { flex: none; display: inline-flex; }
.showcase__cta { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) { .showcase { grid-template-columns: minmax(0, 1fr); } }

.showcase-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--ty-radius-panel); background: var(--ty-color-surface); color: var(--ty-color-text); box-shadow: 0 30px 80px rgba(11, 31, 51, .35); }
.showcase-dialog::backdrop { background: rgba(11, 31, 51, .55); }
.showcase-dialog__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; margin: 0; height: 0; }
.showcase-dialog__close { margin: 10px 10px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ty-color-border); background: var(--ty-color-surface); color: var(--ty-color-text); display: grid; place-items: center; cursor: pointer; }
.showcase-dialog__close svg { width: 20px; height: 20px; }
.showcase-dialog__body .showcase { border: 0; border-radius: 0; box-shadow: none; }
.showcase-dialog__body .showcase__title { padding-right: 44px; }
@media (max-width: 640px) { .showcase-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } }

.plan-badges { padding-top: 0; padding-bottom: 0; }
.plan-badges__row { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: var(--ty-font-size-sm); }
.plan-badges__label { color: var(--ty-color-text-muted); font-weight: 600; }
.plan-badge { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 14px; border-radius: var(--ty-radius-pill); background: var(--ty-color-primary-softer); border: 1px solid var(--ty-color-border); color: var(--ty-color-primary-strong); text-decoration: none; }
.plan-badge:hover { border-color: var(--ty-color-primary); }
.plan-badge__what { color: var(--ty-color-text-muted); font-weight: 500; }
