/* Grillé ! — site public (Firebase Hosting). Colours and type from the app mockups. */

:root {
  --flame: #ff5a1f;
  --flame-dark: #c93e0e;
  --flame-soft: #fff0e9;
  --flame-stripe: #ff7a45;
  --violet: #6c4cf5;
  --violet-dark: #4b2fd1;
  --violet-soft: #eee9ff;
  --ink: #1c1530;
  --ink-2: #2c2447;
  --muted: #6b6485;
  --muted-on-ink: #c9c3de;
  --gold: #ffc23d;
  --green: #19a974;
  --green-soft: #d8f5e8;
  --green-text: #0e6b47;
  --red-soft: #ffe3d8;
  --red-text: #a3300a;
  --bg: #f6f4fb;
  --surface: #ffffff;
  --line: #ece8f5;
  --line-strong: #e2dcf0;
  --radius: 22px;
  --page: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #120d22;
    --surface: #1c1530;
    --line: #2c2447;
    --line-strong: #3a3159;
    --muted: #b4acd0;
    --ink-text: #f6f4fb;
    --flame-soft: #3a1c12;
    --violet-soft: #251d47;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-text, var(--ink));
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--violet);
  font-weight: 700;
}

a:hover {
  color: var(--violet-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 700px) {
  .wrap {
    padding: 0 28px;
  }
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--flame);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo:hover {
  color: var(--flame);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--flame);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 var(--flame-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-text, var(--ink));
  text-decoration: none;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--surface);
}

.nav .hide-sm {
  display: none;
}

@media (min-width: 760px) {
  .nav .hide-sm {
    display: inline-block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  padding: 16px 24px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(4px);
}

.btn-flame {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 6px 0 var(--flame-dark);
}

.btn-flame:hover {
  color: #fff;
}

.btn-flame:active {
  box-shadow: 0 2px 0 var(--flame-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink-text, var(--ink));
  border: 2px solid var(--line-strong);
}

.btn-outline:hover {
  color: var(--ink-text, var(--ink));
  border-color: var(--muted);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 10px 18px 10px 14px;
  text-decoration: none;
  min-width: 190px;
}

.store:hover {
  color: #fff;
}

.store small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-on-ink);
  line-height: 1.2;
}

.store strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.store[aria-disabled='true'] {
  cursor: default;
}

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

.soon {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}

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

.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: 46%;
  height: 220px;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--flame) 10%, transparent) 0 18px, transparent 18px 36px);
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--flame);
  background: var(--flame-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero h1 {
  font-size: clamp(44px, 9vw, 84px);
  margin: 18px 0 18px;
}

.hero h1 .burn {
  display: inline-block;
  color: var(--flame);
  transform: rotate(-3deg);
}

.hero .lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 540px;
}

.hero-visual .phone {
  position: relative;
  z-index: 2;
}

.float-card {
  position: absolute;
  z-index: 3;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.float-ask {
  left: max(0px, calc(50% - 230px));
  top: 70px;
  background: var(--violet);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 8px 0 var(--violet-dark);
  transform: rotate(-5deg);
}

.float-yes {
  right: max(0px, calc(50% - 220px));
  top: 150px;
  background: var(--green);
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 8px 0 #0e7a52;
  transform: rotate(4deg);
}

.float-secret {
  left: max(0px, calc(50% - 280px));
  top: 330px;
  width: 104px;
  height: 140px;
  border-radius: 18px;
  background: repeating-linear-gradient(-45deg, var(--flame) 0 10px, var(--flame-stripe) 10px 20px);
  display: grid;
  place-items: center;
  font-size: 56px;
  transform: rotate(10deg);
  box-shadow: 0 16px 30px rgba(28, 21, 48, 0.2);
}

@media (max-width: 520px) {
  .float-ask {
    left: 0;
    top: 210px;
  }

  .float-yes {
    right: 0;
  }

  .float-secret {
    display: none;
  }
}

/* ---------- Phone frames (screens rebuilt from the mockups) ---------- */

.phone {
  --scale: 0.62;
  width: calc(390px * var(--scale) + 20px);
  height: calc(844px * var(--scale) + 20px);
  padding: 10px;
  border-radius: calc(54px * var(--scale) + 10px);
  background: #0c0818;
  box-shadow:
    0 0 0 2px #2c2447,
    0 30px 60px rgba(28, 21, 48, 0.28);
  flex: none;
}

.phone .screen {
  width: 390px;
  height: 844px;
  transform: scale(var(--scale));
  transform-origin: top left;
  border-radius: 54px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
  color: #1c1530;
}

.phone.tilt-left {
  transform: rotate(-4deg);
}

.phone.tilt-right {
  transform: rotate(4deg);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
}

.kicker {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--flame);
  margin-bottom: 10px;
  letter-spacing: 0;
}

