/* Vidtuck — "maritime instrument" direction.
   Sea-fog paper, deep ink, aqua + sparse buoy orange. Bricolage Grotesque
   display, Instrument Sans body, Spline Sans Mono readouts. */

:root {
  --paper: #f2f6f5;
  --paper-2: #e8efee;
  --card: #ffffff;
  --ink: #0d2b3e;
  --ink-soft: #27485c;
  --mist: #5c7a8a;
  --line: #d2dedd;
  --line-strong: #b7c9c8;
  --aqua: #15a9bc;
  --aqua-deep: #0d8191;
  --aqua-wash: #dff3f5;
  --buoy: #ff6b35;
  --sea: #092231;
  --sea-2: #0d2e42;
  --ok: #19b87a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 23px; font-weight: 700; }
a { color: var(--aqua-deep); }

.mono {
  font-family: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--aqua-deep);
  margin-bottom: 14px;
}
.section-head { max-width: 1140px; margin: 0 auto; padding: 0 24px 40px; }
.dim { color: var(--mist); }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 20px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--aqua-deep); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { display: block; text-align: center; margin-top: 24px; }

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.brand svg { border-radius: 7px; }
.nav-links { flex: 1; display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 54px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px 90px;
}
.hero-text { flex: 1.05; }
.hero h1 { font-size: clamp(42px, 5.3vw, 68px); margin: 10px 0 24px; }
.catch { position: relative; display: inline-block; color: var(--aqua-deep); }
.catch-wave {
  position: absolute;
  left: 0;
  bottom: -7px;
  color: var(--buoy);
}
.sub { color: var(--ink-soft); font-size: 18.5px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.trust { color: var(--mist); font-size: 12px; letter-spacing: 0.12em; margin-top: 20px; text-transform: uppercase; }

/* ---------- demo (signature) ---------- */
.demo { flex: 1; min-width: 0; }
.browser {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 43, 62, 0.14);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.bdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.burl {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  color: var(--mist);
  padding: 4px 10px;
  margin: 0 8px;
}
.bext { position: relative; display: grid; place-items: center; }
.bext svg { border-radius: 4px; }
.bbadge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--ok);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.demo[data-phase="2"] .bbadge,
.demo[data-phase="3"] .bbadge,
.demo[data-phase="4"] .bbadge,
.demo[data-phase="5"] .bbadge,
.demo[data-phase="6"] .bbadge { transform: scale(1); }

.browser-page { padding: 18px 18px 22px; }
.player {
  position: relative;
  background: var(--sea);
  border-radius: 10px;
  aspect-ratio: 16 / 8.2;
  display: grid;
  place-items: center;
}
.play-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--buoy);
  color: #fff;
  padding-left: 3px;
  transition: opacity 0.3s, transform 0.3s;
}
.demo[data-phase]:not([data-phase="0"]) .play-btn { opacity: 0; transform: scale(0.6); }
.player-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.player-line i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--buoy);
  border-radius: 2px;
  transition: width 9s linear;
}
.page-lines { margin-top: 14px; }
.page-lines i {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: var(--paper-2);
  margin-bottom: 8px;
}

