/*
 * Seaworth's holding page (seaworth.eu while the product is off).
 *
 * It follows the homepage (seaworth/frontend/src/components/marketing/
 * seaworth-story.tsx): the same header shape, hero, chapter layout and
 * closing band. The values are Seaworth's design system v2
 * (docs/seaworth/DESIGN_SYSTEM.md; tokens in seaworth/frontend/src/app/
 * globals.css). This page cannot import them — it is plain HTML on S3 — so
 * they are restated once, here, under the same names.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --tile: #f5f7fa;
  --hairline: #edf0f4;
  --control: #e3e8ee;
  --ink-900: #182233;
  --ink-700: #3d4c63;
  --ink-500: #66728a;
  --ink-400: #8b96a7;
  --ink-300: #b6bfcc;
  --sea-600: #22836f;
  --sea-700: #1b6e5d;
  --sea-soft: #eaf6ef;
  --sea-line: #cfe6db;
  --sea-tint: #eaf6ef;
  --radius-control: 12px;
  --radius-card: 16px;
  --shadow-float: 0 1px 2px rgba(24, 34, 51, 0.04), 0 12px 32px -18px rgba(24, 34, 51, 0.18);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --page: 1390px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-900);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
p {
  margin: 0;
}
a {
  color: var(--sea-700);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--sea-600);
}
:focus-visible {
  outline: 2px solid var(--sea-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mark {
  font-weight: 600;
  color: var(--sea-700);
}

/* ---------- Header: the site header's shape ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--page);
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}
.topbar-mark img {
  display: block;
  width: 150px;
  height: auto;
}
.status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  background: var(--sea-soft);
  color: var(--sea-700);
  font-size: 13px;
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea-600);
  animation: beat 2.4s ease-out infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(34, 131, 111, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(34, 131, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 131, 111, 0); }
}

/* ---------- Hero: the homepage's ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--sea-tint), var(--ground));
}
.arcs {
  position: absolute;
  right: -160px;
  top: -224px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  fill: none;
  stroke: var(--sea-600);
  stroke-width: 1.5;
  opacity: 0.08;
}
.hero-inner {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
  padding: 112px 24px 0;
  text-align: center;
}
.hero-inner > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.accent {
  color: var(--sea-600);
}
.lede {
  max-width: 672px;
  margin: 24px auto 0;
  font-size: 1.25rem;
  line-height: 1.625;
  color: var(--ink-500);
}

/* The waitlist, in the search bar's place and shape. */
.join {
  max-width: 672px;
  margin: 36px auto 0;
  text-align: left;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 6px 0 18px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--ground);
  box-shadow: var(--shadow-float);
  transition: border-color 150ms ease;
}
.pill:focus-within {
  border-color: var(--sea-600);
}
.pill-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  font: inherit;
  font-size: 16px;
}
.pill input::placeholder {
  color: var(--ink-400);
}
.pill input:focus {
  outline: none;
}
.pill button {
  flex: none;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sea-600);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.pill button:hover {
  background: var(--sea-700);
}
.pill button:disabled {
  background: var(--ink-400);
  cursor: progress;
}
.join-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-500);
}
.join-status {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.join-status:empty {
  display: none;
}
.join-status[data-tone="ok"] {
  color: var(--sea-700);
}
.join-status[data-tone="error"] {
  color: #b4441f;
}
.join.done .pill,
.join.done .join-note {
  display: none;
}
.join.done .join-status {
  padding: 16px 20px;
  border: 1px solid var(--sea-line);
  border-radius: var(--radius-card);
  background: var(--ground);
  box-shadow: var(--shadow-float);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 32px;
  max-width: 896px;
  margin: 80px auto 0;
  padding: 20px 24px 96px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-500);
}
.sources[hidden] {
  display: none;
}
.sources .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.source-names {
  display: contents;
}
.source-names span {
  font-weight: 600;
  color: var(--ink-700);
}

/* ---------- Chapters: the homepage's layout ---------- */

