/* Welcome to This World — site styles. Plain CSS, no build step. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nunito-400.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nunito-600.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nunito-800.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/fraunces-400.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-600.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/fraunces-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Rammetto One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/rammetto-one-400.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --background: hsl(45 60% 95%);
  --foreground: hsl(215 30% 22%);
  --border: hsl(40 30% 84%);
  --card: hsl(45 70% 98%);
  --input: hsl(40 28% 80%);
  --primary: hsl(342 58% 56%);
  --primary-dark: hsl(340 45% 40%);
  --on-primary: hsl(45 70% 98%);
  --secondary: hsl(204 52% 56%);
  --secondary-dark: hsl(206 45% 38%);
  --muted: hsl(44 40% 90%);
  --muted-foreground: hsl(215 15% 45%);
  --accent: hsl(204 60% 90%);
  --destructive: hsl(4 65% 50%);
  --radius: 0.9rem;
  --font-sans: 'Nunito', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-block: 'Rammetto One', 'Nunito', sans-serif;
  color-scheme: light;
}

/* ---------- Reset (matches Tailwind's preflight, which the card layouts were designed against) ---------- */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: var(--font-sans); }
body { background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; letter-spacing: inherit; }
button, [role="button"] { cursor: pointer; }
button:disabled { cursor: default; }
textarea { resize: none; }
dialog { margin: auto; }
[x-cloak] { display: none !important; }
.hidden { display: none !important; }

