/* =============================================================================
   Snapparty public site: design tokens + components
   Used by every marketing page (app/Views/site/*). Host/admin/auth pages use
   app/Views/layouts/styles.php, which shares the same token values.
   ============================================================================= */

:root {
  /* Brand */
  --violet: #6d4aff;          /* primary actions, links (5.2:1 on white) */
  --violet-strong: #5233e0;   /* hover/pressed */
  --violet-soft: #efebff;
  --violet-mist: #f7f5fd;     /* tinted section background */
  --magenta: #e0407f;         /* decoration + large text only (4:1 on white) */
  --magenta-text: #b82560;    /* magenta for normal-size text (5.9:1) */
  --amber: #ffb020;
  --mint: #1a9e72;

  /* Neutrals */
  --ink: #1a1530;             /* headings, body (16.9:1) */
  --ink-2: #3f3956;           /* secondary text (10.4:1) */
  --muted: #625b77;           /* captions, meta (6.3:1) */
  --line: #e6e2f1;
  --line-strong: #cfc8e4;
  --field-line: #8e86a8;      /* form field borders: 3.4:1 on white (WCAG 1.4.11) */
  --paper: #ffffff;
  --ink-bg: #17122b;          /* dark bands + footer */
  --on-ink: #e9e5f7;
  --on-ink-muted: #b4abd0;

  /* Status */
  --ok: #157a58;  --ok-bg: #e7f6ef;  --ok-line: #b9e3cf;
  --bad: #b3261e; --bad-bg: #fdecea; --bad-line: #f4c2bd;
  --warn: #8a5a00; --warn-bg: #fff4dc; --warn-line: #f5d999;
  --info: #3b2fb0; --info-bg: #efebff; --info-line: #d4cbff;

  /* Type */
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17 body */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-3xl: clamp(2.375rem, 1.4rem + 4vw, 4.25rem);

  /* Space (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Shape + depth */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 21, 48, .06), 0 4px 14px -6px rgba(40, 20, 90, .14);
  --shadow-md: 0 2px 4px rgba(26, 21, 48, .05), 0 16px 36px -14px rgba(40, 20, 90, .24);
  --shadow-lg: 0 30px 60px -24px rgba(40, 20, 90, .38);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 76px; } }

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: var(--consent-h, 0px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: var(--s-4); }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-strong); }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet-soft); color: var(--ink); }

.visually-hidden {
  position: absolute !important; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: var(--s-3); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.prose-width { max-width: 68ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* --- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color .18s var(--ease-out), border-color .18s, color .18s, box-shadow .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px -10px rgba(109, 74, 255, .8); }
.btn--primary:hover { background: var(--violet-strong); color: #fff; }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--violet); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--violet-soft); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --- Header + navigation ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand .pop { color: var(--magenta); }
.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--violet-mist); }
.nav a[aria-current="page"] { color: var(--violet); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-actions .btn { min-height: 44px; padding: 10px 18px; }
.header-login { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; font-size: var(--fs-sm);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-cta-short { display: inline; }
.header-cta-long { display: none; }
@media (max-width: 419px) {
  .header-actions .btn { padding: 10px 14px; }
  .nav-toggle { padding: 0; width: 44px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff;
  padding: var(--s-5) var(--gutter) var(--s-7); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; text-decoration: none;
}
.mobile-nav li a .icon { color: var(--muted); }
.mobile-nav__sub { margin-top: var(--s-6); }
.mobile-nav__sub h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s-3); }
.mobile-nav__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mobile-nav__chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.mobile-nav__actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); padding-bottom: var(--consent-h, 0px); }
body.nav-open { overflow: hidden; }

@media (min-width: 560px) {
  .header-cta-short { display: none; }
  .header-cta-long { display: inline; }
}
@media (min-width: 980px) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-login { display: inline-flex; }
}

