/* ============================================================
   ShipFaced — shipfacedapp.com
   Palette is lifted from the app itself (src/utils/themeColors.ts)
   and the Play feature graphic, so the site and the store listing
   read as one thing.
   ============================================================ */

:root {
  --ink:        #0b1120;
  --ink-2:      #111827;
  --surface:    #1a2333;
  --surface-2:  #1f2937;
  --line:       #2c3a4f;
  --white:      #f9fafb;
  --muted:      #9aa7ba;
  --muted-2:    #7d8ca3;
  --red:        #dc2626;
  --red-bright: #ef4444;
  --green:      #22c55e;
  --blue:       #60a5fa;
  --orange:     #fb923c;

  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --pad: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 12px 18px; z-index: 100;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

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

/* ---------- shared type ---------- */

.h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 48px;
  text-wrap: balance;
}
.h2.left { text-align: left; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 56ch;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.small { font-size: 15px; color: var(--muted-2); line-height: 1.65; }
.small.center { text-align: center; max-width: 60ch; margin: 0 auto; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 700;
  margin: 0 0 18px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 10px 20px; border-radius: 999px;
}
.nav-cta:hover { background: var(--red-bright); }

@media (max-width: 780px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-brand img { height: 38px; }
}

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

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 720px;
  background:
    radial-gradient(60% 60% at 18% 12%, rgba(220, 38, 38, .26), transparent 70%),
    radial-gradient(50% 50% at 82% 30%, rgba(34, 197, 94, .12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--red-bright) 0%, #f97316 52%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-note { font-size: 15px; color: var(--muted-2); margin: 20px 0 0; }

/* store badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badges.center { justify-content: center; }
.badge { display: inline-block; transition: transform .18s ease, opacity .18s ease; }
.badge:hover { transform: translateY(-2px); }
.badge-apple img { width: 168px; height: auto; }
.badge-play img { width: 191px; height: auto; } /* sized so its pill matches Apple's; the PNG's own padding is the clear space Google requires */
.badge[aria-disabled="true"] { opacity: .45; pointer-events: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede, .hero .eyebrow { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
}

/* ---------- phone mockup ----------
   A recreation of the app's own screens, not a screenshot. Sizes are the app's
   point values scaled by ~0.65, which is the ratio of this 278px screen to the
   430pt device the reference screenshots came from. Colors are the dark-theme
   values from src/utils/themeColors.ts, so the mockup and the app cannot drift
   apart on palette. If a screen changes materially in the app, change it here.
   ------------------------------------------------------------------------- */

.hero-phone, .split-phone { display: flex; justify-content: center; }

.phone {
  width: 300px;
  max-width: 82vw;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #3b4757, #161d2a 45%, #2a3646);
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #111827;                 /* themeColors.dark.background */
  display: flex;
  flex-direction: column;
  /* Close to the reference device, so the tab bar sits at the bottom and longer
     content is clipped by it as on the real screen. Stretched a few percent past
     the true 430/932 so the Track screen's impact figure clears the tab bar
     instead of being sliced through the digits. */
  aspect-ratio: 430 / 975;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* --- status bar, drawn over the red banner as on the device --- */
.status-bar {
  background: #ef4444;                 /* themeColors.dark.red */
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 24px 3px;
  position: relative;
}
.sb-time { font-size: 9.5px; font-weight: 700; color: #fff; }
.sb-island {
  position: absolute; left: 50%; transform: translateX(-50%); top: 5px;
  width: 60px; height: 18px; border-radius: 999px; background: #000;
}
.sb-right { display: flex; align-items: center; gap: 4px; }
.sb-wifi { width: 9px; height: 9px; display: block; fill: #fff; }
.sb-batt { display: block; width: 15px; height: 8px; border-radius: 2px; background: #fff; }

/* --- red banner: chevrons flanking the stacked wordmark --- */
.app-header {
  background: #ef4444;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 10px 8px;
}
.hdr-chev { width: 28px; display: flex; justify-content: center; }
.hdr-chev svg { width: 18px; height: 18px; fill: #fff; }
.hdr-mid { display: flex; flex-direction: column; align-items: center; }
.app-logo { width: 43px; height: 31px; object-fit: contain; }
.app-header-sub {
  color: #f3f4f6;
  font-size: 9px; margin-top: 1px;
}

/* --- scrolling body --- */
.app-body {
  padding: 15px; background: #111827;
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0; overflow: hidden;
}

/* The counter card is the page colour with a border, exactly as in the app.
   The progress and summary cards sit one step lighter. */
.card {
  border: 1px solid #374151;           /* themeColors.dark.border */
  border-radius: 11px;
  padding: 15px;
}
.card-count { background: #111827; }
.card-progress { background: #1f2937; margin-top: 19px; }
.rows { background: #1f2937; }

.c-label { text-align: center; font-size: 10px; color: #d1d5db; }
.c-count { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-top: 4px; }
.c-count .big {
  font-family: var(--display);
  font-size: 39px; color: #ef4444; line-height: 1;
}
.c-count .sm { font-size: 13px; color: #9ca3af; font-weight: 500; }
.c-na { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-top: 4px; }
.c-na .n { font-family: var(--display); font-size: 19px; color: #60a5fa; }
.c-na .t { font-size: 10px; color: #9ca3af; font-weight: 500; }

/* 32pt taps at device scale; sized here so ten still fit on a row. */
.dots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 15px; }
.dots i {
  width: 18px; height: 18px; border-radius: 50%;
  background: #374151;
  display: grid; place-items: center;
}
.dots i.alc { background: #ef4444; }
.dots i.na { background: #60a5fa; }
.dots i svg { width: 7px; height: 7px; fill: #fff; }

.c-sub { text-align: center; font-size: 9px; color: #9ca3af; margin-top: 10px; }
.c-hint { text-align: center; font-size: 7.5px; color: #9ca3af; margin-top: 5px; }

.btn-add {
  background: #ef4444;
  color: #fff;
  border-radius: 8px;
  margin-top: 15px;
  padding: 13px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 700;
}
.btn-add svg { width: 18px; height: 18px; fill: #fff; }

.cp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 11.5px; color: #f9fafb; margin-bottom: 10px;
}
.cp-head .trend { width: 15px; height: 15px; fill: #ef4444; }

.bar { height: 10px; border-radius: 999px; background: #374151; overflow: hidden; }
.bar span { display: block; height: 100%; background: #ef4444; border-radius: 999px; }
.cp-pct { text-align: center; font-size: 9px; color: #d1d5db; margin-top: 5px; }

.cp-row { display: flex; justify-content: space-between; margin-top: 10px; }
.cp-row .right { text-align: right; }
.k { font-size: 9px; color: #9ca3af; }
.v { font-size: 15px; font-weight: 700; color: #f9fafb; }

.cp-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #374151; text-align: center; }
.impact { font-family: var(--display); font-size: 19px; }
.impact.neg { color: #ef4444; }
.impact.pos { color: #22c55e; }

/* --- stats screen --- */
.total {
  text-align: center; font-family: var(--display);
  font-size: 31px; color: #22c55e; line-height: 1.1; margin: 3px 0;
}
.sec-h {
  font-size: 11.5px; font-weight: 700; color: #f9fafb;
  margin: 16px 0 0;
}
.rows { margin-top: 9px; display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.row { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.ic {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
}
.ic svg { width: 13px; height: 13px; display: block; }
/* The app pairs each icon with its *Light background from the dark palette. */
.ic.red    { background: #7f1d1d; }
.ic.red    svg { fill: #ef4444; }
.ic.blue   { background: #1e3a8a; }
.ic.blue   svg { fill: #60a5fa; }
.ic.orange { background: #7c2d12; }
.ic.orange svg { fill: #fb923c; }
.ic.green  { background: #14532d; }
.ic.green  svg { fill: #22c55e; }
.day-card { background: #111827; margin-top: 9px; padding: 10px; }
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.day-n { font-size: 10px; font-weight: 700; color: #f9fafb; }
.day-counts { display: flex; gap: 8px; }
.day-counts span { display: flex; align-items: center; gap: 2px; font-size: 9px; color: #d1d5db; }
.day-counts svg { width: 10px; height: 10px; }
.ic-red { fill: #ef4444; }
.ic-blue { fill: #60a5fa; }
.day-row { display: flex; justify-content: space-between; align-items: center; }
.day-row .mid { text-align: center; }
.day-row .end { text-align: right; }
.dk { font-size: 7.5px; color: #9ca3af; }
.dv { font-size: 10px; font-weight: 600; color: #f9fafb; }
.dv.pos { color: #22c55e; font-weight: 700; }
.dv.neg { color: #ef4444; font-weight: 700; }

.rl { color: #f9fafb; }
.rv { margin-left: auto; font-weight: 700; color: #f9fafb; font-size: 12px; }

/* --- tab bar --- */
.app-tabs {
  display: flex; border-top: 1px solid #374151;
  background: #111827; padding: 9px 0 12px;
  flex: 0 0 auto;
}
.app-tabs span {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 7.5px; font-weight: 600; color: #9ca3af;
}
.app-tabs svg { width: 15px; height: 15px; fill: #9ca3af; }
.app-tabs .on { color: #ef4444; }
.app-tabs .on svg { fill: #ef4444; }

/* ---------- break-even strip ---------- */

.strip {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0;
}
.strip-h {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 38px);
  text-align: center;
  margin: 0 0 40px;
}

.meter { max-width: 760px; margin: 0 auto; }
.meter-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: #212c3d;
  overflow: visible;
}
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, #f97316 52%, var(--green) 78%);
  transition: width 1.6s cubic-bezier(.22, .9, .26, 1);
}
.meter.go .meter-fill { width: 84%; }

.meter-mark {
  position: absolute; top: -10px; bottom: -10px;
  width: 2px; background: rgba(255, 255, 255, .85);
}
.meter-mark span {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .12em; font-weight: 700; white-space: nowrap;
}
.meter-legend {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 46px; font-size: 13px; color: var(--muted-2);
}
.meter-legend span:last-child { text-align: right; color: var(--green); }

/* ---------- bands ---------- */

.band { padding: clamp(64px, 9vw, 112px) 0; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  counter-reset: s;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px 28px;
}
.step-n {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-size: 19px;
  margin-bottom: 18px;
}
.steps h3 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- split (stats) ---------- */

.split {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split-copy .h2 { margin-bottom: 24px; }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; color: var(--white); }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

@media (max-width: 880px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-copy .h2, .split-copy .lede { text-align: center; margin-left: auto; margin-right: auto; }
  .split-copy .h2.left { text-align: center; }
}

/* ---------- features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); border-color: #3d4d66; }
.feat h3 {
  font-size: 18px; margin: 0 0 10px; font-weight: 700;
}
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- cruise lines ---------- */

.lines { padding: clamp(56px, 8vw, 96px) 0; background: var(--ink-2); border-top: 1px solid var(--line); }
/* Plain text separated by dots. A bordered pill reads as a button, and these
   are a list of supported lines, not something to click. */
.line-list {
  list-style: none; margin: 0 auto 28px; padding: 0;
  max-width: 820px;
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: baseline;
  column-gap: 34px; row-gap: 10px;
}
.line-list li {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  white-space: nowrap;
}


/* ---------- privacy ---------- */

.privacy { padding: clamp(64px, 9vw, 112px) 0; }
.privacy-inner { max-width: 900px; }

.p-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 8px 0 32px;
}
.p-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  background: var(--surface);
}
.p-grid strong { display: block; font-size: 16px; margin-bottom: 6px; }
.p-grid span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- final CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(220, 38, 38, .3), transparent 68%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta-icon {
  width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px;
  background: #fff;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7);
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.06;
  margin: 0 0 14px;
}
.cta p { color: var(--muted); margin: 0 0 32px; font-size: 17px; }
.age { font-size: 13px; color: var(--muted-2); margin-top: 28px !important; }

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

.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.foot-brand img { width: 124px; height: auto; margin-bottom: 10px; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--muted-2); }
.foot-brand a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.foot-brand a:hover { color: var(--white); text-decoration-color: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }

.foot-legal { margin-top: 36px; }
.foot-legal p {
  font-size: 12px; line-height: 1.65; color: #6b7a90; margin: 0;
  border-top: 1px solid var(--line); padding-top: 24px;
}

/* ---------- scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
