:root {
  --cream: #f4efe8;
  --paper: #fbf8f4;
  --brown: #372b18;
  --brown-2: #4a3b24;
  --taupe: #b8ac9c;
  --taupe-ink: #7d7160;
  --sage: #729786;
  --sage-dark: #5b7d6d;
  --ink: #2a2115;
  --line: rgba(55, 43, 24, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Outfit", -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main, .top, .foot {
  max-width: 480px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

a { color: inherit; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 4px;
}
.logo { display: block; height: 22px; width: auto; }
.app-buttons { display: flex; gap: 12px; }
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.app-btn:hover { background: var(--brown-2); }
.app-icon { width: 16px; height: 16px; flex: none; }

.app-combo { display: none; border: 0; font-family: inherit; cursor: pointer; }
.app-combo .app-icon + .app-icon { margin-left: -2px; }

/* Phones: one combined button next to the logo, opens a picker */
@media (max-width: 639px) {
  .top { flex-wrap: nowrap; }
  .app-buttons .app-btn:not(.app-combo) { display: none; }
  .app-combo { display: inline-flex; padding: 9px 13px; }
}
@media (max-width: 359px) {
  .hide-xs { display: none; }
}

/* App picker */
.app-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(34, 26, 14, 0.5);
}
.app-dialog::backdrop { background: rgba(34, 26, 14, 0.45); }
.app-dialog-inner { position: relative; padding: 26px 20px 20px; }
.app-dialog h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--brown); }
.app-dialog p { margin: 4px 0 16px; font-size: 14px; color: var(--taupe-ink); }
.app-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--taupe-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.app-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
}
.app-choice + .app-choice { margin-top: 10px; }
.app-choice .app-icon { width: 26px; height: 26px; }
.app-choice strong { display: block; font-size: 16px; font-weight: 600; }
.app-choice small { display: block; font-size: 13px; opacity: 0.75; }

@media (max-width: 639px) {
  .app-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .app-dialog-inner { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Hero: photo with text on top */
.hero { padding: 18px 0 26px; }
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  background: var(--brown);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 26, 14, 0.05) 0%, rgba(34, 26, 14, 0.35) 40%, rgba(34, 26, 14, 0.85) 100%);
}
.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 20px 20px;
  color: #fff;
}
.wordmark {
  margin: 0;
  font-size: clamp(46px, 14vw, 150px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.tagline {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.lede {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.lede strong { font-weight: 800; }

/* Plans */
.plans { display: grid; gap: 14px; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--brown);
  color: #fff;
}
.plan--max { background: var(--brown); }
/* Mania is the featured card: biggest, with a ring and the "mest værdi" badge */
.plan--mania {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px #372b18, 0 14px 30px -14px rgba(55, 43, 24, 0.45);
}

.badge {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.plan h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price { margin: 0; white-space: nowrap; }
.price .amount { font-size: 26px; font-weight: 700; }
.price .per { margin-left: 4px; font-size: 14px; opacity: 0.8; }

.discount {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 400;
}
.discount strong { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.cap { margin: 4px 0 0; font-size: 15px; opacity: 0.9; }
.nobind {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.plan-perks {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 14px;
}
.plan-perks li { display: flex; align-items: center; gap: 7px; }
.plan-perks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.plan-perks li:last-child { grid-column: 1 / -1; }
.section-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 600;
  color: var(--brown);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--brown);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.cta:active { transform: scale(0.98); opacity: 0.9; }

/* Perks */
.perks, .steps, .faq {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.perks { margin-top: 18px; }
h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe-ink);
}
.perks ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--brown);
}
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li.wide { grid-column: 1 / -1; }
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* Steps */
.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 42px;
  counter-increment: step;
}
.steps li + li { margin-top: 14px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.steps strong { display: block; color: var(--brown); font-weight: 600; }
.steps span { display: block; font-size: 14px; color: var(--taupe-ink); }

/* Story */
.story {
  padding: 26px 4px 6px;
  font-size: 15px;
  color: var(--brown-2);
}
.story p { margin: 0 0 12px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 500;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--taupe-ink);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: -4px 0 14px;
  font-size: 15px;
  color: var(--taupe-ink);
}

/* Footer */
.foot {
  padding-top: 26px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--taupe-ink);
}
.foot p { margin: 0 0 6px; }
.foot a { color: var(--brown); }
.legal { font-size: 13px; }
.legal span { margin: 0 6px; }


/* Tablet: a little more room */
@media (min-width: 640px) {
  main, .top, .foot { max-width: 560px; }
  .hero-media { aspect-ratio: 16 / 9; }
}

