/* ==========================================================================
   Fonts — the ship's lettering
   ========================================================================== */
@font-face {
  font-family: "Podium";
  src: url("assets/fonts/podium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Reset / base — scrub the deck clean
   ========================================================================== */
:root {
  --color-primary: #e73a04;
  /* title sizes — clamp(min, preferred, max); h2 sails a wee bit smaller than h1 */
  --h1-size: clamp(2.5rem, 13vw, 6rem);
  --h2-size: calc(var(--h1-size) * 0.85);
  --font-podium: "Podium", sans-serif;
  --font-inter: "Inter", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-inter);
  font-size: 1.4rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #fff;
}

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

h1 {
  font-family: var(--font-podium);
  font-weight: 400;
  font-size: var(--h1-size);
  line-height: 0.99;
}

.container {
  width: 100%;
  max-width: 85rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Button — the cannon (fire to buy)
   ========================================================================== */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 100%;
  max-width: 43rem;
  padding: 1.25rem 1rem 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, #ff6735, var(--color-primary));
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}
@media (min-width: 48rem) {
  .btn { width: auto; max-width: 100%; padding: 1.5rem 1.5rem 1rem; }
}
@media (hover: hover) {
  .btn:hover { transform: scale(1.02); }
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120px;
  width: 90px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: skewX(-20deg);
  animation: buttonShine 6s infinite;
}
@keyframes buttonShine {
  0%   { transform: skew(-20deg) translateX(-120px); }
  8%   { transform: skew(-20deg) translateX(1520px); }
  100% { transform: skew(-20deg) translateX(1520px); }
}

.btn-title {
  display: block;
  font-family: var(--font-podium);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 48rem) { .btn-title { font-size: 3.75rem; } }

.btn-title s { margin-left: 0.2em; white-space: nowrap; }

.btn-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.333;
}
@media (min-width: 48rem) { .btn-note { font-size: 1.25rem; } }

/* ==========================================================================
   Deck 1 — The Crow's Nest
   ========================================================================== */
.hero {
  overflow: hidden;
  padding: 2rem 0 3rem;
  color: #fff;
  text-align: center;
  background: #0a0010 url("assets/bg-dark-gradient.jpeg") center / cover no-repeat;
}
@media (min-width: 48rem) {
  .hero { padding: 3.75rem 0 6.25rem; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 48rem) {
  .hero-inner { gap: 4.5rem; }
}

.logo { width: 9rem; }
@media (min-width: 48rem) { .logo { width: auto; } }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 48rem) { .hero-text { gap: 2rem; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  line-height: 1;
}
@media (min-width: 48rem) {
  .badge { padding: 0.6875rem 1.0625rem; font-size: 1.125rem; }
}

.dot {
  position: relative;
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #f00;
}
/* pulse: a twin dot swells an' vanishes, like a lighthouse in the fog */
.dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f74424;
  animation: smallPulse 2s ease-out infinite;
}
@keyframes smallPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@media (min-width: 48rem) {
  .dot { width: 1rem; height: 1rem; }
}

.hero-title {
  max-width: 76rem;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff, #c1c1c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 66rem;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.333;
}
/* small ships: no forced line break, the two sentences flow together */
@media (max-width: 47.99rem) { .hero-subtitle br { display: none; } }
@media (min-width: 48rem) { .hero-subtitle { font-size: 1.5rem; } }

/* ---- the loot pile, reused on Deck 3 (positions from the 972×614 Figma group) ---- */
.collage {
  position: relative;
  width: 100%;
  max-width: 972px;
  aspect-ratio: 972 / 614;
}
.collage.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7%;
  width: 74%;
  aspect-ratio: 720 / 768;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(167deg, rgba(231, 58, 3, 0.35) 3%, rgba(128, 39, 241, 0.35) 71%);
  filter: blur(50px);
}

.collage img { position: absolute; }
.top-left     { left: 0;      top: 10.14%; width: 34.37%; }
.bottom-left  { left: 1.54%;  top: 44.5%;  width: 33.95%; }
.top-right    { left: 66.15%; top: 9.6%;   width: 33.86%; }
.bottom-right { left: 65.67%; top: 45.12%; width: 33.63%; }
.book         { left: 28.91%; top: 0;      width: 42.1%; }

