/* ===========================================================================
   Public help and legal pages: /support, /privacy-policy, /terms, /data-deletion
   (templates/legal/_frame.html). Loaded after css/ui/foundation.css and
   page-frame.css; every rule here is an lg- part the shared system has no
   piece for. Motion ideas (all transform/opacity, all off under reduced
   motion): condensing header + reading hairline, headline letters rising,
   slow scroll reveals, drifting hero glows, cursor spotlight, button sheen,
   an oversized footer wordmark.

   These pages are standalone (no main.css), so the theme tokens the shared
   sheets read are defined here. Light only, like the sign-in screens.
   =========================================================================== */

:root {
  --accent-component: 193 70% 39%; --accent-light: 193 40% 92%;
  --border-component: 210 7% 90%; --muted-component: 210 7% 97%;
  --foreground-component: 210 11% 15%; --destructive-component: 0 84% 60%; --warning-component: 43 96% 56%;
  --background: hsl(0, 0%, 100%); --foreground: hsl(210, 11%, 15%); --card: hsl(0, 0%, 100%);
  --muted: hsl(200, 20%, 96%); --muted-foreground: hsl(210, 6%, 46%); --border: hsl(210, 7%, 90%);
  --destructive: hsl(0, 84%, 60%); --warning: hsl(43, 96%, 56%); --success: hsl(193, 70%, 39%);
}
html { font-size: 14px; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: hsl(200, 20%, 96%); -webkit-font-smoothing: antialiased; }
.lg-page [hidden] { display: none !important; }
.lg-page img { max-width: 100%; }