/* ---------- Page chrome ---------- */
.paper-bg {
  background-color: hsl(45 60% 95%);
  background-image: radial-gradient(hsl(342 58% 56% / .09) 1.2px, transparent 1.4px), radial-gradient(hsl(204 52% 56% / .09) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 48rem; }
.container--auth { max-width: 28rem; }
.container--tiny { max-width: 28rem; }
.page { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section { padding-top: 3.5rem; padding-bottom: 4rem; }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid hsl(40 30% 84% / .7); background: hsl(45 60% 95% / .85); backdrop-filter: blur(8px); }
.site-header__bar { height: 4rem; display: flex; align-items: center; gap: 1rem; }
.site-logo { flex-shrink: 0; transition: transform .2s; }
.site-logo:hover { transform: rotate(-2deg) scale(1.05); }
.site-logo img { height: 2.75rem; width: auto; }
.site-nav { display: none; align-items: center; gap: .25rem; margin-left: 1rem; }
.site-header__account { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.site-greeting { display: none; font-size: .875rem; color: var(--muted-foreground); }
.site-greeting:hover { color: var(--foreground); }
.site-nav-mobile { display: flex; gap: .25rem; padding: 0 .75rem .5rem; overflow-x: auto; }
.site-nav-mobile .nav-pill { font-size: .75rem; padding: .25rem .75rem; white-space: nowrap; background: var(--muted); }
.nav-pill { padding: .375rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 700; color: hsl(215 30% 22% / .7); transition: background-color .15s, color .15s; }
.nav-pill:hover { color: var(--foreground); background: var(--accent); }
.nav-pill.is-active, .site-nav-mobile .nav-pill.is-active { background: var(--primary); color: var(--on-primary); }
@media (min-width: 640px) {
  .site-nav { display: flex; }
  .site-nav-mobile { display: none; }
}
@media (min-width: 768px) { .site-greeting { display: inline; } }
.site-footer { border-top: 1px solid hsl(40 30% 84% / .7); padding: 2rem 1rem; text-align: center; font-size: .875rem; color: var(--muted-foreground); }

.flash { margin-top: 1.5rem; padding: .75rem 1rem; border-radius: .75rem; background: var(--accent); border: 1px solid hsl(204 52% 56% / .3); font-weight: 700; }

/* ---------- Type ---------- */
.font-serif-d { font-family: var(--font-serif); }
.font-block { font-family: var(--font-block); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.title-hero { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.1; margin-top: .5rem; }
.title-xxl { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.15; }
.title-xl { font-family: var(--font-serif); font-size: 1.875rem; line-height: 1.2; }
.title-lg { font-family: var(--font-serif); font-size: 1.875rem; line-height: 1.2; }
.title-md { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.25; }
.title-sm { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; }
@media (min-width: 640px) {
  .title-xl { font-size: 2.25rem; }
  .title-hero { font-size: 3rem; }
}
.muted { color: var(--muted-foreground); }
.small { font-size: .875rem; }
.strong { font-weight: 800; }
.primary { color: var(--primary); font-style: normal; font-weight: 600; }
.secondary { color: var(--secondary); }
.center { text-align: center; }
.measure { max-width: 32rem; }
.normal-case { text-transform: none; letter-spacing: normal; }
.eyebrow { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-foreground); margin-bottom: .5rem; }
.eyebrow--wide { letter-spacing: .2em; margin-bottom: 0; }
.error-text { font-size: .875rem; font-weight: 700; color: var(--destructive); }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mb-5 { margin-bottom: 1.25rem; }

/* ---------- Layout helpers ---------- */
.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: .75rem; }
.row { display: flex; gap: .5rem; }
.row-wrap { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.row-center { justify-content: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .375rem; }
.grid-2 { display: grid; gap: 1rem; }
.grid-2--tight { grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.inline-icon { display: inline-flex; align-items: center; gap: .375rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }

/* ---------- Icons ---------- */
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-xs { width: .875rem; height: .875rem; }
.icon-lg { width: 2rem; height: 2rem; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .625rem 1.25rem; font-weight: 800; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s, filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn-sm { padding: .375rem .875rem; font-size: .875rem; font-weight: 700; gap: .375rem; }
.btn-lg { padding: .75rem 1.5rem; }
.btn-block { width: 100%; }
.btn-square { border-radius: .75rem; padding: 0 1rem; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 5px 0 var(--primary-dark); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--primary-dark); }
.btn-primary.btn-lg { box-shadow: 0 6px 0 var(--primary-dark); }
.btn-primary.btn-block { border-radius: 1rem; padding: 1rem; font-size: 1.125rem; }
.btn-nudge .icon { transition: transform .2s; }
.btn-nudge:hover .icon { transform: translateX(4px); }
.btn-secondary { background: var(--secondary); color: var(--on-primary); }
.btn-secondary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-dark { background: var(--foreground); color: var(--background); }
.btn-dark .icon { transition: transform .2s; }
.btn-dark:hover .icon { transform: translateX(2px); }
.btn-outline { border: 2px solid hsl(215 30% 22% / .8); }
.btn-outline.btn-block { border-radius: 1rem; padding: .875rem; }
.btn-outline:hover:not(:disabled) { background: var(--foreground); color: var(--background); }
.btn-outline-secondary { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline-secondary:hover { background: var(--accent); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); }
.btn-ghost-primary { color: var(--primary); }
.btn-ghost-primary:hover { background: hsl(342 58% 56% / .1); }
.btn-quiet { border: 1px solid var(--border); }
.btn-quiet:hover { background: var(--muted); }
.btn-danger { background: var(--destructive); color: var(--on-primary); }
.btn-danger:hover { filter: brightness(.95); }
.icon-btn { display: inline-grid; place-items: center; padding: .5rem; border-radius: 999px; color: inherit; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--accent); }
.icon-btn--danger:hover { background: hsl(4 65% 50% / .1); color: var(--destructive); }
.link-strong { font-weight: 700; color: var(--primary); }
.link-primary { color: var(--primary); font-weight: 700; }
.link-primary:hover, .link-secondary:hover { text-decoration: underline; text-underline-offset: 2px; }
.link-secondary { color: var(--secondary); font-weight: 700; }
.link-muted { color: var(--muted-foreground); font-weight: 700; }
.link-muted:hover { color: var(--foreground); }
.is-invisible { opacity: 0; pointer-events: none; }

/* ---------- Forms ---------- */
.bare-fieldset { min-width: 0; }
.label { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-foreground); margin-bottom: .375rem; }
.label--inline { margin-bottom: 0; }
.label-note { text-transform: none; letter-spacing: normal; font-weight: 600; }
.field { width: 100%; border-radius: .75rem; border: 2px solid var(--input); background: var(--card); padding: .625rem .875rem; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--primary); box-shadow: 0 0 0 4px hsl(342 58% 56% / .15); }
.field::placeholder { color: hsl(215 15% 45% / .6); font-weight: 400; }
.field--area { display: block; }
.field-unit { position: relative; }
.field-unit .field { padding-right: 2.5rem; }
.field-unit span { position: absolute; right: .875rem; top: 50%; transform: translateY(-50%); font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.field-reveal { position: relative; }
.field-reveal .field { padding-right: 2.75rem; }
.field-reveal .field::-ms-reveal { display: none; } /* Edge's own eye would sit next to ours */
.field-reveal__btn { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; padding: .5rem; border-radius: 999px; color: var(--muted-foreground); transition: background-color .15s, color .15s; }
.field-reveal__btn:hover, .field-reveal__btn:focus-visible { background: var(--accent); color: var(--foreground); }
.counter { text-align: right; font-size: .75rem; color: var(--muted-foreground); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.checkbox-row { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.checkbox-row input { width: 1rem; height: 1rem; accent-color: var(--primary); }
.alert { padding: .75rem; border-radius: .5rem; }
.alert--error { background: #fff0f2; border: 1px solid #d56b90; }

.gender-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice { border-radius: .75rem; border: 2px solid var(--input); padding: .625rem 0; font-weight: 800; transition: transform .1s, border-color .15s; }
.choice:hover { border-color: hsl(215 30% 22% / .4); }
.choice:active { transform: scale(.95); }
.choice--girl.is-selected { border-color: var(--primary); background: hsl(342 58% 56% / .1); color: var(--primary); }
.choice--boy.is-selected { border-color: var(--secondary); background: hsl(204 52% 56% / .1); color: var(--secondary); }
.choice--neutral.is-selected { border-color: var(--foreground); background: var(--muted); }
.segmented { display: inline-flex; border-radius: 999px; background: var(--muted); padding: 2px; font-size: .75rem; font-weight: 800; }
.segmented button { padding: .25rem .75rem; border-radius: 999px; color: var(--muted-foreground); transition: background-color .15s; }
.segmented button.is-selected { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.photo-picker { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; padding: 1.25rem; width: 100%; }
.photo-picker--locked { border: 2px dashed var(--border); flex-wrap: wrap; }
.photo-picker--ready { background: var(--card); border: 1px solid var(--border); padding: .75rem; }
.photo-picker--empty { flex-direction: column; gap: .5rem; padding: 1.5rem; border: 2px dashed hsl(342 58% 56% / .4); background: hsl(342 58% 56% / .05); transition: background-color .15s, border-color .15s; }
.photo-picker--empty:hover { background: hsl(342 58% 56% / .1); border-color: var(--primary); }
.photo-picker--empty .icon { transition: transform .2s; }
.photo-picker--empty:hover .icon { transform: scale(1.1) rotate(-6deg); }
.photo-picker__text { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-size: .875rem; }
.photo-picker__thumb { width: 4rem; height: 4rem; border-radius: .5rem; object-fit: cover; }

/* ---------- Panels ---------- */
.panel { border-radius: 1rem; background: var(--card); border: 1px solid var(--border); padding: 1.25rem; }
.panel--dashed { background: transparent; border: 2px dashed var(--border); }
.panel--success { border: 2px solid hsl(204 52% 56% / .4); }
.panel--accent { background: hsl(204 60% 90% / .6); border-color: hsl(204 52% 56% / .3); }
.panel__heading { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.panel__aside { margin-left: auto; font-size: .75rem; color: var(--muted-foreground); font-weight: 700; }
.range-row { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 700; }
.range-row input { accent-color: hsl(342 58% 56%); width: 100%; }
.range-row__value { text-align: right; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; font-size: .875rem; }
.summary__item { border-radius: .75rem; background: var(--card); border: 1px solid var(--border); padding: .5rem .75rem; min-width: 0; }
.summary__item dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted-foreground); }
.summary__item dd { font-weight: 700; overflow-wrap: anywhere; }
.summary__item dd.is-missing { color: var(--destructive); }

/* ---------- Editor ---------- */
.edit-banner { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border-radius: .75rem; border: 1px solid var(--border); background: var(--card); padding: 1rem; }
.edit-banner__title { font-weight: 800; }
.export-stage { position: fixed; left: -10000px; top: 0; pointer-events: none; }
.steps { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.step-pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .375rem 1rem .375rem .375rem; font-size: .875rem; font-weight: 800; background: var(--card); border: 1px solid var(--border); transition: border-color .15s; }
.step-pill:hover { border-color: var(--primary); }
.step-pill.is-current { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.step-pill__num { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--muted); font-family: var(--font-block); font-size: .75rem; }
.step-pill__num.is-current { background: var(--primary); color: #fff; }
.step-pill__num.is-done { background: var(--secondary); color: #fff; }
.editor-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .editor-aside { position: sticky; top: 6rem; }
}
.editor-aside .eyebrow { display: flex; }
.preview-frame { border-radius: .375rem; overflow: hidden; box-shadow: 0 30px 60px -20px hsl(340 40% 30% / .35); outline: 1px solid var(--border); }
.step-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; }
.design-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-height: 70vh; overflow-y: auto; padding: 6px 4px .5rem 6px; margin: -6px -4px 0 -6px; }
@media (min-width: 640px) { .design-picker { grid-template-columns: repeat(3, 1fr); } }
.design-option { text-align: left; }
.design-option__name { margin-top: .5rem; font-size: .875rem; font-weight: 800; line-height: 1.25; }
.design-option__meta { font-size: 11px; color: var(--muted-foreground); font-weight: 700; }
.slot-editable { cursor: grab; touch-action: none; }
.slot-editable:active { cursor: grabbing; }
.messaging-preview { max-width: 20rem; border-radius: .375rem; overflow: hidden; }

/* ---------- Card thumbnails ---------- */
.fit-card { position: relative; overflow: hidden; width: 100%; }
.fit-card__inner { position: absolute; top: 0; left: 0; transform-origin: top left; visibility: hidden; }
.thumb { position: relative; border-radius: .375rem; overflow: hidden; aspect-ratio: 4 / 5; background: var(--muted); outline: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.design-option:hover .thumb:not(.is-selected) { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.thumb.is-selected { outline: 4px solid var(--primary); outline-offset: 2px; }
.thumb__check { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--primary); color: #fff; }
.thumb--gallery { display: block; box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); }

/* ---------- Home ---------- */
.hero { padding-top: 3.5rem; padding-bottom: 5rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.15fr 1fr; } }
.hero__tiles { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2.5rem; }
.hero__line { display: flex; gap: 1.25rem; }
.hero__word { display: flex; gap: .5rem; }
.block-tile { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .5rem; border: 3px solid hsl(45 70% 98%); color: hsl(45 70% 98%); font-size: 1.5rem; transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.block-tile:hover { transform: translateY(-6px) rotate(-4deg); }
.block-tile--pink { background: hsl(342 58% 58%); box-shadow: 5px 6px 0 hsl(340 45% 40%); }
.block-tile--blue { background: hsl(204 52% 56%); box-shadow: 5px 6px 0 hsl(206 45% 38%); }
/* Seven WELCOME tiles must fit a 360px phone. */
@media (max-width: 420px) { .block-tile { width: 2.375rem; height: 2.375rem; font-size: 1.3rem; } .hero__word { gap: .375rem; } .hero__line { gap: 1rem; } }
@media (min-width: 640px) { .block-tile { width: 4rem; height: 4rem; font-size: 2.25rem; } }
.hero__lead { font-size: 1.25rem; line-height: 1.375; max-width: 36rem; }
@media (min-width: 640px) { .hero__lead { font-size: 1.5rem; } }
.hero__text { margin-top: 1rem; max-width: 32rem; }
.hero__cards { position: relative; height: 460px; }
@media (min-width: 640px) { .hero__cards { height: 540px; } }
.hero__card { position: absolute; overflow: hidden; border-radius: .125rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.hero__card--right { right: 1rem; top: 1.5rem; }
.hero__card--left { left: 0; top: 6rem; }
.band { background: hsl(45 70% 98% / .8); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-steps li { position: relative; padding-left: 3.5rem; }
.how-steps__num { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .375rem; color: #fff; font-size: 1.25rem; }
.how-steps p { margin-top: .25rem; }
.bg-pink { background: hsl(342 58% 58%); }
.bg-blue { background: hsl(204 52% 56%); }
.gallery { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item .thumb { transition: transform .3s, box-shadow .3s; }
.gallery__item:hover .thumb { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1); }
.gallery__title { margin-top: .75rem; display: flex; align-items: baseline; gap: .5rem; }
.gallery__num { font-size: .75rem; font-weight: 800; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.gallery__name { font-weight: 800; transition: color .15s; }
.gallery__item:hover .gallery__name { color: var(--primary); }
.gallery__item p { line-height: 1.375; }

/* ---------- My announcements ---------- */
.saved-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .saved-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .saved-grid { grid-template-columns: repeat(3, 1fr); } }
.saved-card .thumb { transition: transform .3s, box-shadow .3s; }
.saved-card:hover .thumb { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1); }
.saved-card__meta { margin-top: .75rem; display: flex; align-items: flex-start; gap: .25rem; }
.saved-card__text { flex: 1; min-width: 0; }
.saved-card__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { border-radius: 1.5rem; border: 2px dashed var(--border); background: hsl(45 70% 98% / .6); padding: 5rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-state__art { height: 7rem; width: auto; margin-bottom: 1rem; transform: rotate(-12deg); }
.dialog { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); color: var(--foreground); padding: 1.5rem; max-width: 28rem; width: calc(100% - 2rem); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.dialog::backdrop { background: rgb(0 0 0 / .4); }
.dialog__actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: .5rem; }

/* ---------- Share page ---------- */
.share-head { text-align: center; margin-bottom: 2rem; }
.share-card { border-radius: .375rem; overflow: hidden; box-shadow: 0 40px 80px -30px hsl(340 40% 30% / .45); outline: 1px solid var(--border); }

/* ---------- Accounts ---------- */
.auth-card { background: var(--card); border: 1px solid #e6ddd3; border-radius: 20px; padding: 1.75rem; box-shadow: 0 8px 28px #39485410; }
.auth-card--danger { border-color: hsl(4 65% 50% / .35); }
.auth-after { margin-top: 1rem; text-align: center; font-size: .875rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 70; right: 1rem; bottom: 1rem; left: 1rem; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none; }
.toast { pointer-events: auto; max-width: 24rem; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: .875rem 1rem; box-shadow: 0 10px 25px -5px rgb(0 0 0 / .15); display: flex; flex-direction: column; gap: .125rem; font-size: .875rem; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.toast span { color: var(--muted-foreground); }
.toast--error { background: var(--destructive); border-color: var(--destructive); color: #fff; }
.toast--error span { color: hsl(0 0% 100% / .9); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.block-tile.rise { animation-name: tile-rise; }
@keyframes tile-rise { from { opacity: 0; transform: translateY(18px) rotate(var(--tilt, 0deg)); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
.bob { animation: bob 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .rise, .bob, .block-tile.rise, .toast { animation: none; }
}

/* ---------- Email confirmation ---------- */
.verify-banner { background: hsl(45 90% 85%); border-bottom: 1px solid hsl(40 60% 70%); padding: .625rem 0; font-size: .875rem; }
.verify-banner a { text-decoration: underline; text-underline-offset: 2px; }
.inline-form { display: inline; }

.recaptcha-note { font-size: .75rem; color: var(--muted-foreground); }
.recaptcha-note a { text-decoration: underline; }
/* The v3 badge sits above the toasts. */
.grecaptcha-badge { z-index: 65; }

/* ---------- Policy pages ---------- */
.site-footer__links { margin-top: .5rem; display: flex; justify-content: center; gap: 1.25rem; }
.site-footer__links a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__links a:hover { color: var(--foreground); }
.legal { line-height: 1.65; }
.legal__head { margin-bottom: 2rem; }
.legal section { margin-top: 2.25rem; }
.legal section > * + * { margin-top: .75rem; }
.legal ul:not(.promise-list) { list-style: disc; padding-left: 1.25rem; }
.legal ul:not(.promise-list) li + li { margin-top: .375rem; }
.legal a:not(.btn) { color: var(--secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal__promise { background: var(--card); border: 2px solid hsl(204 52% 56% / .35); border-radius: 1rem; padding: 1.5rem; margin-top: 0 !important; }
.promise-list li { display: flex; gap: .625rem; align-items: flex-start; }
.promise-list li + li { margin-top: .625rem; }
.promise-list .icon { color: var(--secondary); margin-top: .3rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.legal__toc a { font-size: .8125rem; padding: .25rem .75rem; border-radius: 999px; background: var(--accent); text-decoration: none !important; color: hsl(210 45% 28%) !important; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: .625rem .75rem; border-bottom: 1px solid var(--border); }
.legal__table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.legal__table td:first-child { font-weight: 700; width: 45%; }
.checkbox-row--top { align-items: flex-start; font-weight: 600; }
.checkbox-row--top input { margin-top: .2rem; flex-shrink: 0; }
.photo-promise { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted-foreground); margin: -.125rem 0 .5rem; }

/* ---------- Cookie notice ---------- */
.cookie-notice { position: fixed; z-index: 66; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.125rem; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .25); font-size: .875rem; line-height: 1.5; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.cookie-notice p { flex: 1; }
.cookie-notice a { color: var(--secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cookie-notice .btn { flex-shrink: 0; }
@media (max-width: 480px) { .cookie-notice { flex-direction: column; align-items: stretch; } }
.legal code { font-size: .8125rem; background: var(--muted); padding: .0625rem .375rem; border-radius: .375rem; overflow-wrap: anywhere; }
.cookie-notice__actions { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; }
@media (max-width: 480px) { .cookie-notice__actions { flex-direction: row; } .cookie-notice__actions .btn { flex: 1; } }
.site-footer__links button { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__links button:hover { color: var(--foreground); }

.view-count { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: .8125rem; font-weight: 700; color: var(--secondary); }

/* ---------- Reports and moderation ---------- */
.report-link { margin-top: 2rem; text-align: center; font-size: .8125rem; }
.report-link a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 2px; }
.report-link a:hover { color: var(--destructive); }
.alert--urgent { background: hsl(45 90% 92%); border: 1px solid hsl(40 60% 70%); font-size: .875rem; }
.alert--urgent a, .auth-card a.link-secondary { color: var(--secondary); font-weight: 700; text-decoration: underline; }
.stack-xs > * + * { margin-top: .5rem; }
.hidden-note { margin-top: .25rem; font-size: .8125rem; font-weight: 700; color: var(--destructive); }
.nav-pill--alert { background: hsl(4 65% 50% / .12); color: var(--destructive); }
.guidance { margin-bottom: 1.5rem; font-size: .875rem; }
.guidance ul { list-style: disc; padding-left: 1.25rem; }
.guidance li + li { margin-top: .375rem; }
.guidance a { color: var(--secondary); font-weight: 700; text-decoration: underline; }
.mod-item { display: grid; gap: 1.25rem; grid-template-columns: 1fr; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 1.25rem; margin-top: 1rem; }
@media (min-width: 768px) { .mod-item { grid-template-columns: 220px 1fr; } }
.mod-item--urgent { border: 2px solid var(--destructive); }
.mod-item__card { max-width: 220px; }
.mod-reports { margin-top: .75rem; display: grid; gap: .625rem; }
.mod-reports li { border-top: 1px dashed var(--border); padding-top: .5rem; }
.badge { display: inline-block; padding: .125rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--muted); }
.badge--urgent, .badge--hidden { background: var(--destructive); color: #fff; }
.badge--live { background: hsl(140 45% 88%); color: hsl(140 50% 25%); }
.mod-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mod-actions__hide { display: flex; gap: .5rem; align-items: center; flex: 1; min-width: 260px; }
.mod-actions__hide .field { padding: .375rem .625rem; }
.mod-delete { display: inline-flex; align-items: center; gap: .375rem; }
.mod-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.nowrap { white-space: nowrap; }
.mod-matches { border: 2px solid var(--destructive); border-radius: 1rem; background: var(--card); padding: 1.25rem; margin-bottom: 1.5rem; }
.guidance code { font-size: .8125rem; background: var(--muted); padding: 0 .3rem; border-radius: .3rem; }

/* ---------- Share page: owner-only tools ---------- */
.owner-bar { margin-bottom: 2rem; padding: .875rem 1rem; border-radius: 1rem; background: var(--card); border: 1px dashed hsl(204 52% 56% / .5); text-align: center; }
.owner-bar__note { display: inline-flex; align-items: center; gap: .375rem; margin-bottom: .625rem; font-size: .8125rem; font-weight: 700; color: var(--muted-foreground); }
.site-footer__contact { margin-top: .75rem; }
.site-footer__contact a { font-weight: 700; color: var(--secondary); }
.site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credit { margin-top: .375rem; font-size: .8125rem; display: inline-flex; align-items: center; gap: .3rem; }
.site-footer__credit a { font-weight: 700; color: var(--foreground); }
.site-footer__credit a:hover { text-decoration: underline; text-underline-offset: 2px; }
.heart { width: 1rem; height: 1rem; color: #e0245e; flex-shrink: 0; }

/* ---------- Design picker filter ---------- */
.design-filter { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }

/* ---------- Error pages ---------- */
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.error-logo { display: inline-block; margin-bottom: 2rem; }

/* ---------- Design pages ---------- */
.measure-wide { max-width: 42rem; }
.mt-16 { margin-top: 4rem; }
.crumbs { margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted-foreground); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }
.crumbs a:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current] { color: var(--foreground); font-weight: 700; }
.design-detail { display: grid; gap: 2.5rem; align-items: start; }
.design-detail > * { min-width: 0; }
@media (min-width: 1024px) { .design-detail { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.design-detail__card { overflow: hidden; border-radius: .25rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.design-detail__lead { font-size: 1.125rem; line-height: 1.6; }
.ticks li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.site-footer__links { flex-wrap: wrap; row-gap: .25rem; }

/* ---------- Admin dashboard ---------- */
/* Chart colour: a deeper step of the brand blue that passes the colour and contrast checks on the card surface. */
:root { --chart: #2882bd; --chart-hover: #549ac9; }
.admin-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.admin-tabs__tab { padding: .625rem 1rem; font-weight: 800; font-size: .9375rem; color: var(--muted-foreground); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs__tab:hover { color: var(--foreground); }
.admin-tabs__tab.is-active { color: var(--foreground); border-bottom-color: var(--primary); }
.admin-tabs__tab--alert { color: var(--destructive); }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.range-picker { display: inline-flex; padding: .25rem; gap: .25rem; border-radius: 999px; background: var(--muted); }
.range-picker__option { padding: .375rem .875rem; border-radius: 999px; font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.range-picker__option:hover { color: var(--foreground); }
.range-picker__option.is-active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.admin-section { margin-top: 2.5rem; }
.admin-columns { margin-top: 2.5rem; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) {
  .admin-columns { grid-template-columns: 1fr 1fr; }
  .admin-columns--wide-first { grid-template-columns: 1.6fr 1fr; }
}
.admin-columns > * { min-width: 0; }

.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kpi { border-radius: 1rem; background: var(--card); border: 1px solid var(--border); padding: 1.125rem 1.25rem; }
.kpi__label { font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.kpi__value { margin-top: .25rem; font-size: 2.25rem; line-height: 1.1; font-weight: 800; }
.kpi__delta { margin-top: .375rem; font-size: .8125rem; font-weight: 700; }
.kpi__hint { margin-top: .375rem; font-size: .75rem; line-height: 1.4; color: var(--muted-foreground); }

.charts { margin-top: 1rem; display: grid; gap: 1.25rem; }
.chart { border-radius: 1rem; background: var(--card); border: 1px solid var(--border); padding: 1rem 1.25rem .75rem; }
.chart__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; }
.chart__plot { position: relative; height: 9rem; margin-left: 2.25rem; }
.chart__grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.chart__grid span { position: absolute; right: calc(100% + .5rem); top: -.5rem; font-size: .6875rem; line-height: 1; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.chart__cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.chart__bar { display: block; width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; transition: background-color .1s; }
.chart__bar--some { min-height: 2px; }
.chart__col:hover .chart__bar, .chart__col:focus-visible .chart__bar { background: var(--chart-hover); }
.chart__col:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 4px; }
.chart__tip { position: absolute; bottom: calc(100% + .25rem); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: .375rem .625rem; border-radius: .5rem; background: var(--foreground); color: var(--background); font-size: .75rem; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart__tip strong { font-size: .875rem; }
.chart__x { display: flex; justify-content: space-between; margin: .375rem 0 0 2.25rem; font-size: .6875rem; color: var(--muted-foreground); }

.bars { display: grid; gap: .625rem; }
.bars__row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; align-items: center; gap: .75rem; font-size: .875rem; }
.bars__label { overflow-wrap: anywhere; }
.bars__track { display: block; height: .75rem; }
.bars__bar { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.bars__bar--some { min-width: 2px; }
.bars__value { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.table-view { margin-top: 1rem; }
.table-view summary { cursor: pointer; font-size: .875rem; font-weight: 700; color: var(--secondary-dark); }
.table-view .table-scroll { margin-top: .75rem; max-height: 24rem; overflow-y: auto; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); font-weight: 800; padding: .5rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
.data-table td { padding: .5rem .75rem; border-bottom: 1px solid hsl(40 30% 84% / .6); vertical-align: middle; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-cell { min-width: 12rem; }
.bar-cell { display: grid; grid-template-columns: 1fr 5.5rem; gap: .75rem; align-items: center; }
.bar-cell .num { font-weight: 800; }

.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.totals dt { font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.totals dd { font-size: 1.5rem; font-weight: 800; }