/* small ships: bigger book (55%), dead centre; the frame grows taller to fit it
   an' the four photos slide down so they stay centred beside the book */
@media (max-width: 47.99rem) {
  .collage      { aspect-ratio: 972 / 802; }
  .book         { left: 22.5%; width: 55%; }
  .top-left     { top: 19.5%; }
  .bottom-left  { top: 45.8%; }
  .top-right    { top: 19.1%; }
  .bottom-right { top: 46.3%; }
}

/* ==========================================================================
   Shared rigging — CTA block, h2, text column, bullet lists
   ========================================================================== */
.cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.note {
  font-size: 0.875rem;
  line-height: 1.333;
}

h2 {
  margin-bottom: 2rem;
  font-family: var(--font-podium);
  font-weight: 400;
  font-size: var(--h2-size);
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #3b3b3b, #000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 48rem) { h2 { margin-bottom: 2.5rem; } }

.section { padding: 3rem 0; }
@media (min-width: 48rem) { .section { padding: 4rem 0 5rem; } }

.text {
  max-width: 42rem;
  margin: 0 auto;
  color: #090909;
  font-size: 1.4rem;
  line-height: 1.333;
}
@media (min-width: 48rem) { .text { font-size: 1.7rem; } }

.text.wide { max-width: 46.125rem; }

.text p { margin-bottom: 0.82em; }
.text > :last-child { margin-bottom: 0; }

.text + .cta { margin-top: 2.5rem; }
@media (min-width: 48rem) { .text + .cta { margin-top: 4rem; } }

/* the padding is paid back with a negative margin, so the highlight never pushes a word to a new line */
mark {
  padding: 0 0.15em;
  margin: 0 -0.15em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-color: #fff60a;
  color: inherit;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (min-width: 48rem) { .list { gap: 2rem; margin: 2rem 0; } }

.list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 48rem) { .list li { gap: 1.5rem; } }
.list.tight li { gap: 1rem; }

/* bullet: a cannonball in a pale ring o' smoke (32px on desktop) */
.list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 6px solid var(--bullet-ring, #fdebe6);
  border-radius: 50%;
  background: var(--bullet-fill, #e73a04);
}
@media (min-width: 48rem) {
  .list li::before { width: 2rem; height: 2rem; border-width: 8px; margin-top: 0.125rem; }
}
.list.green   { --bullet-fill: #98b800; --bullet-ring: #cff128; }
.list.purple { --bullet-fill: #7b26fa; --bullet-ring: #dec8ff; }

/* ==========================================================================
   Deck 2 — The Scurvy o' Tiredness
   ========================================================================== */
.meta {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}
@media (min-width: 48rem) { .meta { margin-bottom: 2.5rem; } }

/* ==========================================================================
   Deck 3 — The Treasure Map
   ========================================================================== */
.collage { margin: 0 auto; }

.space-above { margin-top: 3rem; }
@media (min-width: 48rem) { .space-above { margin-top: 7rem; } }

/* ==========================================================================
   Deck 4 — Three Steps to Shore — tablet climbin' out o' the picture
   ========================================================================== */
.photo-wrap {
  position: relative;
  max-width: 1355px;
  margin: 0 auto;
  text-align: center;
}
/* the pink sea rises from ~46% o' the picture's height (348/1355 o' its width) */
.photo-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-top: 25.68%;
  transform: translateX(-50%);
  background: #fff5f2;
}
.before-after { position: relative; width: 100%; border-radius: 1.5rem; }
.tablet {
  position: relative;
  width: 40%;
  margin: -27.6% auto 0;
}
@media (min-width: 48rem) {
  .tablet { width: 30.2%; margin-top: -20.8%; }
}

.steps-content {
  padding: 2rem 0 3rem;
  background: #fff5f2;
}
@media (min-width: 48rem) { .steps-content { padding: 3rem 0 5rem; } }

.step-title {
  display: block;
  margin-bottom: 0.5rem;
  color: #7b26fa;
}
.steps .list p { margin-bottom: 0; }

/* ==========================================================================
   Deck 5 — The Pirate's Oath (laurels flankin' the title)
   ========================================================================== */
.guarantee .container { text-align: center; }
.guarantee .text { text-align: left; }

.badge.light { background: #ecdfff; color: #000; }
.badge.light .dot,
.badge.light .dot::before { background: #7b26fa; }

.guarantee-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin: 2rem 0;
}
@media (min-width: 48rem) { .guarantee-title { margin: 2.875rem 0; } }
.guarantee-title h2 { max-width: 51rem; margin: 0; }

.laurel { display: none; flex-shrink: 0; width: 137px; }
@media (min-width: 48rem) { .laurel { display: block; width: clamp(80px, 9vw, 137px); } }
.laurel.flip { transform: scaleX(-1); }

.purple-text { color: #7b26fa; }

/* ==========================================================================
   Deck 6 — The Loot Chest (what you get), purple-to-yellow haze at 7%
   ========================================================================== */
.loot { background: linear-gradient(to right, rgba(123, 38, 250, 0.07), rgba(255, 229, 0, 0.07)); }
.loot .list p { margin-bottom: 0; }

/* ==========================================================================
   Deck 7 — Weigh Anchor (checkout); the form itself lives in checkout-custom.css
   ========================================================================== */
.checkout .container { text-align: center; }
.checkout h2 { margin-top: 2rem; }
@media (min-width: 48rem) { .checkout h2 { margin-top: 2.875rem; } }
.checkout-note { margin-top: 1.5rem; }

/* ==========================================================================
   Device — vector tablet (Figma Tiparium 2017:213), 566×850 units.
   The screen shows {{product-image}}: change the product cover, every device follows.
   ========================================================================== */
.device {
  position: relative;
  aspect-ratio: 566 / 850;
  container-type: inline-size;
  --u: calc(100cqw / 566);
}
.device > * { position: absolute; display: block; }
.device-frame {
  left: 0; top: 0; width: calc(563 * var(--u)); height: calc(850 * var(--u));
  border-radius: calc(34 * var(--u));
  background: linear-gradient(213.2deg, #fff 0%, #3a3a3a 33.16%, #737373 75.14%, #fff 100.83%);
}
.device-frame::before,
.device-frame::after { content: ""; position: absolute; }
.device-frame::before {
  inset: calc(1 * var(--u)); border-radius: calc(34 * var(--u));
  background: #242424; opacity: .5;
}
.device-frame::after {
  inset: calc(2 * var(--u)); border-radius: calc(33 * var(--u));
  background: #1c1c1c;
}
.device > .device-screen {
  left: calc(14 * var(--u)); top: calc(14 * var(--u));
  width: calc(535 * var(--u)); height: calc(822 * var(--u));
  max-width: none; object-fit: cover; border-radius: calc(20 * var(--u));
}
.device-home {
  left: calc(283.5 * var(--u) - 1.5 * var(--u)); top: calc(815 * var(--u));
  width: calc(143 * var(--u)); height: calc(5 * var(--u));
  transform: translateX(-50%); border-radius: calc(5 * var(--u)); background: #000;
}
.device-pill,
.device-cam {
  top: calc(28 * var(--u)); height: calc(8 * var(--u));
  transform: translateX(-50%); border-radius: calc(5 * var(--u));
  border: calc(.5 * var(--u)) solid #8d8d8d; box-sizing: border-box;
}
.device-pill { left: calc(283 * var(--u) + 5.5 * var(--u)); width: calc(37 * var(--u)); background: #282828; }
.device-cam  { left: calc(283 * var(--u) - 22 * var(--u)); width: calc(8 * var(--u)); background: #000; }
.device > .device-button {
  left: calc(561 * var(--u)); top: calc(283 * var(--u));
  width: calc(5 * var(--u)); height: calc(44 * var(--u)); max-width: none;
}
.collage .device { position: absolute; }
.tablet.device {
  width: 37.2%;
  margin: -28.5% auto 0;
  filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, .45));
}
@media (min-width: 48rem) {
  .tablet.device { width: 28.1%; margin-top: -21.5%; }
}