/* Legal text before (or without) legal.js: plain h3/h4 headings still read well. */
.lg-article > h3 { margin: 2rem 0 0.9rem; padding-top: 1.75rem; border-top: 1px solid hsl(var(--border-component) / 0.7); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--foreground); }
.lg-article > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-article > h4, .lg-sec > h4 { margin: 1.4rem 0 0.5rem; font-size: 1.08rem; font-weight: 700; color: var(--foreground); }
/* ---- Legal & help pages (lg-): only what css/ui doesn't already have ---- */
.lg-page { color-scheme: light; background: var(--muted); min-height: 100vh; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lg-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

/* Nav */
.lg-nav { position: sticky; top: 0; z-index: 30; background: hsl(0 0% 100% / 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid hsl(var(--border-component) / 0.8); }
.lg-nav .lg-wrap { display: flex; align-items: center; gap: 1.25rem; height: 4rem; }
.lg-logo img { height: 2rem; width: auto; display: block; }
.lg-links { display: flex; gap: 0.25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.lg-links::-webkit-scrollbar { display: none; }
.lg-links a { white-space: nowrap; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; color: var(--muted-foreground); text-decoration: none; transition: background .2s, color .2s; }
.lg-links a:hover { color: var(--foreground); background: hsl(var(--muted-component)); }
.lg-links a[aria-current="page"] { color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); }
.lg-nav .cui-btn { flex: none; }
@media (max-width: 720px) { .lg-nav .lg-wrap { height: auto; flex-wrap: wrap; padding-block: 0.65rem; gap: 0.5rem; } .lg-links { order: 3; width: 100%; margin-left: -0.5rem; } .lg-nav .cui-btn { margin-left: auto; } }

/* Hero: the brand-teal band from the sign-in pane */
.lg-hero { position: relative; overflow: hidden; color: #fff; padding-block: 3.5rem 7rem;
  background: radial-gradient(70% 120% at 100% 0%, hsl(30 95% 60% / 0.30) 0%, transparent 55%),
              radial-gradient(60% 120% at 0% 100%, hsl(188 85% 55% / 0.45) 0%, transparent 60%),
              linear-gradient(135deg, hsl(196 75% 12%) 0%, hsl(193 70% 24%) 45%, hsl(var(--accent-component)) 100%); }
.lg-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(hsl(0 0% 100% / .05) 1px, transparent 1px), linear-gradient(90deg, hsl(0 0% 100% / .05) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.lg-hero .lg-wrap { position: relative; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(186 90% 82%); margin-bottom: 0.75rem; }
.lg-eyebrow svg { width: 1rem; height: 1rem; }
.lg-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lg-hero p.lg-lede { margin: 0.9rem 0 0; max-width: 40rem; font-size: 1.15rem; line-height: 1.6; color: hsl(0 0% 100% / 0.82); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.lg-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff; background: hsl(0 0% 100% / 0.12); border: 1px solid hsl(0 0% 100% / 0.22); backdrop-filter: blur(6px); }
.lg-chip svg { width: 0.95rem; height: 0.95rem; opacity: .85; }

/* Body: the content rises over the hero */
.lg-main { margin-top: -4.5rem; position: relative; padding-bottom: 4rem; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lg-grid.has-toc { grid-template-columns: 15.5rem minmax(0, 1fr); }
@media (max-width: 960px) { .lg-grid.has-toc { grid-template-columns: minmax(0, 1fr); } }

/* TOC */
.lg-toc { position: sticky; top: 5rem; background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: 1rem 0.6rem 0.8rem; max-height: calc(100vh - 6rem); overflow: auto; }
.lg-toc h2 { margin: 0 0 0.5rem; padding: 0 0.6rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.lg-toc a { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.25rem; align-items: baseline; padding: 0.42rem 0.6rem; border-radius: var(--cui-r); font-size: 0.92rem; line-height: 1.35; color: var(--muted-foreground); text-decoration: none; transition: background .2s, color .2s; }
.lg-toc a span { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.8rem; color: hsl(var(--accent-component) / 0.7); }
.lg-toc a:hover { background: hsl(var(--muted-component)); color: var(--foreground); }
.lg-toc a.is-active { background: hsl(var(--accent-component) / 0.1); color: hsl(var(--accent-component)); font-weight: 600; }
.lg-toc a.is-active span { color: hsl(var(--accent-component)); }
.lg-progress { height: 3px; margin: 0.75rem 0.6rem 0; border-radius: 3px; background: hsl(var(--muted-component)); overflow: hidden; }
.lg-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, hsl(var(--accent-component)), hsl(188 80% 50%)); transition: width .15s linear; }
/* Phones and tablets: the contents list becomes a sticky row of chips under the header. */
@media (max-width: 960px) {
  .lg-article .lg-sec { scroll-margin-top: calc(var(--lg-nav-h, 6.5rem) + 5.25rem); }
  .lg-toc { top: calc(var(--lg-nav-h, 4rem) + 0.5rem); z-index: 10; display: flex; gap: 0.25rem; max-height: none; padding: 0.35rem; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
  .lg-toc::-webkit-scrollbar { display: none; }
  .lg-toc h2, .lg-toc .lg-progress { display: none; }
  .lg-toc a { flex: none; display: inline-flex; gap: 0.35rem; padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap; }
}

/* Article */
.lg-article { background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: clamp(1.5rem, 4vw, 3rem); min-width: 0; }
.lg-sec { scroll-margin-top: calc(var(--lg-nav-h, 4.75rem) + 1.5rem); padding-block: 1.75rem; border-top: 1px solid hsl(var(--border-component) / 0.7); }
.lg-sec:first-child { border-top: 0; padding-top: 0; }
.lg-h { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.9rem; font-size: 1.45rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--foreground); }
.lg-num { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; font-size: 0.95rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component)) 60%, hsl(196 75% 20%)); box-shadow: 0 6px 14px -6px hsl(var(--accent-component) / 0.7); font-variant-numeric: tabular-nums; }
.lg-anchor { margin-left: auto; opacity: 0; color: var(--muted-foreground); text-decoration: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--cui-r); transition: opacity .2s, background .2s; }
.lg-anchor svg { width: 1rem; height: 1rem; }
.lg-h:hover .lg-anchor, .lg-anchor:focus-visible { opacity: 1; }
.lg-anchor:hover { background: hsl(var(--muted-component)); color: hsl(var(--accent-component)); }
.lg-prose > .lg-sub:first-child { margin-top: 0.25rem; }
.lg-h + .lg-sub { margin-top: 0.25rem; }
.lg-sub { margin: 1.4rem 0 0.5rem; font-size: 1.08rem; font-weight: 700; color: var(--foreground); letter-spacing: -0.01em; }
.lg-sub b { color: hsl(var(--accent-component)); font-variant-numeric: tabular-nums; margin-right: 0.35rem; }
.lg-prose p, .lg-prose ul, .lg-prose ol { max-width: 70ch; }
.lg-prose p, .lg-prose li { font-size: 1.07rem; line-height: 1.8; color: hsl(var(--foreground-component) / 0.82); }
.lg-prose p { margin: 0 0 0.9rem; }
.lg-prose ul, .lg-prose ol { margin: 0 0 1rem; padding-left: 1.35rem; display: grid; gap: 0.35rem; }
.lg-prose ul li::marker { color: hsl(var(--accent-component)); }
.lg-prose ol li::marker { color: hsl(var(--accent-component)); font-weight: 700; }
.lg-prose strong { color: var(--foreground); font-weight: 650; }
.lg-prose a { color: hsl(var(--accent-component)); font-weight: 600; text-decoration: underline; text-decoration-color: hsl(var(--accent-component) / 0.3); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.lg-prose a:hover { text-decoration-color: currentColor; }
.lg-top { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 20; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s var(--cui-ease); box-shadow: var(--cui-shadow-pop); }
.lg-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Help-center (support) */
.lg-search { display: block; margin-top: 1.75rem; max-width: 38rem; position: relative; }
.lg-search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.2rem; height: 1.2rem; color: var(--muted-foreground); pointer-events: none; }
.lg-search input { width: 100%; height: 3.4rem; padding: 0 1rem 0 2.9rem; border-radius: 999px; border: 0; font: 500 1.05rem/1 inherit; color: var(--foreground); background: #fff; box-shadow: 0 10px 30px -10px hsl(196 80% 8% / 0.6), 0 0 0 4px hsl(0 0% 100% / 0.14); outline: none; }
.lg-search input:focus { box-shadow: 0 10px 30px -10px hsl(196 80% 8% / 0.6), 0 0 0 4px hsl(186 90% 70% / 0.55); }
.lg-help { display: grid; gap: 1.5rem; }
.lg-contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 860px) { .lg-contact { grid-template-columns: 1fr; } }
.lg-contact h2 { margin: 0 0 0.4rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.lg-contact .lg-prose p { font-size: 1rem; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.lg-facts { display: grid; gap: 0.6rem; align-content: start; }
.lg-fact { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.8rem; align-items: center; padding: 0.85rem 1rem; border-radius: var(--cui-r-lg); background: linear-gradient(135deg, hsl(190 70% 97%), hsl(190 60% 93%)); border: 1px solid hsl(190 50% 86%); }
.lg-fact i, .lg-fact > span:first-child { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #fff; color: hsl(var(--accent-component)); box-shadow: var(--cui-shadow-xs); }
.lg-fact svg { width: 1.15rem; height: 1.15rem; }
.lg-fact small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.lg-fact b { font-size: 1rem; color: var(--foreground); }
.lg-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem; }
.lg-topic { display: grid; gap: 0.6rem; padding: 1.1rem 1.15rem; border-radius: var(--cui-r-xl); background: var(--card); box-shadow: var(--cui-shadow-card); color: inherit; text-decoration: none; transition: transform .25s var(--cui-ease), box-shadow .25s; }
.lg-topic:hover { transform: translateY(-3px); box-shadow: var(--cui-shadow-pop); }
.lg-topic .lg-ti { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; color: #fff; background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component)) 60%, hsl(196 75% 20%)); box-shadow: 0 8px 16px -8px hsl(var(--accent-component) / 0.8); }
.lg-topic .lg-ti svg { width: 1.25rem; height: 1.25rem; }
.lg-topic b { font-size: 1.05rem; }
.lg-topic small { color: var(--muted-foreground); font-size: 0.9rem; }
.lg-block { background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: clamp(1.4rem, 3vw, 2rem); scroll-margin-top: calc(var(--lg-nav-h, 4.75rem) + 1.5rem); }
.lg-block > h2 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.lg-block > h2 .lg-ti { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); }
.lg-block > h2 .lg-ti svg { width: 1.1rem; height: 1.1rem; }
.lg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; }
.lg-faq { border-radius: var(--cui-r-lg); border: 1px solid hsl(var(--border-component)); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.lg-faq + .lg-faq { margin-top: 0.6rem; }
.lg-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; font-size: 1.05rem; font-weight: 650; color: var(--foreground); }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary .lg-chev { margin-left: auto; flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: hsl(var(--muted-component)); color: var(--muted-foreground); transition: transform .3s var(--cui-ease), background .2s, color .2s; }
.lg-faq summary .lg-chev svg { width: 1rem; height: 1rem; }
.lg-faq[open] { border-color: hsl(var(--accent-component) / 0.35); box-shadow: 0 0 0 3px hsl(var(--accent-component) / 0.08); }
.lg-faq[open] summary .lg-chev { transform: rotate(180deg); background: hsl(var(--accent-component) / 0.12); color: hsl(var(--accent-component)); }
.lg-faq .lg-ans { padding: 0 1.1rem 0.4rem; }
.lg-faq .lg-ans p { font-size: 1rem; }
.lg-empty { text-align: center; padding: 2rem 1rem; color: var(--muted-foreground); }
.lg-hit mark { background: hsl(43 96% 70% / 0.45); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Footer */
.lg-foot { background: hsl(196 60% 7%); color: hsl(195 15% 72%); padding-block: 3rem 2rem; }
.lg-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .lg-foot-grid { grid-template-columns: 1fr 1fr; } .lg-foot-brand { grid-column: 1 / -1; } }
.lg-foot-brand img { height: 2.1rem; width: auto; display: block; margin-bottom: 0.75rem; }
.lg-foot-brand p { margin: 0; max-width: 22rem; line-height: 1.6; font-size: 0.95rem; }
.lg-foot h2 { margin: 0 0 0.75rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(195 20% 52%); }
.lg-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lg-foot a { color: hsl(195 25% 86%); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.lg-foot a:hover { color: #fff; }
.lg-foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(195 30% 100% / 0.08); font-size: 0.88rem; color: hsl(195 15% 55%); }

/* ===== Motion ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 360ms cubic-bezier(.16,1,.3,1) both lg-page-out; }
::view-transition-new(root) { animation: 460ms cubic-bezier(.16,1,.3,1) both lg-page-in; }
@keyframes lg-page-out { to { opacity: 0; scale: .985; filter: blur(6px); } }
@keyframes lg-page-in { from { opacity: 0; scale: 1.015; filter: blur(6px); } }

/* Header condenses with scroll (JS writes --p 0→1 over the first 140px) + a reading hairline (--read) */
.lg-nav { --p: 0; --read: 0; box-shadow: 0 12px 30px -20px hsl(196 60% 10% / calc(0.45 * var(--p))); }
.lg-nav .lg-wrap { height: calc(4.75rem - 0.75rem * var(--p)); }
.lg-logo img { height: calc(2.25rem - 0.3rem * var(--p)); }
.lg-nav-cta { display: flex; gap: 0.5rem; flex: none; }
@media (max-width: 720px) { .lg-nav .lg-wrap { height: auto; } .lg-nav-cta { margin-left: auto; } }
.lg-hair { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--read));
  background: linear-gradient(90deg, hsl(188 80% 50%), hsl(var(--accent-component)) 70%, hsl(196 75% 22%)); }

