@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6efdf;
  --paper-deep: #efe3cd;
  --cream: #fff9ed;
  --ink: #332b24;
  --ink-soft: #6f6153;
  --terracotta: #c96b4e;
  --terra-dark: #a84e36;
  --sage: #a9c47f;
  --sage-deep: #6f8d56;
  --forest: #2e4436;
  --line: rgba(51, 43, 36, 0.14);
  --line-strong: rgba(51, 43, 36, 0.24);
  --shadow: 0 24px 60px rgba(74, 53, 36, 0.16);
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("assets/noise.png");
  background-size: 96px;
  opacity: 0.1;
  mix-blend-mode: multiply;
}

::selection {
  background: rgba(201, 107, 78, 0.28);
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.section--gallery :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.icon--fill,
.icon .fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - clamp(36px, 7vw, 96px)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 239, 223, 0.82);
  border-bottom: 1px solid rgba(51, 43, 36, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(74, 53, 36, 0.18);
}

.brand-word em {
  color: var(--terracotta);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding-block: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--terracotta);
  transition: right 0.28s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 6px 20px rgba(74, 53, 36, 0.08);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(111, 141, 86, 0.15);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  min-height: min(860px, calc(100svh - 76px));
  padding-block: clamp(54px, 7vw, 100px) clamp(70px, 8vw, 118px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--terra-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--terra-dark);
  font-size: 1rem;
  transform: rotate(-8deg);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.3rem, 10.3vw, 8.9rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.hero h1 span {
  color: var(--terracotta);
}

.hero-tagline {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-lede {
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.68;
}

.hero-lede strong {
  padding: 0 0.08em;
  background: linear-gradient(transparent 64%, rgba(201, 107, 78, 0.25) 64%);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 18px 18px 18px 6px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--terracotta);
  box-shadow: 0 14px 28px rgba(168, 78, 54, 0.22);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--terra-dark);
  box-shadow: 0 18px 32px rgba(168, 78, 54, 0.27);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--terracotta);
  background: var(--cream);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-facts .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(169, 196, 127, 0.28);
  color: var(--sage-deep);
  stroke-width: 2.2;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
}

