/* damyo.app — one stylesheet, no build step.
   The idea: the page is a wooden floor; the blanket (담요) lies on it; the cards lie on the blanket. */

:root {
  --floor-1: #5c4024;
  --floor-2: #4d3a1e;
  --floor-3: #2b1d10;
  --blanket: #5e663d;
  --blanket-fold: #4f5733;
  --blanket-edge: #2b301c;
  --gold: #f5c74d;
  --red: #db382e;
  --red-deep: #a8241c;
  --ink: #211f1c;
  --cream: #fcf7eb;
  --green: #33c759;

  --text: var(--cream);
  --text-soft: rgba(252, 247, 235, 0.78);
  --hairline: rgba(252, 247, 235, 0.16);

  --sans: system-ui, -apple-system, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(12px, 3.2vw, 40px);
  --measure: 34em;
  --plank: 168px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='504' height='640'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.32 .006' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .62 -.24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --wool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* The floor: planks, a little grain, light falling from the top. */
  background-color: var(--floor-3);
  background-image:
    var(--grain),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.38) 0, rgba(0, 0, 0, 0.38) 1px,
      rgba(255, 255, 255, 0.035) 1px, rgba(255, 255, 255, 0.035) 2px,
      transparent 2px, transparent var(--plank)),
    repeating-linear-gradient(90deg,
      transparent 0, transparent var(--plank),
      rgba(0, 0, 0, 0.07) var(--plank), rgba(0, 0, 0, 0.07) calc(var(--plank) * 2),
      rgba(255, 255, 255, 0.022) calc(var(--plank) * 2), rgba(255, 255, 255, 0.022) calc(var(--plank) * 3)),
    linear-gradient(180deg, var(--floor-1) 0, var(--floor-2) 480px, var(--floor-3) 1500px);
  background-size: 504px 640px, auto, auto, 100% 1500px;
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-position: 50% 0;
}

main { flex: 1; }

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(245, 199, 77, 0.7);
}
a:hover { text-decoration-color: var(--gold); color: #fff; }

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

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--ink); }

.wrap {
  width: min(1120px, 100% - 2 * clamp(20px, 5vw, 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 24px) clamp(8px, 1vw, 12px);
}
.top a { text-decoration: none; }

.brand {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  padding: 6px 0;
}
.brand__en {
  font-family: var(--round);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.top nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  margin: 0; padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.top nav a { color: var(--text-soft); padding: 8px 2px; display: inline-block; }
.top nav a:hover,
.top nav a[aria-current="page"] { color: var(--cream); }
.top nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--gold); }

/* ---------- The blanket ---------- */

.blanket {
  --stitch: clamp(10px, 1.6vw, 16px);
  --band: clamp(30px, 4.4vw, 46px);
  position: relative;
  isolation: isolate;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  border-radius: clamp(14px, 2vw, 24px);
  background-color: var(--blanket);
  background-image:
    var(--wool),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
  /* The fold: two more layers of wool showing under the bottom edge. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 0 -1px var(--blanket-fold),
    0 7px 0 -1px var(--blanket-edge),
    0 13px 0 -3px #474e2e,
    0 14px 0 -3px var(--blanket-edge),
    0 44px 70px -18px rgba(0, 0, 0, 0.62),
    0 18px 28px -8px rgba(0, 0, 0, 0.4);
}
/* Woven bands near the top and bottom edge. */
.blanket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent var(--band),
      rgba(43, 48, 28, 0.5) var(--band), rgba(43, 48, 28, 0.5) calc(var(--band) + 7px),
      transparent calc(var(--band) + 7px), transparent calc(var(--band) + 12px),
      rgba(43, 48, 28, 0.5) calc(var(--band) + 12px), rgba(43, 48, 28, 0.5) calc(var(--band) + 15px),
      transparent calc(var(--band) + 15px)),
    linear-gradient(0deg,
      transparent var(--band),
      rgba(43, 48, 28, 0.5) var(--band), rgba(43, 48, 28, 0.5) calc(var(--band) + 7px),
      transparent calc(var(--band) + 7px), transparent calc(var(--band) + 12px),
      rgba(43, 48, 28, 0.5) calc(var(--band) + 12px), rgba(43, 48, 28, 0.5) calc(var(--band) + 15px),
      transparent calc(var(--band) + 15px));
}
/* Hem stitching. */
.blanket::after {
  content: "";
  position: absolute;
  inset: var(--stitch);
  z-index: -1;
  border: 2px dashed rgba(252, 247, 235, 0.3);
  border-radius: calc(clamp(14px, 2vw, 24px) - 6px);
  pointer-events: none;
}

