/* Page-local styles for / */
/* Home page layout only. Tokens from natural.css and site.css, no new hues. */

/* A soft accent wash sits behind the hero and the top of the product frame,
   then fades into paper, so the screenshot straddles tint and page. */
.home-top { position: relative; }
.home-top::before {
  content: ""; position: absolute; inset: -80px 0 46% 0; z-index: -1;
  background: radial-gradient(130% 150% at 50% -25%, oklch(0.6061 0.1275 162 / 0.13), transparent 64%), var(--linen);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.home-hero {
  max-width: 880px; margin: 0 auto; padding: 84px var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.home-hero h1 { font-size: 54px; line-height: 1.06; letter-spacing: -0.028em; max-width: 15ch; }
.home-hero .lede { font-size: 18px; line-height: 30px; color: var(--ink-soft); max-width: 58ch; }
.home-hero .cta-row { justify-content: center; margin-top: 2px; }
.home-hero [data-reveal].in:nth-child(2) { animation-delay: 0.08s; }
.home-hero [data-reveal].in:nth-child(3) { animation-delay: 0.16s; }

/* The product, in a browser frame, linking to the demo. */
.hero-object { max-width: var(--container); margin: 0 auto; padding: 52px var(--gutter) 72px; }
.hero-object .frame-caption { max-width: 640px; margin-left: auto; margin-right: auto; }
.chrome {
  display: block; position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 1px rgba(20, 26, 18, 0.08), 0 10px 34px 4px rgba(10, 14, 8, 0.10);
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s var(--ease-expo);
}
.chrome:hover { transform: translateY(-3px); box-shadow: 0 0 1px rgba(20, 26, 18, 0.1), 0 20px 48px 6px rgba(10, 14, 8, 0.14); }
.chrome-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 40px; padding: 0 14px; background: var(--linen); border-bottom: 1px solid var(--line);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-hover); }
.chrome-addr { padding: 3px 16px; border-radius: 11px; background: #fff; font-size: 12px; line-height: 18px; color: var(--ink-soft); }
.chrome img { width: 100%; height: auto; display: block; }
.chrome.in { animation: page-entrance 0.9s var(--ease-expo) 0.24s both; }

/* The six product tiles sit on a full-bleed linen slab so the white
   cards lift. Every cell stays white: the depth is the ground, not tint. */

/* Product tiles: one two-tone sentence, the product name in ink. */

/* Three jobs, each on a tinted panel. */
.more { width: fit-content; margin-top: 4px; color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-ghost); }
.more:hover { text-decoration-color: var(--ink-soft); }

/* The page's contrast moment: three numbers, large, on ink. */

/* Demo strip. */
.demo-strip {
  border-radius: 16px; padding: 72px 40px; text-align: center; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.demo-strip h2 { font-size: 34px; line-height: 42px; }
.demo-strip p { color: var(--ink-soft); max-width: 46ch; }
.demo-strip .btn { height: 44px; border-radius: 22px; padding: 6px 22px; margin-top: 8px; }

@media (max-width: 900px) {
}
@media (max-width: 768px) {
  .home-hero { padding-top: 52px; }
  .home-hero h1 { font-size: 32px; line-height: 1.12; max-width: none; }
  .home-hero .lede { font-size: 16px; line-height: 26px; }
  .hero-object { padding-top: 36px; }
  .home-hero .cta-row .btn { flex: 1; }
  .demo-strip { padding: 48px 24px; }
  .demo-strip h2 { font-size: 24px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome.in { animation: none; }
  .chrome { transition: none; }
}

/* ————— the product tour: rail + real product video panes ————— */
.tour { color: oklch(0.9861 0.0025 120); }
.tour-inner {
  max-width: var(--container); margin: 0 auto; padding: 96px var(--gutter);
  display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 72px; align-items: center; width: 100%;
}
.tour-rail h2 { color: oklch(0.9861 0.0025 120); margin-bottom: 40px; max-width: 14ch; }
.tour-item { position: relative; border-top: 1px solid oklch(0.9861 0.0025 120 / 0.16); }
/* Clip progress fills the active item's top rule, so the reader can see
   how far along the clip is before it advances. */
.tour-item::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: oklch(0.9861 0.0025 120 / 0.85);
  transform: scaleX(var(--clip-p, 0)); transform-origin: left; pointer-events: none;
}
.tour-item-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 0; cursor: pointer;
  background: none; border: 0; color: inherit; font: inherit; appearance: none;
}
.tour-item.on .tour-item-btn { cursor: default; }
/* The marker is blank until the row is hovered or active. An always-on
   outline turned the rail into a column of empty checkboxes. */
