/* SiteSailors public marketing page.
   Self-contained: the admin and message pages keep using styles.css. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chivo';
  src: url('/assets/fonts/chivo.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b2434;
  --ink-deep: #071a26;
  --ink-line: #1b3a4e;
  --amber: #ffb114;
  --amber-ink: #6b4e00;
  --amber-deep: #8a6000;
  --paper: #ffffff;
  --mist: #edf1f3;
  --body-text: #2a4354;
  --slate: #4a6272;
  --line: #dce4e9;
  --on-ink: #9fb4c2;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 20px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Room for the fixed mobile action bar. */
  padding-bottom: 76px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--amber-deep); }

/* Inline links inside running copy. They carry an underline because colour
   alone is not an affordance, and they flip to amber on the dark sections —
   the default ink would be invisible there. */
.prose a:not(.btn),
.faq a:not(.btn),
.checkbox-label a:not(.btn),
.price-footnote a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.faq a:not(.btn),
.checkbox-label a:not(.btn) { color: var(--ink); }
.faq a:not(.btn):hover,
.checkbox-label a:not(.btn):hover { color: var(--amber-deep); }

.section-ink .prose a:not(.btn),
.price-footnote a:not(.btn) { color: var(--amber); }
.section-ink .prose a:not(.btn):hover,
.price-footnote a:not(.btn):hover { color: #ffc95e; }

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

.on-ink :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 20px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffc140; color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #12384f; color: var(--paper); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-full { width: 100%; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1.5px solid #2f5670;
  padding-bottom: 4px;
}
.link-quiet:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- header ---------- */

.site-header { background: var(--ink); }

/* Mobile puts the links on their own row under the bar; desktop pulls them
   into it. Grid areas do the move, so neither state needs absolute positioning. */
.header-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand cta'
    'nav nav';
  align-items: center;
  column-gap: 16px;
  padding-block: 10px 0;
}
.header-shell .brand { grid-area: brand; }
.header-shell .header-cta { grid-area: cta; }
.header-shell .site-nav { grid-area: nav; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.header-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.site-nav {
  display: flex;
  margin-top: 10px;
  /* Bleed past the wrap padding so the rule spans the full width. */
  margin-inline: calc(var(--gutter) * -1);
  border-top: 1px solid var(--ink-line);
}
.site-nav a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #c9d8e1;
  text-decoration: none;
  text-align: center;
}
.site-nav a + a { border-left: 1px solid var(--ink-line); }
.site-nav a:hover { color: var(--amber); }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  padding-block: 40px 44px;
  /* The desktop hero runs the preview past the content column to the screen
     edge; clip it here so it never adds a horizontal scrollbar. */
  overflow: hidden;
}

.hero-grid { display: grid; gap: 22px; }
.hero-copy { display: grid; gap: 18px; }

.hero h1 {
  font-size: clamp(38px, 10.4vw, 43px);
  color: var(--paper);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-sub {
  font-size: 17px;
  color: var(--on-ink);
}

.hero-actions { display: grid; gap: 18px; justify-items: stretch; }
/* Kept to its own width so the underline reads as a link, not a divider. */
.hero-actions .link-quiet { justify-self: start; }

/* ---------- browser frame ---------- */

.frame {
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  background: #e7edf1;
}
.frame-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3cfd8;
  flex: none;
}
.frame-url {
  font-size: 13px;
  color: #5d7583;
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: top center;
}

.frame-soft { box-shadow: 0 12px 28px rgba(11, 36, 52, 0.14); }

/* ---------- terms band ---------- */

.terms { background: var(--amber); padding-block: 28px; }
.term { padding-block: 14px; }
.term + .term { border-top: 1.5px solid rgba(11, 36, 52, 0.22); }
.term-figure {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.term-note {
  display: block;
  font-size: 15px;
  color: var(--amber-ink);
  margin-top: 4px;
}

/* ---------- generic sections ---------- */

.section { padding-block: 48px; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); }

.section h2 { font-size: clamp(30px, 8.4vw, 34px); color: var(--ink); }
.section-ink h2 { color: var(--paper); }

.prose { display: grid; gap: 16px; margin-top: 18px; }
.prose p { font-size: 17px; line-height: 1.62; }
.section-ink .prose p { color: var(--on-ink); }
.section-ink .prose .emphasis { color: var(--paper); }
.prose .emphasis { color: var(--ink); font-weight: 700; }

.section-intro { font-size: 16px; color: var(--slate); margin-top: 10px; }

/* ---------- the work ---------- */

.work-list { display: grid; gap: 24px; margin-top: 24px; }
.work-item { display: grid; gap: 12px; }

/* On a phone the secondary projects swipe sideways instead of stacking.
   Five stacked previews cost about 900px of scrolling and pushed the price
   below the fold; the partial next card is the affordance that they scroll. */
