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

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

:root {
  --background: #fbf4e4;
  --surface: #ffffff;
  --muted: #c7b084;
  --line: #efe6cf;
  --ink: #2a1f12;
  --ink-soft: #6e5e44;
  --ink-muted: #a8927a;
  --primary: #f5c84b;
  --primary-soft: #ffe9a8;
  --primary-deep: #e8a155;
  --primary-text: #2a1f12;
  --danger: #c0492f;

  --radius: 20px;
  --gutter: 20px;
  --max-width: 1120px;
  --section-padding: 72px;
}

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

html {
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
}

p {
  margin: 0;
}

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

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

.overline {
  margin-bottom: 12px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 19px;
}

.hint {
  color: var(--ink-muted);
  font-size: 14px;
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.button svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.button-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 3px 0 var(--primary-deep);
}

a.button-primary:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--primary-deep);
}

a.button-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--primary-deep);
}

.button-small {
  padding: 10px 18px;
  font-size: 14px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--background);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 4px 0 var(--muted);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.store-button:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--muted);
}

.store-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.store-button span {
  display: flex;
  flex-direction: column;
}

.store-button small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  color: var(--ink-soft);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 14px;
}

.badge img {
  width: 16px;
  height: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
  border-radius: 22.5%;
}

.header-links {
  display: flex;
  gap: 32px;
}

.header-links a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.header-links a:hover {
  color: var(--ink);
}

.hero {
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero .lead {
  max-width: 520px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

.phone-aura {
  position: relative;
  isolation: isolate;
  justify-self: center;
}

@property --aura-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.phone-aura::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(
    from var(--aura-angle),
    var(--primary-soft),
    transparent 25%,
    var(--primary-soft) 50%,
    transparent 75%,
    var(--primary-soft)
  );
  filter: blur(40px);
  animation: aura-spin 12s linear infinite;
}

@keyframes aura-spin {
  to {
    --aura-angle: 360deg;
  }
}

.phone {
  width: 320px;
  padding: 12px;
  border-radius: 52px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(42, 31, 18, 0.35);
  transform: rotate(3deg);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 640px;
  padding: 58px 16px 16px;
  border-radius: 40px;
  background: var(--background);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone-date-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-weekday {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.phone-date {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.phone-greeting {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.phone-bubble {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.phone-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
}

.phone-add-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 0 var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phone-add-button svg {
  width: 12px;
  height: 12px;
}

.phone-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
}

.phone-card h3 {
  font-size: 16px;
}

.phone-card p {
  font-size: 12px;
  line-height: 1.4;
}

.phone-card .badges {
  flex-wrap: nowrap;
  gap: 5px;
}

.phone-card .badge {
  gap: 4px;
  padding: 3px 7px;
  font-size: 10px;
  white-space: nowrap;
}

.phone-card .badge img {
  width: 12px;
  height: 12px;
}

.phone-card .button {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

.phone-why {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-why-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.phone-why-toggle svg {
  width: 11px;
  height: 11px;
}

.phone-card .phone-why-text {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
  font-size: 11px;
  font-style: italic;
}

.phone-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--line);
}

.phone-navbar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 14px 32px -20px rgba(42, 31, 18, 0.35),
    0 2px 6px -3px rgba(42, 31, 18, 0.1);
  transform: translateX(-50%);
}

.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 74px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-tab svg {
  width: 17px;
  height: 17px;
}

.phone-tab-active {
  background: var(--primary);
  color: var(--primary-text);
}

.section {
  padding: var(--section-padding) 0;
}

.section-tinted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: clip;
}

.steps,
.checkin,
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step,
.reason {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--primary-deep);
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.checkin-group {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
}

.checkin-group h3 {
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkin-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--background);
}

.checkin-option img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.checkin-option div {
  display: flex;
  flex-direction: column;
}

.checkin-option span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.sidequests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 48px;
}

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

.sidequest p {
  flex-grow: 1;
  font-size: 15px;
}

.archive-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}

