/* Vessel Ready — Homepage V2 (private preview stylesheet).
   Phase 2A: served ONLY on the authenticated preview route.
   Do not link from the live homepage during this phase. */

:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-deep: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --navy: #10233f;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 6px 18px rgba(15, 23, 42, 0.05);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.v2-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */
.v2-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
}
.v2-btn-primary {
  background: var(--accent);
  color: #fff;
}
.v2-btn-primary:hover { background: var(--accent-dark); }
.v2-btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: #bfd3f7;
}
.v2-btn-secondary:hover { background: #f0f5ff; }
.v2-btn-lg { padding: 14px 30px; font-size: 1.06rem; }

/* ---------- Header / nav ---------- */
.v2-preview-banner {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 14px;
}
.v2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.v2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}
.v2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.v2-brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: 0.01em; }
.v2-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.v2-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
}
.v2-nav a:hover { color: var(--text); }
.v2-nav .v2-btn { color: #fff; padding: 9px 18px; }
.v2-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}
.v2-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Sections ---------- */
.v2-section { padding: 76px 0; }
.v2-section.alt { background: var(--panel); }
.v2-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.v2-section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.v2-lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 720px;
  margin: 0 0 34px;
}
.v2-center { text-align: center; }
.v2-center .v2-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.v2-hero { padding: 84px 0 70px; background:
  linear-gradient(180deg, #f6f9fd 0%, #ffffff 78%); }
.v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 54px;
  align-items: center;
}
.v2-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--navy);
}
.v2-hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 34em;
}
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.v2-hero-note { color: var(--soft); font-size: 0.92rem; margin: 0; }

.v2-hero-visual { position: relative; }
.v2-shot-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.v2-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.v2-shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.v2-hero-shot-secondary {
  position: absolute;
  right: -14px;
  bottom: -34px;
  width: 42%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

/* ---------- Card grids ---------- */
.v2-cards {
  display: grid;
  gap: 18px;
}
.v2-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.v2-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.v2-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.v2-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.v2-card-link:hover { text-decoration: underline; }
.v2-card.has-real-photo { padding-top: 0; overflow: hidden; }
.v2-card-img {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px 16px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

/* ---------- Problem ---------- */
.v2-problem p { max-width: 680px; }

/* ---------- Proof (screenshot showcase) ---------- */
.v2-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: center;
  padding: 34px 0;
}
.v2-proof-row + .v2-proof-row { border-top: 1px solid var(--border); }
.v2-proof-row.flip .v2-proof-media { order: 2; }
.v2-proof-row.flip .v2-proof-copy { order: 1; }
.v2-proof-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.v2-proof-media img.natural { aspect-ratio: auto; object-fit: unset; height: auto; }
.v2-proof-row.flip.wide-shot { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.v2-proof-row.flip.wide-shot .v2-proof-copy { padding-top: 12px; }
.v2-shot-figure { margin: 0; }
.v2-shot-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.v2-proof-fig-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  max-width: 460px;
}
.v2-proof-fig-pair .v2-proof-fig { margin-top: 0; }
.v2-proof-copy h3 { margin: 0 0 8px; font-size: 1.18rem; }
.v2-proof-copy p { margin: 0; color: var(--muted); }
.v2-proof-fig {
  margin: 16px 0 0;
  max-width: 300px;
}
.v2-proof-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.v2-proof-fig figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Trust ---------- */
.v2-trust { background: var(--navy); color: #e6edf6; }
.v2-trust h2, .v2-trust .v2-kicker { color: #fff; }
.v2-trust .v2-lead { color: #b9c7da; }
.v2-trust .v2-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.v2-trust .v2-card h3 { color: #fff; }
.v2-trust .v2-card p { color: #b9c7da; }

/* ---------- Standard ---------- */
.v2-standard-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 26px;
}
.v2-principle {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 20px;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

/* ---------- Founder ---------- */
.v2-founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 44px;
  align-items: center;
}
.v2-founder-photo {
  margin: 0;
}
.v2-founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* ---------- How it works ---------- */
.v2-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.v2-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.v2-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.v2-step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.v2-step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.v2-pricing-note { color: var(--soft); font-size: 0.9rem; max-width: 680px; margin: 8px auto 0; }
.v2-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  align-items: stretch;
}
.v2-price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.v2-price-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.v2-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.v2-price span { font-size: 0.95rem; font-weight: 500; color: var(--soft); }
.v2-price-approx { font-size: 0.8rem; color: var(--soft); margin: 0 0 10px; }
.v2-price-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
}
.v2-price-card li { margin-bottom: 6px; }
.v2-price-card .v2-btn { width: 100%; }

/* ---------- Final CTA ---------- */
.v2-final { background: linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%); }
.v2-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.v2-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: #fff;
}
.v2-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.v2-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.v2-footer-links a:hover { color: var(--text); }
.v2-footer .micro { color: var(--soft); font-size: 0.8rem; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .v2-hero-grid { gap: 36px; }
  .v2-cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .v2-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 18px 16px;
    box-shadow: var(--shadow);
  }
  .v2-nav.open { display: flex; }
  .v2-nav a { padding: 12px 4px; border-bottom: 1px solid var(--panel-deep); }
  .v2-nav .v2-btn { margin-top: 12px; }
  .v2-hamburger { display: block; }
  .v2-header-inner { position: relative; }

  .v2-hero { padding: 56px 0 84px; }
  .v2-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .v2-proof-row,
  .v2-proof-row.flip,
  .v2-proof-row.flip.wide-shot { grid-template-columns: 1fr; gap: 18px; }
  .v2-proof-row.flip .v2-proof-media { order: 0; }
  .v2-proof-row.flip .v2-proof-copy { order: 1; }
  .v2-standard-principles { grid-template-columns: 1fr; }
  .v2-founder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .v2-section { padding: 56px 0; }
  .v2-cards.cols-3,
  .v2-cards.cols-2,
  .v2-steps,
  .v2-pricing-grid { grid-template-columns: 1fr; }
  .v2-hero-actions .v2-btn { flex: 1 1 100%; }
  .v2-final-actions .v2-btn { flex: 1 1 100%; }
  .v2-hero-shot-secondary { right: 0; bottom: -28px; width: 46%; }
}
