/* Cruisy's website.

   Paper and navy ink, with brass for the few things that should catch the
   eye, as in the app's cruise passport. One serif for headings (Apple's New
   York where there is one, as in the app) and the system's sans for the
   rest. No web fonts and no scripts. */

:root {
  --paper: #f6f3ec;
  --paper-deep: #ede8dc;
  --ink: #0b1b3a;
  --ink-soft: #46536d;
  --ink-faint: #7a8498;
  --rule: rgba(11, 27, 58, 0.12);
  --brass: #a8762c;          /* on paper: dark enough to read */
  --brass-bright: #e0b86b;   /* on navy */
  --navy: #061533;
  --navy-lift: #0b2350;
  --button: #0b1b3a;
  --button-ink: #ffffff;
  --chart: rgba(11, 27, 58, 0.075);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --page: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #080f20;
    --paper-deep: #0c1630;
    --ink: #eef1f8;
    --ink-soft: #aab4c8;
    --ink-faint: #7d889e;
    --rule: rgba(255, 255, 255, 0.12);
    --brass: #e0b86b;
    --navy: #0e2149;
    --navy-lift: #163063;
    --button: #eef1f8;
    --button-ink: #0b1b3a;
    --chart: rgba(224, 184, 107, 0.09);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.wrap { width: min(var(--page), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* Header: the name, and the one place most people are looking for. */

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem var(--serif); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header nav { display: flex; gap: 28px; font-size: 0.95rem; }
.site-header nav a { text-decoration: none; color: var(--ink-soft); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) { .site-header nav .wide { display: none; } }

/* Phones: the framed screenshots, with a soft shadow on the paper. */

.phone { width: 300px; filter: drop-shadow(0 30px 40px rgba(6, 21, 51, 0.22)) drop-shadow(0 6px 10px rgba(6, 21, 51, 0.12)); }
@media (prefers-color-scheme: dark) {
  .phone { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }
}

/* Hero */

.hero { position: relative; overflow: hidden; text-align: center; padding: 56px 0 0; }
/* The phones go down into the section below, which rises over them. */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--paper-deep)); pointer-events: none; z-index: 2; }
.hero .chart { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--chart); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .icon { width: 104px; height: 104px; margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 14px 30px rgba(6, 21, 51, 0.25); }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36ch; margin: 0 auto; text-wrap: balance; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 34px 0 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--button); color: var(--button-ink);
  font: 600 1rem var(--sans); text-decoration: none; border: 0; cursor: pointer;
}
.button svg { width: 20px; height: 20px; }
.cta .fine { font-size: 0.9rem; color: var(--ink-faint); }

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; margin-top: 64px; height: 560px; }
.hero-phones .phone { position: relative; }
.hero-phones .side { width: 250px; margin-top: 90px; }
.hero-phones .side.left { margin-right: -48px; }
.hero-phones .side.right { margin-left: -48px; }
.hero-phones .centre { width: 300px; z-index: 1; }
@media (max-width: 760px) {
  .hero-phones { height: 470px; margin-top: 48px; }
  .hero-phones .side { display: none; }
  .hero-phones .centre { width: 260px; }
}

/* Sections */

.section { padding: 128px 0; }
/* A section that carries on from the one above, on the same ground. */
.section.tight { padding-top: 0; }
.band { background: var(--paper-deep); }

.feature { display: grid; grid-template-columns: 1fr 300px; gap: 96px; align-items: center; }
.feature.reverse { grid-template-columns: 300px 1fr; }
.feature.reverse .copy { order: 2; }
.feature .copy { max-width: 30rem; }
.feature h2 { margin-bottom: 22px; }
.feature p { color: var(--ink-soft); font-size: 1.15rem; }
.feature .phone { justify-self: center; }
@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .feature.reverse .copy { order: 0; }
  .feature .copy { margin-inline: auto; }
  .feature .phone { width: 260px; }
}

.detail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.98rem; color: var(--ink-faint); }

/* Figures: as the app sets out a cruise's numbers, a figure to a column. */

.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures div { padding: 36px 20px; text-align: center; }
.figures div + div { border-left: 1px solid var(--rule); }
.figures strong { display: block; font: 700 2.4rem/1.1 var(--serif); letter-spacing: -0.01em; }
.figures span { display: block; margin-top: 8px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures div:nth-child(3) { border-left: 0; }
  .figures div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .figures div { padding: 28px 12px; }
}

/* The passport: the one navy part of the page. */