.pop {
  position: absolute;
  top: 44px;
  right: 10px;
  width: 252px;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: 0 16px 40px rgba(13, 43, 62, 0.22);
  padding: 11px 12px 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.demo[data-phase="3"] .pop,
.demo[data-phase="4"] .pop,
.demo[data-phase="5"] .pop,
.demo[data-phase="6"] .pop { opacity: 1; transform: translateY(0); }
.pop-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 9px;
}
.pop-head svg { border-radius: 4px; }
.pop-count {
  background: var(--aqua-wash);
  color: var(--aqua-deep);
  font-size: 10px;
  border-radius: 999px;
  padding: 1px 7px;
}
.pop-title { font-weight: 600; font-size: 12px; }
.pop-meta { display: flex; align-items: center; gap: 6px; color: var(--mist); font-size: 9.5px; margin-top: 3px; }
.pop-chip {
  background: var(--aqua-wash);
  color: var(--aqua-deep);
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 5px;
}
.pop-qualities { margin-top: 9px; transition: opacity 0.25s; }
.pop-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  margin-bottom: 5px;
}
.pop-q em { font-style: normal; color: var(--mist); font-size: 10px; }
.demo[data-phase="4"] .pop-q[data-q1080],
.demo[data-phase="5"] .pop-q[data-q1080] { border-color: var(--buoy); }
.demo[data-phase="5"] .pop-qualities,
.demo[data-phase="6"] .pop-qualities { display: none; }
.pop-progress { display: none; margin-top: 10px; }
.demo[data-phase="5"] .pop-progress { display: block; }
.pop-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.pop-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--aqua);
}
.pop-read { color: var(--mist); font-size: 9.5px; margin-top: 6px; }
.pop-saved {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: #e9f8f1;
  border: 1px solid #bfe8d4;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
}
.demo[data-phase="6"] .pop-saved { display: flex; }
.saved-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 10px;
}
.pop-saved .mono { color: var(--mist); font-weight: 400; font-size: 9.5px; margin-left: auto; }

.cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(13, 43, 62, 0.85);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(13, 43, 62, 0.4);
  top: 58%;
  left: 46%;
  transition: top 0.7s ease, left 0.7s ease, transform 0.15s;
  z-index: 5;
}
.demo[data-phase="1"] .cursor { top: 51%; left: 49.5%; }
.demo[data-phase="2"] .cursor { top: 6%; left: 93%; }
.demo[data-phase="3"] .cursor { top: 6%; left: 93%; }
.demo[data-phase="4"] .cursor { top: 48%; left: 78%; }
.demo[data-phase="5"] .cursor,
.demo[data-phase="6"] .cursor { top: 80%; left: 85%; }
.cursor.click { transform: scale(0.65); }

.demo-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 14px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--buoy);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- use-case hero ---------- */
.uc-hero {
  display: block;
  max-width: 820px;
  text-align: center;
  padding: 42px 24px 70px;
}
.uc-hero .sub { margin-left: auto; margin-right: auto; }
.uc-hero .hero-ctas { justify-content: center; }

/* ---------- steps ---------- */
.steps { max-width: 1180px; margin: 0 auto; padding: 50px 0 60px; }
.step-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.step-row li { padding: 0 32px 0 0; }
.step-row li + li { border-left: 1.5px solid var(--line); padding-left: 32px; }
.step-n {
  display: inline-block;
  color: var(--buoy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.step-row h3 { margin-bottom: 8px; }
.step-row p { color: var(--ink-soft); font-size: 15px; }

/* ---------- formats strip ---------- */
.formats {
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  color: var(--mist);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-align: center;
  padding: 16px 24px;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- feature rows ---------- */
.features { max-width: 1140px; margin: 0 auto; padding: 72px 24px 20px; }
.frow {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 38px 0;
}
.frow.flip { flex-direction: row-reverse; }
.frow + .frow { border-top: 1.5px solid var(--line); }
.ftext { flex: 1.1; }
.ftext .eyebrow { margin-bottom: 8px; }
.ftext h3 { font-size: 27px; margin-bottom: 12px; }
.ftext p { color: var(--ink-soft); max-width: 480px; }
.fvis { flex: 0.9; display: flex; justify-content: center; }
.vis-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(13, 43, 62, 0.08);
}
.vis-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.vis-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-row.pick { border-color: var(--aqua); }
.vchip {
  font-family: "Spline Sans Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 2px 6px;
}
.vchip.aqua { background: var(--aqua-wash); color: var(--aqua-deep); }
.vis-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
  margin: 12px 2px 0;
}
.vis-bar i { display: block; height: 100%; width: 60%; border-radius: 999px; background: var(--aqua); }
.vis-foot { color: var(--mist); font-size: 11px; margin-top: 11px; }
.vis-term { font-size: 12.5px; line-height: 2.1; color: var(--ink-soft); }
.vis-term .ok { color: var(--aqua-deep); font-weight: 600; }

.fair {
  margin: 56px 0 60px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 16px 20px;
}

/* ---------- use-case cards ---------- */
.ucs { max-width: 1140px; margin: 0 auto; padding: 24px 24px 84px; }
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-card {
  display: block;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.uc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13, 43, 62, 0.12);
  border-color: var(--aqua);
}
.uc-card .eyebrow { margin-bottom: 10px; }
.uc-card h3 { font-size: 20px; margin-bottom: 10px; }
.uc-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.uc-more { color: var(--aqua-deep); font-size: 12px; font-weight: 600; }
.uc-card:hover .uc-more { color: var(--buoy); }

