/* Hallmark · genre: playful-minimal · macrostructure: Marquee Hero (prompt-led) · theme: custom (clean white, soft blue cards) · enrichment: Tier B hand-built SVG · nav: N9 · footer: Ft2
 * tone: friendly, plain-spoken · audience: online brands + agencies · use: enter store, join list for free report
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4
 */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
.muted { color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); max-width: var(--page-max); margin: 0 auto; padding: var(--space-lg) var(--page-gutter); }
.wordmark { font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.top-link { font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--color-ink-2); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); transition: background-color var(--dur-micro) var(--ease-out); }
.top-link:hover { background: var(--color-card); }

/* Greeting */
.hello { max-width: var(--page-max); margin: 0 auto; padding: clamp(2rem, 7vh, 4.5rem) var(--page-gutter) var(--space-2xl); }
.greet {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-display); line-height: 1.08; letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-greet-a), var(--color-greet-b) 55%, var(--color-greet-c));
  -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; max-width: 100%;
}
.greet.small { font-size: var(--text-2xl); }
.sub { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-display); line-height: 1.08; letter-spacing: -0.03em; color: var(--color-muted); overflow-wrap: anywhere; min-width: 0; }

/* Example cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-2xl); }
.card {
  display: grid; grid-template-rows: auto 1fr; gap: var(--space-md); text-align: left; cursor: pointer;
  font: inherit; color: var(--color-ink); background: var(--color-card); border: 0; border-radius: var(--radius-card);
  padding: var(--space-lg); transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.card:hover { background: var(--color-card-2); }
.card:active { transform: scale(0.99); }
.card-title { font-size: var(--text-sm); font-weight: 500; line-height: 1.4; min-height: 2.8em; }
.ill { width: 100%; height: auto; align-self: end; border-radius: 10px; display: block; }
.ill .sky { fill: var(--ill-sky); } .ill .sand { fill: var(--ill-sand); } .ill .peach { fill: var(--ill-peach); }
.ill .coral { fill: var(--ill-coral); } .ill .teal { fill: var(--ill-teal); } .ill .navy { fill: var(--ill-navy); }
.ill .yellow { fill: var(--ill-yellow); } .ill .lilac { fill: var(--ill-lilac); } .ill .green { fill: var(--ill-green); }
.ill .white { fill: var(--ill-white); } .ill .rule { fill: var(--color-rule); }
.ill .tick { fill: none; stroke: var(--ill-white); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.shuffle {
  display: grid; place-items: center; width: 40px; height: 40px; margin: calc(-1 * 20px) auto 0; position: relative;
  border: 4px solid var(--color-paper); border-radius: 50%; background: var(--color-card); cursor: pointer; color: var(--color-ink-2);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.shuffle:hover { background: var(--color-card-2); }
.shuffle:active { transform: rotate(90deg); }
.shuffle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Prompt bar */
.bar {
  display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-2xl);
  background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); box-shadow: var(--shadow-bar);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.bar:focus-within { border-color: var(--color-accent); }
.bar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: var(--text-md); color: var(--color-ink); padding: var(--space-sm) 0; }
.bar input::placeholder { color: var(--color-muted); }
.bar[aria-invalid="true"] { border-color: var(--color-error); }
.note { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); text-align: center; }
.note.left { text-align: left; margin-top: 0; }
.error { color: var(--color-error); font-size: var(--text-xs); }
.error.center { text-align: center; margin-top: var(--space-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer; text-decoration: none;
  font: inherit; font-size: var(--text-sm); font-weight: 600; background: var(--color-accent); color: var(--color-on-accent);
  border: 0; border-radius: var(--radius-pill); padding: 0.8rem 1.4rem;
  transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }

/* Details panel */
.panel { max-width: 760px; margin: 0 auto var(--space-2xl); padding: 0 var(--page-gutter); }
.form, .thanks { background: var(--color-card); border-radius: var(--radius-card); padding: clamp(var(--space-lg), 4vw, var(--space-xl)); display: grid; gap: var(--space-lg); }
.form .btn { justify-self: start; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.field { display: grid; gap: var(--space-xs); border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
label, legend { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); padding: 0; }
input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--color-ink); background: var(--color-paper);
  border: 1px solid var(--color-rule); border-radius: 12px; padding: var(--space-sm) var(--space-md);
  transition: border-color var(--dur-micro) var(--ease-out);
}
input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--color-muted); }
input[type="email"]:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--color-accent); }
input[aria-invalid="true"] { border-color: var(--color-error); }
textarea { resize: vertical; }

.more { border-top: 1px solid var(--color-rule); padding-top: var(--space-md); }
.more summary { cursor: pointer; font-weight: 500; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--color-accent); font-weight: 600; }
.more[open] summary::before { content: "–"; }
.more[open] { display: grid; gap: var(--space-lg); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; white-space: nowrap; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  background: var(--color-paper); border: 1px solid var(--color-rule); color: var(--color-ink); font-weight: 400;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.chips label:hover span { border-color: var(--color-muted); }
.chips input:checked + span { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.chips input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.thanks:focus { outline: none; }
.founding { border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); display: grid; gap: var(--space-md); }
.founding .btn { justify-self: start; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); }
.faq .h2 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.faq details { border-bottom: 1px solid var(--color-rule); padding: var(--space-md) 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: var(--text-lg); list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--color-muted); margin-top: var(--space-xs); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); max-width: var(--page-max); margin: 0 auto; padding: var(--space-lg) var(--page-gutter) var(--space-xl); font-size: var(--text-xs); color: var(--color-muted); border-top: 1px solid var(--color-rule); }

@media (max-width: 820px) {
  /* Store box comes right under the greeting on small screens; examples follow. */
  .hello { display: flex; flex-direction: column; }
  .bar { order: 2; margin-top: var(--space-xl); }
  #store-error { order: 3; }
  .hello .note { order: 4; }
  .cards { order: 5; margin-top: var(--space-xl); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; }
  .card-title { min-height: 0; }
  .card[data-off] { display: grid !important; }
  .shuffle { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .bar { flex-direction: column; align-items: stretch; border-radius: 22px; padding: var(--space-xs); }
  .bar input { padding: var(--space-sm) var(--space-md); }
  .card { grid-template-columns: minmax(0, 1fr); }
  .chips span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