.checklist li::before {
  content: "✓";
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.stories {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story {
  --story-background: #fbf4e4;
  --story-surface: #ffffff;
  --story-line: #efe6cf;
  --story-ink: #2a1f12;
  --story-ink-soft: #6e5e44;
  --story-primary: #f5c84b;
  --story-primary-soft: #ffe9a8;
  --story-accent: var(--danger);
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  width: 390px;
  height: 693px;
  padding: 56px 0;
  border-radius: 40px;
  background: var(--story-background);
  overflow: hidden;
  zoom: 0.42;
  box-shadow: 0 40px 80px -30px rgba(42, 31, 18, 0.45);
}

.story-diagonal {
  margin-right: -150px;
  transform: rotate(-10deg) translateY(20px);
}

.story-confetti {
  --story-background: var(--primary);
  z-index: 1;
  zoom: 0.5;
}

.story-ink {
  --story-background: #16100a;
  --story-surface: #211a11;
  --story-line: #39301f;
  --story-ink: #f7efdc;
  --story-ink-soft: #c8b795;
  --story-primary-soft: #3a2e13;
  --story-accent: #f5c84b;
  margin-left: -150px;
  transform: rotate(10deg) translateY(20px);
  background:
    radial-gradient(ellipse farthest-side at 50% 42%, rgba(245, 200, 75, 0.2) 0%, rgba(0, 0, 0, 0) 65%),
    var(--story-background);
}

.story-band,
.story-band-accent {
  position: absolute;
  left: -120px;
  right: -120px;
  background: var(--story-primary);
  transform: rotate(-20deg);
}

.story-band {
  top: 42%;
  height: 150px;
}

.story-band-accent {
  top: 36%;
  height: 14px;
  background: var(--primary-deep);
}

.story-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.story-overline {
  color: var(--story-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.story-title {
  color: var(--story-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.story-title-large {
  font-size: 32px;
  line-height: 1.2;
}

.story-body {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0 28px;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--story-line);
  border-radius: 20px;
  background: var(--story-surface);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

.story-card-tilted {
  transform: rotate(-1deg);
}

.story-card-title,
.story-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-title {
  color: var(--story-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.story-card-description {
  color: var(--story-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.story-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--story-primary);
  border-radius: 999px;
  background: var(--story-primary-soft);
  color: var(--story-ink);
  font-size: 14px;
}

.story-badge img {
  width: 16px;
  height: 16px;
}

.story-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--story-line);
}

.story-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-stars {
  display: flex;
}

.story-stars svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  fill: none;
  stroke: var(--primary-deep);
  stroke-width: 1.6;
}

.story-stars .story-star-filled {
  fill: var(--primary-deep);
}

.story-rating-label {
  color: var(--story-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.story-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.story-logo img {
  width: 47px;
  height: 52px;
}

.story-logo-name {
  color: var(--story-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.story-logo-domain {
  color: var(--story-ink-soft);
  font-size: 14px;
}

.story-confetti-piece {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--width);
  height: var(--height);
  border-radius: var(--radius);
  background: var(--color);
  transform: rotate(var(--rotate));
}

.cta {
  padding: var(--section-padding) 0 0;
  overflow: clip;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta .lead {
  margin-bottom: 32px;
}

.cta-duck {
  --cta-duck-height: 244px;
  width: auto;
  height: var(--cta-duck-height);
  margin-top: 56px;
  margin-bottom: calc(var(--cta-duck-height) / 1.55 - var(--cta-duck-height));
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer .logo {
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal {
  padding: 56px 0 var(--section-padding);
}

.legal-inner {
  max-width: 760px;
}

.legal-updated {
  margin-top: 12px;
}

.legal .legal-updated + p {
  margin-top: 32px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
}

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

.legal a {
  text-decoration-color: var(--primary-deep);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  :root {
    --section-padding: 56px;
  }

  .header-links {
    display: none;
  }

  .hero {
    padding: 48px 0 0;
  }

  .hero-inner,
  .archive-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone {
    margin-top: 16px;
  }

  .steps,
  .checkin,
  .reasons {
    grid-template-columns: 1fr;
  }

  .checkin-group {
    display: flex;
    flex-direction: column;
  }

  .stories {
    margin-bottom: 16px;
  }

  .footer-copy {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .phone {
    margin-top: 0;
    zoom: 0.78;
    transform: rotate(2deg);
  }

  .story {
    zoom: 0.3;
  }

  .story-confetti {
    zoom: 0.4;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-padding: 48px;
  }

  .header-inner {
    gap: 12px;
  }

  .header .logo {
    gap: 8px;
    font-size: 16px;
  }

  .header .logo-icon {
    width: 32px;
    height: 32px;
  }

  .header .button-small {
    gap: 6px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-inner {
    gap: 40px;
  }

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

  .hero-actions .store-button {
    justify-content: center;
  }

  .hero-actions .hint {
    text-align: center;
  }
}

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

  .phone-aura::before {
    animation: none;
  }
}