/* ---------- guide pages ---------- */
.guide { max-width: 760px; }
.guide h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin-top: 10px; }
.guide p, .guide li { font-size: 16px; line-height: 1.75; }
.guide h2 { margin-top: 38px; }
.guide ul { margin-bottom: 14px; }
.guide li { margin-bottom: 8px; }
.guide code {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- ink band ---------- */
.band {
  background: var(--sea);
  color: #e8f1f2;
  text-align: center;
  padding: 0 24px 80px;
}
.band-wave { color: var(--aqua); display: block; max-width: 220px; margin: 0 auto; padding: 56px 0 26px; box-sizing: content-box; }
.band h2 { color: #fff; }
.band p { color: #9fb8c2; max-width: 620px; margin: 18px auto 0; }
.band a { color: #5fd4e2; }

/* ---------- pricing ---------- */
.pricing { max-width: 1140px; margin: 0 auto; padding: 84px 24px 40px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 26px;
  justify-content: center;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 32px;
}
.price-card.featured { border: 2px solid var(--ink); box-shadow: 0 18px 44px rgba(13, 43, 62, 0.12); }
.pennant {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--buoy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.plan { color: var(--mist); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 46px;
  font-weight: 800;
  margin: 8px 0 20px;
}
.price span { font-family: "Instrument Sans", sans-serif; font-size: 14px; font-weight: 500; color: var(--mist); }
.price-card ul { list-style: none; }
.price-card li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--aqua-deep);
  font-weight: 700;
}
.alt { text-align: center; color: var(--mist); font-size: 13.5px; margin-top: 12px; }
.pricing-note { text-align: center; color: var(--mist); font-size: 13.5px; margin-top: 28px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; padding: 48px 24px 90px; }
.faq .section-head { padding-left: 0; padding-right: 0; }
details { border-top: 1.5px solid var(--line); padding: 16px 4px; }
details:last-of-type { border-bottom: 1.5px solid var(--line); }
summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--aqua-deep);
  font-family: "Spline Sans Mono", monospace;
  font-size: 18px;
}
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; max-width: 660px; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--sea);
  text-align: center;
  padding: 78px 24px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 28px; }
.cta-wave { color: var(--sea-2); display: block; margin-top: 70px; }

/* ---------- footer ---------- */
footer {
  background: var(--sea);
  color: #9fb8c2;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 10px 24px 40px;
}
footer > * { max-width: 1140px; }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}
.foot-brand svg { border-radius: 6px; }
.foot-links { display: flex; gap: 22px; flex: 1; }
.foot-links a { color: #9fb8c2; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-note { font-size: 12.5px; }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 90px; }
.legal h1 { font-size: 36px; margin-bottom: 6px; }
.legal .updated { color: var(--mist); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
body:has(.legal) footer { margin-top: 0; }

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .cursor { display: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 960px) {
  .hero { flex-direction: column; padding-top: 24px; gap: 44px; }
  .hero-text { text-align: left; }
  .demo { width: 100%; max-width: 560px; }
  .step-row { grid-template-columns: 1fr; gap: 26px; }
  .step-row li + li { border-left: none; border-top: 1.5px solid var(--line); padding: 26px 0 0; }
  .step-row li { padding-right: 0; }
  .frow, .frow.flip { flex-direction: column; gap: 28px; align-items: flex-start; }
  .fvis { width: 100%; justify-content: flex-start; }
  .price-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .formats { font-size: 10.5px; letter-spacing: 0.12em; }
}
