/* HowToMarketMyApp: Apple-inspired design system */
:root {
  --bg: #ffffff; --bg-alt: #f5f5f7; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --line: #d2d2d7; --line-soft: #e8e8ed; --blue: #0071e3; --blue-hover: #0077ed; --link: #0066cc;
  --green: #34c759; --orange: #ff9f0a; --red: #ff3b30; --purple: #af52de;
  --card: #ffffff; --nav: rgba(255,255,255,.72); --shadow: 0 2px 12px rgba(0,0,0,.06);
  --grad: linear-gradient(90deg, #0071e3 0%, #7a5cff 50%, #e3428c 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-alt: #101012; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --line: #38383d; --line-soft: #2a2a2e; --link: #2997ff; --card: #1c1c1e; --nav: rgba(22,22,23,.75); --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 700px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; height: 52px; gap: 28px; }
.brand { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.025em; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: 13px; }
.nav-links a { color: var(--ink); opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 400; border-radius: 980px; padding: 11px 22px; background: var(--blue); color: #fff; letter-spacing: -0.02em; transition: background .15s, transform .1s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { font-size: 14px; padding: 7px 15px; }
.btn.tiny { font-size: 12px; padding: 4px 11px; }
.btn.secondary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.secondary:hover { background: var(--blue); color: #fff; }
.btn.ghost { background: var(--bg-alt); color: var(--ink); }
.btn.ghost:hover { background: var(--line-soft); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.danger { background: transparent; color: var(--red); }
.link-arrow::after { content: " ›"; }
.btn-row { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* sections */
section.band { padding: 100px 0; }
section.band.alt { background: var(--bg-alt); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; letter-spacing: -0.02em; }
.eyebrow.blue { color: var(--blue); }
.hero { padding: 84px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 80px); letter-spacing: -0.045em; line-height: 1.04; }
.hero .sub { font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-2); max-width: 680px; margin: 22px auto 30px; line-height: 1.35; letter-spacing: -0.02em; }
.h2 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.lead { font-size: 21px; color: var(--ink-2); line-height: 1.4; margin-top: 14px; letter-spacing: -0.02em; }

/* hero product mock */
.device { max-width: 760px; margin: 50px auto 0; background: var(--card); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.12), 0 0 0 1px var(--line-soft); padding: 26px; text-align: left; }
.device-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.device-top .t { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.device-top .d { color: var(--ink-2); font-size: 14px; }

/* tiles + grids */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
.tile { background: var(--card); border-radius: var(--r-lg); padding: 34px 30px; }
.band:not(.alt) .tile { background: var(--bg-alt); }
.tile .num { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.tile h3 { font-size: 26px; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 17px; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; color: #fff; }

/* lead magnet */
.magnet { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .magnet { grid-template-columns: 1fr; } .magnet .cover { max-width: 240px; margin: 0 auto; } }
.cover { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.18); transform: rotate(-3deg); background: #f5f5f7; }

/* forms */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); letter-spacing: -0.01em; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; letter-spacing: -0.02em; }
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); text-align: left; margin: 10px 0 18px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; }
.form-card { background: var(--card); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.band.alt .form-card { box-shadow: none; }
.error { color: var(--red); font-size: 14px; margin: 8px 0; min-height: 0; }
.success { background: rgba(52,199,89,.12); border-radius: var(--r-md); padding: 22px; text-align: left; }
.success h3 { font-size: 21px; margin-bottom: 6px; }

/* review cards */
.rcard { display: block; background: var(--card); border-radius: var(--r-lg); padding: 26px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.band:not(.alt) .rcard { background: var(--bg-alt); }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); text-decoration: none; }
.rcard .top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; background: var(--grad); flex: none; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; }
.rcard h3 { font-size: 19px; letter-spacing: -0.02em; }
.rcard .meta { font-size: 13px; color: var(--ink-2); }
.rcard p { color: var(--ink-2); font-size: 15px; }
.score-badge { margin-left: auto; font-weight: 700; font-size: 15px; border-radius: 980px; padding: 4px 10px; background: var(--bg-alt); }
.score-good { color: #1a8f3c; } .score-mid { color: #b25e00; } .score-low { color: #d70015; }

/* article */
.article h1 { font-size: clamp(36px, 5.2vw, 52px); letter-spacing: -0.04em; margin: 14px 0 16px; }
.article .dek { font-size: 21px; color: var(--ink-2); line-height: 1.4; }
.article .body { font-size: 19px; line-height: 1.58; letter-spacing: -0.015em; }
.article .body h2, .article .body h3 { font-size: 28px; margin: 44px 0 12px; letter-spacing: -0.03em; line-height: 1.15; }
.article .body p, .article .body ul, .article .body ol { margin: 0 0 18px; }
.article .body li { margin-bottom: 6px; }
.article .body blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--blue); color: var(--ink-2); }
.scorebox { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; margin: 34px 0; }
@media (max-width: 600px) { .scorebox { grid-template-columns: 1fr; justify-items: center; } }
.bar { margin-bottom: 10px; font-size: 14px; }
.bar .lbl { display: flex; justify-content: space-between; margin-bottom: 4px; }
.bar .track { height: 6px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; background: var(--blue); }
.wins { background: linear-gradient(135deg, rgba(0,113,227,.08), rgba(175,82,222,.08)); border-radius: var(--r-lg); padding: 30px; margin: 40px 0; }
.wins h2 { font-size: 24px !important; margin: 0 0 14px !important; }
.wins ol { margin: 0; padding-left: 22px; }
.cta-box { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 40px; text-align: center; margin: 50px 0 20px; }
.cta-box h3 { font-size: 28px; margin-bottom: 10px; }
.cta-box p { color: #a1a1a6; margin-bottom: 22px; }

/* filters / segmented */
.segmented { display: inline-flex; background: var(--bg-alt); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented a, .segmented button { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.segmented .on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.segmented a:hover { text-decoration: none; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 22px 0; }
details.faq summary { cursor: pointer; font-size: 21px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; letter-spacing: -0.02em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 26px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; color: var(--ink-2); }

/* footer */
footer.site { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; padding: 34px 0; line-height: 1.6; letter-spacing: -0.01em; }
footer.site .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
footer.site a { color: var(--ink-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ APP ============ */
.app-nav .wrap { max-width: 1100px; }
.app-tabs { display: flex; gap: 4px; margin-left: 18px; }
.app-tabs a { font-size: 14px; color: var(--ink); padding: 6px 12px; border-radius: 8px; opacity: .8; }
.app-tabs a:hover { background: var(--bg-alt); text-decoration: none; opacity: 1; }
.app-tabs a.on { background: var(--bg-alt); font-weight: 600; opacity: 1; }
@media (max-width: 900px) { .app-tabs { display: none; } .mobile-tabs { display: flex !important; } }
.mobile-tabs { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line-soft); justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.mobile-tabs a { font-size: 10px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mobile-tabs a span { font-size: 20px; }
.mobile-tabs a.on { color: var(--blue); }
.app-main { max-width: 1100px; margin: 0 auto; padding: 36px 22px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; letter-spacing: -0.04em; }
.page-head .sub { color: var(--ink-2); font-size: 17px; margin-top: 6px; }
.app-switch select { width: auto; font-size: 14px; padding: 6px 30px 6px 12px; border-radius: 980px; background: var(--bg-alt); border: 0; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line-soft); }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 4px; }
.card .card-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.app-body { background: var(--bg-alt); min-height: 100vh; }
@media (prefers-color-scheme: dark) { .app-body { background: #000; } }

/* grouped list (iOS) */
.group { background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft); }
.group-title { font-size: 13px; text-transform: uppercase; color: var(--ink-2); letter-spacing: .02em; margin: 26px 0 8px 16px; font-weight: 500; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-size: 16px; letter-spacing: -0.02em; }
.row .meta { font-size: 13px; color: var(--ink-2); }

/* tasks */
.task { border-radius: var(--r-md); background: var(--bg-alt); padding: 16px 18px; margin-bottom: 10px; transition: opacity .2s; }
.task.done { opacity: .62; }
.task.done .task-title { text-decoration: line-through; }
.task-head { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; cursor: pointer; background: var(--card); transition: all .15s; color: transparent; font-size: 14px; font-weight: 700; margin-top: 1px; }
.tick:hover { border-color: var(--blue); }
.tick.on { background: var(--green); border-color: var(--green); color: #fff; }
.task-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 980px; background: var(--card); color: var(--ink-2); font-weight: 500; }
.chip.blue { background: rgba(0,113,227,.1); color: var(--blue); }
.chip.green { background: rgba(52,199,89,.14); color: #1a8f3c; }
.chip.orange { background: rgba(255,159,10,.15); color: #b25e00; }
.chip.red { background: rgba(255,59,48,.12); color: #d70015; }
.chip.purple { background: rgba(175,82,222,.12); color: #8e3fbf; }
.task-body { margin: 14px 0 2px 40px; }
.task-body p { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.output { white-space: pre-wrap; font-family: var(--font); font-size: 14.5px; line-height: 1.55; background: var(--card); border-radius: var(--r-sm); padding: 16px 18px; margin: 10px 0; border: 1px solid var(--line-soft); max-height: 520px; overflow: auto; letter-spacing: -0.01em; }
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* rings */
.ring-wrap { display: flex; gap: 22px; align-items: center; }
.ring-label .big { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ring-label .small { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* concept card */
.concept { background: linear-gradient(135deg, rgba(0,113,227,.06), rgba(175,82,222,.06)); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.concept .who { font-size: 13px; color: var(--ink-2); }
.concept .what { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.4; white-space: pre-wrap; letter-spacing: -0.015em; animation: pop .25s ease; }
.bubble.mentor { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.mentor.q { font-weight: 500; }
.bubble.mentor.push { background: rgba(255,159,10,.14); }
.bubble.you { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.typing { align-self: flex-start; background: var(--bg-alt); border-radius: 20px; padding: 13px 16px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.composer textarea { min-height: 52px; max-height: 220px; border-radius: 22px; padding: 13px 18px; }
.stages { display: flex; gap: 6px; margin-bottom: 18px; }
.stages div { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); }
.stages div .seg { height: 4px; border-radius: 4px; background: var(--line-soft); margin-bottom: 6px; }
.stages div.done .seg { background: var(--blue); }
.stages div.cur .seg { background: linear-gradient(90deg, var(--blue) 50%, var(--line-soft) 50%); }
.stages div.done, .stages div.cur { color: var(--ink); }

/* plan */
.week-title { font-size: 21px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -0.03em; }
.day { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.day.today { background: rgba(0,113,227,.05); border-radius: 12px; padding: 14px 10px; }
.day-label .n { font-weight: 700; font-size: 15px; } .day-label .d { font-size: 12px; color: var(--ink-2); }
.ptask { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 15px; cursor: grab; }
.ptask:hover { background: var(--bg-alt); }
.ptask.done .t { text-decoration: line-through; color: var(--ink-2); }
.ptask.skipped .t { color: var(--ink-3); font-style: italic; }
.ptask .t { flex: 1; }
.ptask .acts { display: none; gap: 6px; }
.ptask:hover .acts { display: flex; }
.day.drop { outline: 2px dashed var(--blue); border-radius: 12px; }
.mini { font-size: 12px; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 2px 6px; border-radius: 6px; font-family: inherit; }
.mini:hover { background: var(--line-soft); color: var(--ink); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--bg-alt); border-radius: var(--r-md); padding: 16px; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.stat .l { font-size: 13px; color: var(--ink-2); }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); fill: var(--ink-2); font-size: 11px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

/* studio */
.studio { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.side-list a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.side-list a:hover { background: var(--bg-alt); text-decoration: none; }
.side-list a.on { background: var(--blue); color: #fff; }
.aso-field { margin-bottom: 14px; }
.aso-field .cnt { float: right; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.aso-field .cnt.over { color: var(--red); font-weight: 700; }
.aso-field input.over, .aso-field textarea.over { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,59,48,.12); }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.tbl tr.click { cursor: pointer; } table.tbl tr.click:hover td { background: var(--bg-alt); }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { background: var(--card); border-radius: 24px; width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal h2 { font-size: 26px; margin-bottom: 14px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 980px; font-size: 15px; z-index: 200; animation: pop .25s; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.empty h3 { color: var(--ink); font-size: 24px; margin-bottom: 8px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.btn.ghost .spinner, .btn.secondary .spinner { border-color: var(--line); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.steps-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.steps-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.steps-dots i.on { background: var(--blue); width: 22px; border-radius: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { border: 1px solid var(--line); background: var(--card); border-radius: 980px; padding: 8px 15px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.pill-opt.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.editable { border-radius: 8px; padding: 2px 4px; margin: -2px -4px; }
.editable:hover { background: var(--bg-alt); }
.editable:focus { outline: 2px solid var(--blue); background: var(--card); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
.warn { background: rgba(255,159,10,.12); border-radius: var(--r-md); padding: 18px 20px; margin: 16px 0; }
.warn h3 { font-size: 18px; margin-bottom: 8px; }
.warn ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

.app-body .btn.ghost { background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); }
.app-body .btn.ghost:hover { background: var(--bg); }
@media (max-width: 600px) {
  .app-nav .brand { font-size: 0; gap: 0; }
  .app-nav .brand-mark { width: 28px; height: 28px; font-size: 14px; }
  .app-switch select { max-width: 190px; }
  .page-head h1 { font-size: 34px; }
  .nav-links { gap: 14px; }
  .nav:not(.app-nav) .nav-links a:not(.btn):not([href="/login"]) { display: none; }
}
