/* Hallmark · page: tool (closest named shape: Component Playground; the tool is the page, no pitch) · theme: Vaumu
 * landing system (inherited from site.css) · editor: the Vaumu app's editor (owner's reference, 2026-10-26), colours
 * from the app's Theme.swift · chat: drawn on canvas in the app's measured WhatsApp look (maker/wa-paint.js)
 * layout (owner 2026-10-26, "the guidance is so bad placement"): the first screen is the tool alone, centred and sized
 * to the screen; the steps and answers for search sit below it in one narrow column, the answers closed
 * pre-emit critique: P5 H5 E4 S5 R5 V4 */
:root {
  --ed-canvas: #1C1B1F; --ed-card: #2B2930; --ed-glass: #3A383D; --ed-ink: #E6E1E5; --ed-soft: #CAC4D0;
  --ed-accent: #6750A4; --ed-fab: #4A4458; --ed-on-accent: #FFFFFF; --ed-chat: #0A0A0A;
  --ed-sheet: #FEF7FF; --ed-sheet-card: #F3EDF7; --ed-sheet-ink: #1D1B20; --ed-sheet-label: #49454F; --ed-danger: #B3261E;
  --ed-veil: rgb(0 0 0 / 0.42);
}

.maker { width: min(1180px, 100% - 2 * var(--space-lg)); margin: var(--space-md) auto var(--space-2xl); display: grid; justify-items: center; gap: var(--space-lg); }
.intro { text-align: center; }
.intro h1 { margin: 0 0 var(--space-xs); font: 500 clamp(2rem, 1.6vw + 1.3rem, 2.9rem)/1.05 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0; }
.intro p { margin: 0 auto; max-width: 44ch; font-size: var(--text-line); color: var(--color-muted); text-wrap: balance; }

/* The editor: the app's screen, dark, with the chat on top and the composer under it */
.editor { width: min(420px, 100%); background: var(--ed-canvas); color: var(--ed-ink); border-radius: 24px; overflow: clip; } /* clip: focusing the input must not scroll the panel */
.editor :focus-visible { outline-color: var(--ed-soft); }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 10px 12px; }
.ed-bar b { font: 600 17px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-tools { display: flex; gap: var(--space-sm); flex: none; }
.ed-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; border: 0; border-radius: 20px; cursor: pointer; font: 600 15px var(--font-body); white-space: nowrap; }
.ed-tools svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ed-tools .gear { background: var(--ed-glass); color: var(--ed-ink); }
.ed-tools .save { padding: 0 16px 0 12px; background: var(--ed-accent); color: var(--ed-on-accent); }
.ed-tools button:hover { filter: brightness(1.12); }
.ed-tools button:active { transform: translateY(1px); }
.shot { height: max(300px, 100svh - 420px); overflow-y: auto; background: var(--ed-chat); overscroll-behavior: contain; }
.shot canvas { display: block; width: 100%; height: auto; cursor: pointer; }

.who { display: flex; gap: var(--space-sm); overflow-x: auto; padding: 10px 12px 0; scrollbar-width: none; }
.who button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: var(--ed-card); color: var(--ed-ink); font: 500 14px var(--font-body); cursor: pointer; white-space: nowrap; }
.who button[aria-pressed="true"] { background: var(--ed-accent); }
.who i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--ed-on-accent); font: 600 12px var(--font-body); font-style: normal; }
.who .more { padding: 4px 14px; font-size: 18px; color: var(--ed-soft); }

.type { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; }
.type input { flex: 1; min-width: 0; padding: 9px 14px; border: 0; border-radius: 20px; background: var(--ed-card); color: var(--ed-ink); font: 400 17px var(--font-body); }
.type input::placeholder { color: var(--ed-soft); opacity: 0.8; }
.type .send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ed-fab); color: var(--ed-on-accent); cursor: pointer; }
.type:has(input:not(:placeholder-shown)) .send { background: var(--ed-accent); }
.type .send svg { fill: currentColor; }
.hint { margin: 0; padding: 0 12px 14px; font-size: 12px; color: var(--ed-soft); }

/* What Google reads, under the tool: four one-line steps and five questions that open on a tap */
.how { width: min(62ch, 100%); margin-top: var(--space-xl); }
.how h2 { margin: var(--space-xl) 0 var(--space-sm); font: 500 1.4rem/1.2 var(--font-display); }
.how h2:first-child { margin-top: 0; }
.how ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-xs); }
.how details { border-top: 1px solid var(--color-line); }
.how details:last-of-type { border-bottom: 1px solid var(--color-line); }
.how summary { padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 6px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.how details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.how details p { margin: 0 0 12px; color: var(--color-muted); }
.how .app { margin-top: var(--space-xl); color: var(--color-muted); }

/* The sheets: the app's light lavender settings sheet */
.sheet { width: min(440px, 100% - 32px); max-height: 88svh; padding: 20px; border: 0; border-radius: 24px; background: var(--ed-sheet); color: var(--ed-sheet-ink); }
.sheet::backdrop { background: var(--ed-veil); }
.sheet form { display: grid; gap: 14px; }
.sheet h2 { margin: 0; font: 600 1.15rem var(--font-body); }
.sheet label, .sheet .label, .sheet legend { display: grid; gap: 6px; margin: 0; font: 600 0.72rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-sheet-label); }
.sheet input, .sheet select, .sheet textarea { width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: var(--ed-sheet-card); color: var(--ed-sheet-ink); font: 400 16px var(--font-body); text-transform: none; letter-spacing: 0; }
.sheet input[type="file"] { padding: 9px 12px; font-size: 14px; }
.sheet .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.sheet fieldset { display: flex; gap: var(--space-md); margin: 0; padding: 0; border: 0; }
.sheet .radio { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: var(--ed-sheet-ink); }
.sheet .radio input { width: auto; }
.people { display: grid; gap: 8px; }
.person { display: flex; gap: 8px; align-items: center; }
.person span, .person button { flex: none; font: 500 14px var(--font-body); color: var(--ed-sheet-label); }
.person button, .add-person, .actions button { border: 0; background: none; cursor: pointer; padding: 8px 10px; border-radius: 10px; }
.add-person { justify-self: start; font: 600 14px var(--font-body); color: var(--ed-accent); }
.sheet .lede { margin: 0; font: 400 16px/1.45 var(--font-body); }
.stores { display: grid; gap: 10px; }
.stores .btn { width: 100%; }
.stores .btn[aria-disabled="true"] { pointer-events: auto; } /* dimmed and going nowhere, but a tap still counts */
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.actions button { font: 600 15px var(--font-body); white-space: nowrap; }
.actions .primary { order: 3; padding: 10px 20px; border-radius: 20px; background: var(--ed-accent); color: var(--ed-on-accent); }
.actions .danger { color: var(--ed-danger); } .actions .quiet { color: var(--ed-sheet-label); }
.actions button:hover, .person button:hover, .add-person:hover { background: var(--ed-sheet-card); }
.actions .primary:hover { filter: brightness(1.12); background: var(--ed-accent); }

@media (max-width: 899px) {
  .editor { width: calc(100% + 2 * var(--space-lg)); margin-inline: calc(-1 * var(--space-lg)); border-radius: 0; }
  .shot { height: max(280px, 100svh - 392px); }
}
@media (prefers-reduced-motion: reduce) { .ed-tools button:active { transform: none; } }