.blanket--plain { --band: -40px; }
.blanket--plain::before { display: none; }

/* ---------- Cards ---------- */

.card {
  display: block;
  margin: 0;
  transform: rotate(var(--r, 0deg));
}
.card img,
.back {
  width: 100%;
  aspect-ratio: 250 / 408;
  border-radius: 5.5% / 3.4%;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 3px 5px rgba(0, 0, 0, 0.3),
    0 12px 20px -8px rgba(0, 0, 0, 0.5);
}
.card img { height: auto; background: var(--red); }

/* A face-down card, and a pile of them. */
.back {
  display: block;
  position: relative;
  background: #e24a3d;
}
.back::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border: 2px solid #b7332a;
  border-radius: 9% / 5.5%;
}
.deck .back {
  box-shadow:
    0 2px 0 #c13a30, 0 3px 0 #9d2a22,
    0 5px 0 #c13a30, 0 6px 0 #9d2a22,
    0 8px 0 #c13a30, 0 9px 0 #9d2a22,
    0 11px 0 #c13a30, 0 12px 0 #8a241d,
    0 22px 24px -6px rgba(0, 0, 0, 0.55);
}

/* ---------- Hero ---------- */

.hero { padding-bottom: clamp(40px, 6vw, 80px); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(76px, 9.5vw, 124px) clamp(28px, 6.5vw, 96px);
}