.work-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 4px;
}
.work-grid .work-item { scroll-snap-align: start; }
.work-grid .frame img { height: 124px; }
.work-grid .work-caption h3 { font-size: 18px; }
.work-grid .work-caption span { font-size: 14px; }
.work-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.work-caption h3 { font-size: 20px; color: var(--ink); }
.work-caption span { font-size: 15px; color: var(--slate); }
.work-more { margin-top: 24px; }

/* ---------- pricing ---------- */

.ledger { margin-top: 24px; }
.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.ledger-row:last-of-type { border-bottom: 2px solid var(--ink); }
.ledger-row dt { font-size: 16px; line-height: 1.4; margin: 0; }
.ledger-row dd { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; margin: 0; }

.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
}
.ledger-total span:first-child { font-size: 17px; font-weight: 700; color: var(--ink); }
.ledger-total span:last-child {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ledger-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}

.price-card {
  background: var(--ink);
  border-radius: 12px;
  padding: 28px 24px;
  margin-top: 28px;
  display: grid;
  gap: 20px;
}
.price-label { font-size: 15px; color: var(--on-ink); }
.price-figure { display: flex; align-items: baseline; gap: 8px; }
.price-figure strong {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-figure span { font-size: 16px; color: var(--on-ink); }
.price-then { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-then strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.03em;
}
.price-then span { font-size: 16px; color: var(--on-ink); }

.rule { height: 1px; background: var(--ink-line); border: none; margin: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--paper); }
.ticks svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }

.price-footnote { font-size: 15px; line-height: 1.5; color: var(--on-ink); }

/* ---------- promise ---------- */

.promise { background: var(--amber); padding-block: 48px; }
.promise h2 {
  font-size: clamp(32px, 9.6vw, 40px);
  color: var(--ink);
  letter-spacing: -0.032em;
}
.promise p { font-size: 17px; line-height: 1.6; color: var(--amber-ink); margin-top: 16px; }

/* ---------- timeline ---------- */

.steps { display: grid; gap: 28px; margin-top: 28px; }
.step { border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; }
.step-last { border-top-color: var(--amber); }
.step-day {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--amber-deep);
}
.step h3 { font-size: 23px; color: var(--ink); }
.step p { font-size: 16px; line-height: 1.58; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 26px; margin-top: 26px; }
.faq h3 { font-size: 18px; color: var(--ink); letter-spacing: -0.015em; }
.faq p { font-size: 16px; line-height: 1.58; color: #3c5567; margin-top: 8px; }

/* ---------- start / form ---------- */

.start { background: var(--ink); padding-block: 44px 48px; }
.start h2 { font-size: clamp(32px, 9vw, 36px); color: var(--paper); letter-spacing: -0.03em; }
.start-sub { font-size: 17px; line-height: 1.6; color: var(--on-ink); margin-top: 16px; }
.start-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.start-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--paper); }
.start-points svg { width: 17px; height: 17px; flex: none; margin-top: 4px; }