.sun-disc {
  position: absolute;
  top: 3%;
  right: 1%;
  width: min(82%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #f7e0b2 0%, #f0d29c 67%, transparent 68%);
  opacity: 0.92;
}

.leaf {
  position: absolute;
  border-radius: 80% 0 80% 0;
  opacity: 0.52;
}

.leaf--one {
  bottom: 9%;
  left: -7%;
  width: 190px;
  height: 126px;
  background: linear-gradient(140deg, #c0d59f, #8fae69);
  transform: rotate(-20deg);
}

.leaf--two {
  right: 2%;
  bottom: 17%;
  width: 92px;
  height: 62px;
  background: var(--sage);
  opacity: 0.42;
  transform: rotate(24deg);
}

.phone {
  position: relative;
  z-index: 2;
  padding: 9px;
  border-radius: 42px;
  background: #2d2925;
  box-shadow: 0 30px 60px rgba(74, 53, 36, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.phone::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b1815;
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: var(--paper);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  object-fit: contain;
  object-position: top;
}

.phone--hero {
  width: min(330px, 72%);
  transform: rotate(-2.4deg);
}

.sticker {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--cream);
  box-shadow: 0 12px 24px rgba(74, 53, 36, 0.14);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.05;
}

.sticker--levels {
  top: 22%;
  left: -2%;
  transform: rotate(-5deg);
}

.sticker-num {
  color: var(--terracotta);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.sticker--levels span:last-child {
  font-size: 0.78rem;
  line-height: 1.1;
}

.sticker--friends {
  right: 0;
  bottom: 11%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  transform: rotate(4deg);
}

.sticker--friends .icon {
  width: 24px;
  height: 24px;
  color: var(--sage-deep);
}

.sticker--friends strong {
  color: var(--terra-dark);
}

.hero-trail {
  position: absolute;
  bottom: -2%;
  left: -8%;
  z-index: 1;
  width: 116%;
  color: var(--terracotta);
  opacity: 0.46;
}

/* Small hand-drawn divider */
.trail-divider {
  margin-top: -20px;
  color: var(--terracotta);
  opacity: 0.3;
}

.trail-divider svg {
  display: block;
  width: 100%;
  height: 74px;
}

/* Generic section typography */
.section {
  position: relative;
  padding-block: clamp(78px, 10vw, 132px);
}

.section--tight {
  padding-block: clamp(62px, 7vw, 94px);
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--terra-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker-num {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.97;
  text-wrap: balance;
}

.section-sub {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 8vw, 104px);
  align-items: center;
}

.story-copy p {
  max-width: 54ch;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.story-copy .lead {
  color: var(--ink);
  font-size: clamp(1.24rem, 2vw, 1.52rem);
  line-height: 1.45;
}

.pullquote {
  margin: 34px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--terracotta);
  color: var(--terra-dark);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.postcard {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  margin: 0;
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}

.postcard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--paper);
  object-fit: cover;
  object-position: center;
}

.postcard figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.postcard figcaption span {
  color: var(--terra-dark);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.postcard-tape {
  position: absolute;
  top: -14px;
  left: -22px;
  width: 104px;
  height: 28px;
  border-right: 1px solid rgba(120, 96, 58, 0.12);
  border-left: 1px solid rgba(120, 96, 58, 0.12);
  background: rgba(232, 214, 179, 0.78);
  box-shadow: 0 2px 7px rgba(74, 53, 36, 0.1);
  transform: rotate(-4deg);
}

.postcard-stamp {
  position: absolute;
  top: -22px;
  right: 20px;
  width: 70px;
  height: 70px;
  padding: 5px;
  border: 1px dashed var(--terra-dark);
  background: var(--paper);
  box-shadow: 0 4px 10px rgba(74, 53, 36, 0.12);
  transform: rotate(6deg);
}

.postcard-stamp img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(40px, 7vw, 94px);
  align-items: center;
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  border-left: 2px dashed rgba(201, 107, 78, 0.34);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-block: 17px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(74, 53, 36, 0.05);
  color: var(--terra-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.step h3 {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.step p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.how-art {
  position: relative;
  display: grid;
  place-items: center;
}

.phone--how {
  width: min(260px, 75%);
  transform: rotate(2.5deg);
}

.how-note {
  position: absolute;
  bottom: 6%;
  left: -12px;
  z-index: 4;
  display: flex;
  max-width: 192px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px 10px 10px 3px;
  background: var(--sage);
  box-shadow: 0 10px 20px rgba(74, 53, 36, 0.12);
  color: #2e4436;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-3deg);
}

.how-note .icon {
  width: 19px;
  height: 19px;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 260px 260px 320px;
  gap: clamp(14px, 1.7vw, 22px);
}

.bento-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px 10px 26px 10px;
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(74, 53, 36, 0.08);
}

.bento-card img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: cover;
  object-position: center;
}

.bento-card--levels {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-card--pets,
.bento-card--daily {
  grid-column: span 2;
}

.bento-card--farm,
.bento-card--hats {
  grid-column: span 3;
}

.bento-card--pets img,
.bento-card--daily img {
  padding: 10px;
  background: var(--paper);
  object-fit: contain;
}

.bento-copy {
  padding: 16px 18px 18px;
}

.bento-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--terra-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bento-copy h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.8vw, 1.62rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.bento-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Gallery */
.section--gallery {
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}

.section--gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(169, 196, 127, 0.14), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(201, 107, 78, 0.16), transparent 30%);
}

.section-head--inverse {
  position: relative;
  z-index: 1;
}

.section--gallery .kicker {
  color: #e6b09b;
}

.section--gallery h2 {
  color: var(--cream);
}

.section--gallery .section-sub {
  color: rgba(255, 249, 237, 0.62);
}

.gallery-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.gallery-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 249, 237, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-hint .icon {
  width: 17px;
  height: 17px;
}

.gallery-buttons {
  display: flex;
  gap: 8px;
}

.round-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 249, 237, 0.34);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.round-btn:hover {
  background: var(--cream);
  color: var(--forest);
  transform: translateY(-2px);
}

.round-btn:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.gallery-viewport {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  overflow-x: auto;
  padding: 20px max(24px, calc((100vw - 1180px) / 2)) 58px;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(255, 249, 237, 0.25) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 249, 237, 0.22);
}

