/* HowIsMyAd prototype. Calm frame, loud ads. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F2EC;
  --card: #FFFFFF;
  --ink: #1D1C1A;
  --ink-2: #3A3833;
  --soft: #6B675F;
  --line: #E3DED3;
  --line-strong: #CFC8BA;
  --hover: #ECE8E0;
  --pencil: #D03A24;
  --pencil-dark: #B3301C;
  --stamp: #2F7D5B;
  --stamp-soft: #E3F0E9;
  --marker: #FFE27A;
  --display: "Archivo", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --rail: 236px;
  --feed: 470px;
  --side: 320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--soft); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px;
  font: 700 15px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--pencil); color: #fff; }
.btn-primary:hover { background: var(--pencil-dark); }
.btn-primary:disabled { background: var(--line-strong); cursor: not-allowed; }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--hover); }
.btn-danger { background: transparent; border-color: var(--pencil); color: var(--pencil); }
.btn-danger:hover { background: #FBEAE6; }
.btn-wide { width: 100%; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--hover); }

.chip { flex: none; font: 600 12px/1 var(--text); color: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; white-space: nowrap; }

/* Locked: greyed, with a small lock. Unlocks later. */
.lock-tag {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  font: 600 12px/1 var(--text); color: var(--soft);
  background: var(--hover); border-radius: 4px; padding: 4px 7px 4px 5px; white-space: nowrap;
}
.lock-tag .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.is-locked-btn, .is-locked-btn:hover { background: var(--hover); border-color: transparent; color: var(--soft); cursor: not-allowed; }
.is-locked-btn .ic { width: 16px; height: 16px; }
.is-locked-icon { color: #B9B3A7; cursor: not-allowed; }
.is-locked-icon:hover { background: none; }
.mini-lock { position: absolute; right: 3px; bottom: 4px; width: 13px; height: 13px; display: grid; place-items: center; background: var(--card); border-radius: 50%; }
.mini-lock .ic { width: 10px; height: 10px; stroke-width: 2.6; color: var(--soft); }
.is-locked-field { color: var(--soft); }
.is-locked-field input[type="text"] { background: var(--hover); border-color: transparent; cursor: not-allowed; }

.locked { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.locked.is-compact { background: none; border: 0; padding: 0; margin-top: 18px; }
.locked-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.locked-head h2 { font: 700 18px/1.2 var(--display); color: var(--soft); }
.locked-preview { filter: grayscale(1); opacity: .42; pointer-events: none; user-select: none; }
.locked-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.locked-note .ic { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.2; }
.locked-note b { color: var(--ink-2); }

/* Logo */
.logo { display: inline-flex; align-items: baseline; font: 800 22px/1 var(--display); letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.logo-ad { position: relative; margin-left: 1px; }
.logo-ad svg { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 14px); overflow: visible; fill: none; stroke: var(--pencil); stroke-width: 4.5; stroke-linecap: round; }

/* Pencil strokes start hidden. Dash 1 plus a longer gap, so no round cap dot shows before drawing. */
.loop-word { position: relative; white-space: nowrap; margin: 0 .22em 0 .2em; }
.loop-word svg { position: absolute; left: -.62em; top: -.24em; width: calc(100% + 1.24em); height: calc(100% + .44em); overflow: visible; fill: none; stroke: var(--pencil); stroke-width: 3.2; stroke-linecap: round; }
.loop-word path, .logo-ad path, .react svg path, .burst path, .pick-check path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.05; }
.loop-word path, .logo-ad path { animation: draw .9s .25s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Shell: phones get a top bar and a tab bar */
.rail { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: rgba(245, 242, 236, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-credits { font: 600 14px/1 var(--text); color: var(--soft); }
.topbar-credits span { font: 700 16px/1 var(--display); color: var(--ink); margin-right: 2px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); }
.tabbar a { display: grid; place-items: center; height: 56px; color: var(--ink); }
.tabbar .ic { width: 26px; height: 26px; }
.tabbar .is-active .ic { stroke-width: 2.4; }
.tabbar .is-locked-nav { color: #B9B3A7; }
.tabbar-upload .ic { color: var(--pencil); stroke-width: 2.2; }

.main { padding: 0 0 calc(88px + env(safe-area-inset-bottom)); }

/* Feed */
.feed-col { width: 100%; max-width: var(--feed); margin: 0 auto; }
.side { display: none; }
.intro h1 { font: 800 28px/1.12 var(--display); letter-spacing: -0.02em; max-width: 17ch; }
.intro p { margin-top: 14px; font-size: 17px; line-height: 1.5; max-width: 40ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.intro .intro-note { margin-top: 14px; font-size: 14px; color: var(--soft); }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.legal-links a { color: var(--soft); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.rail-legal { display: none; padding: 14px 13px 0; }
.intro-legal { margin-top: 12px; }
.intro-inline { padding: 26px 16px 22px; }

.tabs { display: flex; gap: 28px; padding: 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { text-decoration: none; position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 14px 0 12px; background: none; border: 0; cursor: pointer; font: 600 15px/1 var(--text); color: var(--soft); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -2px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 7C50 3 120 2 197 5' fill='none' stroke='%23D03A24' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.tab.is-locked-tab, .tab.is-locked-tab:hover { color: #B0AA9E; cursor: not-allowed; }
.tab .ic { width: 14px; height: 14px; stroke-width: 2.2; }

.feed { display: flex; flex-direction: column; }
.post { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; }
.post-avatar { display: flex; text-decoration: none; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--av); color: #fff; display: grid; place-items: center; font: 800 16px/1 var(--display); }
.avatar-xl { width: 88px; height: 88px; border-radius: 14px; font-size: 38px; }
.post-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.post-who a { text-decoration: none; }
.post-who a:hover b { text-decoration: underline; }
.post-who b { font-size: 15px; }
.post-who span { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 42px; z-index: 20; min-width: 200px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(29, 28, 26, .12); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: none; text-decoration: none; font: 500 15px/1.2 var(--text); text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--hover); }
.menu .ic { width: 18px; height: 18px; }
.menu [data-report] { color: var(--pencil); }

.media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size; background: #DDD8CE; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.media-sq { aspect-ratio: 1 / 1; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.post-actions { display: flex; align-items: center; padding: 6px 6px 0; }
.post-actions .save { margin-left: auto; }
.like[aria-pressed="true"] .ic { fill: var(--pencil); stroke: var(--pencil); }
.like[aria-pressed="true"] { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }

.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; padding: 2px 14px 10px; }
.reactions-label { font-size: 13px; color: var(--soft); margin-right: -4px; }
.react { position: relative; padding: 7px 2px; background: none; border: 0; cursor: pointer; font: 600 14px/1 var(--text); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.react:hover { text-decoration-color: var(--ink); }
.react[aria-pressed="true"] { text-decoration: none; }
.react svg { position: absolute; left: -11px; top: -3px; width: calc(100% + 22px); height: calc(100% + 6px); overflow: visible; pointer-events: none; fill: none; stroke: var(--pencil); stroke-width: 3.4; stroke-linecap: round; }
.react svg path { transition: stroke-dashoffset .45s ease-out; }
.react[aria-pressed="true"] svg path { stroke-dashoffset: 0; }

.comments { padding: 0 14px 10px; font-size: 14px; line-height: 1.45; }
.comments p + p { margin-top: 4px; }
.comments b { margin-right: 6px; }
.comments .mine { animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.more-comments { display: block; padding: 0 14px 10px; font-size: 14px; color: var(--soft); text-decoration: none; }
.more-comments:hover { color: var(--ink); }
.comment-form { display: flex; align-items: center; border-top: 1px solid var(--line); padding: 2px 4px 2px 14px; }
.comment-form input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font: 400 15px var(--text); }
.comment-form input::placeholder { color: var(--soft); }
.comment-form button { height: 40px; padding: 0 12px; background: none; border: 0; border-radius: 6px; cursor: pointer; font: 700 15px var(--text); color: var(--pencil); }
.comment-form button:disabled { color: var(--line-strong); cursor: default; }

.burst { position: absolute; left: 50%; top: 50%; z-index: 5; width: 30cqw; height: 30cqw; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; opacity: 0; }
.burst path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.burst .under { stroke: #fff; stroke-width: 11; }
.burst .over { stroke: var(--pencil); stroke-width: 6; }
.burst.go { animation: burst 1s ease forwards; }
.burst.go path { animation: draw .45s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); } }

/* Battles (shown locked) */
.battle { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.pick { position: relative; display: block; }
.pick-label { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); font: 800 14px/1 var(--display); }
.pick-check { position: absolute; inset: 22%; width: 56%; height: 56%; overflow: visible; pointer-events: none; }
.pick-check path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pick-check .under { stroke: #fff; stroke-width: 16; }
.pick-check path:not(.under) { stroke: var(--pencil); stroke-width: 9; }
.pick[aria-pressed="true"] .pick-check path { stroke-dashoffset: 0; }
.battle-note { padding: 12px 14px 14px; font-size: 14px; color: var(--soft); }

/* Sample report */
.report { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.report-head h2 { font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.report-markup { display: grid; grid-template-columns: 132px 1fr; gap: 16px; }
.thumb { position: relative; }
.media-thumb { width: 132px; border-radius: 4px; }
.markup { position: absolute; left: 0; top: 0; width: 132px; height: 165px; overflow: visible; pointer-events: none; fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.notes { position: relative; min-height: 165px; }
.note { position: absolute; left: 0; right: 0; font: italic 600 14px/1.25 var(--text); color: var(--pencil); }
.note svg { display: block; width: 30px; height: 15px; margin-bottom: 4px; fill: none; stroke: var(--pencil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-1 { top: 10px; }
.note-2 { bottom: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.metrics div { display: flex; flex-direction: column-reverse; }
.metrics dd { font: 700 26px/1.1 var(--display); letter-spacing: -0.01em; }
.metrics dt { margin-top: 2px; font-size: 13px; color: var(--soft); }
.said h3 { margin: 0 0 8px; font: 700 14px/1.2 var(--text); }
.said ol, .summary { list-style: none; counter-reset: n; }
.said li, .summary li { counter-increment: n; display: grid; grid-template-columns: 20px 1fr; font-size: 14px; line-height: 1.4; }
.said li + li, .summary li + li { margin-top: 6px; }
.said li::before, .summary li::before { content: counter(n); font: 700 14px/1.4 var(--display); color: var(--pencil); }
.report-foot { margin-top: 14px; font-size: 13px; color: var(--soft); }
.inline-slot .report { margin: 8px 16px 20px; }

.empty, .feed-end { padding: 28px 16px 8px; }
.feed-end p { font-size: 15px; color: var(--soft); max-width: 40ch; }
.feed-end p b { color: var(--ink); }
.feed-end .btn { margin-top: 16px; }

.site-foot { font-size: 13px; color: var(--soft); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot p { margin-top: 10px; }
.inline-slot .site-foot, .page > .site-foot { padding: 24px 16px 8px; border-top: 1px solid var(--line); margin-top: 40px; }
.page > .site-foot { padding-left: 0; padding-right: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 8px; font: 500 14px/1.3 var(--text); max-width: calc(100vw - 32px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--marker); font-family: var(--display); margin-right: 6px; }
[data-credits].bump { display: inline-block; animation: bump .4s ease; }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--pencil); } }

/* Pages */
.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 32px; }
.page-mid { max-width: 760px; }
.page-narrow { max-width: 460px; }
.page-center { min-height: calc(100vh - 160px); display: flex; align-items: center; }
.page-title { font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; }
.lead { margin-top: 12px; font-size: 17px; line-height: 1.55; max-width: 58ch; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font: 600 14px/1 var(--text); color: var(--soft); text-decoration: none; }
.back:hover { color: var(--ink); }
.back .ic { width: 18px; height: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.page-head > div:first-child, .page-head-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-title { font: 700 22px/1.2 var(--display); letter-spacing: -0.015em; margin: 36px 0 16px; }
.block { margin-top: 48px; }
.block .section-title { margin-top: 0; }
.label { font: 600 14px/1.2 var(--text); color: var(--soft); margin-bottom: 8px; }
.hero h1 { font: 800 34px/1.1 var(--display); letter-spacing: -0.02em; max-width: 20ch; }
.hero-small h1 { font-size: 32px; }
.split-block { display: grid; gap: 24px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: block; text-decoration: none; }
.media-tile { border-radius: 6px; }
.tile:hover .media-tile { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--soft); }
.tile-meta b { color: var(--ink); }

/* Ad page */
.ad-layout { display: grid; gap: 0; }
.ad-stage .media { border-radius: 0; }
.ad-panel { margin: 0; }
.score { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 14px 14px; border-bottom: 1px solid var(--line); }
.score-main { display: flex; align-items: center; gap: 12px; }
.score-num { font: 800 44px/1 var(--display); letter-spacing: -0.02em; }
.score-label { display: flex; flex-direction: column; font: 700 15px/1.25 var(--text); }
.score-label small { font-weight: 400; font-size: 13px; color: var(--soft); }
.score-facts { display: flex; gap: 18px; }
.score-facts div { display: flex; flex-direction: column-reverse; }
.score-facts dd { font: 700 18px/1.1 var(--display); }
.score-facts dt { font-size: 12px; color: var(--soft); }
.visit { display: inline-flex; align-items: center; gap: 8px; margin: 12px 14px 0; font: 600 15px/1.2 var(--text); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.visit .ic { width: 18px; height: 18px; }
.ad-extras { display: grid; gap: 16px; margin-top: 24px; }
.versions { display: flex; align-items: center; gap: 12px; }
.versions figure { width: 104px; }
.media-mini { border-radius: 4px; }
.versions figcaption { margin-top: 6px; font-size: 13px; display: flex; justify-content: space-between; }
.versions-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--soft); }
.versions-arrow svg { width: 54px; height: 18px; fill: none; stroke: var(--pencil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 8px; background: var(--paper); }
.share-card .media-mini { width: 92px; flex: none; }
.share-score { font: 800 40px/1 var(--display); }
.share-by { margin-top: 4px; font-size: 13px; color: var(--soft); }

/* Profile */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start; }
.profile-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name h1 { font: 800 28px/1.1 var(--display); letter-spacing: -0.02em; }
.handle { margin-top: 4px; color: var(--soft); }
.bio { margin-top: 8px; }
.profile .visit { margin: 8px 0 0; }
.profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 24px 0; }
.stat-row > div { display: flex; flex-direction: column-reverse; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.stat-row dd { font: 700 28px/1.1 var(--display); letter-spacing: -0.01em; }
.stat-row dt { margin-top: 4px; font-size: 13px; color: var(--soft); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: var(--paper); }

/* How it works */
.stepper { list-style: none; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-content: start; padding-bottom: 22px; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-num { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 17px/1 var(--display); }
.step h3 { font: 700 18px/1.3 var(--display); padding-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step p { margin-top: 4px; color: var(--soft); max-width: 38ch; }
.is-locked-step .step-num { background: var(--hover); color: var(--soft); }
.is-locked-step h3 { color: var(--soft); }
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ledger-row b { font-family: var(--display); }
.ledger-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: -1px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font: 600 17px/1.35 var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 62ch; }
.cta-band { margin-top: 48px; padding: 28px 22px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band h2 { font: 800 24px/1.2 var(--display); letter-spacing: -0.015em; }

/* Pricing */
.plans { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plans-row { display: grid; grid-template-columns: 1fr; padding: 12px 16px; border-top: 1px solid var(--line); gap: 6px; }
.plans-row:first-child { border-top: 0; }
.plans-head { gap: 16px; padding: 18px 16px; }
.plans-head .plans-feature { display: none; }
.plan h2 { font: 800 22px/1.2 var(--display); display: flex; align-items: center; gap: 8px; }
.plan p { margin: 6px 0 12px; font-size: 14px; color: var(--soft); max-width: 30ch; }
.plans-feature { font-weight: 600; }
.plans-row [role="cell"] { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cell-plan { font-size: 13px; color: var(--soft); min-width: 46px; }
.plans-row > [role="cell"]:nth-child(2)::before { content: "Free"; font-size: 13px; color: var(--soft); min-width: 46px; }
.is-locked-col { color: var(--soft); }
.is-locked-col h2 { color: var(--soft); }
.cell-yes .ic { width: 20px; height: 20px; stroke: var(--stamp); stroke-width: 2.4; }
.is-locked-col .cell-yes .ic { stroke: #B9B3A7; }
.cell-no { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.founding { display: flex; gap: 16px; align-items: center; }
.founding-num { font: 800 40px/1 var(--display); color: var(--pencil); }
.page .locked { margin-top: 24px; }

/* Sign in */
.auth { width: 100%; }
.auth-buttons { display: grid; gap: 10px; margin-top: 24px; }
.auth-buttons .btn { justify-content: flex-start; gap: 12px; }
.auth-buttons .is-locked-btn .ic { margin-left: auto; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font-size: 13px; color: var(--soft); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-mail .btn { margin-top: 14px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--soft); }

/* Changelog */
.log { list-style: none; margin-top: 32px; }
.log-entry { display: grid; grid-template-columns: 1fr; gap: 12px; }
.log-mark span { display: inline-block; font: 700 14px/1 var(--display); padding: 7px 10px; border-radius: 6px; background: var(--stamp-soft); color: var(--stamp); }
.log-body h2 { font: 700 22px/1.2 var(--display); }
.log-body > p { margin-top: 6px; color: var(--ink-2); }
.log-items { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.log-item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.log-item:first-child { border-top: 0; }
.log-item .ic { width: 20px; height: 20px; color: var(--stamp); stroke-width: 2.4; margin-top: 1px; }
.log-item b { margin-right: 6px; }
.locked-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.locked-tile { display: flex; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--soft); font-size: 14px; line-height: 1.4; }
.locked-tile .ic { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.2; }
.locked-tile b { display: block; color: var(--ink-2); font-size: 15px; }

/* Imprint */
.prose h2 { margin: 28px 0 8px; font: 700 18px/1.3 var(--display); }
.prose p { margin-top: 8px; color: var(--ink-2); max-width: 64ch; }
.prose .page-title + p { margin-top: 12px; }

/* Forms */
.field { display: block; margin-top: 16px; font: 600 14px/1.2 var(--text); }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); font: 400 16px/1.4 var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.field .opt { font-weight: 400; color: var(--soft); }
.field-label { display: flex; align-items: center; gap: 8px; }
.field-prefix { display: flex; align-items: stretch; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--card); }
.field-prefix > span { display: flex; align-items: center; padding: 0 0 0 12px; font-weight: 400; color: var(--soft); white-space: nowrap; }
.field-prefix input { margin: 0; border: 0; padding-left: 2px; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; cursor: pointer; flex-wrap: wrap; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { position: relative; width: 40px; height: 24px; flex: none; border-radius: 12px; background: var(--line-strong); transition: background-color .2s ease; }
.toggle-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.toggle input:checked + .toggle-ui { background: var(--stamp); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle.is-locked-field { cursor: not-allowed; }
.toggle.is-locked-field .toggle-ui { background: var(--hover); }

/* Upload */
.upload-layout { display: grid; gap: 28px; margin-top: 20px; }
.upload-preview .post { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 380px; margin: 0; }
.media-drop { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #EFEBE3 0 10px, #F5F2EC 10px 20px); }
.media-drop p { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.media-drop .ic { width: 32px; height: 32px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 130px; padding: 20px 16px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 8px; cursor: pointer; background: var(--card); }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop-empty { display: flex; flex-direction: column; gap: 4px; }
.drop-empty span, .drop-picked { font-size: 14px; color: var(--soft); }
.upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.upload-left { font-size: 14px; color: var(--soft); }
.upload-done, .upload-locked { margin-top: 22px; padding: 16px; border-radius: 8px; background: var(--stamp-soft); }
.upload-locked { background: var(--hover); }

/* Your ads */
.stat-row-live dd { color: var(--ink); }
.ad-rows { display: grid; gap: 10px; }
.ad-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px 14px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.ad-row:hover { border-color: var(--line-strong); box-shadow: 0 2px 10px rgba(29, 28, 26, .06); }
.media-row { width: 64px; border-radius: 4px; grid-row: span 2; }
.ad-row-name { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ad-row-name b { font-size: 15px; }
.ad-row-kind { font-size: 13px; color: var(--soft); margin-top: -3px; }
.report-sub { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.status { font: 600 12px/1 var(--text); padding: 4px 7px; border-radius: 4px; }
.status.is-live { background: var(--stamp-soft); color: var(--stamp); }
.status.is-review { background: #FFF4CC; color: #7A5A00; }
.ad-row > .ad-row-num, .ad-row > .ad-row-wait { grid-column: 2; }
.ad-row-num { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; color: var(--soft); }
.ad-row-num b { font: 700 16px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ad-row-wait { font-size: 14px; color: var(--soft); }
.locked-pair { display: grid; gap: 16px; margin-top: 24px; }
.streak { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.streak-num { font: 800 40px/1 var(--display); }
.streak-days { display: flex; gap: 6px; margin-left: auto; }
.streak-days span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; }
.boost-bar { height: 8px; border-radius: 4px; background: var(--hover); margin: 10px 0 6px; overflow: hidden; }
.boost-bar span { display: block; height: 100%; border-radius: 4px; background: var(--ink); }

/* Report */
.report-top { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.media-report { width: 96px; border-radius: 6px; }
.report-title p { margin-top: 8px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.report-actions .btn { height: 38px; padding: 0 12px; font-size: 14px; }
.hero-figure { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.hero-num { font: 700 56px/1 var(--text); letter-spacing: -0.02em; }
.hero-figure p:last-child { color: var(--soft); }
.report-grid { display: grid; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.panel h2 { font: 700 18px/1.2 var(--display); margin-bottom: 14px; }
.panel .comments { padding: 0; font-size: 15px; }
.panel .comments p + p { margin-top: 8px; }
.report-grid .locked { margin-top: 0; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.bar-label { color: var(--ink-2); }
.bar-track { display: flex; align-items: center; gap: 8px; }
.bar { display: block; height: 20px; border-radius: 0 4px 4px 0; background: var(--ink-2); }
.bar-value { font: 600 14px/1 var(--text); color: var(--ink); font-variant-numeric: tabular-nums; }
.split-bar { display: flex; gap: 2px; height: 28px; }
.split-bar span { display: flex; align-items: center; padding: 0 8px; border-radius: 4px; font: 600 13px/1 var(--text); white-space: nowrap; overflow: visible; }
.split-a { background: var(--ink-2); color: #fff; }
.split-b { background: var(--line); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.key-a { background: var(--ink-2); }
.key-b { background: var(--line); }
.clicks { display: flex; align-items: baseline; gap: 10px; }
.clicks-num { font: 700 40px/1 var(--text); }

/* Settings */
.settings { display: grid; gap: 16px; margin-top: 20px; }
.settings .panel .field:first-of-type { margin-top: 0; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.setting-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.setting-line + .setting-line { margin-top: 10px; }
.setting-line .ic { width: 20px; height: 20px; }
.is-locked-line { color: var(--soft); }
.panel-danger h2 { color: var(--pencil); }
.panel-danger p { color: var(--ink-2); }

/* Dialog */
.sheet { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(29, 28, 26, .25); }
.sheet::backdrop { background: rgba(29, 28, 26, .45); }
.sheet-form { padding: 18px 20px 20px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font: 700 20px/1.2 var(--display); }
.sheet-lead { margin-top: 6px; font-size: 14px; color: var(--soft); }
.choices { margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.choice:first-of-type { border-top: 0; }
.choice:hover { background: var(--paper); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
/* Review decisions: each reason with the rule the maker reads */
#decide-dialog { width: min(560px, calc(100vw - 32px)); }
.choices-rules .choice { align-items: flex-start; padding: 10px 14px; }
.choices-rules .choice input { margin-top: 2px; flex: none; }
.choices-rules .choice b { display: block; font-weight: 600; }
.choices-rules .choice-line { font-size: 13px; }
.choices-rules[hidden] { display: none; }

/* Locked pages */
.locked-stage { position: relative; margin-top: 24px; min-height: 420px; }
.locked-stage-preview { filter: grayscale(1); opacity: .35; pointer-events: none; user-select: none; }
.locked-card { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); width: min(420px, calc(100% - 8px)); padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 50px rgba(29, 28, 26, .14); text-align: center; }
.locked-card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--hover); }
.locked-card-icon .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.locked-card h2 { margin-top: 12px; font: 700 20px/1.25 var(--display); }
.locked-card p { margin-top: 8px; color: var(--soft); }
.locked-card .intro-actions { justify-content: center; }
.fake-input { padding: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); margin-bottom: 18px; }
.fake-area { min-height: 76px; }
.fake-drop { display: flex; align-items: center; gap: 8px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 6px; margin-bottom: 18px; color: var(--soft); }
.fake-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.fake-seg span { padding: 9px 14px; font-weight: 600; font-size: 14px; }
.fake-seg span + span { border-left: 1px solid var(--line-strong); }
.fake-seg .on { background: var(--ink); color: #fff; }
.studio { display: grid; gap: 24px; }
.studio-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.top-list { list-style: none; display: grid; gap: 8px; }
.top-row { display: grid; grid-template-columns: 28px 56px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.top-row .media-row { width: 56px; grid-row: auto; }
.top-rank { font: 800 20px/1 var(--display); }
.top-name { display: flex; flex-direction: column; }
.top-name span, .top-score span { font-size: 13px; color: var(--soft); }
.top-score { display: flex; flex-direction: column; align-items: flex-end; }
.top-score b { font: 800 22px/1 var(--display); }
.battle-big { max-width: 560px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hack-head { margin-bottom: 16px; }
.hack .grid { grid-template-columns: repeat(3, 1fr); }

/* ==========  Example ads  ========== */
.ad { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.ad-empty { background: #DDD8CE; }

.ad-kettle { padding: 7cqw; background: radial-gradient(120% 80% at 50% 80%, #9A6438 0%, #4A2F1E 46%, #1F1510 100%); color: #F4E7D3; }
.ad-kettle.is-moss { background: radial-gradient(120% 80% at 50% 80%, #6E8C5E 0%, #2E4A2F 46%, #142017 100%); }
.ad-kettle.is-linen { background: radial-gradient(120% 80% at 50% 80%, #FFFFFF 0%, #EDE4D6 50%, #D8CAB4 100%); color: #2B2620; }
.ad-kettle.is-linen .k-label { background: #2B2620; }
.ad-kettle.is-linen .k-btn { background: #2B2620; color: #F4E7D3; }
.ad-kettle.is-linen .k-jar { box-shadow: 0 4cqw 7cqw rgba(60, 40, 20, .2); }
.ad-kettle.is-moss .k-btn { background: #F4E7D3; color: #1F2A1C; }
.k-brand { font: 700 2.6cqw/1 var(--display); letter-spacing: .32em; opacity: .78; }
.k-head { margin-top: 4cqw; max-width: 72cqw; font: italic 400 7.6cqw/1.1 Georgia, "Times New Roman", serif; }
.k-candle { position: absolute; left: 50%; bottom: 19cqw; width: 34cqw; height: 46cqw; margin-left: -17cqw; }
.k-glow { position: absolute; left: 50%; bottom: 14cqw; width: 70cqw; height: 70cqw; margin-left: -35cqw; background: radial-gradient(circle, rgba(255, 190, 90, .34) 0%, rgba(255, 190, 90, 0) 62%); animation: glow 2.6s ease-in-out infinite; }
.k-jar { position: absolute; left: 0; right: 0; bottom: 0; height: 36cqw; overflow: hidden; border-radius: 4cqw 4cqw 6cqw 6cqw; background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.30) 28%, rgba(255,255,255,.06) 62%, rgba(255,255,255,.18)); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 4cqw 7cqw rgba(0, 0, 0, .4); }
.k-wax { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; background: linear-gradient(180deg, #F3E6CF, #DCC6A2); }
.k-label { position: absolute; left: 12%; right: 12%; top: 44%; padding: 2.4cqw 1.6cqw; border-radius: 1cqw; background: #1F1510; color: #F4E7D3; text-align: center; font: 700 2.8cqw/1.25 var(--text); }
.k-label span { display: block; font-weight: 400; font-size: 2.2cqw; opacity: .7; }
.k-wick { position: absolute; left: 50%; bottom: 28cqw; width: .9cqw; height: 3.6cqw; margin-left: -.45cqw; background: #2A1C14; border-radius: 1px; }
.k-flame { position: absolute; left: 50%; bottom: 30.5cqw; width: 5.2cqw; height: 9.5cqw; margin-left: -2.6cqw; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(60% 70% at 50% 76%, #FFF8E0 0%, #FFD46E 42%, #F08A2C 80%, rgba(240, 138, 44, 0) 100%); transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-1deg); } 30% { transform: scale(.93, 1.07) rotate(1.6deg); } 60% { transform: scale(1.05, .95) rotate(-2deg); } }
@keyframes glow { 50% { opacity: .75; } }
.k-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 3cqw; font: 500 3.2cqw/1.2 var(--text); }
.k-btn { padding: 2.4cqw 4cqw; border-radius: 1cqw; background: #5C3B26; color: #F4E7D3; font-weight: 700; }

.ad-snap { background: linear-gradient(180deg, #E4DED4 0%, #D8D0C3 70%); color: #fff; }
.s-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 27%; background: linear-gradient(180deg, #A3937E, #8A7A66); }
.s-cabinet { position: absolute; left: 24cqw; top: 33cqw; width: 52cqw; height: 34cqw; perspective: 140cqw; perspective-origin: 50% -60%; }
.s-inside { position: absolute; inset: 0; border-radius: .8cqw; background: #6E4A2C; box-shadow: inset 0 0 0 1.2cqw #8A5D37; }
.s-inside i { position: absolute; left: 1.2cqw; right: 1.2cqw; height: 1cqw; background: #8A5D37; }
.s-inside i:nth-child(1) { top: 11cqw; }
.s-inside i:nth-child(2) { top: 21cqw; }
.s-laptop { position: absolute; left: 16cqw; bottom: -4cqw; width: 20cqw; height: 12cqw; z-index: 2; background: #2B2B2E; border-radius: 1cqw 1cqw 0 0; border: .8cqw solid #3D3D42; opacity: 0; animation: laptop 9s ease-in-out infinite; }
.s-panel { position: absolute; inset: 0; z-index: 3; border-radius: .8cqw; background: linear-gradient(180deg, #D7A36B, #C98F55); box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, .25); transform-origin: 50% 100%; animation: fold 9s ease-in-out infinite; }
.s-panel::after { content: ""; position: absolute; left: 50%; top: 3cqw; width: 8cqw; height: 1.2cqw; margin-left: -4cqw; border-radius: 1cqw; background: #8A5D37; }
@keyframes fold { 0%, 30% { transform: rotateX(0deg); } 44%, 92% { transform: rotateX(-84deg); } 100% { transform: rotateX(0deg); } }
@keyframes laptop { 0%, 44% { opacity: 0; } 52%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
.s-plant { position: absolute; right: 9cqw; bottom: 22cqw; width: 12cqw; height: 22cqw; }
.s-plant::after { content: ""; position: absolute; left: 1.5cqw; right: 1.5cqw; bottom: 0; height: 8cqw; background: #C9B9A2; border-radius: .8cqw .8cqw 2cqw 2cqw; }
.s-plant i { position: absolute; bottom: 6cqw; left: 50%; width: 4cqw; height: 14cqw; margin-left: -2cqw; background: #4F7A4E; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; transform-origin: 50% 100%; }
.s-plant i:nth-child(1) { transform: rotate(-24deg); }
.s-plant i:nth-child(3) { transform: rotate(22deg); background: #5E8C5B; }
.v-progress { position: absolute; left: 4cqw; right: 4cqw; top: 4cqw; height: .8cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .45); overflow: hidden; }
.v-progress i { display: block; height: 100%; width: 0; background: #fff; animation: progress 9s linear infinite; }
@keyframes progress { to { width: 100%; } }
.v-captions span { position: absolute; left: 8cqw; right: 8cqw; top: 13cqw; text-align: center; opacity: 0; animation: caption 9s infinite; }
.v-captions span:nth-child(2) { animation-delay: 3s; }
.v-captions span:nth-child(3) { animation-delay: 6s; }
.v-captions em { font: normal 800 5.6cqw/1.5 var(--text); background: #fff; color: #161513; padding: .6cqw 2cqw; border-radius: 1cqw; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@keyframes caption { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
.v-handle { position: absolute; left: 0; right: 0; bottom: 0; padding: 14cqw 18cqw 5cqw 5cqw; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5)); font: 500 3.4cqw/1.3 var(--text); }
.v-handle b { margin-right: 1.5cqw; }
.v-sound { position: absolute; right: 4cqw; bottom: 4.5cqw; z-index: 6; width: 9cqw; height: 9cqw; min-width: 36px; min-height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(0, 0, 0, .55); color: #fff; }
.v-sound .ic { width: 55%; height: 55%; stroke-width: 2; }
.media-tile .v-sound, .media-mini .v-sound, .media-row .v-sound, .media-thumb .v-sound, .media-report .v-sound { display: none; }

.ad-pebble { padding: 7cqw 7cqw 0; background: #E8E3F7; color: #2A2350; }
.p-badge { align-self: flex-start; padding: 1.4cqw 2.6cqw; border-radius: 1.2cqw; background: #fff; font: 700 2.8cqw/1 var(--text); }
.p-head { margin-top: 4.5cqw; font: 800 8cqw/1.05 var(--text); letter-spacing: -0.02em; max-width: 70cqw; }
.p-sub { margin-top: 3cqw; font: 500 3.6cqw/1.4 var(--text); max-width: 66cqw; opacity: .85; }
.p-phone { position: absolute; left: 50%; bottom: -14cqw; width: 58cqw; height: 82cqw; margin-left: -29cqw; padding: 7cqw 4cqw 4cqw; border-radius: 8cqw; background: #FCFBFF; border: 2.2cqw solid #221E2E; box-shadow: 0 3cqw 8cqw rgba(42, 35, 80, .25); }
.p-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3cqw; }
.p-bar b { font: 800 5cqw/1 var(--text); }
.p-bar span { font: 500 2.6cqw/1 var(--text); opacity: .6; }
.p-note { display: grid; grid-template-columns: 2.4cqw 1fr auto; align-items: center; gap: 2cqw; padding: 2.4cqw 0; border-bottom: 1px solid #ECE9F5; font: 500 2.9cqw/1.25 var(--text); }
.p-note i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--c); }
.p-note em { font: normal 700 2.3cqw/1 var(--text); color: var(--c); padding: 1cqw 1.4cqw; border-radius: 1cqw; background: color-mix(in srgb, var(--c) 14%, #fff); opacity: 0; animation: tag 7s ease infinite; }
.p-note:nth-of-type(3) em { animation-delay: .5s; }
.p-note:nth-of-type(4) em { animation-delay: 1s; }
.p-note:nth-of-type(5) em { animation-delay: 1.5s; }
@keyframes tag { 0%, 8% { opacity: 0; transform: translateX(2cqw); } 16%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

.ad-dune { padding: 7cqw; background: #EF6A2B; color: #FFF3E6; }
.d-brand { font: 700 2.8cqw/1 var(--display); letter-spacing: .28em; }
.d-big { margin-top: 3cqw; font: 900 27cqw/.86 var(--display); font-stretch: 62%; letter-spacing: -0.01em; }
.d-sub { margin-top: 3cqw; font: 600 4.4cqw/1.25 var(--text); max-width: 60cqw; }
.d-socks { position: absolute; right: -3cqw; bottom: 3cqw; width: 56cqw; height: auto; }
.d-btn { position: absolute; left: 7cqw; bottom: 7cqw; padding: 2.8cqw 4.4cqw; border-radius: 1cqw; background: #1D1C1A; color: #FFF3E6; font: 700 3.4cqw/1 var(--text); }

.ad-fern-a, .ad-fern-b { padding: 17cqw 8cqw 8cqw; }
.ad-fern-a { padding-top: 8cqw; background: #F1E6D2; color: #23402F; }
.ad-fern-b { background: #23402F; color: #F1E6D2; }
.f-head { display: block; font: italic 400 10cqw/1.08 Georgia, "Times New Roman", serif; }
.ad-fern-b .f-head { font: 800 12cqw/1.02 var(--text); letter-spacing: -0.02em; }
.f-sub { display: block; margin-top: 4cqw; font: 500 5cqw/1.35 var(--text); opacity: .85; }
.f-brand { display: block; margin-top: auto; font: 700 4.4cqw/1 var(--display); letter-spacing: .3em; }
.ad-fern-a .f-brand { margin-top: 0; }
.f-beans { display: flex; gap: 3cqw; align-self: flex-end; }
.f-beans i { width: 9cqw; height: 12cqw; border-radius: 50%; background: #6B4226; position: relative; transform: rotate(-20deg); }
.f-beans i::after { content: ""; position: absolute; left: 50%; top: 12%; bottom: 12%; width: 1cqw; margin-left: -.5cqw; border-radius: 1cqw; background: #F1E6D2; transform: rotate(8deg); }
.f-beans i:nth-child(2) { transform: rotate(14deg); background: #7A4D2D; }
.f-beans i:nth-child(3) { transform: rotate(-4deg); }
.ad-fern-a .f-head { margin-top: auto; margin-bottom: 6cqw; }

/* ==========  Breakpoints  ========== */
@media (max-width: 419px) {
  .reactions { gap: 2px 14px; }
  .reactions-label { display: none; }
  .bar-row { grid-template-columns: 92px 1fr; }
}

@media (min-width: 520px) {
  .post { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
  .post .menu-wrap { position: static; }
  .post-head { position: relative; }
  .post .menu { right: 8px; top: 50px; }
  .tabs { padding: 0; }
  .intro-inline { padding-left: 0; padding-right: 0; }
  .inline-slot .report { margin-left: 0; margin-right: 0; }
  .inline-slot .site-foot, .feed-end { padding-left: 0; padding-right: 0; }
  .feed-col { padding: 0 16px; max-width: calc(var(--feed) + 32px); }
  .intro h1 { font-size: 34px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step { padding-bottom: 0; }
  .step::before { display: none; }
  .locked-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-row { grid-template-columns: 64px minmax(120px, 1.4fr) repeat(5, minmax(60px, 1fr)); }
  .ad-row > .ad-row-num, .ad-row > .ad-row-wait { grid-column: auto; }
  .ad-row-num { flex-direction: column; gap: 3px; align-items: flex-start; }
  .ad-row-wait { grid-column: 3 / -1 !important; }
  .media-row { grid-row: auto; }
  .locked-pair { grid-template-columns: 1fr 1fr; }
  .studio-results { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 760px) {
  .topbar, .tabbar { display: none; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; display: flex; flex-direction: column; width: 76px; padding: 26px 12px 20px; background: var(--paper); border-right: 1px solid var(--line); }
  .rail .logo { padding: 0 0 0 10px; margin-bottom: 32px; }
  .rail .logo-lead { display: none; }
  .rail-nav { display: flex; flex-direction: column; gap: 2px; }
  .rail-nav a, .rail-me { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 13px; border-radius: 8px; font: 500 16px/1 var(--text); text-decoration: none; color: var(--ink); }
  .rail-nav a:hover, .rail-me:hover { background: var(--hover); }
  .rail-nav a.is-active, .rail-me.is-active { font-weight: 700; }
  .rail-nav a.is-active .ic, .rail-me.is-active .ic { stroke-width: 2.4; }
  .rail-nav .is-locked-nav { color: #A49E92; }
  .rail-nav .is-locked-nav.is-active { color: var(--ink-2); }
  .nav-lock { position: absolute; left: 30px; top: 26px; width: 14px; height: 14px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; }
  .nav-lock .ic { width: 11px; height: 11px; stroke-width: 2.6; }
  .rail-nav > a > span:not(.nav-lock), .rail-me span, .rail-upload span, .credits-word, .credits-hint { display: none; }
  .rail-upload { margin-top: 18px; padding: 0; width: 50px; }
  .rail-upload-icon { width: 22px; height: 22px; }
  .rail-foot { margin-top: auto; }
  .credits { padding: 14px 0 12px; border-top: 1px solid var(--line); text-align: center; }
  .credits-num { font: 700 22px/1 var(--display); }
  .main { margin-left: 76px; padding: 28px 24px 64px; }
  .main-page { padding: 8px 24px 40px; }
  .feed-col { padding: 0; max-width: var(--feed); }
  .toast { bottom: 28px; }
  .intro-inline { padding-top: 8px; }
  .page { padding: 24px 0 24px; }
  .page-title { font-size: 36px; }
  .hero h1 { font-size: 44px; }
  .hero-small h1 { font-size: 40px; }
  .split-block { grid-template-columns: 1fr 380px; align-items: start; gap: 40px; }
  .ad-layout { grid-template-columns: minmax(0, 1fr) 380px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
  .ad-panel { border: 0; border-left: 1px solid var(--line); border-radius: 0; display: flex; flex-direction: column; }
  .ad-panel .comment-form { margin-top: auto; }
  .ad-panel .post-head { position: relative; }
  .ad-extras { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: auto 1fr auto; }
  .profile-actions { grid-column: auto; }
  .plans-row { grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; gap: 16px; padding: 14px 20px; }
  .plans-head .plans-feature { display: block; }
  .plans-row [role="cell"] .cell-plan, .plans-row > [role="cell"]:nth-child(2)::before { display: none; }
  .plans-head { align-items: start; }
  .log-entry { grid-template-columns: 90px 1fr; }
  .upload-layout { grid-template-columns: 340px 1fr; gap: 40px; }
  .report-top { grid-template-columns: 120px 1fr auto; }
  .media-report { width: 120px; }
  .hero-figure { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 200px; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .panel-wide { grid-column: 1 / -1; }
  .studio { grid-template-columns: 320px 1fr; }
  .stepper { grid-template-columns: repeat(4, 1fr); }
  .bar-row { grid-template-columns: 110px 1fr; }
}

@media (min-width: 1180px) {
  .rail { width: var(--rail); padding: 28px 14px 22px; }
  .rail .logo { padding-left: 13px; }
  .rail .logo-lead { display: inline; }
  .rail-nav > a > span:not(.nav-lock), .rail-me span, .rail-upload span { display: inline; }
  .nav-lock { position: static; margin-left: auto; width: auto; height: auto; background: none; }
  .nav-lock .ic { width: 14px; height: 14px; stroke-width: 2.2; }
  .rail-upload { width: auto; margin: 18px 4px 0; padding: 0 18px; }
  .rail-upload-icon { display: none; }
  .credits { text-align: left; padding: 16px 13px 14px; }
  .credits-word { display: inline; font-weight: 600; font-size: 15px; }
  .credits-hint { display: block; margin-top: 4px; font-size: 13px; color: var(--soft); }
  .credits-num { font-size: 26px; }
  .main { margin-left: var(--rail); padding: 32px 32px 64px; }
  .main-page { padding: 8px 40px 40px; }
  .main-feed { display: flex; justify-content: center; gap: 56px; }
  .main-feed .feed-col { margin: 0; flex: none; width: var(--feed); }
  .main-feed .intro-inline, .main-feed .inline-slot { display: none; }
  .main-feed .side { display: block; flex: none; width: var(--side); align-self: flex-start; }
  .side .intro h1 { font-size: 30px; }
  .side .intro p { font-size: 16px; }
  .side .report { margin-top: 28px; }
  .side .site-foot { margin-top: 22px; }
  .rail-legal { display: flex; }
  .ad-layout { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loop-word path, .logo-ad path { stroke-dashoffset: 0; }
  .v-captions span:first-child, .p-note em { opacity: 1; }
}

/* ==========  MVP additions  ========== */
a.credits { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
a.credits:hover { background: var(--hover); }
.topbar-credits { text-decoration: none; }
.comments a { text-decoration: none; }
.comments a:hover b { text-decoration: underline; }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; background: #FFF4CC; color: #5C4300; font-size: 15px; }
.notice.is-good { background: var(--stamp-soft); color: #1F5A40; }
.ad-title { padding: 12px 14px 0; font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
.score-num.is-empty, .hero-num.is-empty { color: var(--line-strong); }
.empty-line { font-size: 15px; color: var(--soft); }
.empty-line.pad { padding: 4px 14px 12px; }
.empty-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.own-note { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 40px; color: var(--soft); font-size: 15px; }
.own-note .ic { width: 22px; height: 22px; }
.own-line { padding: 2px 14px 10px; font-size: 14px; color: var(--soft); }
.own-line a { color: var(--ink); font-weight: 600; }
.status.is-rejected { background: #FBEAE6; color: var(--pencil-dark); }
.progress { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s ease; }
.form-error { margin-top: 12px; color: var(--pencil-dark); font-size: 14px; font-weight: 600; }
.dev-code { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: var(--marker); font-size: 14px; }
.auth-sent { margin-top: 20px; }
.auth-code .btn { margin-top: 14px; }
.auth-mail { margin-top: 8px; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--soft); font-size: 14px; text-decoration: underline; cursor: pointer; }
.review-list { display: grid; gap: 12px; }
.review-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.media-review { width: 120px; border-radius: 4px; }
.review-text p + p { margin-top: 4px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 6px; border-radius: 13px; background: var(--pencil); color: #fff; font: 700 14px/1 var(--text); vertical-align: middle; }
.media video { background: #000; }

/* Home page: the website around the app, for indie hackers and founders */
.site { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.home-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 16px; background: rgba(245, 242, 236, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.home-nav { display: none; }
.home-head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.home-head .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.home-signin { padding: 10px 8px; font: 600 15px/1 var(--text); text-decoration: none; }
.home-signin:hover { text-decoration: underline; }
.home-hero { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
.home-hero h1 { font: 800 clamp(34px, 4.2vw, 54px)/1.08 var(--display); letter-spacing: -0.025em; max-width: 15ch; }
.home-lead { margin-top: 20px; font-size: 18px; line-height: 1.55; max-width: 46ch; }
.home-note { margin-top: 14px; font-size: 14px; color: var(--soft); }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.home-phone { justify-self: center; width: min(100%, 360px); padding: 10px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: 0 34px 60px -34px rgba(29, 28, 26, .4); }
.home-phone .post { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.home-phone .reactions { gap: 2px 14px; }
.home-section { padding: 56px 0; border-top: 1px solid var(--line); }
.home-section .wrap > h2, .home-split > div > h2 { font: 800 clamp(24px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 28ch; }
.home-text { margin-top: 14px; font-size: 17px; line-height: 1.55; max-width: 60ch; }
.home-text a { color: var(--ink); }
.home-split { display: grid; gap: 32px; }
.home-steps { margin-top: 30px; }
.home-faq { margin-top: 18px; max-width: 760px; }
.home-cta { margin: 0 0 64px; }

/* Comparison: a table on wide screens, one card per question on phones */
.compare { margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.compare-row { display: grid; gap: 6px; padding: 16px 18px; border-top: 1px solid var(--line); }
.compare-top { display: none; }
.compare-label { font: 700 16px/1.3 var(--display); }
.compare-row [role="cell"] { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.compare-row [role="cell"]::before { content: attr(data-col); font-size: 13px; color: var(--soft); }
.compare-row [role="cell"].is-us { color: var(--ink); font-weight: 600; }
.compare-row [role="cell"].is-us::before { color: var(--pencil); font-weight: 700; }
.compare-row:first-of-type + .compare-row { border-top: 0; }

.home-foot { margin-top: 0; padding: 44px 0 56px; border-top: 1px solid var(--line); }
.home-foot-grid { display: grid; gap: 28px; }
.home-foot-brand p { margin-top: 12px; max-width: 30ch; color: var(--soft); font-size: 15px; }
.home-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.home-foot h3 { margin-bottom: 4px; font: 700 14px/1.2 var(--text); }
.home-foot nav a { color: var(--soft); font-size: 15px; text-decoration: none; }
.home-foot nav a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 760px) {
  .home-head { height: 76px; padding: 0 27px; }
  .home-nav { display: flex; gap: 26px; margin-left: 40px; }
  .home-nav a { font: 500 15px/1 var(--text); text-decoration: none; }
  .home-nav a:hover { text-decoration: underline; }
  .home-head-actions { gap: 10px; }
  .home-head .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .home-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .compare-top { display: grid; }
  .compare-row { grid-template-columns: 1fr 1fr 1fr 1.25fr; gap: 20px; padding: 16px 22px; align-items: start; }
  .compare-top { padding-top: 14px; padding-bottom: 14px; border-top: 0; font: 700 15px/1.3 var(--text); color: var(--soft); }
  .compare-top .is-us { color: var(--pencil); }
  .compare-row [role="cell"] { display: block; }
  .compare-row [role="cell"]::before { display: none; }
  .compare-row .is-us { background: transparent; }
  .compare-row:first-of-type + .compare-row { border-top: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 80px; }
  .home-split { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 56px; }
  .home-section { padding: 72px 0; }
}

/* Shop: credit packs, plans, boosts */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pack { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.pack-price { font: 800 28px/1.1 var(--display); letter-spacing: -0.01em; }
.pack-credits { font-size: 15px; }
.pack-credits b { font-family: var(--display); }
.pack-bonus { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--stamp); }
.pack-bonus.is-empty { color: var(--soft); font-weight: 400; }
.pack .btn { margin-top: auto; }
.shop-note { margin-top: 12px; font-size: 14px; }
.plan-cards { display: grid; gap: 14px; }
.plan-card { display: flex; flex-direction: column; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.plan-card.is-current { border-color: var(--ink); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card-head h3 { font: 800 22px/1.2 var(--display); }
.plan-card-price { margin: 6px 0 14px; color: var(--soft); }
.plan-card-price b { font: 800 30px/1 var(--display); color: var(--ink); }
.plan-card-rows { display: grid; gap: 9px; margin-bottom: 18px; }
.plan-card-rows p { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.plan-card-rows .ic { width: 18px; height: 18px; stroke: var(--stamp); stroke-width: 2.4; }
.plan-card-rows .is-locked-line .ic { stroke: var(--soft); stroke-width: 2; }
.plan-card .btn { margin-top: auto; }
.plan-price { font: 800 26px/1 var(--display); color: var(--ink); }
.cell-later { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.cell-later .ic { width: 14px; height: 14px; }
.credit-split { display: grid; gap: 8px; }
.credit-split .intro-actions { margin-top: 14px; }

.boost-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.boost-head h2 { margin: 0; }
.boost-head a { color: var(--ink); }
.boost-grid { display: grid; gap: 14px; }
.boost-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.boost-box h3 { font: 700 16px/1.3 var(--display); }
.boost-box > p { font-size: 15px; color: var(--soft); }
.boost-box .btn { margin-top: 6px; }
.boost-state { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--stamp) !important; }
.boost-state .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.boost-progress { width: 100%; }
.boost-progress p { font-size: 14px; }
.boost-pick { display: grid; width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.boost-pick label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 15px; cursor: pointer; }
.boost-pick label + label { border-top: 1px solid var(--line); }
.boost-pick label.is-off { color: #B9B3A7; cursor: not-allowed; }
.boost-pick input { accent-color: var(--ink); }

@media (min-width: 760px) {
  .packs { grid-template-columns: repeat(3, 1fr); }
  .plan-cards { grid-template-columns: 1fr 1fr; }
  .credit-split { grid-template-columns: 1fr 1fr; gap: 32px; }
  .boost-grid { grid-template-columns: 1fr 1fr; }
}
.is-locked-plans { opacity: .55; filter: grayscale(1); pointer-events: none; }
.plans-note { margin: -6px 0 14px; }

/* Welcome page after the first sign in */
.welcome-form { margin-top: 8px; }
.welcome-step { margin-top: 30px; }
.welcome-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.welcome-head .step-num { width: 32px; height: 32px; font-size: 15px; }
.welcome-head h2 { font: 700 19px/1.25 var(--display); }
.welcome .choices { margin-top: 0; background: var(--card); }
.welcome .choice { align-items: flex-start; }
.welcome .choice input { margin-top: 2px; }
.welcome .choice b { display: block; }
.choice-line { display: block; margin-top: 2px; font-size: 14px; color: var(--soft); }
.welcome-note { margin-top: 12px; font-size: 14px; }
.welcome-foot { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.welcome-foot .link-btn { margin: 0; }

/* Sign out in the rail */
.rail-signout { width: 100%; border: 0; background: none; font: inherit; color: var(--soft) !important; cursor: pointer; text-align: left; }
.rail-signout:hover { color: var(--ink) !important; }