/* Desktop */
@media (min-width: 960px) {
  main, .top, .foot {
    max-width: 1120px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .top { padding-top: 28px; }
  .logo { height: 26px; }
  .app-btn { font-size: 14px; padding: 10px 16px; }
  .app-icon { width: 18px; height: 18px; }

  .hero { padding: 32px 0 72px; }
  .hero-media { aspect-ratio: 1040 / 460; }
  .hero-media img { object-position: 50% 45%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(34, 26, 14, 0.85) 0%, rgba(34, 26, 14, 0.55) 45%, rgba(34, 26, 14, 0.1) 80%);
  }
  .hero-text { top: 0; right: auto; display: flex; flex-direction: column; justify-content: center; padding: 0 56px; max-width: 620px; }
  .wordmark { font-size: 112px; }
  .tagline { font-size: 26px; margin-top: 10px; }
  .lede { margin-top: 22px; padding-top: 18px; font-size: 21px; }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .plan { padding: 32px 28px 28px; }
  .plan--mania { margin-top: -18px; margin-bottom: 5px; padding-top: 50px; padding-bottom: 23px; }
  .plan h2 { font-size: 34px; }
  .discount strong { font-size: 56px; }
  .plan-perks { margin-bottom: 4px; }
  .plan .cta { margin-top: auto; }
  .plan-perks + .cta { margin-top: 24px; }
  .cap { margin-bottom: 20px; }
  .cta { min-height: 56px; margin-top: 20px; cursor: pointer; }
  .badge { left: 28px; font-size: 13px; }

  .section-title { text-align: center; font-size: 24px; margin-bottom: 28px; }
  .require-note { text-align: center; max-width: 760px; margin: 28px auto 0; text-wrap: balance; }
  .steps { margin-top: 40px; padding: 28px; }
  .steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li + li { margin-top: 0; }
  .steps li { padding-left: 0; padding-top: 40px; }

  .about {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
    margin-top: 56px;
  }
  .story {
    position: sticky;
    top: 32px;
    padding: 8px 0 0;
    font-size: 18px;
    line-height: 1.55;
  }
  .faq { margin-top: 0; padding: 12px 28px; }
  .faq h3 { margin-top: 16px; }
  .faq summary { padding: 18px 0; font-size: 17px; }
  .faq summary:hover { color: var(--sage-dark); }

  .foot { padding-top: 48px; padding-bottom: 48px; font-size: 15px; }
}


.story h3 { margin-bottom: 14px; }
.story-list { margin: 0 0 12px; padding-left: 18px; }
.story-list li + li { margin-top: 4px; }
.welcome { font-weight: 600; color: var(--brown); }
.faq-sub { margin: -6px 0 6px; font-size: 14px; color: var(--taupe-ink); }
.contact { line-height: 1.7; margin-top: 10px !important; }

.require-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1.5px solid var(--brown);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  color: var(--taupe-ink);
}
.require-note p { margin: 0; }
.require-note p + p { margin-top: 4px; }
.require-title { font-size: 15px; font-weight: 600; color: var(--brown); }
.steps-link { color: var(--brown); font-weight: 600; }
.steps strong + span { margin-top: 2px; }
@media (min-width: 960px) {
  .require-note { text-align: center; max-width: 760px; margin: 28px auto 0; text-wrap: balance; }
}

/* ---------- Motion ---------- */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* Page load: header, hero photo and hero text */
@keyframes fade-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

.top { animation: fade-in 0.6s var(--ease-out) both; }
.hero-media { animation: fade-up 0.8s var(--ease-out) 0.05s both; }
.hero-media img { animation: settle 1.6s var(--ease-out) both; }
.hero-text > * { animation: fade-up 0.7s var(--ease-out) both; }
.hero-text .wordmark { animation: none; }
.wordmark-mania, .wordmark-club { display: inline-block; }
.wordmark-mania { animation: fade-up 0.8s var(--ease-out) 0.25s both; }
.hero-text .tagline { animation-delay: 0.9s; }
.hero-text .lede { animation-delay: 1.05s; }