.passport { background: radial-gradient(900px 500px at 75% 10%, var(--navy-lift), transparent 70%), var(--navy); color: #fff; overflow: hidden; position: relative; }
.passport h2 { color: #fff; }
.passport p { color: rgba(255, 255, 255, 0.74); }
.passport .detail { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.14); }
.passport .brass { color: var(--brass-bright); }
.passport .rose { position: absolute; width: 720px; right: -200px; bottom: -260px; color: var(--brass-bright); opacity: 0.08; pointer-events: none; }
.passport .phone { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }

/* The Atlas: the passport opened out, on the same navy. */

.atlas { position: relative; margin-top: 144px; }
.atlas-head { text-align: center; max-width: 40rem; margin: 0 auto 56px; }
.atlas-head h2 { margin-bottom: 20px; }
.atlas-head p:last-child { font-size: 1.2rem; margin: 0; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.passport .eyebrow { color: var(--brass-bright); }

.figures.on-navy { border-color: rgba(255, 255, 255, 0.14); }
.figures.on-navy div { border-color: rgba(255, 255, 255, 0.14); }
.figures.on-navy strong { color: var(--brass-bright); font-size: 3rem; }
.figures.on-navy span { color: rgba(255, 255, 255, 0.6); }

.atlas-body { display: grid; grid-template-columns: 410px 1fr; gap: 72px; align-items: center; margin-top: 96px; }
.atlas-phones { display: flex; align-items: flex-start; }
.atlas-phones .phone { width: 260px; flex: none; }
.atlas-phones .phone + .phone { margin-left: -110px; margin-top: 150px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 40px; }
.stat-grid > div { padding-top: 18px; border-top: 1px solid rgba(224, 184, 107, 0.35); }
.stat-grid .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 8px; }
.stat-grid h3 { color: #fff; margin-bottom: 8px; }
.stat-grid p:last-child { font-size: 0.98rem; margin: 0; }


@media (max-width: 960px) {
  .atlas-body { grid-template-columns: 1fr; gap: 64px; }
  .atlas-phones { justify-content: center; }
}
@media (max-width: 860px) {
  .atlas { margin-top: 112px; }
  .atlas-body { margin-top: 64px; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; gap: 32px; }
  .atlas-phones .phone { width: 190px; }
  .atlas-phones .phone + .phone { margin-left: -70px; margin-top: 90px; }
  .figures.on-navy strong { font-size: 2.4rem; }
}

/* Cruisy Pro */

.pro { text-align: center; }
.pro h2 { max-width: 22ch; margin: 0 auto 20px; }
.pro > .wrap > p { color: var(--ink-soft); font-size: 1.15rem; max-width: 40ch; margin-inline: auto; }
.pro .includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 56px 0 0; text-align: left; }
.pro .includes h3 { margin-bottom: 8px; }
.pro .includes p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.pro .includes > div { padding-top: 22px; border-top: 2px solid var(--brass); }
@media (max-width: 760px) { .pro .includes { grid-template-columns: 1fr; gap: 28px; } }

/* Privacy */

.promise { text-align: center; }
.promise h2 { max-width: 20ch; margin: 0 auto 22px; }
.promise p { color: var(--ink-soft); font-size: 1.15rem; max-width: 44ch; margin: 0 auto; }

/* Questions: set out, not hidden behind a tap. */

.questions h2 { margin-bottom: 48px; }
.questions dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; margin: 0; }
.questions dt { font-weight: 600; margin-bottom: 8px; }
.questions dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 760px) { .questions dl { grid-template-columns: 1fr; gap: 32px; } }

/* Pages of words: privacy, terms, support. */

.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 46ch; margin-top: 20px; }
.doc { padding: 0 0 120px; }
.doc .wrap { max-width: 720px; margin-left: max(20px, (100% - var(--page)) / 2); }
.doc .wrap > :first-child { margin-top: 0; }
.doc .updated { color: var(--ink-faint); font-size: 0.92rem; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.doc h2 { font-size: 1.55rem; margin: 2.2em 0 0.7em; }
.doc h3 { margin: 1.8em 0 0.5em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0.5em 0; }

/* Support form */

.form { display: grid; gap: 18px; margin-top: 28px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: 1rem var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 12px; padding: 13px 14px; width: 100%;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: transparent; }
.form .hidden { display: none; }
.form .button { justify-self: start; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 0.92rem; color: var(--ink-faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .small { width: 100%; margin: 4px 0 0; font-size: 0.82rem; }