/* --- Sections ---------------------------------------------------------------- */
.section { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section { padding: var(--s-9) 0; } }
.section--tint { background: var(--violet-mist); }
.section--ink { background: var(--ink-bg); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: var(--s-7) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; }
.section--ink .section-head p { color: var(--on-ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.section--ink .eyebrow { color: #c7b9ff; }
.section-head--center .eyebrow::before { display: none; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); }

/* --- Homepage hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: var(--s-7) 0 var(--s-8); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--theme-glow, rgba(109, 74, 255, .12)), transparent 70%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lead { margin-top: var(--s-5); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); list-style: none; color: var(--ink-2); font-size: var(--fs-sm); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--mint); width: 18px; height: 18px; stroke-width: 2.4; }
@media (min-width: 980px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: var(--s-8); }
}

/* Scene: printed table card + phone + photo prints (decorative) */
.scene { position: relative; height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
.print {
  position: absolute; background: #fff; padding: 8px 8px 30px; border-radius: 6px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.print picture, .print img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: var(--violet-soft); }
.print--a { width: 46%; height: 52%; left: 0; top: 4%; transform: rotate(-6deg); }
.print--b { width: 40%; height: 44%; left: 22%; bottom: 0; transform: rotate(4deg); }
.print--a .frame, .print--b .frame { width: 100%; height: 100%; overflow: hidden; border-radius: 2px; }
.table-card {
  position: absolute; left: 4%; bottom: 6%; width: 150px; padding: 14px 14px 12px; text-align: center; z-index: 2;
  background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.table-card .qr { width: 96px; height: 96px; margin: 6px auto 8px; }
.table-card b { display: block; font-family: var(--font-display); font-size: 13px; line-height: 1.2; }
.table-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.device {
  position: absolute; right: 0; top: 0; width: 236px; height: 440px; padding: 10px; z-index: 3;
  background: #1a1530; border-radius: 38px; box-shadow: var(--shadow-lg);
}
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 29px; background: #f7f5fd; }
.device__notch { position: absolute; top: 8px; left: 50%; width: 72px; height: 20px; border-radius: 12px; background: #1a1530; transform: translateX(-50%); z-index: 2; }
.mini-cover { padding: 40px 16px 26px; color: #fff; background: linear-gradient(140deg, #6d4aff 0%, #9b4ad8 55%, #e0407f 100%); }
.mini-cover small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.mini-cover b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.15; margin-top: 4px; }
.mini-card { margin: -14px 10px 0; padding: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); position: relative; }
.mini-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-btns span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; font-weight: 600; color: var(--ink); }
.mini-btns .icon { width: 18px; height: 18px; color: var(--violet); }
.mini-field { margin-top: 10px; height: 26px; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; color: var(--muted); display: flex; align-items: center; padding: 0 8px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.mini-grid span { aspect-ratio: 1; border-radius: 6px; background: var(--violet-soft); overflow: hidden; }
.mini-grid img { width: 100%; height: 100%; object-fit: cover; }
.mini-send { margin-top: 10px; height: 30px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.mini-toast { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); font-size: 10px; font-weight: 600; }
.mini-toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; }
@media (max-width: 460px) {
  .scene { height: 380px; max-width: 340px; }
  .print--a { left: 3%; top: 6%; }
  .device { width: 200px; height: 380px; border-radius: 32px; }
  .device__screen { border-radius: 24px; }
  .table-card { width: 128px; }
  .table-card .qr { width: 80px; height: 80px; }
}

/* --- Inner page hero ---------------------------------------------------------- */
.page-hero { padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--violet-mist), #fff); }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; }
.page-hero .lead { margin-top: var(--s-4); max-width: 40em; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.page-hero--split .container { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 980px) { .page-hero { padding: var(--s-7) 0 var(--s-8); } .page-hero--split .container { grid-template-columns: 1.1fr .9fr; } }
.breadcrumbs { margin-bottom: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* --- Steps ------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s-5); list-style: none; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4);
  border-radius: 12px; background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }
.step__visual { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--violet-mist); border: 1px dashed var(--line-strong); font-size: var(--fs-xs); color: var(--ink-2); }

/* --- Feature list ------------------------------------------------------------- */
.features { display: grid; gap: var(--s-6) var(--s-6); list-style: none; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.section--ink .feature__icon { background: rgba(255, 255, 255, .08); color: #c7b9ff; }
.section--ink .feature p { color: var(--on-ink-muted); }

/* --- Split (text + panel) ------------------------------------------------------ */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split--flip > :first-child { order: 2; } }
.checklist { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); color: var(--ink-2); }
.checklist .icon { width: 22px; height: 22px; color: var(--mint); stroke-width: 2.4; margin-top: 2px; }
.section--ink .checklist li { color: var(--on-ink); }
.section--ink .checklist .icon { color: #7ee2bd; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: var(--s-5); }
.panel__title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--muted { background: #f1eff6; color: var(--muted); }
.mod-row { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.mod-row:first-of-type { border-top: 0; }
.mod-row .thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--violet-soft); }
.mod-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-row b { display: block; font-size: var(--fs-sm); }
.mod-row small { color: var(--muted); font-size: 12px; }
.mod-actions { display: flex; gap: 6px; }
.mod-actions span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* --- Occasions --------------------------------------------------------------- */
.occasions { display: grid; gap: var(--s-3); list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.occasion {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; height: 100%;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .18s var(--ease-out);
}
.occasion:hover { border-color: var(--violet); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-2px); }
.occasion__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint, var(--violet-soft)); color: var(--tone, var(--violet)); }
.occasion__icon .icon { width: 23px; height: 23px; }
.occasion b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.occasion small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: 2px; }
.occasion > .icon { color: var(--line-strong); width: 20px; height: 20px; }
.occasion:hover > .icon { color: var(--violet); }

