/* ==========================================================================
   SealMove — marketing site design system
   Inherits DESIGN.md's "Contact Sheet on the Light Table" identity
   (light-table ground, ink text, grease-pencil accent, IBM Plex Mono for
   measurements only) and extends it into a Persuade register: the accent
   commits fully at "proof" moments — the exact instants the app's own
   grease-pencil mark exists to signal — instead of staying purely rare.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --light-table: #f9f7f2;
  --light-table-raised: #f2efe6;
  --ink: #2b2620;
  --ink-muted: rgba(43, 38, 32, 0.6);
  --ink-faint: rgba(43, 38, 32, 0.38);
  --rule: rgba(43, 38, 32, 0.16);
  --sprocket: rgba(43, 38, 32, 0.26);
  --grease: #c73e1e;
  --grease-ink: #ffffff;
  --grease-soft: rgba(199, 62, 30, 0.1);

  --font-display: "Archivo", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 62ch;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --light-table: #17140f;
    --light-table-raised: #201b13;
    --ink: #ede6d8;
    --ink-muted: rgba(237, 230, 216, 0.62);
    --ink-faint: rgba(237, 230, 216, 0.4);
    --rule: rgba(237, 230, 216, 0.16);
    --sprocket: rgba(237, 230, 216, 0.24);
    --grease: #e8663f;
    --grease-ink: #1a0d08;
    --grease-soft: rgba(232, 102, 63, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--light-table);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Elements with an explicit `display` (buttons, flex/grid containers) win
   the cascade over the UA stylesheet's [hidden]{display:none} — without
   this, `element.hidden = true` silently does nothing on a .btn. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

::selection {
  background: var(--grease);
  color: var(--grease-ink);
}

/* ---- Type scale ---------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.display-3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 52ch;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.eyebrow-free {
  /* deliberately absent: DESIGN.md bans a mono kicker above a heading */
}

/* ---- Layout ---------------------------------------------------------- */

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

section {
  padding-block: clamp(64px, 10vw, 128px);
}

.stack {
  display: flex;
  flex-direction: column;
}

/* ---- Nav --------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  background: color-mix(in srgb, var(--light-table) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.site-nav a.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--ink);
  color: var(--light-table);
}

.btn-primary:hover {
  background: var(--grease);
}

.btn-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}

/* ---- The seal mark (StampBadge, ported) --------------------------------- */

.seal {
  --size: 44px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
}

.seal svg {
  width: 100%;
  height: 100%;
}

.seal .ring {
  fill: none;
  stroke: var(--grease);
  stroke-width: 2.4;
}

.seal .check {
  fill: none;
  stroke: var(--grease);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Sprocket strip (contact-sheet motif) -------------------------------- */

.sprocket-row {
  display: flex;
  gap: 10px;
  padding: 0 6px;
}

.sprocket-row span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sprocket);
  flex: none;
}

/* ---- Frame (FrameThumbnail, ported) --------------------------------------- */

.frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--light-table-raised);
  overflow: hidden;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 10px;
  background-image: radial-gradient(
    circle,
    var(--sprocket) 1.6px,
    transparent 1.7px
  );
  background-size: 10px 14px;
  background-repeat: repeat-y;
  opacity: 0.9;
}

.frame::before {
  left: 6px;
}
.frame::after {
  right: 6px;
}

/* ---- Cards / rule --------------------------------------------------------- */

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--light-table-raised);
  padding: clamp(20px, 2.4vw, 28px);
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px var(--edge) 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.site-footer h5 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--ink-faint);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--ink);
}

/* ---- Motion: one authored moment, reused for every "proof" beat ----------- */

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-6deg);
  }
}