.gallery-track::-webkit-scrollbar-track {
  background: transparent;
}

.shot {
  flex: 0 0 clamp(188px, 19vw, 246px);
  color: var(--cream);
  scroll-snap-align: center;
  text-decoration: none;
}

.shot:nth-child(even) {
  margin-top: 30px;
}

.shot img {
  -webkit-user-drag: none;
  user-select: none;
}

.phone--gallery {
  width: 100%;
  padding: 7px;
  border-radius: 30px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease;
}

.phone--gallery .phone-screen {
  border-radius: 24px;
}

.phone--gallery::after {
  width: 5px;
  height: 5px;
  top: 14px;
}

.shot:hover .phone--gallery {
  transform: translateY(-6px) rotate(-1deg);
}

.shot-caption {
  display: block;
  margin-top: 14px;
  color: rgba(255, 249, 237, 0.85);
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
}

/* Wi-Fi */
.wifi {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
}

.wifi-art {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.wifi-halo {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 196, 127, 0.55) 0%, rgba(169, 196, 127, 0.16) 52%, transparent 70%);
}

.phone--wifi {
  position: absolute;
  width: min(230px, 55%);
}

.phone--back {
  top: 6%;
  left: 5%;
  transform: rotate(-7deg);
}

.phone--front {
  right: 4%;
  bottom: 1%;
  transform: rotate(5deg);
}

.wifi-badge {
  position: absolute;
  top: 10%;
  right: 1%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 10px 22px rgba(74, 53, 36, 0.13);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  transform: rotate(3deg);
}

.wifi-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--sage-deep);
}

.wifi-arcs {
  position: absolute;
  bottom: 8%;
  width: 100%;
  color: var(--terracotta);
  opacity: 0.5;
}

.wifi-copy h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.wifi-copy p {
  max-width: 50ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.check-list .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(169, 196, 127, 0.24);
  color: var(--sage-deep);
  stroke-width: 2.1;
}

/* Promise */
.promise {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 124px);
  background: #b4553c;
  color: var(--cream);
}

.promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 249, 237, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.promise-inner {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.kicker--light {
  color: #ffe0d2;
}

.promise h2 {
  margin: 0 0 24px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.promise p {
  max-width: 58ch;
  color: rgba(255, 249, 237, 0.86);
  font-size: 1.06rem;
}

.promise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.promise-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 249, 237, 0.32);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise-paw {
  position: absolute;
  right: 1%;
  bottom: -7%;
  width: min(330px, 31vw);
  color: var(--cream);
  opacity: 0.09;
  transform: rotate(-12deg);
}

.promise-paw .icon {
  width: 100%;
  height: auto;
}

/* Final */
.final {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.final-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 44px 12px 44px 12px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.final-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 210, 156, 0.62), transparent 70%);
}

.final-copy {
  position: relative;
  z-index: 1;
}

.final h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.5rem);
}

.final-copy > p {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.final-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.final-stamp {
  position: relative;
  display: grid;
  width: min(250px, 76%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  padding: 22px;
  border: 1px dashed var(--terracotta);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 16px 30px rgba(74, 53, 36, 0.12);
  transform: rotate(5deg);
}

.final-stamp::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 107, 78, 0.24);
  border-radius: 50%;
}

.final-stamp img {
  width: 58%;
  height: auto;
  border-radius: 50%;
}

.final-stamp span {
  margin-top: 7px;
  color: var(--terra-dark);
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.05;
  text-align: center;
}