.chapters {
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 24px;
}
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.chapter + .chapter {
  margin-top: 144px;
}
.chapter.flip .chapter-text {
  order: 2;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-700);
}
.eyebrow .n {
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.chapter h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.chapter-text > p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.625;
  color: var(--ink-700);
}
.chapter-text > h2 + p {
  margin-top: 20px;
}
.chapter-text .quiet {
  color: var(--ink-500);
}

.card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--ground);
  box-shadow: var(--shadow-float);
}

/* DedupeVisual, still */
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.chip {
  padding: 10px 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
}
.chip-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
}
.chip-price {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.merged {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--sea-line);
  border-radius: var(--radius-control);
  background: var(--sea-soft);
}
.merged-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.merged-name {
  font-size: 14px;
  font-weight: 600;
}
.merged-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--sea-700);
}
.history {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
}
.history path {
  fill: none;
  stroke: var(--sea-600);
  stroke-width: 2;
  stroke-linejoin: round;
}
.merged-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
}

/* The valuation card, still */
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.big {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.sea {
  color: var(--sea-700);
}
.big.sea {
  color: var(--sea-600);
}
.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-700);
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tile);
  border: 1px solid var(--control);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.range {
  position: relative;
  height: 8px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--tile);
}
.band {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 131, 111, 0.12), rgba(34, 131, 111, 0.28), rgba(34, 131, 111, 0.12));
}
.tick {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 20px;
  border-radius: 2px;
  transform: translateX(-50%);
}
.tick.asking {
  left: 19.1%;
  background: var(--ink-700);
}
.tick.estimate {
  left: 52.9%;
  background: var(--sea-600);
}
.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
}
.range-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-500);
}
.key {
  display: inline-block;
  width: 3px;
  height: 11px;
  margin: 0 5px -1px 0;
  border-radius: 2px;
}
.key.asking {
  background: var(--ink-700);
}
.key.estimate {
  margin-left: 6px;
  background: var(--sea-600);
}

/* ---------- Who pays us: the homepage's dark band ---------- */

.independence {
  background: var(--ink-900);
  color: #ffffff;
}
.independence-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 24px;
}
.eyebrow.light {
  color: #7fd1b9;
}
.eyebrow.light .n {
  color: rgba(255, 255, 255, 0.45);
}
.independence h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.independence-text p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}
.independence-text p + p {
  margin-top: 16px;
}

/* ---------- Closing band ---------- */

.closing {
  border-top: 1px solid var(--hairline);
  background: var(--sea-soft);
  padding: 96px 24px;
  text-align: center;
}
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-900);
}
.closing p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-500);
}
.cta {
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin-top: 32px;
  padding: 0 28px;
  border-radius: var(--radius-control);
  background: var(--sea-600);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.cta:hover {
  background: var(--sea-700);
  color: #ffffff;
}

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

.footer {
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  text-align: center;
}
.contact {
  font-size: 16px;
  color: var(--ink-700);
}
.contact a {
  font-weight: 600;
}
.privacy {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-500);
}
.legal {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-400);
}

/* ---------- Smaller screens: the homepage's mobile sizes ---------- */

@media (max-width: 860px) {
  .hero-inner {
    padding-top: 56px;
  }
  h1 {
    font-size: 2.6rem;
  }
  .lede {
    font-size: 1.125rem;
  }
  .sources {
    margin-top: 40px;
    padding-bottom: 40px;
  }
  .chapters {
    padding: 48px 24px;
  }
  .chapter {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .chapter + .chapter {
    margin-top: 64px;
  }
  .chapter.flip .chapter-text {
    order: 0;
  }
  .chapter h2,
  .independence h2,
  .closing h2 {
    font-size: 1.875rem;
  }
  .chapter-text > p:not(.eyebrow),
  .independence-text p {
    font-size: 16px;
  }
  .independence-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 64px 24px;
  }
  .closing {
    padding: 56px 24px;
  }
}

@media (max-width: 520px) {
  .topbar-mark img {
    width: 124px;
  }
  .status {
    font-size: 12px;
    padding: 0 10px;
  }
  .pill {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 8px 8px 16px;
    border-radius: 24px;
  }
  .pill input {
    height: 40px;
  }
  .pill button {
    width: 100%;
  }
  .chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

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