/* Hero ambient: two soft glows drifting (mealcents .fx) */
.lg-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lg-glow i { position: absolute; border-radius: 50%; will-change: transform; }
.lg-glow i:nth-child(1) { right: -12%; top: -40%; width: 58%; height: 160%; background: radial-gradient(closest-side, hsl(186 85% 58% / .32), transparent); animation: lg-drift-a 22s ease-in-out infinite alternate; }
.lg-glow i:nth-child(2) { left: -18%; bottom: -60%; width: 55%; height: 150%; background: radial-gradient(closest-side, hsl(190 80% 48% / .42), transparent); animation: lg-drift-b 28s ease-in-out infinite alternate; }
@keyframes lg-drift-a { to { transform: translate3d(-12%, 10%, 0) scale(1.1); } }
@keyframes lg-drift-b { to { transform: translate3d(14%, -8%, 0) scale(.92); } }

/* Entrance: headline letters rise out of a blur (bysourav char-in); the rest follows in beats */
html.js .lg-rise { animation: lg-rise 1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d, 0) * 110ms + 260ms); }
@keyframes lg-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px); } }
.lg-wd { display: inline-block; white-space: nowrap; }
html.js .lg-ch { display: inline-block; animation: lg-char .95s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 20ms + 80ms); }
@keyframes lg-char { from { opacity: 0; transform: translateY(.45em) rotate(6deg); filter: blur(8px); } }

