/* Shared site styles for the landing page and the About, Terms of Use and Privacy pages */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
/* Landing page styles. Brand: Deep Teal #143D3B, Cut Lime #C5ED67, Warm White #F6F7F2, Slate #657571. */
:root {
  --teal: #143d3b;
  --teal-2: #0d2b29;
  --lime: #c5ed67;
  --lime-2: #b8e352;
  --warm: #f6f7f2;
  --white: #ffffff;
  --slate: #657571;
  --line: #dfe3da;
  --line-dark: rgba(246, 247, 242, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--warm);
  color: var(--teal);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.display { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.035em; font-weight: 700; line-height: 1.02; }
.serif-it { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s;
  color: var(--warm);
}
.site-head.solid { background: rgba(246, 247, 242, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--teal); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.site-head img { height: 34px; width: auto; display: block; }
.site-head nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 0.95rem; }
.site-head nav a { text-decoration: none; opacity: 0.78; }
.site-head nav a:hover, .site-head nav a.pill-cta { opacity: 1; }
.pill-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  background: var(--lime); color: var(--teal);
}
.site-head.solid .pill-cta { background: var(--teal); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--teal); }
.btn-lime:hover { background: var(--lime-2); }
.btn-ghost-dark { background: transparent; color: var(--warm); box-shadow: inset 0 0 0 1.5px rgba(246, 247, 242, 0.5); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--warm); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--teal); color: var(--warm); overflow: hidden; padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 237, 103, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 237, 103, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: rgba(246, 247, 242, 0.08); box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: clamp(3rem, 6vw, 6.5rem); margin: 0 0 24px; }
.hero h1 em { color: var(--lime); }
.hero .lead { font-size: 1.15rem; color: rgba(246, 247, 242, 0.78); max-width: 34em; margin: 0 0 34px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .fine { font-size: 0.9rem; color: rgba(246, 247, 242, 0.6); margin-top: 18px; }
.hero-card {
  position: relative; background: var(--warm); color: var(--teal); border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.4s var(--ease);
}
.hero-card svg { width: 100%; height: auto; display: block; }

/* Hero board animation (parts appear in turn, then the saw draws each cut) */
.hero-card .part { opacity: 0; animation: reveal 9s ease-in-out infinite; }
.hero-card .part .lbl { font-family: 'Inter', Arial, sans-serif; font-size: 11px; font-weight: 700; fill: var(--teal); }
.hero-card .p1 .lbl { fill: #fff; }
.hero-card .cut { stroke: #c0392b; stroke-width: 2.2; fill: none; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 9s ease-in-out infinite; }
.hero-card .p1 { animation-delay: 0.2s; } .hero-card .p2 { animation-delay: 1s; } .hero-card .p3 { animation-delay: 1.8s; } .hero-card .p4 { animation-delay: 2.6s; } .hero-card .p5 { animation-delay: 3.4s; }
.hero-card .c1 { animation-delay: 0.8s; } .hero-card .c2 { animation-delay: 1.6s; } .hero-card .c3 { animation-delay: 2.4s; } .hero-card .c4 { animation-delay: 3.2s; }
@keyframes reveal { 0% { opacity: 0; transform: translateY(6px); } 8%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes draw { 0% { stroke-dashoffset: 1; } 10%, 84% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 1; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--teal-2); color: rgba(246, 247, 242, 0.55); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; padding: 18px 0; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.marquee-track span::after { content: '✦'; margin-left: 48px; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */
section.block { padding: 120px 0; position: relative; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block.dark { background: var(--teal); color: var(--warm); }
.label { color: var(--slate); margin-bottom: 18px; }
.dark .label { color: rgba(246, 247, 242, 0.6); }
h2.section-title { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0 0 20px; max-width: 18em; }
.section-lead { font-size: 1.12rem; color: var(--slate); max-width: 40em; margin: 0 0 56px; }
.dark .section-lead { color: rgba(246, 247, 242, 0.7); }

/* ---------- Watch it cut (pinned) ---------- */
.pin { position: relative; height: 300vh; background: var(--warm); }
.pin-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.pin-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; width: 100%; }
.pin-board { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px rgba(20, 61, 59, 0.08); }
.pin-board svg { width: 100%; height: auto; display: block; }
.pin-counter { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.pin-counter strong { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pin-counter span { color: var(--slate); font-size: 0.95rem; }
.cut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cut-list li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); font-size: 0.98rem;
}
.cut-list .n { font-weight: 800; font-variant-numeric: tabular-nums; }
.cut-list .at { color: var(--slate); font-variant-numeric: tabular-nums; }
.cut-list li.done { color: var(--teal); }
.cut-list li.done .n::after { content: ' ✓'; color: var(--teal); }
.cut-list li.active { background: var(--lime); border-color: var(--lime); transform: translateX(6px); }
.cut-list li.active .at { color: var(--teal); }
.pin-note { margin-top: 18px; color: var(--slate); font-size: 0.92rem; }
.pin-end { margin-top: 22px; display: none; }
.pin-end.show { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Board SVG pieces, driven by scroll */
#pin-board .cut-line { stroke: #c0392b; stroke-width: 1.6; fill: none; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; }
#pin-board .cut-badge { fill: var(--white); stroke: #c0392b; stroke-width: 0.8; }
#pin-board .cut-num { fill: #c0392b; font-weight: 800; font-size: 3.4px; font-family: 'Inter', Arial, sans-serif; }
#pin-board .freed { opacity: 0; }
#pin-board .freed .lbl { font-family: 'Inter', Arial, sans-serif; font-weight: 700; font-size: 4.2px; fill: var(--teal); }
#pin-board .freed .sz { font-family: 'Inter', Arial, sans-serif; font-size: 3.2px; fill: var(--slate); }

/* ---------- App screenshot ---------- */
.app-shot { perspective: 1600px; }
.app-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  box-shadow: 0 40px 90px rgba(20, 61, 59, 0.16);
  transform: rotateX(var(--rx, 12deg)) scale(var(--sc, 0.94));
  transform-origin: 50% 0;
  transition: transform 0.2s linear;
}
.app-frame img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.app-phone {
  position: absolute; right: -30px; bottom: -60px; width: 190px; background: var(--teal); border-radius: 30px; padding: 10px;
  box-shadow: 0 30px 60px rgba(20, 61, 59, 0.3);
}
.app-phone img { display: block; width: 100%; border-radius: 22px; }
.app-wrap { position: relative; padding-bottom: 60px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .cap { color: var(--slate); font-size: 0.95rem; }
.stats-note { color: var(--slate); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 22px; padding: 34px; background: var(--warm); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.tile h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--slate); }
.tile.t-a { grid-column: span 4; background: var(--teal); color: var(--warm); border-color: var(--teal); }
.tile.t-a p { color: rgba(246, 247, 242, 0.72); }
.tile.t-b { grid-column: span 2; }
.tile.t-c { grid-column: span 2; background: var(--lime); border-color: var(--lime); }
.tile.t-c p { color: rgba(20, 61, 59, 0.78); }
.tile.t-d { grid-column: span 2; }
.tile.t-e { grid-column: span 2; }
.tile.t-f { grid-column: span 2; background: var(--white); }
.tile .big { font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.tile .pdf-sheet {
  position: absolute; right: 26px; bottom: -40px; width: 150px; height: 190px; background: var(--white); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(20, 61, 59, 0.18); transform: translateY(40px) rotate(-4deg); transition: transform 0.45s var(--ease);
  padding: 14px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 18px;
}
.tile:hover .pdf-sheet { transform: translateY(-14px) rotate(-2deg); }
@media (hover: none) { .tile .pdf-sheet { transform: translateY(-14px) rotate(-2deg); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: var(--white); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--slate); font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { color: var(--slate); margin: 10px 0 0; }

/* ---------- Closing band ---------- */
.closing { position: relative; background: var(--teal); color: var(--warm); border-radius: 28px; padding: 96px 48px; text-align: center; overflow: hidden; }
.closing .mark { position: absolute; left: 50%; top: 50%; width: min(90vw, 980px); transform: translate(-50%, -50%); opacity: 0.07; pointer-events: none; }
.closing h2 { position: relative; font-size: clamp(2.6rem, 5.6vw, 5rem); margin: 0 0 22px; }
.closing p { position: relative; color: rgba(246, 247, 242, 0.75); font-size: 1.1rem; margin: 0 auto 34px; max-width: 34em; }
.closing .btn { position: relative; }

/* ---------- Footer ---------- */
footer.site { padding: 40px 0 56px; color: var(--slate); font-size: 0.92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
footer.site nav a { color: var(--slate); text-decoration: none; margin-left: 18px; font-weight: 600; }
footer.site nav a:hover { color: var(--teal); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 28px; }
  .hero-grid, .pin-grid { gap: 40px; }
  .bento .tile.t-a, .bento .tile.t-b, .bento .tile.t-c, .bento .tile.t-d, .bento .tile.t-e, .bento .tile.t-f { grid-column: span 3; }
}
@media (max-width: 860px) {
  .site-head nav a.hide-sm { display: none; }
  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero-grid, .pin-grid { grid-template-columns: 1fr; }
  .pin { height: 220vh; }
  .pin-stage { height: 100vh; align-items: flex-start; padding-top: 90px; }
  .pin-grid { gap: 20px; }
  .pin-board { padding: 14px; }
  .cut-list { display: none; }
  .pin-counter { margin-bottom: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento .tile { grid-column: span 6 !important; }
  .steps { grid-template-columns: 1fr; }
  .app-phone { display: none; }
  section.block { padding: 80px 0; }
  .closing { padding: 64px 24px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero .cta .btn { width: 100%; }
  .site-head .pill-cta { height: 38px; padding: 0 14px; font-size: 0.85rem; }
}

/* ---------- Reduced motion: show the finished state, no pin, marquee or tilt ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-card .part, #pin-board .freed { opacity: 1 !important; }
  .hero-card .cut, #pin-board .cut-line { stroke-dashoffset: 0 !important; }
  .reveal { opacity: 1; transform: none; }
  .pin { height: auto; }
  .pin-stage { position: relative; height: auto; padding-block: 60px; }
  .cut-list { display: grid; }
  .marquee-track { animation: none; }
  .hero-card { transform: none; }
}

/* Header logo: light on the dark hero, teal once the header is solid */
.site-head .logo-dark { display: none; }
.site-head.solid .logo-dark { display: block; }
.site-head.solid .logo-light { display: none; }

/* Watch it cut: list on the left, the standing board on the right, both at the same height */
.pin-grid > :first-child { order: 2; }
.pin-board { display: flex; flex-direction: column; align-items: center; }
.pin-board .pin-counter { align-self: flex-start; }
.pin-board svg { height: min(62vh, 560px); width: auto; max-width: 100%; display: block; }
@media (max-width: 860px) {
  .pin-grid > :first-child { order: 0; }
  .pin-board svg { height: auto; width: 100%; }
}

/* Phone screenshot: centred under the desktop one, at a sensible size */
.app-wrap { padding-bottom: 0; }
.app-phone {
  position: static; right: auto; bottom: auto; width: 250px; margin: 56px auto 0;
  background: var(--teal); border-radius: 34px; padding: 12px; box-shadow: 0 30px 60px rgba(20, 61, 59, 0.22);
}
.app-phone img { border-radius: 24px; }

/* Desktop and phone screenshots side by side, the phone at its real proportions */
.app-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: end; padding-bottom: 0; }
.app-phone { position: static; right: auto; bottom: auto; width: 280px; margin: 0; padding: 12px; border-radius: 40px; }
.app-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 28px; }
@media (max-width: 860px) {
  .app-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .app-phone { display: block; width: 240px; margin: 0 auto; }
}

/* Legal pages (About, Terms of Use, Privacy Policy) */
.legal-hero { min-height: auto; padding: 150px 0 72px; }
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 0 0 14px; }
.legal-hero .lead { margin-bottom: 0; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 12px; }
.legal-body p, .legal-body li { color: var(--slate); font-size: 1.05rem; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { padding-left: 22px; margin: 0 0 14px; }
.legal-body a { color: var(--teal); font-weight: 600; }
.legal-body .note { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin-bottom: 8px; }
.legal-body .note p { color: var(--teal); margin: 0; }
.legal-meta { color: rgba(246, 247, 242, 0.7); font-size: 0.95rem; }

/* Legal title band: left-aligned text */
.legal-hero { display: block; }
