[hidden] { display: none !important; } /* classes like .locked set display, which would beat the hidden attribute */

@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-latin-ext.woff2) format('woff2');
  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: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  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;
}

:root {
  --bg: #0c0908;
  --surface: #161110;
  --surface-2: #1f1714;
  --line: rgba(255, 228, 210, 0.09);
  --line-strong: rgba(255, 228, 210, 0.18);
  --text: #fff4ec;
  --muted: #a8968b;
  --fire: #ff4d12;
  --fire2: #ffb020;
  --ember: linear-gradient(100deg, var(--fire) 0%, #ff7a18 45%, var(--fire2) 100%);
  --on-fire: #1c0a02;
  --radius: 22px;
  --display: 'Bricolage', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Film grain over everything: keeps the dark background from looking flat. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 110vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 30%, rgba(255, 77, 18, 0.22), transparent 70%),
    radial-gradient(35% 40% at 20% 10%, rgba(255, 176, 32, 0.12), transparent 70%);
  filter: blur(20px);
}
::selection { background: var(--fire); color: var(--on-fire); }
:focus-visible { outline: 2px solid var(--fire2); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ember);
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(255, 77, 18, 0.35);
}
.lang {
  appearance: none;
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 17, 16, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a8968b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center;
  backdrop-filter: blur(8px);
  color: var(--text);
  font: 600 0.85rem var(--body);
  cursor: pointer;
}
.lang:hover { border-color: var(--muted); }
.lang option { background: var(--surface); }
.topbar-right { position: relative; display: flex; align-items: center; gap: 8px; }
.pill { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(22, 17, 16, 0.7); backdrop-filter: blur(8px); color: var(--text); font: 600 0.85rem var(--body); white-space: nowrap; cursor: pointer; }
.pill:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 8px 20px 40px; }
.hero { display: grid; gap: 28px; align-items: start; }
.hero-copy { text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 244, 236, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 4px rgba(255, 77, 18, 0.2); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(255, 77, 18, 0); } }
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 12vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
.fire {
  position: relative;
  display: inline-block;
  background: var(--ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.scribble { position: absolute; left: 0; right: 0; bottom: -0.1em; width: 100%; height: 0.24em; overflow: visible; }
.scribble path { fill: none; stroke: var(--fire2); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 0.9s 0.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tagline { margin: 22px auto 0; max-width: 30ch; color: var(--muted); font-size: clamp(1.05rem, 2.6vw, 1.3rem); }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.proof li { display: inline-flex; gap: 6px; align-items: center; opacity: 0.85; }

.app { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
/* Once there is a roast on screen, it comes first: on phones the sales copy steps aside. */
.hero:not(:has(#step-upload:not([hidden]))) .tagline,
.hero:not(:has(#step-upload:not([hidden]))) .proof,
.hero:not(:has(#step-upload:not([hidden]))) .kicker { display: none; }
.hero:not(:has(#step-upload:not([hidden]))) h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
.sticker { display: none; }
.hero-copy .hero-img { display: none; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(31, 23, 20, 0.92), rgba(22, 17, 16, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  animation: rise 0.5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.center { text-align: center; }

.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 270px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(255, 77, 18, 0.1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 244, 236, 0.025) 0 12px, transparent 12px 24px),
    #120d0c;
  border: 1.5px dashed var(--line-strong);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.drop:hover { border-color: var(--fire); }
.drop:active { transform: scale(0.99); }
#drop-text { display: grid; justify-items: center; gap: 4px; padding: 20px; }
#drop-text::before {
  content: '';
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px, cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c0a02' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E"), var(--ember);
  box-shadow: 0 10px 30px -6px rgba(255, 77, 18, 0.6);
  transition: transform 0.3s var(--ease);
}
.drop:hover #drop-text::before { transform: rotate(-6deg) scale(1.06); }
.drop small { color: var(--muted); font-family: var(--body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.drop img { width: 100%; max-height: 420px; object-fit: contain; }

/* A shared roast's page shows the friend's card first. */
.shared { margin: 0 0 16px; }
.shared img { display: block; width: 100%; aspect-ratio: 1200 / 630; border-radius: 14px; background: var(--line); }
.shared figcaption { margin-top: 12px; font-weight: 800; font-size: 1.05rem; text-align: center; }

/* Checkboxes: a tick box for consent, a switch for no-mercy mode. */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 2px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.consent input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #120d0c center / 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.consent input:hover { border-color: var(--muted); }
.consent input:checked {
  border-color: var(--fire);
  background-color: var(--fire);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%231c0a02' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.savage { align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 244, 236, 0.02); transition: border-color 0.2s, background 0.2s; }
.savage span { font-weight: 700; color: var(--text); }
.savage input { position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: #2a201c; border: 0; }
.savage input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--ease), background 0.2s; }
.savage input:checked { background: var(--ember); background-image: var(--ember); }
.savage input:checked::after { transform: translateX(18px); background: #fff; }
.savage:has(input:checked) { border-color: rgba(255, 77, 18, 0.5); background: rgba(255, 77, 18, 0.07); }
.savage:has(input:checked) span { color: var(--fire2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 700 1rem var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary {
  overflow: hidden;
  border: 0;
  background: var(--ember);
  color: var(--on-fire);
  font-size: 1.12rem;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 30px -10px rgba(255, 77, 18, 0.8);
}
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
}
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 40px -12px rgba(255, 77, 18, 0.95); }
.btn.primary:hover:not(:disabled)::after { transform: translateX(100%); transition: transform 0.7s var(--ease); }
.btn:disabled { cursor: not-allowed; box-shadow: none; opacity: 0.55; }
.btn.primary:disabled { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.row { display: flex; gap: 10px; margin-top: 14px; }
.fine { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.credits-line { margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--fire2); }
.linkbtn { display: block; margin: 10px auto 0; padding: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.linkbtn.inline { display: inline; margin: 0; padding: 0; font-size: inherit; }

/* ---------- Loading ---------- */
#step-loading { padding: 40px 20px 24px; }
.spinner {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--fire) 80%, var(--fire2));
  animation: spin 1s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 0 42px, #000 43px);
  mask: radial-gradient(circle, transparent 0 42px, #000 43px);
}
.spinner span { display: none; }
#step-loading .spinner + p { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; min-height: 1.5em; }
#step-loading::before {
  content: '🔥';
  position: absolute;
  top: 40px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  translate: -50% 0;
  font-size: 2.3rem;
  animation: flicker 0.9s ease-in-out infinite alternate;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { from { transform: scale(0.88) rotate(-4deg); } to { transform: scale(1.08) rotate(4deg); } }

/* ---------- Roast result ---------- */
.result-img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.roast {
  position: relative;
  margin: 16px 0 0;
  padding: 18px 18px 18px 20px;
  font-size: 1.12rem;
  line-height: 1.55;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #120d0c;
}
.roast::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ember); }
.roast.full { white-space: pre-wrap; font-size: 1.02rem; }
.roast p { margin: 0 0 12px; }
.roast p:last-child { margin-bottom: 0; }
.hook { font-weight: 700; }
.reveal { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.locked { position: relative; display: block; width: 100%; padding: 4px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.blurred { display: block; filter: blur(7px); user-select: none; pointer-events: none; }
.lock-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--on-fire);
  font: 800 0.95rem var(--display);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 77, 18, 0.18);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.06); } }
.upsell { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.upsell p { color: var(--muted); margin: 0 0 14px; }
.upsell strong { color: var(--text); font-family: var(--display); font-size: 1.08rem; }
.upsell .btn + .btn { margin-top: 8px; }
.waiver { margin: 0 0 14px; font-size: 0.8rem; }
.waiver.attention { color: var(--fire2); outline: 2px solid var(--fire); outline-offset: 6px; border-radius: 6px; }

/* ---------- Sharing ---------- */
.share { margin-top: 18px; }
.share-title { margin: 0 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.share-note { margin: 0 0 10px; font-size: 0.78rem; color: var(--muted); text-align: center; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sbtn { padding: 11px 6px; border: 0; border-radius: 12px; color: #fff; font: 700 0.88rem var(--body); cursor: pointer; transition: transform 0.15s var(--ease), filter 0.2s; }
.sbtn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.sbtn.ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.sbtn.tt { background: #000; box-shadow: inset 0 0 0 1px #333, inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.sbtn.wa { background: #1faa53; }
.sbtn.fb { background: #1877f2; }
.sbtn.x { background: #000; box-shadow: inset 0 0 0 1px #333; }
.sbtn.more { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- Restore link and sign-in ---------- */
.restore { margin-top: 18px; padding: 16px; border: 1px dashed rgba(255, 176, 32, 0.5); border-radius: 16px; background: rgba(255, 176, 32, 0.04); font-size: 0.9rem; }
.restore p { margin: 0 0 10px; color: var(--muted); }
.restore strong { color: var(--text); }
.restore-row { display: flex; gap: 8px; }
.restore-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #120d0c; color: var(--text); font: inherit; font-size: 0.8rem; }
.restore-row .btn { width: auto; flex: none; padding: 10px 14px; font-size: 0.9rem; }
.login { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.login p, .login-panel p { margin: 0 0 10px; color: var(--muted); }
.login-buttons { display: grid; gap: 8px; }
.login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1px solid #747775; border-radius: 12px; background: #fff; color: #1f1f1f; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.login-btn svg { flex: none; }
.login-btn.apple { border-color: #fff; color: #000; }
.account-note { margin: 12px 0 0; color: var(--text); font-weight: 600; }
/* The account menu drops down from the button in the top bar. */
.login-panel { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: min(320px, calc(100vw - 40px)); padding: 16px; text-align: left; }
.login-panel .account-note { margin: 0 0 12px; color: var(--text); }

.error { background: rgba(255, 77, 18, 0.1); border: 1px solid rgba(255, 77, 18, 0.4); color: #ffc2b3; padding: 12px 16px; border-radius: 14px; margin-top: 14px; }
.toast { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 20px; max-width: 488px; margin: 0 auto; padding: 13px 18px; border-radius: 14px; background: #fff4ec; color: #1a0f0a; font-weight: 700; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); animation: rise 0.3s var(--ease) both; }

/* ---------- Ads ---------- */
.ad-slot { min-height: 0; margin: 22px 0 0; }
.ad-slot:empty, .ad-slot:not(:has(ins)) { margin: 0; }
.ad-wrap .ad-slot { margin: 0; }

/* ---------- Marquee band ---------- */
.band {
  margin: 40px 0 0;
  padding: 16px 0;
  overflow: hidden;
  background: var(--ember);
  color: var(--on-fire);
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 20px 50px -20px rgba(255, 77, 18, 0.6);
}
.band-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.band-track span { padding-right: 0.35em; font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Content sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 20px 0; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-transform: lowercase; }
.section-sub { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }

.steps { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.steps li > :not(.num) { grid-column: 2; }
.steps .num { grid-row: span 2; display: block; font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 4px 0 6px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); }

.ex-grid { display: grid; gap: 14px; margin: 32px 0 0; }
.ex { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: transform 0.3s var(--ease), border-color 0.3s; }
.ex:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: rgba(255, 77, 18, 0.35); }
.ex-emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #120d0c; border: 1px solid var(--line); font-size: 1.5rem; }
.ex figcaption { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ex blockquote { flex: 1; margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.ex blockquote::before { content: '“'; color: var(--fire); }
.ex blockquote::after { content: '”'; color: var(--fire); }
.heat { position: relative; height: 6px; border-radius: 999px; background: #2a201c; overflow: hidden; }
.heat::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--heat) * 100%); border-radius: inherit; background: var(--ember); }

.ad-wrap { padding-top: 56px; }
.ad-wrap:not(:has(ins)) { display: none; }

.faq > * { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fire2); font-size: 1.2rem; transition: transform 0.3s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(255, 176, 32, 0.1); }
.faq summary:hover::after { border-color: var(--fire2); }
.faq details p { margin: -6px 0 20px; padding-right: 48px; color: var(--muted); }

footer { max-width: 1200px; margin: 80px auto 0; padding: 32px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: grid; gap: 8px; justify-items: center; text-align: center; }
footer p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--text); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .steps, .ex-grid { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: block; }
  .steps h3 { margin-top: 14px; }
  .card { padding: 24px; }
}
@media (min-width: 1000px) {
  .topbar { padding: 26px 32px; }
  main { padding: 36px 32px 40px; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; min-height: calc(100vh - 220px); }
  .hero-copy { text-align: left; }
  .tagline { margin-left: 0; }
  .proof { justify-content: flex-start; }
  .app { margin: 0 0 0 auto; }
  .hero:not(:has(#step-upload:not([hidden]))) { align-items: start; }
  .hero:not(:has(#step-upload:not([hidden]))) .hero-copy { position: sticky; top: 48px; }
  .hero:not(:has(#step-upload:not([hidden]))) :is(.tagline, .proof) { display: flex; }
  .hero:not(:has(#step-upload:not([hidden]))) .kicker { display: inline-flex; }
  .hero:not(:has(#step-upload:not([hidden]))) .tagline { display: block; }
  .hero:not(:has(#step-upload:not([hidden]))) h1 { font-size: clamp(2.9rem, 12vw, 6.4rem); }
  /* With a roast on screen the photo moves under the title and the roast gets the whole right column. */
  .hero:has(:is(#step-result, #step-full):not([hidden])) :is(.kicker, .tagline, .proof) { display: none; }
  .hero:has(:is(#step-result, #step-full):not([hidden])) .hero-img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 390px); margin-top: 36px; }
  .app .result-img { display: none; }
  .app .result-img + .roast { margin-top: 0; }
  .sticker {
    display: block;
    position: absolute;
    z-index: 2;
    left: -150px;
    top: 96px;
    pointer-events: none;
    width: 220px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff4ec;
    color: #1a0f0a;
    font: 700 0.95rem/1.35 var(--display);
    letter-spacing: -0.01em;
    transform: rotate(-6deg);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
    animation: float 6s ease-in-out infinite;
  }
  .sticker::after { content: ''; position: absolute; right: 30px; bottom: -8px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
  /* Only next to the upload card: on a roast the sticker would cover the user's own photo. */
  .app:not(:has(#step-upload:not([hidden]))) .sticker { display: none; }
  .section { padding: 110px 32px 0; }
  .ad-wrap { padding-top: 80px; }
  footer { margin-top: 110px; grid-template-columns: 1fr auto 1fr; justify-items: stretch; text-align: left; padding: 36px 32px 56px; }
  footer p:first-of-type { text-align: center; }
  .footer-links { justify-content: flex-end; }
}
/* Privacy page */
.doc main { max-width: 720px; }
.doc h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); margin-bottom: 24px; }
.doc .card { color: #e6d6cb; line-height: 1.65; }
.doc .card p { margin: 0 0 14px; }
.doc .card a { color: var(--fire2); }

@keyframes float { 50% { transform: rotate(-4deg) translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .scribble path { stroke-dashoffset: 0; }
}
