
/* Layout: a two-pane studio. Left is the agent's form, right is the printable letter-size sheet. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --fg: #1d2433;
  --muted: #5b6478;
  --line: #dde2eb;
  --accent: #e4572e;      /* crayon red-orange */
  --accent-ink: #ffffff;
  --ok: #1f8a4c;
  --warn: #b26b00;
  --bad: #c23030;
  --chip-ok: #e3f4ea;
  --chip-warn: #fbf0db;
  --chip-bad: #fbe4e4;
  --chip-neutral: #eceff5;
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c; --surface: #1b2029; --fg: #e9ecf3; --muted: #9aa3b5; --line: #2c3342;
    --accent: #ff7148; --accent-ink: #1a0d07; --ok: #5fd08f; --warn: #f0b552; --bad: #ff7d7d;
    --chip-ok: #173326; --chip-warn: #3a2c12; --chip-bad: #3d1c1c; --chip-neutral: #262c38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151c; --surface: #1b2029; --fg: #e9ecf3; --muted: #9aa3b5; --line: #2c3342;
  --accent: #ff7148; --accent-ink: #1a0d07; --ok: #5fd08f; --warn: #f0b552; --bad: #ff7d7d;
  --chip-ok: #173326; --chip-warn: #3a2c12; --chip-bad: #3d1c1c; --chip-neutral: #262c38;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
.wrap { max-width: 1180px; margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { color: var(--accent); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.lede { color: var(--muted); max-width: 62ch; margin: 4px 0 20px; }

.studio { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .studio { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 20px; }
.step h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; display: flex; align-items: center; gap: 10px; text-wrap: balance; }
.step h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--surface); font-size: 14px; display: inline-grid; place-items: center; flex: none; font-family: var(--font-body); }

.drop { display: flex; gap: 14px; align-items: center; border: 2px dashed var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--chip-neutral); flex: none; }
.thumb.round { border-radius: 50%; }
.drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-text strong { font-weight: 700; }
.drop-text small { color: var(--muted); font-size: 13px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); min-width: 0; }
label.f input { font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
label.f input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 11px; background: var(--chip-neutral); color: var(--muted); align-self: flex-start; max-width: 100%; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip.ok { background: var(--chip-ok); color: var(--ok); }
.chip.warn { background: var(--chip-warn); color: var(--warn); }
.chip.bad { background: var(--chip-bad); color: var(--bad); }
.chip.busy::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .chip.busy::before { animation: none; } }

.slider { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.slider input { width: 100%; accent-color: var(--accent); }

.btn { font: inherit; font-weight: 800; font-size: 16px; border: 0; border-radius: 10px; padding: 13px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.price b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.note.bad { color: var(--bad); }

.sheet-col { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
@media (max-width: 860px) { .sheet-col { position: static; } }
.paper { width: 100%; max-width: 620px; aspect-ratio: 17 / 22; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(20,25,40,.12), 0 12px 32px rgba(20,25,40,.14); overflow: hidden; }
.paper canvas { width: 100%; height: 100%; display: block; }
.sheet-meta { font-size: 13px; color: var(--muted); text-align: center; }

.prod { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.prod h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 10px; }
.prod ul { margin: 0; padding-left: 20px; color: var(--muted); max-width: 75ch; display: grid; gap: 6px; }
.prod b { color: var(--fg); }

/* ---- shared site additions ---- */
a.brand { color: inherit; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.btn.secondary { background: var(--fg); color: var(--surface); }
label.f input::placeholder { color: var(--muted); opacity: .7; }

/* ---- landing page ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 28px 40px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 0 0 22px; }
.cta { display: inline-block; text-decoration: none; width: auto; padding-inline: 26px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-row small { color: var(--muted); }
.mock { position: relative; background: #fff; border-radius: 6px; aspect-ratio: 17 / 22; max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 1px 2px rgba(20,25,40,.12), 0 18px 40px rgba(20,25,40,.18); padding: 7% 6%; display: flex; flex-direction: column; gap: 4%; transform: rotate(1.5deg); }
.mock .t { font-family: "Luckiest Guy", var(--font-display); font-size: clamp(18px, 2.6vw, 28px); line-height: 1.05; text-align: center; color: #fff; -webkit-text-stroke: 1.4px #161616; }
.mock .frame { border: 2px solid #161616; border-radius: 10px; flex: 1; display: grid; place-items: center; overflow: hidden; }
.mock .frame img { width: 94%; }
.mock .card { align-self: flex-end; width: 64%; border: 2px solid #161616; border-radius: 9px; display: flex; gap: 8px; align-items: center; padding: 6px 8px; color: #161616; font-size: clamp(8px, 1vw, 11px); line-height: 1.25; }
.mock .card img { width: 32%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid #161616; }
.mock .card b { font-size: 1.3em; display: block; }
.band { padding-block: 34px; border-top: 1px solid var(--line); }
.band h2 { font-family: var(--font-display); font-size: 30px; margin: 0 0 18px; text-wrap: balance; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 760px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
.steps3 li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.steps3 li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 8px; }
.steps3 h3 { margin: 0 0 4px; font-size: 18px; }
.steps3 p { margin: 0; color: var(--muted); }
.steps3 { padding: 0; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.plan.best { border: 2px solid var(--accent); }
.plan .name { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.plan.best .name { color: var(--accent); }
.plan .amt { font-family: var(--font-display); font-size: 38px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.plans-note { margin-top: 14px; }
.plans-note a { color: inherit; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.ba { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: #fff; display: block; }
.ba img + img { object-fit: contain; }
.ba figcaption { font-size: 13px; font-weight: 700; color: var(--muted); }
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.use h3 { margin: 0 0 4px; font-size: 18px; }
.use p { margin: 0; color: var(--muted); }
.use i { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--fg); }
label.f select { font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
label.f select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.plan .amt small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan p { color: var(--muted); margin: 8px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; max-width: 75ch; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
footer.site { padding-block: 26px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: inherit; }
.crayons { margin-top: 14px; }
.crayons a, .use a { color: var(--accent); font-weight: 700; }
.crayons small { display: block; margin-top: 4px; font-size: 11px; }
.chip[hidden] { display: none; }