/* Scroll reveal: slow, long-tailed ease, no overshoot (mealcents) */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0) scale(.985);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.25s cubic-bezier(.16,1,.3,1); transition-delay: var(--rd, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Cursor spotlight on cards (mealcents .spot) */
.lg-spot { position: relative; isolation: isolate; }
.lg-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), hsl(188 80% 50% / .13), transparent 60%); opacity: 0; transition: opacity .35s; }
.lg-spot:hover::after { opacity: 1; }

/* Primary buttons: a light sweep on hover (mealcents) */
.lg-sheen { position: relative; overflow: hidden; isolation: isolate; }
.lg-sheen::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, hsl(0 0% 100% / .38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.lg-sheen:hover::before { transform: translateX(120%); }

/* Footer: links underline from the left; an oversized wordmark fades out below the fold (mealcents) */
.lg-foot { position: relative; overflow: hidden; padding-bottom: 0; }
.lg-foot a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s cubic-bezier(.16,1,.3,1), color .2s; }
.lg-foot a:hover { background-size: 100% 1.5px; }
.lg-foot-mark { margin: 2.25rem 0 -0.14em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font: 800 min(17vw, 15rem)/.82 Inter, sans-serif; letter-spacing: -0.06em;
  background: linear-gradient(180deg, hsl(188 70% 55% / .24) 0%, hsl(188 70% 55% / .04) 72%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

.dd { display: grid; gap: 1.5rem; }
.dd-intro { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.dd-intro .lg-ti { width: 3rem; height: 3rem; border-radius: 0.9rem; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component)) 60%, hsl(196 75% 20%)); box-shadow: 0 10px 20px -10px hsl(var(--accent-component)); }
.dd-intro .lg-ti svg { width: 1.4rem; height: 1.4rem; }
.dd-intro h2 { margin: 0 0 0.35rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.dd-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .dd-opts { grid-template-columns: 1fr; } }
.lg-opt { display: flex; flex-direction: column; gap: 0.75rem; background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: 1.4rem; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.lg-opt:hover { transform: translateY(-3px); box-shadow: var(--cui-shadow-pop); }
.lg-opt .dd-tag { align-self: flex-start; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); padding: 0.3rem 0.65rem; border-radius: 999px; }
.lg-opt .dd-ic { width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; display: grid; place-items: center; color: hsl(var(--accent-component));
  background: linear-gradient(135deg, hsl(190 70% 96%), hsl(190 60% 90%)); border: 1px solid hsl(190 50% 85%); }