/* Footer */
.site-footer {
  padding-block: clamp(52px, 7vw, 82px) 30px;
  background: var(--ink);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 60px);
}

.brand--footer {
  color: var(--cream);
  font-size: 1.4rem;
}

.brand--footer em {
  color: #e6b09b;
}

.footer-brand p {
  margin: 16px 0 0;
  color: rgba(255, 249, 237, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav h2,
.footer-contact h2 {
  margin: 0 0 14px;
  color: rgba(255, 249, 237, 0.42);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 249, 237, 0.82);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact p {
  margin: 12px 0 0;
  color: rgba(255, 249, 237, 0.5);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 249, 237, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 249, 237, 0.45);
  font-size: 0.72rem;
}

/* Lightbox */
.lightbox {
  width: min(520px, 92vw);
  max-height: 90vh;
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 20px;
  background: var(--forest);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  color: var(--cream);
}

.lightbox::backdrop {
  background: rgba(24, 31, 26, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: var(--paper);
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 14px 20px 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 249, 237, 0.35);
  border-radius: 50%;
  background: rgba(46, 68, 54, 0.78);
  color: var(--cream);
  cursor: pointer;
}

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Legal pages */
.legal-hero {
  padding-block: clamp(58px, 8vw, 108px) 28px;
}

.legal-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.legal-hero > .container > p {
  max-width: 66ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(80px, 10vw, 132px);
}

.legal-toc {
  position: sticky;
  top: 100px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.legal-toc h2 {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card {
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px 10px 30px 10px;
  background: var(--cream);
  box-shadow: 0 16px 40px rgba(74, 53, 36, 0.07);
}

.legal-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(111, 141, 86, 0.25);
  border-radius: 16px 16px 16px 5px;
  background: rgba(169, 196, 127, 0.17);
}

.legal-summary .icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 50%;
  background: var(--sage);
  color: #2e4436;
}

.legal-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.legal-card section {
  scroll-margin-top: 100px;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-card section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: var(--terra-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-card strong {
  color: var(--ink);
}

.legal-note {
  margin: 20px 0;
  padding: 13px 15px;
  border-left: 3px solid var(--terracotta);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-en {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-en h2 {
  font-size: 1.5rem;
}

.legal-en p,
.legal-en li {
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .hero-art {
    min-height: 560px;
  }

  .sticker--levels {
    left: -1%;
  }

  .bento {
    grid-template-rows: 240px 240px 300px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 48px 64px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-art {
    min-height: 610px;
    margin-top: 6px;
  }

  .phone--hero {
    width: min(320px, 62%);
  }

  .sticker--levels {
    left: 10%;
    top: 15%;
  }

  .sticker--friends {
    right: 10%;
    bottom: 10%;
  }

  .hero-trail {
    left: 4%;
    width: 92%;
  }

  .story-grid,
  .how-grid,
  .wifi {
    grid-template-columns: 1fr;
  }

  .story-copy {
    max-width: 720px;
  }

  .postcard {
    width: min(420px, 100%);
    justify-self: center;
    margin-inline: auto;
  }

  .how-art {
    min-height: 470px;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 250px 250px 260px 260px;
  }

  .bento-card--levels {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-card--pets,
  .bento-card--daily {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card--farm,
  .bento-card--hats {
    grid-column: span 1;
    grid-row: span 1;
  }

  .wifi-art {
    min-height: 600px;
  }

  .wifi-copy {
    max-width: 720px;
  }

  .final-card {
    grid-template-columns: 1fr;
  }

  .final-stamp {
    width: min(210px, 60%);
    margin-top: 6px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .header-inner {
    gap: 16px;
  }

  .main-nav a:not(:last-child) {
    display: none;
  }

  .main-nav {
    gap: 0;
  }

  .header-pill {
    display: none;
  }

  .hero h1 {
    font-size: clamp(4rem, 16vw, 6.8rem);
  }

  .hero-art {
    min-height: 570px;
  }

  .sticker--levels {
    left: 2%;
  }

  .sticker--friends {
    right: 2%;
  }

  .section h2,
  .wifi-copy h2 {
    font-size: clamp(2.15rem, 8vw, 3.5rem);
  }

  .bento {
    grid-template-rows: 230px 230px 250px 250px;
  }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .step-num {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .steps::before {
    left: 23px;
  }

  .promise h2 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 249, 237, 0.5);
  }

  .legal-toc a {
    margin-bottom: 6px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .main-nav {
    font-size: 0.78rem;
  }

  .hero {
    padding-block: 38px 54px;
  }

  .hero-art {
    min-height: 510px;
  }

  .phone--hero {
    width: min(285px, 76%);
  }

  .sticker {
    padding: 8px 10px;
  }

  .sticker-num {
    font-size: 1.8rem;
  }

  .sticker--levels {
    display: none;
  }

  .sticker--friends {
    right: 2%;
    bottom: 7%;
    font-size: 0.76rem;
  }

  .leaf--one {
    left: 0;
  }

  .sticker--friends .icon {
    width: 20px;
    height: 20px;
  }

  .sun-disc {
    width: 88%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-facts {
    gap: 10px 16px;
    font-size: 0.78rem;
  }

  .trail-divider {
    display: none;
  }

  .section {
    padding-block: 64px;
  }

  .section--tight {
    padding-block: 54px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .postcard {
    width: 100%;
    transform: none;
  }

  .postcard-stamp {
    top: -16px;
    right: 12px;
    width: 58px;
    height: 58px;
  }

  .postcard-tape {
    left: -8px;
  }

  .how-art {
    min-height: 400px;
  }

  .phone--how {
    width: min(230px, 70%);
  }

  .how-note {
    bottom: 0;
    left: 0;
  }

  .bento {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .bento-card {
    min-height: 260px;
  }

  .bento-card--levels {
    min-height: 390px;
  }

  .bento-card--pets,
  .bento-card--daily {
    min-height: 245px;
  }

  .bento-card img {
    max-height: 230px;
  }

  .bento-card--levels img {
    max-height: 300px;
  }

  .gallery-controls {
    align-items: flex-start;
  }

  .gallery-hint {
    max-width: 180px;
    line-height: 1.4;
  }

  .gallery-track {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shot {
    flex-basis: 190px;
  }

  .shot:nth-child(even) {
    margin-top: 20px;
  }

  .wifi-art {
    min-height: 470px;
  }

  .phone--wifi {
    width: min(180px, 46%);
  }

  .phone--back {
    left: 8%;
  }

  .phone--front {
    right: 8%;
  }

  .wifi-badge {
    top: 4%;
    right: 0;
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .promise {
    padding-block: 68px;
  }

  .promise-paw {
    width: 170px;
    opacity: 0.07;
  }

  .promise-tags span {
    font-size: 0.66rem;
  }

  .final-card {
    padding: 26px 22px;
    border-radius: 28px 8px 28px 8px;
  }

  .final-actions .btn {
    flex: 1 1 auto;
  }

  .final-stamp {
    width: 170px;
    padding: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .legal-hero {
    padding-block: 48px 22px;
  }

  .legal-card {
    padding: 22px 18px;
  }

  .legal-summary {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .main-nav {
    display: none;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .phone--hero {
    width: 82%;
  }

  .sticker--levels {
    left: 0;
  }

  .sticker--friends {
    right: 0;
  }

  .wifi-art {
    min-height: 420px;
  }

  .phone--wifi {
    width: 44%;
  }

  .phone--back {
    left: 8%;
  }

  .phone--front {
    right: 8%;
  }
}

@media print {
  .site-header,
  .gallery-controls,
  .lightbox,
  .hero-actions,
  .final-actions {
    display: none !important;
  }

  body::after {
    display: none;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .section--gallery,
  .promise,
  .site-footer {
    background: #fff !important;
    color: #332b24 !important;
  }

  .section--gallery h2,
  .section--gallery .section-sub,
  .promise h2,
  .promise p,
  .site-footer a,
  .site-footer p {
    color: #332b24 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