.seal-reveal {
  animation: seal-in 0.5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .seal-reveal {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Responsive nav ------------------------------------------------------- */

/* ==========================================================================
   Landing page
   ========================================================================== */

.hero {
  padding-top: clamp(48px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  gap: 22px;
}

.hero-copy h1 {
  /* display-1's clamp is tuned for full-width headings; the hero column
     is only ~45% of the viewport, so the same ceiling wraps one word per
     line. A tighter ceiling keeps it to two or three balanced lines. */
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-note {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-frame {
  aspect-ratio: 4 / 3;
  padding: 14px;
}

.demo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 26px;
  width: calc(100% - 52px);
}

.demo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  /* Fixed colors, not the theme-aware ink tokens: this sits on the demo
     photo itself, which stays light regardless of site theme, same as a
     real photo would. Using --ink-faint here goes light-on-light in dark
     mode. */
  color: rgba(43, 38, 32, 0.55);
  letter-spacing: 0.04em;
}

.demo-caption span:first-child {
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(249, 247, 242, 0.82);
  backdrop-filter: blur(3px);
}

.demo-caption .seal {
  --size: 30px;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.demo-hash-label {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.demo-hash {
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--grease);
  font-weight: 500;
}

.demo-step {
  width: 100%;
  padding-top: 4px;
}

.demo-payload {
  margin: 6px 0 0;
  padding: 14px;
  background: var(--light-table);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.demo-verify-cta {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.link-underline {
  color: var(--grease);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.wrap-rule {
  max-width: 1180px;
  margin-inline: auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.audience-divider {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}

.audience-card p {
  margin-top: 12px;
  color: var(--ink-muted);
}

.comparison-demo {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  margin-top: 40px;
}

.comparison-frame {
  flex: 1;
  padding: 14px;
}

.comparison-label {
  position: relative;
  margin: 0 0 12px 26px;
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.comparison-swatch {
  margin: 0 26px 14px;
  width: calc(100% - 52px);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  position: relative;
  background-image: url("../img/demo-capture.svg");
  background-size: cover;
  background-position: center;
}

.comparison-swatch-flag {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
}

.flag-mark {
  --size: 40px;
}
.flag-mark .ring {
  stroke: var(--grease);
}

.comparison-arrow {
  color: var(--ink-faint);
  font-size: 1.4rem;
  flex: none;
}

.comparison-caption {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.ack-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.ack-card {
  max-width: 380px;
}

.ack-url {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.ack-input {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--light-table);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.compliance-card {
  max-width: 360px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card-accent {
  border-color: var(--grease);
  background: var(--grease-soft);
}

.price-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.price-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.notify-wrap {
  text-align: center;
  max-width: 640px;
}

.notify-wrap .lede {
  margin-inline: auto;
}

.notify-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.notify-input {
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--light-table-raised);
  color: var(--ink);
  font-size: 0.95rem;
  min-width: 260px;
}

.notify-input:focus-visible,
.ack-input:focus-visible {
  outline: 2px solid var(--grease);
  outline-offset: 2px;
}

.notify-status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .hero-grid,
  .ack-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-divider {
    width: auto;
    height: 1px;
  }
  .comparison-demo {
    flex-direction: column;
  }
  .comparison-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .site-nav nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    /* explicit height, not just top+bottom inset: a flex column's
       intrinsic block size otherwise wins, leaving the panel only as
       tall as its content and letting page content show through below it. */
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow-y: auto;
    z-index: 39;
    background: var(--light-table);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--edge);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease);
  }

  .site-nav nav a.nav-link {
    font-size: 1.15rem;
  }

  .site-nav.nav-open nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: none;
    cursor: pointer;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-toggle span::before {
    position: absolute;
    top: -5px;
  }
  .nav-toggle span::after {
    position: absolute;
    top: 5px;
  }

  .site-nav.nav-open .nav-toggle span {
    background: transparent;
  }
  .site-nav.nav-open .nav-toggle span::before {
    transform: translateY(5px) rotate(45deg);
  }
  .site-nav.nav-open .nav-toggle span::after {
    transform: translateY(-5px) rotate(-45deg);
  }
}