.inquiry-form {
  background: var(--paper);
  border-radius: 12px;
  padding: 24px 20px;
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.form-header h3 { font-size: 21px; color: var(--ink); }
.form-header p { font-size: 14px; color: var(--slate); margin-top: 6px; }

.form-grid { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label span { font-weight: 400; color: var(--slate); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #c6d2da;
  border-radius: 6px;
  padding: 11px 12px;
  font-family: var(--text);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #9fb0bd; }
.field [aria-invalid='true'] { border-color: #b3261e; }

.field-error { font-size: 14px; color: #b3261e; }
.field-error:empty { display: none; }

.domain-details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
}
.domain-details summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-height: 24px;
}
.domain-details summary span { font-weight: 400; color: var(--slate); }
.domain-details .form-grid { margin-top: 16px; }
.domain-details > p { font-size: 14px; color: var(--slate); margin-top: 12px; }

/* Honeypot: off-screen but not display:none, so bots still fill it. */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent-field { display: grid; gap: 6px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-text);
  font-weight: 400;
  cursor: pointer;
}
.checkbox-label input {
  width: 24px;
  height: 24px;
  min-height: 0;
  flex: none;
  margin-top: 2px;
  accent-color: var(--ink);
}

.form-status { font-size: 15px; line-height: 1.5; color: #b3261e; }
.form-status:empty { display: none; }

.form-note { font-size: 13px; line-height: 1.5; color: var(--slate); }

/* The second way into the same conversation. Sits below the submit button on
   purpose: it should catch someone who has already hesitated, not offer an
   easier exit to someone who was about to fill the form in. */
.form-alt {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
}
.form-alt a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.form-alt a:hover { color: var(--amber-deep); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink-deep); padding-block: 26px 30px; }
.footer-inner { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: #8fa6b5;
  text-decoration: none;
}
.footer-links a:hover { color: var(--amber); }
.footer-note { font-size: 14px; color: #56707f; }

/* ---------- fixed mobile action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 76px;
  background: rgba(7, 26, 38, 0.97);
  border-top: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--gutter);
}
.action-bar-copy { display: grid; }
.action-bar-copy strong { font-size: 15px; font-weight: 700; color: var(--paper); }
.action-bar-copy span { font-size: 14px; color: #8fa6b5; }
.action-bar .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* ================= desktop ================= */

@media (min-width: 900px) {
  :root { --gutter: 40px; }

  body { font-size: 18px; padding-bottom: 0; }

  .action-bar { display: none; }

  .header-shell {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav cta';
    min-height: 84px;
    padding-block: 0;
    column-gap: 40px;
  }
  .brand svg { width: 30px; height: 30px; }
  .brand span { font-size: 23px; }

  .site-nav {
    margin: 0;
    border-top: none;
    justify-self: end;
    align-items: center;
  }
  .site-nav a {
    flex: none;
    min-height: 44px;
    padding: 0 19px;
    font-size: 15px;
  }
  .site-nav a + a { border-left: none; }
  .header-cta { min-height: 46px; padding: 0 22px; }

  .hero { padding-block: 84px 92px; }
  .hero-grid {
    grid-template-columns: 536px minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .hero-copy { display: grid; gap: 28px; }
  .hero h1 { font-size: 62px; letter-spacing: -0.032em; line-height: 0.99; }
  .hero-sub { font-size: 19px; max-width: 500px; }
  .hero-actions {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 24px;
  }
  .hero-actions .btn { min-height: 60px; padding: 0 32px; }

  .frame-bar { min-height: 38px; padding: 0 16px; gap: 7px; }
  .frame-dot { width: 9px; height: 9px; }

  /* Wider than its grid track on purpose: the preview keeps close to the
     screenshot's own 2.2:1 shape, so nothing is cropped mid-word. */
  .hero .frame { width: 820px; max-width: none; }
  .hero .frame img { height: 372px; }

  .terms {
    padding-block: 40px;
    display: grid;
  }
  .terms .wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
  }
  .term { padding-block: 0; }
  .term + .term {
    border-top: none;
    border-left: 1.5px solid rgba(11, 36, 52, 0.22);
    padding-left: 56px;
  }
  .term-figure { font-size: 38px; }

  .section { padding-block: 92px; }
  .section h2 { font-size: 50px; }

  .split {
    display: grid;
    grid-template-columns: 470px minmax(0, 1fr);
    gap: 88px;
    align-items: start;
  }
  .split-middle { align-items: center; }
  .split .prose { margin-top: 0; }
  .prose p { font-size: 20px; }

  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
  }
  .section-intro { max-width: 400px; margin-top: 0; padding-bottom: 8px; font-size: 17px; }

  .work-list { gap: 44px; margin-top: 52px; }
  .work-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 44px;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
  .work-grid .work-caption h3 { font-size: 22px; }
  .work-grid .work-caption span { font-size: 15px; }
  .work-feature .frame img { height: 440px; }
  .work-grid .frame img { height: 258px; }
  .work-feature .work-caption h3 { font-size: 26px; }
  .work-feature .work-caption span { font-size: 16px; }
  .work-caption h3 { font-size: 22px; }
  .work-more { display: none; }

  .pricing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 96px;
    align-items: start;
  }
  .ledger { margin-top: 34px; }
  .ledger-row { padding-block: 17px; gap: 32px; }
  .ledger-row dt, .ledger-row dd { font-size: 18px; }
  .ledger-total { padding-top: 20px; }
  .ledger-total span:first-child { font-size: 19px; }
  .ledger-total span:last-child { font-size: 30px; }

  .price-card { margin-top: 0; padding: 40px 36px; gap: 26px; }
  .price-label { font-size: 16px; }
  .price-figure strong { font-size: 74px; }
  .price-figure span, .price-then span { font-size: 17px; }
  .price-then strong { font-size: 40px; }
  .ticks li { font-size: 16px; }
  .ticks svg { width: 18px; height: 18px; }

  .promise {
    padding-block: 84px;
    text-align: center;
  }
  .promise h2 { font-size: 62px; max-width: 900px; margin-inline: auto; line-height: 1; }
  .promise p { font-size: 21px; max-width: 760px; margin-inline: auto; margin-top: 24px; }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    margin-top: 48px;
  }
  .step { padding-top: 22px; gap: 14px; }
  .step-day { font-size: 20px; }
  .step h3 { font-size: 27px; }
  .step p { font-size: 17px; }

  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 72px;
    margin-top: 44px;
  }
  .faq h3 { font-size: 20px; }
  .faq p { font-size: 17px; }

  .start { padding-block: 88px; }
  .start .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 96px;
    align-items: start;
  }
  .start h2 { font-size: 56px; }
  .start-sub { font-size: 20px; max-width: 460px; }
  .start-points li { font-size: 17px; }
  .inquiry-form { margin-top: 0; padding: 34px; gap: 18px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }

  .site-footer { padding-block: 0; min-height: 110px; display: flex; align-items: center; }
  .footer-inner {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .footer-links { gap: 32px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