/* Scroll reveal (only when JS is on) */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
}
.js .reveal.is-in {
  transition:
    opacity 0.8s var(--ease-out) var(--delay, 0s),
    translate 0.8s var(--ease-out) var(--delay, 0s),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* Plan cards: gentle lift on hover */
.plan {
  transform: translateY(calc(var(--lift, 0px) + var(--hover, 0px)));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.cta {
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.cta::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s var(--ease-out);
}
.app-btn, .app-choice {
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}
.hero-media img { transition: scale 1.2s var(--ease-out); }

@media (hover: hover) {
  .plan:hover { --hover: -5px; box-shadow: 0 22px 40px -20px rgba(55, 43, 24, 0.55); }
  .plan--mania:hover { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px #372b18, 0 26px 44px -20px rgba(55, 43, 24, 0.6); }
  .cta:hover::after { transform: translateX(4px); }
  .app-btn:hover, .app-choice:hover { transform: translateY(-2px); }
  .hero-media:hover img { scale: 1.03; }
  .steps li:hover::before { background: var(--sage); }
  .foot a:hover, .steps-link:hover { color: var(--sage-dark); }
}
.steps li::before { transition: background-color 0.25s ease; }

/* FAQ: answer fades in when opened */
.faq details[open] p { animation: fade-up 0.35s var(--ease-out) both; }
.faq summary::after { transition: transform 0.25s var(--ease-out); }

/* App picker: slide up on phones, pop on larger screens */
@keyframes sheet-up { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes pop-in { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
.app-dialog[open] { animation: pop-in 0.25s var(--ease-out); }
.app-dialog[open]::backdrop { animation: fade-in 0.25s ease; }
@media (max-width: 639px) {
  .app-dialog[open] { animation: sheet-up 0.35s var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::backdrop {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}

/* "club" in the same tone as MANIA in the logo */
.wordmark-club {
  color: #b09b7d;
  background: linear-gradient(15deg,
    #fffaf2 0%,
    #efe3cf 18%,
    #c8b393 38%,
    #9c8465 55%,
    #d9c7a8 70%,
    #a58d6b 86%,
    #8a7356 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  padding-right: 0.04em;
  filter: brightness(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 0 rgba(240, 222, 190, 0));
  animation:
    club-in 0.9s var(--ease-out) 0.75s both,
    club-pulse 5s cubic-bezier(0.45, 0, 0.55, 1) 2.2s infinite;
}
@keyframes club-in {
  from { opacity: 0; translate: 10px 0; }
  to { opacity: 1; translate: 0 0; }
}
/* Soft glow that breathes in and out every 5s, then rests.
   Same filter functions in every keyframe so the browser can blend them. */
@keyframes club-pulse {
  0%, 44%, 100% {
    filter: brightness(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 0 rgba(240, 222, 190, 0));
  }
  20% {
    filter: brightness(1.1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 14px rgba(240, 222, 190, 0.35));
  }
}

.powered { margin-top: 18px !important; font-size: 12px; letter-spacing: 0.02em; }
.foot .powered a { color: var(--taupe-ink); text-decoration: none; }
.foot .powered a:hover { color: var(--brown); }

/* Cancel button inside the FAQ answer */
.faq-action {
  display: inline-flex;
  align-items: center;
  margin: -2px 0 16px;
  padding: 9px 16px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.faq-action:hover { background: var(--brown); color: #fff; }
.faq details[open] .faq-action { animation: fade-up 0.35s var(--ease-out) 0.05s both; }

/* Plan buttons: champagne gradient on the brown cards, deep brown on max */
.cta {
  background: linear-gradient(15deg, #fffdf9 0%, #f6eee2 40%, #e6d7bf 75%, #d9c6a6 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(120, 96, 60, 0.18);
  transition: transform 0.2s var(--ease-out), background-position 0.6s var(--ease-out), box-shadow 0.25s ease;
}
@media (hover: hover) {
  .cta:hover {
    background-position: 100% 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px -8px rgba(0, 0, 0, 0.45);
  }
}

/* Small white SushiMania logo, top right of each plan */
.plan { padding-top: 40px; }
.plan-logo {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 76px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}
@media (min-width: 960px) {
  .plan { padding-top: 48px; }
  .plan--mania { padding-top: 66px; }
  .plan-logo { top: 20px; left: 28px; width: 84px; }
  .plan--mania .plan-logo { top: 38px; }
}
/* Mania has the "mest værdi" badge in its top-left corner */
@media (max-width: 959px) {
  .plan--mania { padding-top: 48px; }
  .plan--mania .plan-logo { top: 22px; }
}

/* Hero card links down to the plans */
html { scroll-behavior: smooth; }
a.hero-media { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.section-title { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tier colours, matching the new member cards ---------- */
.plan--more { background: #7a6142; }

/* Mania: the same gold gradient as "club", with dark brown text */
.plan--mania {
  background: linear-gradient(15deg, #fffaf2 0%, #efe3cf 18%, #c8b393 38%, #9c8465 55%, #d9c7a8 70%, #a58d6b 86%, #8a7356 100%);
  color: #372b18;
}
.plan--mania .plan-perks { border-top-color: rgba(55, 43, 24, 0.22); }
.plan--mania .cta {
  background: linear-gradient(15deg, #231b10 0%, #372b18 45%, #54442c 80%, #6a5739 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 240, 215, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
@media (hover: hover) {
  .plan--mania .cta:hover { box-shadow: inset 0 1px 0 rgba(255, 240, 215, 0.14), 0 8px 18px -8px rgba(0, 0, 0, 0.5); }
}

/* "mest værdi" sits on the gold mania card, so it is dark brown */
.badge {
  background: #372b18;
  color: #f4efe8;
}
