/* OnPointe preview: shared foundation.
   Tokens, type, buttons, the Sea Grape Labs preview bar, dialogs, toasts,
   guided scenarios and motion rules. Used by every page. */
:root {
  /* OnPointe palette: the studio's own coral-to-pink, set inside a
     midnight, ivory and blush editorial system drawn from their studio walls. */
  --midnight: #0F0B0A;
  --stage: #1A1311;
  --stage-2: #261C19;
  --ink: #1B1412;
  --ink-2: #3A2E2A;
  --muted: #6B605B;
  --muted-on-dark: #B9ABA4;
  --ivory: #FBF7F2;
  --ivory-2: #F5EEE6;
  --champagne: #E9DCC9;
  --blush: #F3D6CB;
  --blush-2: #EBC3B4;
  --line: rgba(27, 20, 18, .13);
  --line-strong: rgba(27, 20, 18, .28);
  --line-dark: rgba(251, 247, 242, .16);
  --coral: #FF5A2C;
  --pink: #E91E63;
  --rose: #B0164F;
  --neon: linear-gradient(90deg, #FF5A2C 0%, #F23A4C 48%, #E91E63 100%);
  --ok: #2F6B4A; --ok-soft: #E2F0E6;
  --warn: #8A5A0B; --warn-soft: #FAEED5;
  --info: #2D5878; --info-soft: #E2ECF4;
  --danger: #A3302A; --danger-soft: #F8E2DE;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --sgl-ink: #08181a; --sgl-ink-2: #0d2c33; --sgl-leaf: #426544; --sgl-fresh: #8fbf72;
  --sgl-grape: #77475b; --sgl-grape-2: #b07a96; --sgl-sand: #eadfc9; --sgl-foam: #f3efe3; --sgl-mist: #a9bdb5;

  --bar-h: 48px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 1px 2px rgba(27, 20, 18, .05), 0 10px 30px rgba(27, 20, 18, .08);
  --shadow-lg: 0 2px 6px rgba(27, 20, 18, .08), 0 30px 70px rgba(27, 20, 18, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 84px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-top: var(--bar-h); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: #FF9A7A; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 600; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: calc(var(--bar-h) + 8px); }
body.has-dialog, body.menu-open { overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { --b: var(--ink); --f: var(--ivory); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: var(--f); font-family: var(--sans); font-weight: 500; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: #000; border-color: #000; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(27, 20, 18, .04); }
.btn.light { --b: var(--ivory); --f: var(--ink); }
.btn.light:hover { background: #fff; border-color: #fff; }
.btn.line-light { background: transparent; color: var(--ivory); border-color: rgba(251, 247, 242, .45); }
.btn.line-light:hover { border-color: var(--ivory); background: rgba(251, 247, 242, .08); }
.btn.neon { border: 0; background: var(--neon); color: #fff; box-shadow: 0 10px 30px -12px rgba(233, 30, 99, .7); }
.btn.neon:hover { filter: saturate(1.1) brightness(1.04); }
.btn.danger { --b: var(--danger); --f: #fff; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.xs { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link { color: var(--rose); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link:hover { text-decoration-thickness: 2px; }

/* Sample-data labels (used anywhere fictional data appears) */
.sample-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; color: var(--muted); border: 1px dashed currentColor; padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
.sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.verified-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--sans); color: var(--ok); white-space: nowrap; }
.verified-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Sea Grape Labs preview bar ---------- */
.demo-bar { position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 300; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--sgl-ink); color: var(--sgl-foam); font-family: "Manrope", var(--sans); font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.demo-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.demo-brand .sgl-mark { width: 26px; height: 26px; }
.demo-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.demo-brand b { font-size: 12.5px; font-weight: 700; }
.demo-brand small { font-size: 11px; color: var(--sgl-mist); }
.demo-steps { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.demo-step { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--sgl-mist); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.demo-step:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.demo-step-n { width: 19px; height: 19px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; background: rgba(255, 255, 255, .1); }
.demo-step.is-done .demo-step-n { background: var(--sgl-leaf); color: #fff; }
.demo-step.is-current { background: var(--sgl-foam); color: var(--sgl-ink); }
.demo-step.is-current .demo-step-n { background: var(--sgl-ink); color: #fff; }
.demo-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.demo-pill { font-size: 11px; font-weight: 700; color: var(--sgl-sand); border: 1px solid rgba(234, 223, 201, .35); padding: 4px 9px; border-radius: 999px; }
.demo-next { color: #fff; text-decoration: none; font-weight: 700; background: var(--sgl-leaf); padding: 6px 12px; border-radius: 999px; }
.demo-next:hover { background: #557f57; }
.demo-reset { background: transparent; border: 1px solid rgba(255, 255, 255, .24); color: var(--sgl-foam); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.demo-reset:hover { border-color: #fff; }
.demo-bar :focus-visible { outline-color: var(--sgl-fresh); }
.demo-menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 8px; }
.demo-menu span { width: 18px; height: 2px; background: var(--sgl-foam); border-radius: 2px; transition: transform .2s; }
.demo-compact { display: none; }
.demo-track { display: none; }
@media (max-width: 1180px) { .demo-pill { display: none; } .demo-step-l { display: none; } .demo-step { padding: 6px; } .demo-step.is-current .demo-step-l { display: inline; } }
@media (max-width: 860px) {
  .demo-bar { gap: 8px; padding: 0 8px 0 12px; }
  .demo-steps, .demo-right { display: none; }
  .demo-compact { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
  .demo-compact .demo-where { color: var(--sgl-mist); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-compact .demo-where b { color: #fff; }
  .demo-compact .demo-next { padding: 6px 11px; }
  .demo-brand small { display: none; }
  .demo-menu { display: flex; }
  .demo-track { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); }
  .demo-track span { display: block; height: 100%; background: var(--sgl-fresh); }
  .demo-bar.is-open .demo-steps, .demo-bar.is-open .demo-right { display: flex; position: absolute; left: 0; right: 0; background: var(--sgl-ink-2); padding: 12px; }
  .demo-bar.is-open .demo-steps { top: var(--bar-h); flex-direction: column; align-items: stretch; gap: 4px; }
  .demo-bar.is-open .demo-step { padding: 10px 12px; }
  .demo-bar.is-open .demo-step-l { display: inline; }
  .demo-bar.is-open .demo-right { top: calc(var(--bar-h) + 296px); justify-content: space-between; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); flex-wrap: wrap; }
  .demo-bar.is-open .demo-pill { display: inline-block; }
  .demo-bar.is-open .demo-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .demo-bar.is-open .demo-menu span:nth-child(2) { opacity: 0; }
  .demo-bar.is-open .demo-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 420px) { .demo-brand b { display: none; } .demo-compact .demo-where span { display: none; } }

/* ---------- Concept notice (bottom of every client page) ---------- */
.concept-note { font: 400 13px/1.5 var(--sans); color: var(--muted); }

/* ---------- Dialogs ---------- */
.dlg-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(15, 11, 10, .5); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dlg-backdrop.is-in { opacity: 1; }
.dlg { background: var(--ivory); color: var(--ink); width: min(100%, 720px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateY(14px); transition: transform .3s var(--ease); overflow: hidden; }
.dlg.sm { width: min(100%, 460px); }
.dlg.lg { width: min(100%, 980px); }
.dlg-backdrop.is-in .dlg { transform: none; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 14px; }
.dlg-title { font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; }
.dlg-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.dlg-x { background: transparent; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.dlg-x:hover { border-color: var(--ink); }
.dlg-body { padding: 6px 26px 22px; overflow: auto; }
.dlg-body p:last-child { margin-bottom: 0; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 640px) { .dlg-backdrop { padding: 0; align-items: end; } .dlg { max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; width: 100%; } .dlg-head { padding: 20px 20px 12px; } .dlg-body { padding: 4px 20px 18px; } .dlg-foot { padding: 14px 20px 20px; } .dlg-foot .btn { flex: 1; } }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 600; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--midnight); color: var(--ivory); padding: 13px 12px 13px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); transform: translateY(12px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; font-size: 14.5px; line-height: 1.45; }
.toast.is-in { transform: none; opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); margin-top: 7px; flex: 0 0 auto; }
.toast-ok .toast-dot { background: #7CCB97; }
.toast-body a { color: #fff; font-weight: 600; }
.toast-x { background: transparent; border: 0; color: #fff; opacity: .7; font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; margin-left: auto; }

/* ---------- Forms (shared) ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field > label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(233, 30, 99, .16); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; }

/* ---------- Status pills (portal and dashboard) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--ivory-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.rose { background: #FBE3EA; color: var(--rose); }
.pill.plain::before { display: none; }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .1s; }
[data-reveal="3"] { transition-delay: .2s; }
[data-reveal="4"] { transition-delay: .3s; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Guided scenarios ---------- */
.guide { position: fixed; left: 16px; bottom: 16px; z-index: 450; width: min(380px, calc(100vw - 32px)); background: var(--sgl-ink); color: var(--sgl-foam); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-lg); font-family: "Manrope", var(--sans); border: 1px solid rgba(255, 255, 255, .1); }
.guide-head { display: flex; align-items: center; gap: 10px; }
.guide-head .sgl-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.guide-head span { flex: 1; line-height: 1.2; }
.guide-head b { font-size: 14px; display: block; }
.guide-head small { font-size: 12px; color: var(--sgl-mist); }
.guide-x { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.guide p { margin: 12px 0; font-size: 14px; line-height: 1.5; color: #e6ebe7; }
.guide-foot { display: flex; justify-content: space-between; gap: 8px; }
.guide .btn { min-height: 36px; font-family: inherit; font-size: 13.5px; padding: 0 14px; }
.guide .btn.go { background: var(--sgl-leaf); border-color: var(--sgl-leaf); color: #fff; }
.guide .btn.ghost { border-color: rgba(255, 255, 255, .3); color: var(--sgl-foam); }
.guide :focus-visible { outline-color: var(--sgl-fresh); }
.guide-target { outline: 3px solid var(--sgl-fresh) !important; outline-offset: 6px; border-radius: 10px; animation: guidepulse 1.6s ease-in-out 3; }
@keyframes guidepulse { 0%, 100% { outline-color: var(--sgl-fresh); } 50% { outline-color: transparent; } }
@media (max-width: 640px) { .guide { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px; } .guide p { font-size: 13.5px; margin: 8px 0 10px; } .toast-wrap { bottom: 16px; } body.has-guide .toast-wrap { bottom: 190px; } }