.lg-opt .dd-ic svg { width: 1.3rem; height: 1.3rem; }
.lg-opt h3 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
.lg-opt .lg-prose p, .lg-opt .lg-prose li { font-size: 1rem; }
.lg-opt .lg-actions { margin-top: auto; padding-top: 0.25rem; }
/* Numbered steps with teal counters and a joining rail */
.dd-steps { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 0 !important; margin: 0.25rem 0 0.75rem !important; }
.dd-steps li { counter-increment: s; position: relative; padding: 0 0 0.9rem 2.6rem !important; }
.dd-steps li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; width: 1.75rem; height: 1.75rem; border-radius: 0.55rem; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component))); }
.dd-steps li::after { content: ""; position: absolute; left: 0.85rem; top: 2.05rem; bottom: 0.1rem; width: 2px; border-radius: 2px; background: hsl(var(--accent-component) / 0.18); }
.dd-steps li:last-child::after { display: none; }
/* What happens next: a timeline whose rail fills when it scrolls in */
.dd-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; gap: 1rem; margin-top: 0.5rem; }
@media (max-width: 760px) { .dd-flow { grid-template-columns: 1fr; } }
.dd-flow::before, .dd-flow::after { content: ""; position: absolute; left: 1.4rem; right: calc((100% - 2rem) / 3 - 1.4rem); top: 1.4rem; height: 3px; border-radius: 3px; }
.dd-flow::before { background: hsl(var(--accent-component) / 0.14); }
.dd-flow::after { background: linear-gradient(90deg, hsl(188 80% 50%), hsl(var(--accent-component))); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.16,1,.3,1) .3s; }
.lg-block.in .dd-flow::after { transform: scaleX(1); }
@media (max-width: 760px) { .dd-flow::before, .dd-flow::after { display: none; } }
.dd-node { position: relative; z-index: 1; display: grid; gap: 0.35rem; }
.dd-node .dot { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--accent-component)); background: var(--card);
  border: 2px solid hsl(var(--accent-component) / 0.3); box-shadow: 0 0 0 6px var(--card); transition: background .5s, color .5s, border-color .5s; }