.mark { margin: 0; line-height: 1; }
.mark__ko {
  display: block;
  font-size: clamp(5.5rem, 15vw, 11.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(43, 48, 28, 0.55), 0 14px 28px rgba(0, 0, 0, 0.22);
}
.mark__en {
  display: block;
  margin-top: 0.9em;
  font-family: var(--round);
  font-size: clamp(0.95rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.72em;
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(43, 48, 28, 0.7);
}

.hero__line {
  margin: clamp(22px, 3vw, 34px) 0 0;
  max-width: 21em;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__cta { margin-top: clamp(24px, 3vw, 36px); }

.soon,
.get {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.82em 1.3em 0.82em 1.1em;
  border-radius: 999px;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 2px 0 #a8811f, 0 10px 22px -8px rgba(0, 0, 0, 0.55);
}
.soon__dot {
  flex: none;
  width: 0.6em; height: 0.6em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(219, 56, 46, 0.25);
}
.get { text-decoration: none; background: var(--cream); box-shadow: 0 2px 0 #b9b19c, 0 10px 22px -8px rgba(0, 0, 0, 0.55); }
.get:hover { color: var(--ink); background: #fff; }

.hero__meta {
  margin: 18px 0 0;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--cream);
}

/* The spread: a deck and the five brights. */
.spread {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}
.spread > * {
  position: absolute;
  width: 21%;
  left: var(--x);
  top: var(--y);
}
.spread .deck { --x: 39.5%; --y: 0%; --r: -3deg; --i: 0; transform: rotate(var(--r)); }
.s1 { --x: 0%;    --y: 49%; --r: -9deg; --i: 1; }
.s2 { --x: 19.5%; --y: 54%; --r: 4deg;  --i: 2; }
.s3 { --x: 39.5%; --y: 50%; --r: -2deg; --i: 3; }
.s4 { --x: 59.5%; --y: 55%; --r: 6deg;  --i: 4; }
.s5 { --x: 79%;   --y: 48%; --r: 11deg; --i: 5; }

@keyframes settle {
  0% {
    opacity: 0;
    transform: translate3d(0, -56px, 0) rotate(calc(var(--r) - 10deg)) scale(1.14);
  }
  55% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(1);
  }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .spread > *,
  .stage .card {
    animation: settle 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) both;
    animation-delay: calc(var(--i) * 95ms + 180ms);
  }
  .stage .shot { animation: rise 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) 0.1s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Sections on the floor ---------- */

.section { padding-block: clamp(72px, 11vw, 152px); }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow [lang="ko"] {
  font-size: 1.2em;
  letter-spacing: 0.02em;
  color: var(--gold);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.024em;
  word-spacing: 0.06em;
  text-wrap: balance;
}
h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.lede {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: var(--measure);
  color: var(--text-soft);
  text-wrap: pretty;
}
.lede + .lede { margin-top: 1em; }

/* About */
.about__head { max-width: 46rem; }
.forms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
}
.forms li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 0.6em 1.05em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 700;
}
.forms small { font-size: 0.875rem; font-weight: 550; color: var(--text-soft); }

.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(6px, 1.1vw, 14px);
  margin: clamp(44px, 6vw, 84px) 0 0;
  padding: 0;
  list-style: none;
}
.months li:nth-child(odd) { --r: -1.6deg; }
.months li:nth-child(even) { --r: 1.3deg; }
.months li:nth-child(3n) { --r: 2.4deg; }
.months li:nth-child(5n) { --r: -2.6deg; }
.months .n,
.five .n {
  display: block;
  margin-top: 0.75em;
  text-align: center;
  font-family: var(--round);
  font-weight: 900;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  color: var(--gold);
}
.months__cap {
  margin: clamp(14px, 2vw, 22px) 0 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.feature--flip .feature__text { order: 2; }
.feature--flip .art { order: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding: 0.42em 0.95em 0.42em 0.8em;
  border-radius: 999px;
  background: var(--green);
  color: #06270f;
  font-size: 0.9375rem;
  font-weight: 750;
}
.pill::before {
  content: "";
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: #06270f;
}

.note {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  max-width: var(--measure);
  padding: 0.95em 1.15em;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 600;
  line-height: 1.45;
}

.ticks {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.ticks li {
  position: relative;
  padding: 0.5em 0 0.5em 1.9em;
  border-top: 1px solid var(--hairline);
}
.ticks li:last-child { border-bottom: 1px solid var(--hairline); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.25em; top: 0.98em;
  width: 0.72em; height: 0.4em;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
.ticks b { font-weight: 700; }
.ticks span { color: var(--text-soft); }

.art { width: 100%; justify-self: center; }
.art--one { max-width: 17.5rem; }
.art--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 26px);
  max-width: 34rem;
  align-items: start;
}
.art--two > :last-child { margin-top: 14%; }

/* Real screens */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; }

/* Device frames are drawn here; the pictures inside are untouched captures of the app. */
.device {
  position: relative;
  padding: 3.3%;
  background: #14110d;
  border-radius: 15.5% / 7.3%;
  box-shadow:
    inset 0 0 0 1px #4a4239,
    inset 0 0 0 2px #0b0906,
    0 34px 44px -20px rgba(0, 0, 0, 0.7),
    0 12px 18px -8px rgba(0, 0, 0, 0.45);
}
.device img { border-radius: 12.6% / 5.8%; }
.device--phone::after {
  content: "";
  position: absolute;
  top: 3.1%;
  left: 50%;
  width: 28%;
  height: 3.7%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.device--pad { padding: 2.7%; border-radius: 5.4% / 4.1%; }
.device--pad img { border-radius: 3% / 2.3%; }
.device--fold { padding: 3.2%; border-radius: 14% / 9.8%; }
.device--fold img { border-radius: 11.4% / 7.9%; }
.device--fold::after {
  content: "";
  position: absolute;
  top: 6.4%;
  right: 9.6%;
  width: 8.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
}
.device--open { padding: 1.9%; border-radius: 6.6% / 9.2%; }
.device--open img { border-radius: 5% / 7.1%; }
.shot figcaption {
  margin-top: 0.9em;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-soft);
  text-wrap: balance;
}
.shot figcaption b { display: block; color: var(--cream); font-weight: 700; }

