/* Calzone landing page. Dark like the app, real app screens, one sans family. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations'),
       url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Gelasio';
  src: url('/assets/fonts/gelasio-wordmark.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* same palette as the app */
  --paper:   #121212;
  --band:    #1C1C1C;
  --ink:     #F4F4F4;
  --ink-2:   #9C9C9C;
  --line:    #2C2C2C;
  --orange:  #E8956D;
  --orange-d:#F0A27C;
  --on-orange:#1A120D;
  --error:   #FF7B6E;
  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-panel: 28px;
  --radius-ctl: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: 'Gelasio', Georgia, serif; font-size: 23px; line-height: 1; letter-spacing: -0.01em; }
.top-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top-links a { text-decoration: none; color: var(--ink-2); }
.top-links .hide-sm { display: none; }
.lang { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 30px 0 0; }
.hero-grid { display: grid; gap: 34px; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 10.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.lead { margin: 12px 0 0; max-width: 32ch; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }

.offer { margin: 18px 0 0; }
.offer-price { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.offer-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }

/* ---------- waitlist form (markup and behaviour shared with script.js) ---------- */
.notify-form { margin: 16px 0 0; max-width: 460px; position: relative; }
.notify-row { display: flex; flex-direction: column; gap: 8px; }
.notify-row input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--band);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-ctl);
  color: var(--ink);
  font: 500 17px/1 var(--sans);
  transition: border-color .15s ease;
}
.notify-row input::placeholder { color: #6B6B6B; }
.notify-row input:focus { outline: none; border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  touch-action: manipulation;
  border: 0; border-radius: var(--radius-ctl);
  background: var(--orange); color: var(--on-orange);
  font: 700 17px/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { cursor: default; opacity: .85; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.notify-row .btn { width: 100%; padding: 0 12px; }
@media (max-width: 359px) { .notify-row .btn { font-size: 16px; } }
.notify-msg { margin: 10px 2px 0; min-height: 1.4em; font-size: 14px; color: var(--ink-2); }
.notify-msg strong { color: var(--ink); }
.notify-form.is-error .notify-row input { border-color: var(--error); }
.notify-form.is-error .notify-msg { color: var(--error); }
.notify-form.is-ok .notify-msg { color: var(--ink); font-weight: 600; }
.notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.perks-mini { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; color: var(--ink-2); }
.perks-mini[hidden], .invite[hidden] { display: none !important; }
.perks-mini li { display: flex; align-items: center; gap: 10px; }
.perks-mini svg { flex-shrink: 0; color: var(--orange-d); }

/* invite card shown after signing up (built by script.js) */
.invite { margin-top: 22px; max-width: 460px; padding: 20px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--band); }
.invite-ok { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.invite-ok .check { display: inline-flex; width: 22px; height: 22px; border-radius: 11px; background: var(--orange); color: var(--on-orange); align-items: center; justify-content: center; flex-shrink: 0; }
.invite-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.invite-title em { font-style: normal; }
.invite-sub { margin: 6px 0 16px; font-size: 15px; color: var(--ink-2); }
.invite-link { display: flex; flex-direction: column; gap: 8px; }
.invite-link code { padding: 14px; background: var(--paper); border-radius: 12px; font: 500 15px/1.2 var(--sans); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-link .btn { height: 50px; width: 100%; }
.invite-actions { margin-top: 8px; }
.invite-actions .btn { width: 100%; height: 50px; }
.invite-progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.invite-dots { display: flex; gap: 6px; }
.invite-dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.invite-dots i.on { background: var(--orange); }
.invite-progress.done { color: var(--ink); font-weight: 600; }

/* ---------- screen panels: a real app screen rising out of a colored block ---------- */
.panel {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  height: 400px;
  padding-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--band);
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel img {
  flex: none;
  width: 236px; height: auto; max-width: none;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55));
}
.panel-hero { height: 420px; }
.panel-hero img { width: 252px; }
/* the home screen shot has the calorie card sticking out past the phone, so it is wider */
.panel img.wide { width: 298px; }

/* ---------- features ---------- */
.features { padding: 84px 0 12px; }
.feat { display: grid; gap: 26px; margin-bottom: 72px; }
.feat h3, .section-title {
  margin: 0;
  font-size: clamp(30px, 8vw, 50px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.feat p { margin: 14px 0 0; max-width: 34ch; font-size: 18px; color: var(--ink-2); }
.tier { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--band); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tier-pro { background: rgba(232,149,109,0.14); color: #F2AD8B; box-shadow: none; }

/* phones: hero is text only, features become a row of swipeable cards */
@media (max-width: 879.98px) {
  /* the waitlist fills the first screen; features only appear once you scroll */
  .hero {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
    padding-bottom: 44px;
  }
  .panel-hero { display: none; }
  .lead { margin-top: 18px; }
  .features { padding: 64px 0 44px; }
  .feat-head { margin-bottom: 22px; }
  .feat-track {
    display: flex; gap: 12px;
    max-width: none;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(20px, env(safe-area-inset-left));
    scrollbar-width: none;
  }
  .feat-track::-webkit-scrollbar { display: none; }
  .feat {
    flex: 0 0 min(calc(100vw - 64px), 360px);
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    gap: 0; margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--band);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .feat .panel { order: -1; height: 318px; padding-top: 24px; border-radius: 0; background: #232323; box-shadow: none; }
  .feat .panel img { width: 212px; }
  .feat .panel img.wide { width: 268px; }
  .feat-text { padding: 20px 20px 22px; }
  .feat h3 { font-size: 25px; letter-spacing: -0.03em; }
  .feat p { margin-top: 8px; font-size: 16px; line-height: 1.45; }
  .tier { margin-top: 14px; }
  .feat-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .feat-dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .2s ease, width .2s ease; }
  .feat-dots i.on { width: 30px; background: var(--ink-2); }
}
@media (min-width: 880px) {
  .feat-m, .feat-head, .feat-dots { display: none; }
}

/* ---------- pricing ---------- */
.pricing { padding: 40px 0 72px; }
.section-sub { margin: 14px 0 0; max-width: 40ch; font-size: 18px; color: var(--ink-2); }
.plans { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.plan h3 { grid-column: 1; grid-row: 1; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.plan p { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.plan-price { grid-column: 2; grid-row: 1; text-align: right; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.plan-price small, .plan-price s { display: block; white-space: nowrap; }
.plan-price s { margin: 0 0 2px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan-price s { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.plan-best { position: relative; }
.plan-best h3::after {
  content: attr(data-badge);
  display: inline-block; white-space: nowrap;
  margin-left: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--orange); color: var(--on-orange);
  font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: 3px;
}

/* ---------- faq ---------- */
.faq-wrap { padding: 72px 0; background: #171717; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq { margin: 30px 0 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq p { margin: 0; padding: 0 0 20px; max-width: 62ch; font-size: 16px; color: var(--ink-2); }
.faq a { color: var(--ink); }
.faq-content { overflow: hidden; transition: height .25s ease, opacity .2s ease; }

/* ---------- final call ---------- */
.final { padding: 80px 0 88px; }
.final .lead { max-width: 40ch; }

/* ---------- footer ---------- */
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { text-decoration: none; }
.foot nav a { padding: 6px 0; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .notify-form { max-width: 540px; }
  .notify-row { flex-direction: row; }
  .notify-row input { flex: 1; min-width: 0; }
  .notify-row .btn { width: auto; flex-shrink: 0; padding: 0 22px; }
  .invite-link { flex-direction: row; }
  .invite-link code { flex: 1; text-align: left; }
  .invite-link .btn { width: auto; }
}
@media (min-width: 880px) {
  .wrap { padding: 0 32px; }
  .top { height: 76px; }
  .top-links .hide-sm { display: inline; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
  .lead { margin-top: 16px; font-size: 20px; max-width: 34ch; }
  .offer { margin-top: 26px; }
  .offer-price { font-size: 34px; }
  .notify-form { margin-top: 22px; }
  .notify-row input, .btn { height: 56px; }
  .panel { height: 560px; padding-top: 48px; }
  .panel img { width: 300px; }
  .panel img.wide { width: 379px; }
  .panel-hero { height: 600px; }
  .panel-hero img { width: 320px; }
  .features { padding-top: 120px; }
  .feat { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 110px; }
  /* first child is the phone-only photo card, so the visible rows start at child 2 */
  .feat:nth-child(odd) .feat-text { order: 2; }
  .feat p { font-size: 19px; }
  .pricing, .final { padding-top: 60px; }
  .plan { grid-template-columns: 1fr auto; padding: 26px 0; }
  .plan p { grid-column: 1; grid-row: 2; }
  .plan-price { grid-row: 1 / span 2; align-self: center; font-size: 24px; }
  .plan-price small, .plan-price s { display: inline; }
  .plan-price s { margin-right: 8px; }
  .faq-wrap { padding: 100px 0; }
  .final { padding: 110px 0 120px; }
}

/* hover only where there is a mouse, so taps on phones don't leave buttons stuck in hover */
@media (hover: hover) {
  .btn:hover { background: var(--orange-d); }
  .btn-ghost:hover { background: var(--band); }
  .top-links a:hover { color: var(--ink); }
  .foot nav a:hover { color: var(--ink); text-decoration: underline; }
}

/* ---------- sticky join bar on phones, once the hero form is scrolled away ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(18,18,18,0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.stickybar.is-on { transform: none; }
.stickybar p { margin: 0; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.stickybar strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stickybar .btn { height: 48px; padding: 0 20px; font-size: 16px; flex-shrink: 0; }
@media (min-width: 880px) { .stickybar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after { transition: none !important; }
}