.tour-dot {
  width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
  background: transparent;
  transition: background 150ms ease-out;
}
.tour-item.on .tour-dot { background: oklch(0.7475 0.1458 161.2); }
.tour-item-btn:hover .tour-dot { background: oklch(0.9861 0.0025 120 / 0.3); }
.tour-item.on .tour-item-btn:hover .tour-dot { background: oklch(0.7475 0.1458 161.2); }
.tour-item-btn:focus-visible,
.tour-demo-link:focus-visible {
  outline: 2px solid oklch(0.9861 0.0025 120 / 0.75);
  outline-offset: 3px; border-radius: 4px;
}
.tour-item-title {
  font-size: 17px; font-weight: var(--w-medium);
  color: oklch(0.9861 0.0025 120 / 0.6); transition: color 150ms ease-out;
}
.tour-item.on .tour-item-title, .tour-item-btn:hover .tour-item-title { color: oklch(0.9861 0.0025 120); }
.tour-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-expo); }
.tour-item.on .tour-desc { grid-template-rows: 1fr; }
.tour-desc-in { overflow: hidden; }
.tour-desc p {
  font-size: 14.5px; line-height: 23px; color: oklch(0.9861 0.0025 120 / 0.6);
  max-width: 42ch; padding: 0 0 20px 24px;
}
.tour-demo-link {
  display: inline-block; margin-top: 32px; margin-left: 24px;
  font-size: 16px; font-weight: var(--w-medium); color: oklch(0.9861 0.0025 120);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: oklch(0.9861 0.0025 120 / 0.4);
  transition: text-decoration-color 150ms ease-out;
}
.tour-demo-link:hover { text-decoration-color: oklch(0.9861 0.0025 120); }
.tour-media {
  position: relative; aspect-ratio: 1280 / 800;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px oklch(0.9861 0.0025 120 / 0.14),
              0 24px 60px -18px rgba(0, 0, 0, 0.55);
}
.tour-shot {
  position: absolute; inset: 0;
  opacity: 0; filter: blur(8px); visibility: hidden;
  transition: opacity 400ms ease-out, filter 400ms ease-out, visibility 0s 400ms;
}
.tour-shot.on { opacity: 1; filter: none; visibility: visible; transition-delay: 0s, 0s, 0s; }
.tour-shot video { width: 100%; height: 100%; display: block; object-fit: cover; }
.tour-ring {
  position: absolute; left: 20px; bottom: 20px; width: 40px; height: 40px;
  transform: rotate(-90deg); opacity: 0; transition: opacity 200ms ease-out; pointer-events: none;
}
.tour-ring circle { fill: none; stroke-width: 2; }
.tour-ring circle:first-child { stroke: oklch(0.9861 0.0025 120 / 0.25); }
.tour-ring circle:last-child { stroke: oklch(0.9861 0.0025 120 / 0.9); }
.beat .tour-ring { opacity: 1; }
/* Desktop progress lives on the rail rule instead; the corner ring only
   appeared after a clip ended, which was too late to be useful. */
.tour-media .tour-ring { display: none; }
.tour-mrow { display: none; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .tour-runway { height: 240vh; }
  /* The nav is sticky and 80px tall, so the pane pads past it to sit on
     the optical centre of what is actually visible. */
  .tour-pane {
    position: sticky; top: 0; height: 100vh; box-sizing: border-box;
    padding-top: 80px; display: flex; align-items: center;
  }
}
@media (max-width: 1023px) {
  .tour-media { display: none; }
  .tour-inner { grid-template-columns: 1fr; gap: 0; padding: 112px var(--gutter) 72px; }
  .tour-mrow { display: block; position: relative; margin: 0 0 20px 24px; }
  .tour-mrow video { width: 100%; height: auto; display: block; border-radius: 10px; }
  .tour-mrow .tour-ring { left: 12px; bottom: 12px; width: 26px; height: 26px; }
}
.tour.still .tour-desc { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .tour-shot, .tour-desc { transition: none; }
}
  