/* Hero: the phone stands on the blanket, cards tucked behind it. */
.stage {
  position: relative;
  width: 100%;
  max-width: 31rem;
  margin-inline: auto;
}
.stage .shot { position: relative; z-index: 1; width: 57%; margin-inline: auto; }
.stage .card { position: absolute; width: 24%; left: var(--x); top: var(--y); }
.h1 { --x: 3%;  --y: 12%; --r: -13deg; --i: 0; --d: 12; --sx: -1;   --sy: -0.5; }
.h2 { --x: 0%;  --y: 50%; --r: -5deg;  --i: 1; --d: 22; --sx: -1.2; --sy: 0.4; }
.h3 { --x: 73%; --y: 16%; --r: 10deg;  --i: 2; --d: 16; --sx: 1;    --sy: -0.6; }
.h4 { --x: 76%; --y: 54%; --r: 4deg;   --i: 3; --d: 26; --sx: 1.2;  --sy: 0.5; }

/* Device line-up, standing on the floor. */
.lineup {
  display: grid;
  grid-template-columns: 0.5fr 1.02fr 0.64fr 1.17fr;
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 84px);
}
/* Devices share a baseline; captions line up beneath them. */
.lineup .shot {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.lineup .shot .device { align-self: end; }

/* Price */
.price__head { text-align: center; }
.price__head .eyebrow { justify-content: center; }
.price__head .lede { margin-inline: auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(40px, 5vw, 68px);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: clamp(14px, 2vw, 22px);
}
.plan--free {
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.24);
}
.plan.blanket { width: auto; margin: 0; padding: clamp(34px, 4.2vw, 52px) clamp(30px, 4vw, 50px); }
.plan__name {
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.plan__figure {
  margin: 0.25em 0 0;
  font-family: var(--round);
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.plan__figure small {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  margin-left: 0.35em;
}
.plan__sub { margin: 0.5em 0 0; font-size: 0.9375rem; color: var(--text-soft); }
.blanket .plan__sub,
.blanket .ticks span { color: var(--cream); }
.plan .ticks { margin-top: clamp(18px, 2.4vw, 26px); }
.blanket .ticks li { border-color: rgba(252, 247, 235, 0.24); }

.fine {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  margin: clamp(34px, 4.4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.fine li { padding-top: 14px; border-top: 2px solid var(--gold); }
.fine b { display: block; margin-bottom: 0.2em; color: var(--cream); font-size: 1.0625rem; font-weight: 750; }

/* Live numbers */
.stats { padding-block: 0 clamp(72px, 11vw, 152px); }
.stats__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 8vw, 112px);
  margin: 0;
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid var(--hairline);
  text-align: center;
}
.stats__row div { display: flex; flex-direction: column-reverse; }
.stats dd {
  margin: 0;
  font-family: var(--round);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stats dt { margin-top: 0.6em; font-size: 0.9375rem; font-weight: 600; color: var(--text-soft); }

/* ---------- Small blanket pages (support head, match, 404) ---------- */

.patch { padding-bottom: clamp(48px, 7vw, 96px); }
.patch .blanket { width: min(880px, 100% - 2 * var(--gutter)); }
.patch__inner {
  padding: clamp(72px, 10vw, 112px) clamp(28px, 7vw, 88px);
  text-align: center;
}
.patch h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.patch p { margin: 1.1em auto 0; max-width: 30em; text-wrap: pretty; }
.patch .soon,
.patch .get { margin-top: clamp(26px, 3vw, 36px); }
.patch__more { font-size: 0.9375rem; }
.patch__cards {
  display: flex;
  justify-content: center;
  margin: 0 auto clamp(26px, 4vw, 40px);
}
.patch__cards > * { width: clamp(72px, 15vw, 104px); }
.patch__cards > :first-child { --r: -8deg; margin-right: -14px; }
.patch__cards > :last-child { --r: 7deg; margin-top: 10px; }
.patch__cards .back { transform: rotate(-8deg); }

/* ---------- Documents: a cream sheet on the floor ---------- */

.sheet {
  width: min(800px, 100% - 2 * var(--gutter));
  margin: clamp(8px, 2vw, 24px) auto clamp(56px, 8vw, 112px);
  padding: clamp(30px, 6.5vw, 84px) clamp(22px, 6.5vw, 84px);
  border-radius: clamp(10px, 1.4vw, 16px);
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px #fff,
    0 0 0 1px rgba(33, 31, 28, 0.2),
    0 40px 70px -24px rgba(0, 0, 0, 0.65),
    0 14px 24px -10px rgba(0, 0, 0, 0.4);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.sheet h1 {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2.6vw, 3rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sheet .dated {
  margin: 1em 0 0;
  padding-bottom: 1.6em;
  border-bottom: 2px solid var(--red);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5b554c;
}
.sheet h2 {
  margin: 2.1em 0 0;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.sheet h3 { margin: 1.7em 0 0; font-size: 1.0625rem; }
.sheet p,
.sheet ul,
.sheet ol,
.sheet dl { margin: 0.8em 0 0; }
.sheet ul,
.sheet ol { padding-left: 1.25em; }
.sheet li { margin-top: 0.4em; }
.sheet li::marker { color: var(--red-deep); }
.sheet a { color: var(--red-deep); text-decoration-color: currentColor; font-weight: 600; }
.sheet a:hover { color: var(--ink); }
.sheet :focus-visible { outline-color: var(--red-deep); }
.sheet .summary {
  margin-top: 1.6em;
  padding: 1.1em 1.3em 1.2em;
  border-radius: 12px;
  background: #f3ecd9;
}
.sheet .summary h2 { margin-top: 0; font-size: 1.125rem; }
.sheet .caps { font-size: 0.9375rem; }
.sheet dt { margin-top: 1.1em; font-weight: 750; }
.sheet dd { margin: 0.25em 0 0; }

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

.foot {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(36px, 5vw, 60px) clamp(40px, 6vw, 72px);
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
}
.foot .brand { font-size: 1.25rem; color: var(--cream); text-decoration: none; }
.foot p { margin: 0.5em 0 0; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 0 0 0.15em; }
.foot li a { display: inline-block; padding: 0.3em 0; }
.foot a { color: var(--cream); }
.foot__credit { font-size: 0.875rem; line-height: 1.55; }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .spread { max-width: 30rem; margin: clamp(8px, 3vw, 24px) auto 0; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text { order: 1; }
  .feature--flip .art { order: 2; }
  .art { justify-self: start; }
  .art--two { max-width: 27rem; }
  .art--one { max-width: 15rem; }
  .stage { max-width: 26rem; margin-top: clamp(8px, 3vw, 24px); }
  .fine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__credit { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .lineup { grid-template-columns: 0.506fr 0.726fr; }
  .lineup .shot { margin-bottom: clamp(28px, 7vw, 44px); }
  .lineup .l-pad { grid-column: 1 / -1; width: 86%; justify-self: center; order: 3; }
  .lineup .l-open { grid-column: 1 / -1; order: 4; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .mark__en { letter-spacing: 0.6em; }
  .soon, .get { font-size: 0.9375rem; padding-inline: 0.95em 1.1em; }
  .fine { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .top nav ul { gap: 12px; font-size: 0.875rem; }
  .top nav .wide-only { display: none; }
  .brand { gap: 0.45em; }
  .brand__en { letter-spacing: 0.24em; }
}

@media (max-width: 370px) {
  .hero__inner, .patch__inner { padding-inline: 26px; }
  .soon, .get { font-size: 0.8125rem; gap: 0.55em; padding-inline: 0.85em 1em; white-space: nowrap; }
  .top nav ul { gap: 10px; font-size: 0.8125rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .top, .foot, .skip { display: none; }
  .sheet { box-shadow: none; width: auto; margin: 0; padding: 0; }
}

/* Inline code in documents */
.sheet code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: #f0e8d3;
  overflow-wrap: anywhere;
}


/* ============================================================
   Motion. All of it sits behind "no-preference": with reduced
   motion, or without motion.js, pages show their finished state.
   ============================================================ */

@property --spread {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* Lamp light on the hero blanket; follows the pointer (motion.js). */
.hero__inner {
  border-radius: inherit;
  background: radial-gradient(34rem circle at var(--mx, 70%) var(--my, 30%), rgba(255, 236, 190, 0.1), transparent 70%);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(219, 56, 46, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(219, 56, 46, 0); }
}
@keyframes spread {
  to { --spread: 30; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero words arrive in order. */
  .hero__inner > div:first-child > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__inner > div:first-child > :nth-child(2) { animation-delay: 90ms; }
  .hero__inner > div:first-child > :nth-child(3) { animation-delay: 180ms; }
  .hero__inner > div:first-child > :nth-child(4) { animation-delay: 270ms; }

  .soon__dot { animation: pulse 2.6s ease-in-out infinite; }

  /* The phone tilts toward the pointer; the cards behind it move by depth. */
  .stage .device {
    transform: perspective(1100px) rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -5deg));
    transition: transform 0.3s ease-out;
    will-change: transform;
  }
  .stage .card {
    translate:
      calc(var(--px, 0) * var(--d, 0) * 1px + var(--spread, 0) * var(--sx, 0) * 1px)
      calc(var(--py, 0) * var(--d, 0) * 0.7px + var(--spread, 0) * var(--sy, 0) * 1px);
    transition: translate 0.35s ease-out;
  }
  /* As the hero scrolls away, the cards slide out from behind the phone. */
  @supports (animation-timeline: view()) {
    .stage {
      animation: spread linear both;
      animation-timeline: view();
      animation-range: exit -30% exit 70%;
    }
  }

  /* Small blanket pages: the two cards land. */
  .patch__cards > * { --i: 0; animation: settle 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.15s both; }
  .patch__cards > :last-child { animation-delay: 0.27s; }
  .patch__cards .back { --r: -8deg; }

  /* Scroll reveals (classes added by motion.js). */
  .rv { opacity: 0; translate: 0 28px; }
  .shot.rv { translate: 0 44px; rotate: 2.5deg; }
  .shot.rv:nth-child(even) { rotate: -2.5deg; }
  .rv.in {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
    transition:
      opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
      translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
      rotate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
  }

  /* The month row: face down, then turned over one by one. */
  .months.flip li { perspective: 700px; }
  .months.flip .card {
    position: relative;
    transform-style: preserve-3d;
    rotate: y 180deg;
  }
  .months.flip .card img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .months.flip .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 5.5% / 3.4%;
    background: #e24a3d;
    box-shadow: inset 0 0 0 2px #e24a3d, inset 0 0 0 4px #b7332a, 0 3px 5px rgba(0, 0, 0, 0.3);
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .months.flip .n { opacity: 0; }
  .months.flip.in .card {
    rotate: y 0deg;
    transition: rotate 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) var(--delay, 0ms);
  }
  .months.flip.in .n { opacity: 1; transition: opacity 0.5s ease calc(var(--delay, 0ms) + 0.4s); }
}