.dd-node .dot svg { width: 1.2rem; height: 1.2rem; }
.lg-block.in .dd-node .dot { background: hsl(var(--accent-component)); color: #fff; border-color: hsl(var(--accent-component)); }
.lg-block.in .dd-node:nth-child(1) .dot { transition-delay: .3s; } .lg-block.in .dd-node:nth-child(2) .dot { transition-delay: 1s; } .lg-block.in .dd-node:nth-child(3) .dot { transition-delay: 1.7s; }
.dd-node b { font-size: 1.05rem; margin-top: 0.4rem; }
.dd-node small { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.5; }
/* What's deleted / what's kept */
.dd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .dd-two { grid-template-columns: 1fr; } }
.dd-list { list-style: none; padding: 0 !important; display: grid; gap: 0.55rem !important; }
.dd-list li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.65rem; align-items: start; padding: 0.7rem 0.85rem; border-radius: var(--cui-r-lg);
  background: linear-gradient(135deg, hsl(190 70% 97.5%), hsl(190 60% 94.5%)); border: 1px solid hsl(190 50% 88%); font-size: 1rem !important; line-height: 1.5 !important; }
.dd-list.keep li { background: hsl(var(--muted-component)); border-color: hsl(var(--border-component)); }
.dd-mk { width: 1.75rem; height: 1.75rem; border-radius: 0.55rem; display: grid; place-items: center; color: #fff; background: hsl(var(--accent-component)); }
.dd-list.keep .dd-mk { background: hsl(var(--muted-foreground-component, 210 6% 46%) / 1); background: var(--muted-foreground); }
.dd-mk svg { width: 1rem; height: 1rem; }
/* Checkmarks draw themselves in when the card arrives */
.dd-list .dd-mk path, .dd-list .dd-mk polyline { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s cubic-bezier(.16,1,.3,1); }
.lg-block.in .dd-list .dd-mk path, .lg-block.in .dd-list .dd-mk polyline { stroke-dashoffset: 0; }
.lg-block.in .dd-list li:nth-child(1) .dd-mk :is(path,polyline) { transition-delay: 0.37s; }
.lg-block.in .dd-list li:nth-child(2) .dd-mk :is(path,polyline) { transition-delay: 0.49s; }
.lg-block.in .dd-list li:nth-child(3) .dd-mk :is(path,polyline) { transition-delay: 0.61s; }
.lg-block.in .dd-list li:nth-child(4) .dd-mk :is(path,polyline) { transition-delay: 0.73s; }
.lg-block.in .dd-list li:nth-child(5) .dd-mk :is(path,polyline) { transition-delay: 0.85s; }
.lg-block.in .dd-list li:nth-child(6) .dd-mk :is(path,polyline) { transition-delay: 0.97s; }
.lg-block.in .dd-list li:nth-child(7) .dd-mk :is(path,polyline) { transition-delay: 1.09s; }
