@import url('/fonts.css');

:root {
  --bg: #f8f9f6;
  --surface: #fff;
  --tint: #eef1e8;
  --tint-2: #e9ede3;
  --tint-3: #e1e8d8;
  --line: #e4e7df;
  --line-2: #d8decf;
  --ink: #282d28;
  --muted: #5d6656;
  --faint: #8e9586;
  --green: #344e3c;
  --green-hover: #243e2d;
  --sage: #b8cda7;
  --sage-line: #9db08e;
  --spin: #6d8760;
  --lift: 0 1px 2px rgba(40, 45, 40, .06), 0 18px 48px rgba(40, 45, 40, .12);
  --float: 0 1px 2px rgba(40, 45, 40, .06), 0 16px 48px rgba(40, 45, 40, .10);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
:is(button, a, input, textarea, select):focus-visible { outline: 3px solid var(--sage-line); outline-offset: 3px; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
p { line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Header */
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1320px; margin: 0 auto; padding: 20px 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; }
nav { display: flex; gap: 4px; padding: 4px; background: var(--tint-2); border-radius: 999px; }
nav a { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
nav a:hover { color: var(--ink); }
nav a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(40, 45, 40, .10); }
main { max-width: 1240px; margin: 0 auto; padding: 0 40px 72px; }

/* Buttons */
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .2s; }
.primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.primary.with-dot { padding: 0 10px 0 24px; gap: 14px; }
.primary .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--ink); }
.primary .dot svg { width: 16px; height: 16px; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.secondary:hover { background: var(--tint-3); }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.text-button:hover { color: var(--green); }
.text-button svg { width: 16px; height: 16px; }
.spinner { width: 28px; height: 28px; display: inline-block; border: 3px solid var(--line-2); border-top-color: var(--spin); border-radius: 50%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Start */
.start { min-height: calc(100vh - 230px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 48px 0 80px; }
.start h1 { margin: 0; text-align: center; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
#request-form { width: 100%; max-width: 680px; display: flex; align-items: flex-end; gap: 12px; padding: 10px 10px 10px 28px; border-radius: 30px; background: var(--surface); box-shadow: var(--float); }
#request { flex: 1; min-width: 0; min-height: 52px; max-height: 220px; padding: 13px 0; border: 0; outline: 0; resize: none; background: none; font-size: 18px; line-height: 1.45; color: var(--ink); }
#request::placeholder { color: var(--faint); }
.send { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--green); color: #fff; transition: background .2s; }
.send:hover { background: var(--green-hover); }
.send svg { width: 20px; height: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-3); color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 500; }

/* Guided flow */
.conversation { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 32px; }
.brief { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 24px; border-radius: 22px; background: var(--tint); }
.brief section { display: flex; flex-direction: column; gap: 8px; }
.brief-idea { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.brief ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brief li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.brief li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brief li small { font-size: 12px; color: var(--muted); }
.brief li strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.brief .done { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff; }
.brief .done svg { width: 12px; height: 12px; }
.brief li.now { background: none; border: 1.5px dashed var(--line-2); }
.brief .now-dot { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; }
.brief .now-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-line); }
.brief-note { margin: 0; font-size: 13px; color: var(--muted); }
.stage { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.stage-top { display: flex; flex-direction: column; gap: 10px; }
.stage-top > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stage-top .mono { font-size: 12px; color: var(--muted); }
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress .on { background: var(--green); }
.progress .current { background: var(--sage); }
.question-heading { display: flex; flex-direction: column; gap: 10px; }
.question-heading h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.04em; outline: 0; }
.question-heading p { margin: 0; font-size: 17px; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice { display: flex; flex-direction: column; gap: 12px; min-height: 176px; padding: 22px 24px; border: 0; border-radius: 20px; background: var(--tint); text-align: left; color: var(--ink); transition: background .2s, box-shadow .2s, transform .2s; }
.choice:hover, .choice:focus-visible { background: var(--surface); box-shadow: var(--lift); transform: translateY(-2px); }
.choice-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.choice-key { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); font-family: var(--mono); font-size: 12px; transition: background .2s, color .2s; }
.choice:hover .choice-key, .choice:focus-visible .choice-key { background: var(--green); color: #fff; }
.choice-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); transition: background .2s; }
.choice:hover .choice-arrow, .choice:focus-visible .choice-arrow { background: var(--sage); }
.choice-arrow svg { width: 16px; height: 16px; }
.choice strong { margin-top: auto; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.choice p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.choices.sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices.sizes .choice { min-height: 0; padding: 18px; gap: 10px; }
.choices.sizes .choice strong { margin-top: 0; font-size: 19px; }
.choices.sizes .choice p { font-size: 14px; }
.shape-box { display: grid; place-items: center; height: 108px; border-radius: 12px; background: var(--surface); }
.shape-preview { display: block; border: 2px solid var(--faint); border-radius: 6px; }
.choice.recommended .shape-preview { border-color: var(--green); background: var(--green); }
.tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--sage); font-size: 12px; font-weight: 600; }
.tag.tag-hidden { visibility: hidden; }
.dims { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.choice-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 20px; border: 1.5px dashed var(--sage-line); border-radius: 18px; background: var(--tint-3); color: var(--green); font-size: 16px; font-weight: 600; transition: background .2s; }
.help-button:hover:not(:disabled) { background: #d6e0cb; }
.help-button:disabled { cursor: default; }
.custom-answer { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--float); }
.custom-answer > label { font-size: 14px; font-weight: 600; }
.custom-answer textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--tint); resize: vertical; font-size: 16px; outline: 0; }
.custom-answer > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.size-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 20px; border-radius: 18px; background: var(--tint); }
.size-form > strong { flex: 1 1 100%; font-size: 14px; }
.size-form > small { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.size-form .times { padding-bottom: 11px; color: var(--muted); }
.dimension-fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.dimension-fields label, .size-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.dimension-fields input, .size-form input { width: 132px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); font-family: var(--mono); font-size: 15px; }
.stage-note { margin: 0; font-size: 13px; color: var(--muted); }
.thinking { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
.thinking h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.thinking p { margin: 0; color: var(--muted); }
.summary { border-radius: 22px; overflow: hidden; background: var(--tint); }
.summary > p { margin: 0; padding: 28px 28px 24px; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.summary dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.summary dl > div { padding: 16px 28px; border-right: 1px solid var(--line); }
.summary dl > div:last-child { border-right: 0; }
.summary dd { margin: 4px 0 0; font-weight: 600; }
.generate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.generate-row .primary { min-height: 60px; font-size: 17px; }
.save-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.save-note svg { width: 16px; height: 16px; }
[role="alert"] { color: #9b3d33; }

/* Generating */
.generating { max-width: 1040px; margin: 0 auto; padding-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.generating-frame { position: relative; max-height: 62vh; width: 100%; border-radius: 24px; overflow: hidden; background: var(--tint-2); display: grid; place-items: center; }
.generating-frame::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.generating-frame > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.generating-frame .spinner { width: 44px; height: 44px; }
.generating-text { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.generating-text > div { max-width: 620px; display: flex; flex-direction: column; gap: 8px; }
.generating-text h1 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.generating-text p { margin: 0; font-size: 17px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.chips .eyebrow { margin-right: 6px; }
.chips > span:not(.eyebrow) { padding: 6px 12px; border-radius: 999px; background: var(--tint-2); font-size: 13px; }
.chips > span.idea { font-weight: 500; }

/* Result */
.result { padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.result-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.result-heading > div { display: flex; flex-direction: column; gap: 12px; }
.saved-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--sage); font-size: 13px; font-weight: 600; }
.saved-chip svg { width: 16px; height: 16px; }
.result h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.result-image { display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--tint-2); }
.result-image img { display: block; width: 100%; max-height: 68vh; object-fit: contain; }
.result-actions { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.result-actions > div:first-child { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.result-actions p { margin: 0; font-size: 18px; line-height: 1.5; }
.result-actions .dims { font-size: 13px; }
.result-actions > div:last-child { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Library */
.library { padding-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.library-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.library-heading h1 { margin: 0 0 8px; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; }
.library-heading p { margin: 0; font-size: 17px; color: var(--muted); }
.library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.search { flex: 0 1 440px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--tint-2); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search:focus-within { outline: 3px solid var(--sage-line); outline-offset: 2px; }
.library-tools .mono { font-size: 13px; color: var(--muted); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.asset-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.asset-image { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--tint-2); }
.asset-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.asset-image > span { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--green); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.asset-image > span svg { width: 14px; height: 14px; }
.asset-card:hover img { transform: scale(1.03); }
.asset-card:hover .asset-image > span, .asset-card:focus-visible .asset-image > span { opacity: 1; }
.asset-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.asset-caption strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-caption small { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pending-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pending-card .asset-image { display: grid; place-items: center; background: var(--tint); }
.pending-card .asset-image > div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 72px 16px; text-align: center; }
.empty h2 { margin: 0; font-size: 26px; font-weight: 500; }
.empty p { margin: 0 0 8px; color: var(--muted); }

/* Asset dialog */
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(38, 51, 41, .62); backdrop-filter: blur(8px); }
.asset-modal { width: 100%; max-width: 1180px; max-height: 92vh; overflow: auto; display: flex; flex-wrap: wrap; border-radius: 28px; background: var(--surface); }
.modal-media { flex: 999 1 520px; min-width: 0; display: grid; place-items: center; padding: 24px; background: var(--tint); }
.modal-media img { display: block; max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; }
.asset-modal.exporting .modal-media { background-color: var(--tint-2); background-image: linear-gradient(45deg, #dfe4d8 25%, transparent 25%, transparent 75%, #dfe4d8 75%), linear-gradient(45deg, #dfe4d8 25%, transparent 25%, transparent 75%, #dfe4d8 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.asset-modal.exporting .modal-media img { box-shadow: 0 12px 32px rgba(40, 45, 40, .18); }
.modal-side { flex: 1 1 360px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.modal-head p { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--tint-2); }
.close:hover { background: var(--tint-3); }
.modal-side > .primary { margin-top: auto; }
.download-panel { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.format-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.format-choices button { min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: var(--tint-2); font-size: 14px; font-weight: 500; }
.format-choices button:hover { background: var(--tint-3); }
.format-choices button.active { background: var(--green); color: #fff; font-weight: 600; }
.export-label { display: flex; flex-direction: column; gap: 8px; }
.export-label select { min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--tint-2); font-size: 15px; letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.download-panel .dimension-fields input { background: var(--tint-2); }
.export-note { margin: 0; font-size: 13px; color: var(--muted); }
.vector-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f4efdf; color: #6b5b3a; font-size: 13px; line-height: 1.6; }
.export-error { margin: 0; font-size: 13px; color: #9b3d33; }
.export-error:empty { display: none; }
.download-panel .primary { margin-top: auto; min-height: 56px; font-size: 16px; }
.download-panel .export-note.center { text-align: center; }

/* Lock & misc */
.lock { max-width: 420px; padding-top: 120px; }
.lock form { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--float); }
.lock h1 { margin: 0; font-size: 40px; }
.lock label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.lock input { min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--tint-2); font-size: 16px; }
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 20; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 14px; background: var(--green); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.loading-screen { display: grid; place-items: center; gap: 12px; padding: 140px 30px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .choices.sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  header { padding: 14px 16px; }
  .logo { font-size: 20px; }
  .logo svg { width: 28px; height: 28px; }
  nav a { padding: 9px 14px; font-size: 13px; }
  main { padding: 0 16px 48px; }
  .start { min-height: calc(100vh - 160px); gap: 28px; padding-bottom: 60px; }
  .start h1 { font-size: 38px; }
  #request-form { padding: 8px 8px 8px 20px; }
  #request { font-size: 16px; min-height: 46px; padding: 11px 0; }
  .send { width: 46px; height: 46px; }
  .steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .conversation { gap: 24px; padding-top: 12px; }
  .brief { order: 2; padding: 18px; }
  .question-heading h1 { font-size: 32px; }
  .choices { grid-template-columns: 1fr; gap: 10px; }
  .choice { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-radius: 16px; }
  .choice-top { width: auto; }
  .choice-arrow { display: none; }
  .choice strong { margin-top: 0; font-size: 18px; flex: 1; }
  .choice p { flex: 1 1 100%; font-size: 14px; }
  .choices.sizes .choice { flex-direction: column; align-items: stretch; }
  .help-button { min-height: 54px; font-size: 14px; border-radius: 16px; padding: 0 12px; }
  .summary > p { font-size: 20px; padding: 22px; }
  .summary dl > div { padding: 14px 22px; border-right: 0; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .asset-caption { flex-direction: column; gap: 2px; }
  .asset-caption strong { max-width: 100%; font-size: 14px; }
  .asset-image > span { display: none; }
  .modal-backdrop { padding: 12px; }
  .modal-media { padding: 12px; }
  .modal-side { padding: 20px; }
  .modal-head h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
.reference-control{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;text-align:left}.reference-control>small{font-size:11px;color:var(--muted)}.reference-images{display:flex;flex-wrap:wrap;gap:10px;flex-basis:100%}.reference-image{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff}.reference-image img{width:54px;height:54px;object-fit:cover;border-radius:6px}.reference-image select{font:inherit;font-size:12px;border:0;background:transparent;max-width:145px}.reference-image button{padding:6px}.reference-image svg{width:14px;height:14px}.start>.reference-control{max-width:680px;margin:14px auto 0}.reference-control input[hidden]{display:none}
.attach{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--green);transition:background .2s}.attach:hover{background:var(--surface)}.attach svg{width:20px;height:20px}#request-form input[hidden]{display:none}@media(max-width:700px){.attach{width:46px;height:46px}#request-form{gap:8px}}
.logo{display:inline-flex;align-items:center}
.logo .brand-refined{display:inline-flex;align-items:baseline;gap:1px;font-family:var(--display);font-size:32px;font-weight:600;letter-spacing:-.055em;line-height:1;color:var(--ink)}
.logo .brand-im{height:.83em;width:1.2572em;flex-shrink:0;transform:translateY(.015em)}
@media(max-width:700px){.logo .brand-refined{font-size:29px}}

.brand-syllable-ma{color:#789864}.brand-syllable-vro{color:#344e3c}
.header-right{display:flex;align-items:center;gap:18px}.account-button{border:1px solid var(--line);border-radius:24px;background:transparent;padding:10px 16px;font-size:13px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button:hover{background:var(--tint)}.auth-page{max-width:480px;margin:0 auto;padding:48px 24px 64px}.auth-page>.logo{display:flex;justify-content:center;margin-bottom:44px}.auth-card h1{font-family:var(--display);font-size:34px;font-weight:500;letter-spacing:-1px;line-height:1.15;margin:0 0 12px}.auth-intro{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:28px}.auth-providers{display:grid;gap:10px}.auth-provider{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--line);border-radius:14px;background:white;height:50px;font-size:14px}.auth-provider svg{width:22px;height:22px}.google-letter{font-weight:650;font-size:20px}.auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0;font-size:11px;color:var(--faint)}.auth-divider::before,.auth-divider::after{content:'';height:1px;background:var(--line);flex:1}.auth-card form{display:grid;gap:16px}.auth-card label{display:grid;gap:7px;font-size:13px}.auth-card input{width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:13px 14px;outline-color:var(--green)}.auth-card .primary{width:100%;justify-content:center}.password-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:-6px 0 0}.auth-error{font-size:13px;line-height:1.6;color:#a44335;min-height:0;margin:0}.auth-error:empty{display:none}.auth-link{display:block;margin:18px auto 0;font-size:12px}.auth-footer{text-align:center;font-size:13px;color:var(--muted);margin:26px 0 0}.auth-footer .text-button{text-decoration:underline;font-size:13px;padding:0}.auth-note{font-size:11px;color:var(--faint);line-height:1.6;text-align:center;margin-top:22px}.account-section{margin:30px 0;padding-top:24px;border-top:1px solid var(--line)}.account-section h2{font-size:17px}.account-section p{color:var(--muted);font-size:13px;line-height:1.7}.account-section .auth-error{color:#a44335;margin-top:14px}.passkey-count{margin:22px 0}.auth-page button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:700px){.header-right{gap:7px}.account-button{padding:8px 10px;max-width:95px;font-size:12px}.auth-page{padding:30px 22px 48px}.auth-card h1{font-size:30px}header:has(.account-button){gap:12px;flex-wrap:wrap}header:has(.account-button) nav a{padding:10px 13px}}
.auth-qr{display:flex;justify-content:center;margin:24px 0}.auth-qr img{width:220px;height:220px;border-radius:12px}.auth-secret{font-size:12px;color:var(--muted);margin:20px 0 28px}.auth-secret summary{cursor:pointer}.auth-secret code{display:block;font-family:var(--mono);font-size:12px;word-break:break-all;padding:16px 0}.recovery-codes{display:grid;gap:12px;padding:24px 20px;background:var(--tint);border-radius:14px;margin:26px 0}.recovery-codes code{font-family:var(--mono);font-size:13px;letter-spacing:.03em;text-align:center}.recovery-done{width:100%;justify-content:center;margin-top:12px}.auth-card #security-form{display:grid;gap:16px}

.trial-check{background:#fff;border-radius:24px;padding:32px;max-width:420px;width:calc(100% - 32px);box-shadow:0 20px 60px #0002}.trial-check h2{margin:0 0 12px}.trial-check p{line-height:1.6;margin-bottom:24px}.trial-check .text-button{margin-top:20px}

/* Plans and billing */
.plan-chip { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1.5px solid var(--sage-line); border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: -.02em; }
.plan-chip:hover { background: var(--tint-2); }
.plan-chip-low { border-color: #a9b43c; color: #66711a; background: #f4f6df; }
.plan-chip-out { border-color: #c96f5a; color: #a44335; }
.choices.formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-card .choice-top { min-height: 36px; }
.tag-plan { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); color: var(--muted); }
.tag-plan svg { width: 13px; height: 13px; }
.choice.locked { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.choice.locked strong, .choice.locked p { color: var(--faint); }
.choice.locked:hover { background: var(--surface); }
.pricing { padding-top: 32px; }
.pricing-heading { display: grid; justify-items: center; gap: 4px; text-align: center; margin-bottom: 40px; }
.pricing-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.pricing-heading p { margin: 6px 0 18px; color: var(--muted); }
.interval-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint-2); }
.interval-toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.interval-toggle button.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(40, 45, 40, .10); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan-card { display: grid; gap: 14px; padding: 28px; border-radius: 24px; background: var(--tint); }
.plan-card.featured { background: var(--surface); box-shadow: var(--lift); outline: 2px solid var(--green); transform: translateY(-8px); }
.plan-card.current:not(.featured) { box-shadow: inset 0 0 0 2px var(--sage-line); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top h2 { margin: 0; font-size: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; color: var(--muted); }
.plan-price .amount { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.plan-billing { margin: 0; font-size: 13px; color: var(--muted); }
.plan-card > button { width: 100%; }
.plan-card ul { display: grid; gap: 12px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card li svg { margin-top: 2px; color: var(--green); }
.plan-card li.off { color: var(--faint); }
.plan-card li.off svg { color: var(--faint); }
.pricing-free { margin: 32px 0 0; text-align: center; font-weight: 600; }
.pricing-free:empty { display: none; }
.pricing-note { max-width: 560px; margin: 12px auto 0; text-align: center; font-size: 13px; color: var(--muted); }
.usage-row { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; }
.usage-row > div { display: flex; justify-content: space-between; gap: 12px; }
.usage-bar { display: block; height: 6px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.account-section .usage-row + .primary { margin-top: 10px; }
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-card.featured { transform: none; order: -1; }
  .choices.formats { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* The remaining-images chip already links to the plans on small screens. */
  header:has(.plan-chip) nav a[href="#pricing"]:not([aria-current]) { display: none; }
  .plan-chip { width: 34px; height: 34px; font-size: 11px; }
  .pricing { padding-top: 8px; }
  .plan-card { padding: 22px; }
  .interval-toggle button { padding: 0 12px; font-size: 13px; }
}

/* Legal pages */
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 760px; margin: 0 auto; padding: 24px 24px 8px; }
.legal-header nav a { padding: 8px 16px; }
.legal { max-width: 760px; padding: 24px 24px 48px; color: var(--ink); }
.legal h1 { margin: 16px 0 4px; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; }
.legal-updated { margin: 0 0 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.legal h3 { margin: 22px 0 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #3a4038; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal.article { margin: 0 auto; }
.article-note { padding: 12px 16px; border-radius: 12px; background: var(--tint); }
.article-small { font-size: 13px !important; color: var(--muted) !important; }
.article-table { overflow-x: auto; margin: 8px 0 4px; }
.article-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.article-table th, .article-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.article-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.article-cta { margin-top: 40px; }
.legal-footer, .site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 24px 24px 40px; font-size: 13px; color: var(--muted); }
.legal-footer a, .site-footer a { color: var(--muted); }
.site-footer .footer-break { flex-basis: 100%; height: 0; }
.site-footer .footer-gap { width: 12px; }
.legal-footer a:hover, .site-footer a:hover { color: var(--ink); }
.auth-legal { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--faint); text-align: center; }
.auth-legal a { text-decoration: underline; }
.pricing-note a { text-decoration: underline; }

/* Marketing pages (/pricing, /ai-svg-generator): static HTML that search engines can read */
.mk-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.mk-header nav a { padding: 9px 16px; }
.mk { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
.mk-hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 0 28px; }
.mk-hero h1 { margin: 0; max-width: 820px; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; }
.mk-hero p { margin: 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.mk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.mk-actions small { flex-basis: 100%; color: var(--faint); font-size: 13px; }
.mk-section { padding: 48px 0 0; }
.mk-section > h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); }
.mk-section > p { margin: 0 0 24px; max-width: 700px; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mk-card { margin: 0; padding: 18px; border-radius: 20px; background: var(--tint); }
.mk-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--surface); }
.mk-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-grid-wide .mk-card img { aspect-ratio: auto; object-fit: cover; }
.mk-grid-tall .mk-card img { aspect-ratio: 3 / 4; object-fit: contain; background: transparent; }
.mk-card figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.mk-card figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.mk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: step; }
.mk-steps li { padding: 22px; border-radius: 20px; background: var(--tint); counter-increment: step; }
.mk-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--mono); font-size: 13px; }
.mk-steps h3, .mk-uses h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.mk-steps p, .mk-uses p { margin: 0; font-size: 15px; color: var(--muted); }
.mk-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-uses > div { padding: 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.mk-faq { max-width: 760px; }
.mk-faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mk-faq summary { font-weight: 600; cursor: pointer; }
.mk-faq details p { margin: 10px 0 0; color: var(--muted); }
.mk-cta { margin-top: 56px; padding: 36px; border-radius: 28px; background: var(--green); color: #fff; text-align: center; }
.mk-cta h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.mk-cta p { margin: 0 0 18px; color: #dfe8da; }
.mk-cta .primary { background: var(--sage); color: var(--ink); }
.mk-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mk-plans .plan-card.featured { transform: none; }
.mk-plans .plan-card .primary, .mk-plans .plan-card .secondary { width: 100%; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mk-table th, .mk-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.mk-table th { color: var(--muted); font-weight: 500; }
.mk-table td:not(:first-child), .mk-table th:not(:first-child) { text-align: center; }
.mk-tw { overflow-x: auto; }
@media (max-width: 900px) {
  .mk-grid, .mk-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-steps, .mk-uses { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mk-grid, .mk-plans { grid-template-columns: 1fr; }
  .mk-header nav a:not([aria-current]):not(.mk-keep) { display: none; }
  .mk-cta { padding: 26px 20px; }
}

/* Console (secret path, server-rendered, read-only) */
.ad { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; }
.ad-head h1 { margin: 0; font-size: 34px; }
.ad section { margin-top: 36px; }
.ad h2 { margin: 0 0 12px; font-size: 20px; }
.ad-muted { color: var(--muted); font-size: 13px; }
.ad-notice { margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: var(--tint); }
.ad-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ad-card { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--tint); }
.ad-card span { font-size: 13px; color: var(--muted); }
.ad-card strong { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; }
.ad-card small { font-size: 12px; color: var(--muted); }
.ad-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 120px; padding: 8px; border-radius: 12px; background: var(--tint); }
.ad-col { height: 100%; display: flex; align-items: flex-end; }
.ad-col span { display: block; width: 100%; min-height: 1px; border-radius: 3px 3px 0 0; background: var(--green); }
.ad-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ad-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ad-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ad-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-table em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--tint-2); color: var(--muted); }
.ad-tw { overflow-x: auto; }
.ad-search { display: flex; gap: 10px; margin-bottom: 12px; }
.ad-search input { flex: 1; max-width: 360px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (max-width: 800px) { .ad-cards { grid-template-columns: 1fr 1fr; } .ad-split { grid-template-columns: 1fr; } }
