/* Little Smiles concept: shared tokens, preview bar, dialogs, toasts, forms, buttons */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --red: #d9172f; --red-deep: #8f1123; --red-soft: #fbe3e4;
  --blue: #2c69b3; --blue-deep: #1d4f8c; --blue-night: #183f70; --sky: #e9f1fa; --sky-2: #d6e5f6;
  --gold: #f3a81f; --gold-deep: #b87708; --gold-soft: #fdf0d2;
  --blush: #f7e6df; --kraft: #e3cbbb; --paper: #fbf7f2; --cream: #fffdf9; --mint: #e4f3ec; --green: #1f7a52;
  --ink: #1d2838; --ink-2: #3b4757; --muted: #5d6878; --line: #e5dfd8; --line-2: #d8d0c7;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(29,40,56,.06), 0 8px 24px rgba(29,40,56,.08);
  --bar: 36px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 44px; }

/* ---------- Sea Grape Labs preview bar (overlays the top, absolute so pinned scenes start at 0) ---------- */
.sgl-bar { position: absolute; top: 0; left: 0; right: 0; height: var(--bar); z-index: 120; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #10302b; color: #e8f4ef; font-size: 13px; }
.sgl-bar .mark { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; color: #fff; text-decoration: none; }
.sgl-bar .mark svg { width: 20px; height: 20px; }
.sgl-bar .note { opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sgl-bar nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.sgl-bar nav a, .sgl-bar nav button { color: #e8f4ef; text-decoration: none; background: transparent; border: 0; padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.sgl-bar nav a:hover, .sgl-bar nav button:hover { background: rgba(255,255,255,.12); }
.sgl-bar nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }
.sgl-bar nav .reset { color: #ffd48a; }
@media (max-width: 900px) { .sgl-bar .note { display: none; } }
@media (max-width: 560px) { .sgl-bar { overflow: hidden; } .sgl-bar .mark span { display: none; } .sgl-bar nav a.opt { display: none; } .sgl-bar { gap: 6px; padding: 0 8px; } .sgl-bar nav a, .sgl-bar nav button { padding: 5px 6px; } }

/* sample label */
.sample { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #7a4b00; background: var(--gold-soft); border: 1px solid #f4d48c; padding: 4px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.verified { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #0f5a3a; background: var(--mint); border: 1px solid #b9dfcb; padding: 4px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.sim { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #4b3a8f; background: #ece8fb; border: 1px solid #d3cbf3; padding: 4px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .25s cubic-bezier(.4,0,.2,1), background-color .25s ease, box-shadow .25s ease; line-height: 1.1; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(217,23,47,.25); }
.btn-red:hover { background: #c3122a; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-gold { background: var(--gold); color: #2b1d00; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; padding: 11px 13px; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,105,179,.18); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--red); }
.field .err { color: var(--red-deep); font-size: 13px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); background: #fff; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s ease; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* dialog */
.dlg-back { position: fixed; inset: 0; z-index: 300; background: rgba(20,28,40,.48); display: flex; align-items: center; justify-content: center; padding: 18px; opacity: 0; transition: opacity .22s ease; }
.dlg-back.on { opacity: 1; }
.dlg { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: calc(100vh - 36px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(12px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.dlg-back.on .dlg { transform: none; }
.dlg.wide { max-width: 820px; }
.dlg header { padding: 20px 22px 6px; display: flex; gap: 12px; align-items: flex-start; }
.dlg header h2 { margin: 0; font: 600 23px/1.2 var(--display); flex: 1; }
.dlg .x { border: 0; background: var(--paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; flex: none; }
.dlg .body { padding: 8px 22px 18px; }
.dlg footer { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* toast */
.toasts { position: fixed; z-index: 400; right: 16px; bottom: 16px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.toast.on { opacity: 1; transform: none; }
.toast b { color: #ffd48a; }
.toast a { color: #bcd8ff; }

/* guided tour panel */
.tour { position: fixed; z-index: 250; left: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(20,28,40,.22); padding: 16px 18px; font-size: 14.5px; }
.tour .t-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tour .t-h b { font: 600 17px/1.2 var(--display); flex: 1; }
.tour .t-step { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tour .t-body { margin: 6px 0 12px; color: var(--ink-2); }
.tour .t-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.tour .t-x { border: 0; background: var(--paper); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.tour-ring { outline: 3px solid var(--gold) !important; outline-offset: 4px; border-radius: 10px; }
@media (max-width: 560px) { .tour { left: 8px; right: 8px; bottom: 8px; width: auto; } }

@media print { .sgl-bar, .tour, .toasts, .no-print { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