/* --- Pricing ------------------------------------------------------------------- */
.plans { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(var(--plan-count, 3), minmax(0, 1fr)); } }
.plans--single { max-width: 420px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s-6) var(--s-5) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.plan--featured { border: 2px solid var(--violet); box-shadow: var(--shadow-md); }
.plan__tag { position: absolute; top: -13px; left: var(--s-5); padding: 4px 12px; border-radius: var(--r-pill); background: var(--violet); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.plan h3 { font-size: var(--fs-xl); }
.plan__for { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; min-height: 1.6em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: var(--s-5) 0 var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price s { font-size: 1.25rem; font-weight: 500; color: var(--muted); }
.plan__price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__sale { color: var(--magenta-text); font-weight: 600; font-size: var(--fs-xs); }
.plan__banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  margin: var(--s-5) calc(-1 * var(--s-5)) 0; padding: 10px var(--s-5);
  background: linear-gradient(100deg, #b82560, #8f2bbf); color: #fff; font-size: var(--fs-sm); line-height: 1.3;
}
.plan__banner span { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.plan__banner strong { font-weight: 700; }
.plan__banner + .plan__price { margin-top: var(--s-4); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: var(--s-5) 0 var(--s-6); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.plan li .icon { width: 20px; height: 20px; color: var(--violet); stroke-width: 2.4; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.price-notes { margin-top: var(--s-6); display: grid; gap: var(--s-2); color: var(--muted); font-size: var(--fs-sm); text-align: center; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: var(--s-4) var(--s-5); font-weight: 600; }
.compare th, .compare td { padding: 14px var(--s-5); text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: var(--fs-md); background: var(--violet-mist); border-top: 0; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare td { font-variant-numeric: tabular-nums; }

.addons { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .addons { grid-template-columns: repeat(2, 1fr); } }
.addon { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.addon h3 { font-size: var(--fs-lg); display: flex; align-items: center; gap: 10px; }
.addon h3 .icon { color: var(--violet); }
.addon p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); }
.addon .price-line { margin-top: var(--s-3); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- Testimonials -------------------------------------------------------------- */
.quotes { display: grid; gap: var(--s-4); list-style: none; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote blockquote { margin: 0; color: var(--ink); }
.quote figcaption { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption b { color: var(--ink); }

/* --- FAQ (native details/summary) ---------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--violet); transition: transform .2s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--violet); }
.faq .answer { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 66ch; }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group > h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); max-width: 820px; margin-left: auto; margin-right: auto; }

/* --- CTA band ------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); background: var(--ink-bg); color: var(--on-ink); text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(224, 64, 127, .35), transparent 70%); pointer-events: none; }
.cta-band::before { content: ""; position: absolute; inset: -60% auto auto -10%; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(109, 74, 255, .45), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--on-ink-muted); margin: var(--s-4) auto 0; max-width: 44ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 900px) { .cta-band { padding: var(--s-8) var(--s-7); } }

/* --- Prose (legal, long-form) ---------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: var(--fs-lg); margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: var(--s-3) 0; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--violet-mist); }
.prose .updated { color: var(--muted); font-size: var(--fs-sm); }
.toc { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--violet-mist); margin-bottom: var(--s-6); }
.toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--s-3); font-family: var(--font-body); color: var(--muted); }
.toc ol { padding-left: 1.2em; display: grid; gap: 4px; }

/* --- Tips / cards -------------------------------------------------------------- */
.tips { display: grid; gap: var(--s-4); list-style: none; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tip { padding: var(--s-5); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.tip h3 { font-size: 1.0625rem; display: flex; gap: 10px; align-items: center; }
.tip h3 .icon { color: var(--violet); }
.tip p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); }

/* --- Forms ----------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .help { font-size: var(--fs-xs); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 74, 255, .16); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .error { display: flex; gap: 6px; align-items: flex-start; color: var(--bad); font-size: var(--fs-xs); font-weight: 600; }
.field .error .icon { width: 16px; height: 16px; margin-top: 1px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid; font-size: var(--fs-sm); }
.notice .icon { width: 22px; height: 22px; margin-top: 1px; }
.notice h2, .notice h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: inherit; letter-spacing: 0; margin-bottom: 4px; }
.notice ul { padding-left: 1.1em; margin-top: 4px; }
.notice a { color: inherit; font-weight: 600; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.notice--bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.notice--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.3fr .7fr; } }
.contact-aside { display: grid; gap: var(--s-4); align-content: start; }
.contact-aside .tip h2 { font-size: 1.0625rem; display: flex; gap: 10px; align-items: center; }
.contact-aside .tip h2 .icon { color: var(--violet); }

/* --- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--ink-bg); color: var(--on-ink-muted); padding: var(--s-8) 0 var(--s-5); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 34ch; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .pop { color: #ff7fb0; }
.footer-brand p { margin-top: var(--s-4); }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col li a { display: inline-block; padding: 6px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); }
.footer-bottom button { background: none; border: 0; padding: 0; color: var(--on-ink); text-decoration: underline; font-size: inherit; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* --- Cookie consent -------------------------------------------------------------- */
.consent {
  position: fixed; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 60; max-width: 560px;
  padding: var(--s-5); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--fs-md); margin-bottom: 6px; }
.consent p { font-size: var(--fs-sm); color: var(--ink-2); }
.consent .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.consent .actions .btn { flex: 1 1 140px; min-height: 44px; }
@media (min-width: 640px) { .consent { left: var(--s-5); bottom: var(--s-5); } }

/* --- Error page ------------------------------------------------------------------- */
.error-page { padding: var(--s-9) 0; text-align: center; }
.error-page .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; letter-spacing: -0.04em; color: var(--violet); }
.error-page h1 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.error-page p { color: var(--ink-2); margin: var(--s-4) auto 0; max-width: 46ch; }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }

/* --- Utilities ------------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .consent, .mobile-nav { display: none !important; }
}

/* --- Quieter tone for memorial pages ---------------------------------------- */
.tone-quiet .mini-cover { background: linear-gradient(140deg, #4f5d75 0%, #6f7d97 100%); }
.tone-quiet .page-hero { background: linear-gradient(180deg, #f1f2f6, #fff); }
.tone-quiet .mini-send, .tone-quiet .step__num { background: #4f5d75; }
.compare td .icon { width: 20px; height: 20px; color: var(--mint); stroke-width: 2.6; }
.compare-wrap:focus-visible { outline-offset: 2px; }

/* --- Seasonal themes (Admin > Themes) ---------------------------------------
   Tokens are set per theme on :root[data-theme] by ThemeArt::css(). Buttons and
   text keep brand colours; themes only add decoration and accents. */
.theme-bar { background: var(--theme-bar-bg, var(--ink-bg)); color: var(--theme-bar-text, #fff); font-size: var(--fs-sm); }
.theme-bar__in { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.theme-bar__in > svg { width: 22px; height: 22px; flex: none; }
.theme-bar p { flex: 1; margin: 0; line-height: 1.4; }
.theme-bar a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.theme-bar a:hover { color: inherit; text-decoration-thickness: 2px; }
.theme-bar__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.theme-bar__close:hover { background: rgba(127, 127, 127, .2); }
.theme-bar__close .icon { width: 20px; height: 20px; }
.theme-bar :focus-visible { outline-color: currentColor; }
.theme-garland { height: 24px; background: #fff var(--theme-garland, none) repeat-x center; }
:root[data-theme] .mini-cover { background: linear-gradient(140deg, var(--theme-mini-1, #6d4aff), var(--theme-mini-2, #e0407f)); }
:root[data-theme] .cta-band::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--theme-cta-1, #6d4aff) 50%, transparent), transparent 70%); }
:root[data-theme] .cta-band::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--theme-cta-2, #e0407f) 40%, transparent), transparent 70%); }
.cta-band__art { position: absolute; right: 18px; bottom: 14px; width: 150px; height: 150px; z-index: 1; pointer-events: none; }
.cta-band__art svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .cta-band__art { display: none; } }
@media print { .theme-bar, .theme-garland { display: none !important; } }

/* Falling effect (snow, leaves, petals, confetti) + its pause control */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.fx-toggle {
  position: fixed; right: var(--s-4); bottom: calc(var(--s-4) + var(--consent-h, 0px)); z-index: 55; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-sm);
}
.fx-toggle:hover { border-color: var(--violet); }
.fx-toggle .icon { width: 20px; height: 20px; }
.fx-toggle .fx-play { display: none; }
.fx-toggle.is-paused .fx-play { display: block; }
.fx-toggle.is-paused .fx-pause { display: none; }
@media print { .fx-canvas, .fx-toggle { display: none !important; } }