/* Steps */

.steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border-radius: 26px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.step h3 {
  font-size: 24px;
}

.step p {
  color: var(--muted);
}

/* Screens gallery */

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 4px 34px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery figcaption {
  font-weight: 800;
  font-size: 17px;
  text-align: center;
}

.gallery figcaption span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 1100px) {
  .gallery {
    justify-content: center;
    overflow: visible;
  }
}

/* Themes */

.themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 700px) {
  .themes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: var(--flame);
}

.theme .emoji {
  font-size: 34px;
  line-height: 1;
}

.theme h3 {
  font-size: 22px;
  margin-top: 6px;
}

.theme p {
  color: var(--muted);
  font-size: 15px;
}

/* Features */

.features {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  border-radius: 26px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
}

.feature.dark {
  background: var(--ink);
  color: #fff;
}

.feature.dark p {
  color: var(--muted-on-ink);
}

.feature.flame {
  background: var(--flame);
  color: #fff;
}

.feature.flame p {
  color: #fff;
  opacity: 0.92;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
}

/* Call to action */

.cta {
  background: var(--flame);
  color: #fff;
  border-radius: 34px;
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 40% -10% auto;
  height: 140px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 16px, transparent 16px 32px);
  transform: rotate(-6deg);
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(48px, 10vw, 96px);
  transform: rotate(-4deg);
  text-shadow: 0 6px 0 var(--flame-dark);
  margin-bottom: 18px;
}

.cta p {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 28px;
}

.cta .stores {
  justify-content: center;
}

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

.site-footer {
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink-text, var(--ink));
}

/* ---------- Text pages (legal, account deletion) ---------- */

.doc {
  padding: 40px 0 24px;
}

.doc .wrap {
  max-width: 780px;
}

.doc h1 {
  font-size: clamp(36px, 7vw, 56px);
  margin-bottom: 12px;
}

.doc .updated {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.doc h3 {
  font-size: 19px;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--ink-text, var(--ink));
}

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

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 10px 0;
}

.doc li + li {
  margin-top: 6px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
}

.card.flame {
  background: var(--flame-soft);
}

.card.violet {
  background: var(--violet-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 18px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 8px;
}

.toc a {
  font-size: 14px;
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  color: var(--ink-text, var(--ink));
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}

.steps-list li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
}

.steps-list li::before {
  content: counter(s);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--flame);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps-list li + li {
  margin-top: 10px;
}

/* ---------- Join page ---------- */

.join {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 32px 0 48px;
}

.join-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: 32px;
  padding: 30px 22px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(28, 21, 48, 0.12);
}

.join-card h1 {
  font-size: 34px;
}

.join-code {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.join-code span {
  width: 48px;
  height: 60px;
  border-radius: 14px;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-text, var(--ink));
}

@media (max-width: 380px) {
  .join-code span {
    width: 40px;
    height: 52px;
    font-size: 24px;
  }
}

.join .stores {
  justify-content: center;
}

.join ol {
  text-align: left;
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* ---------- 404 ---------- */

.lost {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.lost .big {
  font-size: clamp(88px, 22vw, 180px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--flame);
  line-height: 0.9;
  transform: rotate(-4deg);
  text-shadow: 0 8px 0 var(--flame-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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