/* FoobarDigital: stacked journal deck. Light ivory + lavender, purple ink. */
:root {
  --fd-ivory: #fbf8f1;
  --fd-paper: #fffdf8;
  --fd-lav: #ece6fa;
  --fd-lav-2: #ddd2f6;
  --fd-lav-3: #c9b9f0;
  --fd-ink: #1f1a3f;
  --fd-ink-2: #3c3463;
  --fd-muted: #686184;
  --fd-line: #e6def3;
  --fd-purple: #6a3de8;
  --fd-plum: #4b2aa6;
  --fd-orchid: #b64fd4;
  --fd-sun: #f1b84a;
  --fd-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --fd-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --fd-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fd-ease: cubic-bezier(.22, .8, .18, 1);
  --fd-radius: 30px;
  --fd-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 60px -28px rgba(56, 33, 130, .32), 0 10px 22px -12px rgba(56, 33, 130, .14);
  --header-h: 68px;
  --dock-h: 62px;
  --foot-h: 34px;
  color-scheme: light;
}

body.fd-deck-page {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -10%, #f3eefd 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 100%, #efe5f8 0%, transparent 60%),
    var(--fd-ivory);
  color: var(--fd-ink);
  font-family: var(--fd-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.fd-deck-page.dark { background: var(--fd-ivory); color: var(--fd-ink); }
body.fd-deck-page::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .5 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fd-deck-page *, .fd-deck-page *::before, .fd-deck-page *::after { box-sizing: border-box; }
.fdv-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; }
.fd-skip:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 3000; padding: 10px 16px; background: var(--fd-ink); color: var(--fd-paper); border-radius: 12px; }
.fd-deck-page :focus-visible { outline: 3px solid var(--fd-purple); outline-offset: 3px; border-radius: 6px; }
.fd-deck-page img { max-width: 100%; height: auto; }
.fd-deck-page a { color: var(--fd-plum); }

/* ---------- deck layout (JS) ---------- */
html.fd-deck, html.fd-deck body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.fd-deck .fd-main { position: relative; z-index: 1; height: calc(100dvh - var(--header-h) - var(--foot-h)); display: flex; flex-direction: column; }
html.fd-deck .fd-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  perspective: 1900px; perspective-origin: 50% 45%;
  --cw: min(1060px, 72vw);
  --step: 24%;
  --tilt: -16deg;
  --depth: -150px;
}
html.fd-deck .fd-card {
  position: absolute; top: 18px; bottom: 10px; left: 50%;
  width: var(--cw); margin-left: calc(var(--cw) / -2);
  transform-style: preserve-3d;
  transform:
    translateX(calc(var(--o, 0) * var(--step)))
    translateZ(calc(var(--abs, 0) * var(--depth)))
    rotateY(calc(var(--o, 0) * var(--tilt)))
    scale(calc(1 - var(--abs, 0) * .045));
  transition: transform .82s var(--fd-ease), opacity .55s ease;
  will-change: transform;
  outline: none;
}
html.fd-deck .fd-card[data-side="next"] { transform-origin: 0% 50%; }
html.fd-deck .fd-card[data-side="prev"] { transform-origin: 100% 50%; }
html.fd-deck .fd-card.is-far, html.fd-deck .fd-card.is-out { opacity: 0; visibility: hidden; transition: transform .82s var(--fd-ease), opacity .4s ease, visibility 0s .4s; }
html.fd-deck .fd-card.is-active:focus-visible .fd-card-inner { box-shadow: 0 0 0 3px var(--fd-purple), var(--fd-shadow); }
html.fd-no-anim .fd-card { transition: none !important; }

.fd-card-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--fd-paper);
  border: 1px solid #ebe3f6;
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  overflow: hidden;
}
/* stacked paper edges, journal feel */
html.fd-deck .fd-card-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(236,230,250,.0), rgba(236,230,250,.0));
  transition: background .6s ease;
}
html.fd-deck .fd-card:not(.is-active) .fd-card-inner::after { background: linear-gradient(90deg, rgba(232, 224, 250, .72), rgba(244, 239, 252, .55)); }
html.fd-deck .fd-card:not(.is-active) .fd-card-inner { box-shadow: 0 22px 40px -26px rgba(56, 33, 130, .35); }
/* spine label on peeking cards */
html.fd-deck .fd-card:not(.is-active)::after {
  content: attr(data-title);
  position: absolute; top: 50%; z-index: 3;
  font: 600 13px/1 var(--fd-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fd-plum);
  writing-mode: vertical-rl; transform: translateY(-50%);
  white-space: nowrap; max-height: 70%; overflow: hidden; text-overflow: ellipsis;
  opacity: .85;
}
html.fd-deck .fd-card[data-side="next"]::after { right: 22px; }
html.fd-deck .fd-card[data-side="prev"]::after { left: 22px; transform: translateY(-50%) rotate(180deg); }

.fd-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 26px; border-bottom: 1px dashed var(--fd-line);
  background: linear-gradient(180deg, #fffdf8, #fbf7ff);
  flex: 0 0 auto;
}
.fd-tab-no { font: 500 12px/1 var(--fd-mono); color: var(--fd-paper); background: var(--fd-purple); padding: 6px 9px; border-radius: 999px; }
.fd-tab-title { font: 650 17px/1.2 var(--fd-display); color: var(--fd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fd-tab-kind { margin-left: auto; font: 500 11px/1 var(--fd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fd-muted); white-space: nowrap; }
.fd-back { font: 600 13px var(--fd-body); color: var(--fd-plum); background: var(--fd-lav); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.fd-back:hover { background: var(--fd-lav-2); }

.fd-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--fd-lav-3) transparent; -webkit-overflow-scrolling: touch; }
.fd-page { padding: clamp(22px, 4vw, 52px) clamp(20px, 4.4vw, 60px) 56px; max-width: 1060px; margin: 0 auto; }

/* arrival choreography */
.fd-card.is-arriving .fd-page > * { animation: fdRise .7s var(--fd-ease) both; }
.fd-card.is-arriving .fd-page > *:nth-child(2) { animation-delay: .06s; }
.fd-card.is-arriving .fd-page > *:nth-child(3) { animation-delay: .12s; }
.fd-card.is-arriving .fd-page > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes fdRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fd-card.is-nudge-r .fd-card-inner { animation: fdNudgeR .45s var(--fd-ease); }
.fd-card.is-nudge-l .fd-card-inner { animation: fdNudgeL .45s var(--fd-ease); }
@keyframes fdNudgeR { 40% { transform: translateX(-10px); } }
@keyframes fdNudgeL { 40% { transform: translateX(10px); } }

/* edge pull indicator */
.fd-edge {
  position: absolute; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 12px);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 16px 12px; border-radius: 16px; background: rgba(31, 26, 63, .9); color: #f4f0ff;
  font: 600 12.5px var(--fd-body); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .3s var(--fd-ease);
}
.fd-edge[data-dir="prev"] { bottom: auto; top: 26px; transform: translate(-50%, -12px); }
.fd-edge.is-on { opacity: 1; transform: translate(-50%, 0); }
.fd-edge-bar { width: 150px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.fd-edge-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fd-sun), #f6d9ff); transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }

/* dock */
.fd-dock { display: none; }
html.fd-deck .fd-dock {
  position: relative; z-index: 5;
  height: var(--dock-h); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
}
.fd-dock-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--fd-lav-3); background: var(--fd-paper); color: var(--fd-plum);
  transition: transform .2s var(--fd-ease), background .2s ease, color .2s ease;
}
.fd-dock-btn svg { width: 16px; height: 16px; }
.fd-dock-btn:hover:not(:disabled) { background: var(--fd-purple); color: #fff; transform: translateY(-2px); }
.fd-dock-btn:active:not(:disabled) { transform: scale(.94); }
.fd-dock-btn:disabled { opacity: .35; cursor: default; }
.fd-jump select {
  appearance: none; -webkit-appearance: none;
  font: 600 14px var(--fd-body); color: var(--fd-ink);
  padding: 11px 38px 11px 16px; border-radius: 999px; border: 1px solid var(--fd-lav-3); cursor: pointer; max-width: 46vw;
  background: var(--fd-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234b2aa6' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
}
.fd-count { font: 500 13px var(--fd-mono); color: var(--fd-muted); }
.fd-count b { color: var(--fd-purple); font-weight: 500; }
.fd-dots { display: flex; gap: 5px; }
.fd-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--fd-lav-2); transition: width .4s var(--fd-ease), background .3s; }
.fd-dots i.past { background: var(--fd-lav-3); }
.fd-dots i.on { width: 22px; background: var(--fd-purple); }

/* footer: compact strip inside deck */
html.fd-deck .fd-footer { margin: 0 !important; padding: 0 !important; background: transparent !important; position: relative; z-index: 2; }
html.fd-deck .fd-footer > .fdv-wrap { display: none; }
.fd-footline { display: none; }
html.fd-deck .fd-footline {
  height: var(--foot-h); display: flex; align-items: center; justify-content: center; gap: 18px;
  font: 500 12px var(--fd-body); color: var(--fd-muted); border-top: 1px solid var(--fd-line); background: rgba(251, 248, 241, .8);
}
html.fd-deck .fd-footline a { color: var(--fd-ink-2) !important; font-size: 12px !important; text-decoration: none; }
html.fd-deck .fd-footline a:hover { color: var(--fd-purple) !important; }

/* JS-only detail card hidden without JS */
html:not(.fd-deck) .fd-card-detail, html:not(.fd-deck) .fd-edge, html:not(.fd-js) .fd-controls { display: none; }
/* no-JS: cards become a normal stacked page */
html:not(.fd-deck) .fd-stage { width: min(1120px, calc(100% - 24px)); margin: 24px auto; display: grid; gap: 28px; }
html:not(.fd-deck) .fd-extract > a { display: inline-block; padding: 12px 18px; border-radius: 999px; background: var(--fd-lav); font-weight: 600; text-decoration: none; }

/* ---------- content primitives ---------- */
.fd-page h1, .fd-page h2, .fd-page h3 { font-family: var(--fd-display); color: var(--fd-ink); letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .5em; font-weight: 650; }
.fd-page h1 { font-size: clamp(38px, 5.4vw, 70px); letter-spacing: -.025em; }
.fd-page h1 em { display: block; font-style: italic; font-weight: 500; color: var(--fd-purple); }
.fd-page h2 { font-size: clamp(28px, 3.4vw, 42px); }
.fd-page h3 { font-size: clamp(20px, 2vw, 25px); }
.fd-page p { margin: 0 0 1em; color: var(--fd-ink-2); }
.fd-eyebrow { display: inline-block; margin-bottom: 10px; font: 500 11.5px/1 var(--fd-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fd-purple); }
.fd-sub { color: var(--fd-muted) !important; max-width: 60ch; }
.fd-lede { font-size: 18px; max-width: 54ch; }
.fd-block { margin-top: clamp(40px, 6vw, 72px); }
.fd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.fd-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: var(--fd-lav); color: var(--fd-plum); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.fd-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--fd-sun); box-shadow: 0 0 0 4px rgba(241,184,74,.25); }

.fd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 650 14.5px/1.1 var(--fd-body); text-decoration: none !important; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--fd-ease), box-shadow .25s ease, background .2s ease; }
.fd-btn svg { width: 15px; height: 15px; transition: transform .25s var(--fd-ease); }
.fd-btn:hover svg { transform: translateX(3px); }
.fd-btn-primary { background: var(--fd-purple); color: #fff !important; box-shadow: 0 12px 24px -12px rgba(106, 61, 232, .7); }
.fd-btn-primary:hover { transform: translateY(-2px); background: var(--fd-plum); }
.fd-btn-ghost { background: transparent; color: var(--fd-ink) !important; border-color: var(--fd-lav-3); }
.fd-btn-ghost:hover { background: var(--fd-lav); }
.fd-btn-soft { background: var(--fd-lav); color: var(--fd-plum) !important; }
.fd-btn-soft:hover { background: var(--fd-lav-2); }
.fd-btn-sm { padding: 9px 15px; font-size: 13.5px; }
.fd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fd-link { font-weight: 650; font-size: 14px; color: var(--fd-plum); text-underline-offset: 4px; }

/* hero */
.fd-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.fd-meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--fd-muted); }
.fd-meta li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--fd-purple); vertical-align: middle; }
.fd-hero-art { position: relative; margin: 0; aspect-ratio: 1; border-radius: 36px; background: radial-gradient(circle at 50% 55%, #fff 0%, var(--fd-lav) 70%); }
.fd-hero-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 36px; }
.fd-chip { position: absolute; padding: 9px 13px; border-radius: 14px; background: var(--fd-paper); box-shadow: 0 14px 26px -14px rgba(56,33,130,.4); font: 500 14px var(--fd-mono); color: var(--fd-plum); animation: fdFloat 6s ease-in-out infinite; }
.fd-chip.c1 { top: 10%; left: -4%; }
.fd-chip.c2 { top: 18%; right: -2%; animation-delay: -2s; color: var(--fd-orchid); }
.fd-chip.c3 { bottom: 8%; left: 8%; font-family: var(--fd-body); font-weight: 600; color: var(--fd-ink); animation-delay: -4s; }
.fd-chip.c3 b { color: var(--fd-purple); font-family: var(--fd-display); font-size: 20px; }
@keyframes fdFloat { 50% { transform: translateY(-8px); } }

.fd-visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; padding: 32px; border-radius: 24px; background: linear-gradient(140deg, #f6f1ff, #fdf8ee); border: 1px solid var(--fd-line); }
.fd-facts { margin: 18px 0 0; display: grid; gap: 12px; }
.fd-facts div, .fd-rows div, .fd-contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.fd-facts dt, .fd-rows dt, .fd-contact-list dt { font: 500 11.5px/1.9 var(--fd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fd-muted); }
.fd-facts dd, .fd-rows dd, .fd-contact-list dd { margin: 0; font-weight: 600; color: var(--fd-ink); }
.fd-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fd-stats li { padding: 18px; border-radius: 18px; background: var(--fd-paper); border: 1px solid var(--fd-line); }
.fd-stats strong { display: block; font: 650 21px var(--fd-display); color: var(--fd-plum); }
.fd-stats small { color: var(--fd-muted); font-size: 13px; }

.fd-tech { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fd-tech li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--fd-line); background: var(--fd-paper); font-weight: 600; font-size: 14px; transition: transform .25s var(--fd-ease), border-color .2s; }
.fd-tech li:hover { transform: translateY(-3px); border-color: var(--fd-lav-3); }
.fd-tech i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 500 11px var(--fd-mono); font-style: normal; color: #fff; background: var(--c); }

.fd-toc { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--fd-line); }
.fd-toc a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 16px 8px; border-bottom: 1px solid var(--fd-line); text-decoration: none; color: var(--fd-ink); transition: background .2s, padding .3s var(--fd-ease); }
.fd-toc a:hover { background: #f6f1ff; padding-left: 14px; }
.fd-toc span { grid-row: span 2; font: 500 13px var(--fd-mono); color: var(--fd-purple); padding-top: 3px; }
.fd-toc b { font: 650 18px var(--fd-display); }
.fd-toc small { color: var(--fd-muted); font-size: 13px; }

.fd-cta { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: center; padding: 34px; border-radius: 26px; background: var(--fd-ink); }
.fd-cta h2, .fd-cta p { color: #f6f2ff !important; }
.fd-cta .fd-eyebrow { color: var(--fd-sun); }
.fd-cta .fd-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.fd-cta .fd-btn-ghost:hover { background: rgba(255,255,255,.1); }
.fd-cta img { border-radius: 20px; background: #f4eefe; aspect-ratio: 1; object-fit: cover; }

/* courses */
.fd-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.fd-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fd-filters button { font: 600 13px var(--fd-body); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--fd-line); background: var(--fd-paper); color: var(--fd-ink-2); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--fd-ease); }
.fd-filters button:hover { transform: translateY(-1px); border-color: var(--fd-lav-3); }
.fd-filters button.is-active { background: var(--fd-ink); color: #fff; border-color: var(--fd-ink); }
.fd-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fd-lav-3); background: var(--fd-paper); min-width: 260px; }
.fd-search:focus-within { border-color: var(--fd-purple); box-shadow: 0 0 0 4px rgba(106,61,232,.14); }
.fd-search svg { width: 16px; color: var(--fd-muted); }
.fd-search input { border: 0; outline: 0; background: transparent; font: 500 14px var(--fd-body); padding: 11px 0; flex: 1; min-width: 0; color: var(--fd-ink); }
.fd-search kbd { font: 500 11px var(--fd-mono); padding: 2px 7px; border-radius: 6px; background: var(--fd-lav); color: var(--fd-plum); }
.fd-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.fd-course { display: flex; flex-direction: column; padding: 14px 14px 18px; border-radius: 22px; background: var(--fd-paper); border: 1px solid var(--fd-line); transition: transform .35s var(--fd-ease), box-shadow .35s ease; }
.fd-course:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -24px rgba(56,33,130,.45); }
.fd-course[hidden] { display: none; }
.fd-course-cover { position: relative; height: 112px; border-radius: 15px; padding: 14px; margin-bottom: 14px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 16%, #fff), color-mix(in srgb, var(--hue) 34%, #f6f1ff)); }
.fd-course-cover code { font: 500 12px/1.55 var(--fd-mono); color: color-mix(in srgb, var(--hue) 80%, #1f1a3f); white-space: pre; }
.fd-course-cover em { position: absolute; right: 12px; bottom: 10px; font: italic 500 13px var(--fd-display); color: var(--hue); }
.fd-course h3 { font-size: 20px; margin-bottom: 8px; padding: 0 4px; }
.fd-course > p { font-size: 14.5px; padding: 0 4px; }
.fd-tags { list-style: none; padding: 0 4px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.fd-tags li { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--fd-lav); color: var(--fd-plum); }
.fd-course-facts { font: 500 12px var(--fd-mono) !important; color: var(--fd-muted) !important; }
.fd-price { margin-top: auto; padding: 12px 4px 0; border-top: 1px dashed var(--fd-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-price p { margin: 0; font: 650 19px var(--fd-display); color: var(--fd-ink); }
.fd-price small { display: block; font: 500 12px var(--fd-body); color: var(--fd-muted); }
.fd-price div { display: flex; align-items: center; gap: 12px; }
.fd-empty { padding: 36px; text-align: center; border-radius: 22px; border: 1px dashed var(--fd-lav-3); background: #faf7ff; }
.fd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fd-panel { padding: 28px; border-radius: 22px; border: 1px solid var(--fd-line); background: var(--fd-paper); }
.fd-panel-tint { background: linear-gradient(150deg, #f4eeff, #fbf3e6); }
.fd-steps { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.fd-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; }
.fd-steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--fd-purple); color: #fff; font: 650 17px var(--fd-display); }
.fd-steps span { color: var(--fd-muted); font-size: 14px; }
.fd-rows { display: grid; gap: 10px; margin: 14px 0 18px; }
.fd-linklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.fd-linklist a { display: flex; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 14px; background: #f8f4ff; color: var(--fd-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .2s, transform .25s var(--fd-ease); }
.fd-linklist a::after { content: "\2192"; color: var(--fd-purple); transition: transform .25s var(--fd-ease); }
.fd-linklist a:hover { background: var(--fd-lav); }
.fd-linklist a:hover::after { transform: translateX(4px); }
.fd-more { margin-top: 22px; border-radius: 18px; border: 1px solid var(--fd-line); background: var(--fd-paper); }
.fd-more summary { cursor: pointer; padding: 15px 20px; font-weight: 650; color: var(--fd-plum); }
.fd-more[open] summary { border-bottom: 1px dashed var(--fd-line); }
.fd-more > .fd-extract { padding: 0 20px 20px; }

/* services */
.fd-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.fd-services a { display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: var(--fd-paper); border: 1px solid var(--fd-line); text-decoration: none; color: var(--fd-ink); transition: transform .3s var(--fd-ease), border-color .2s, background .2s; height: 100%; }
.fd-services a:hover { transform: translateY(-3px); border-color: var(--fd-lav-3); background: #fbf8ff; }
.fd-services span { font: 500 12px var(--fd-mono); color: var(--fd-purple); }
.fd-services b { font: 650 19px var(--fd-display); }
.fd-services small { color: var(--fd-muted); font-size: 13.5px; }

/* team */
.fd-founder { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: 26px; background: linear-gradient(135deg, #f4eeff, #fdf7ea); margin-bottom: 10px; }
.fd-founder img { border-radius: 20px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* contact */
.fd-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.fd-contact-list { margin: 0; display: grid; gap: 16px; padding: 24px; border-radius: 22px; background: linear-gradient(150deg, #f4eeff, #fbf3e6); }
.fd-form { padding: 26px; border-radius: 22px; border: 1px solid var(--fd-line); background: var(--fd-paper); }
.fd-form-note { font-size: 13.5px; padding: 10px 14px; border-radius: 12px; background: #fff6e2; color: #6b4a0e !important; border: 1px solid #f3dfae; }
.fd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fd-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--fd-ink-2); }
.fd-form .fd-full { grid-column: 1 / -1; }
.fd-form input, .fd-form select, .fd-form textarea { font: 500 15px var(--fd-body); color: var(--fd-ink); padding: 11px 13px; border-radius: 12px; border: 1px solid var(--fd-lav-3); background: #fffefb; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.fd-form input:focus, .fd-form select:focus, .fd-form textarea:focus { outline: none; border-color: var(--fd-purple); box-shadow: 0 0 0 4px rgba(106,61,232,.14); }
.fd-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fd-form-status { margin: 12px 0 0 !important; font-size: 13.5px; }
.fd-form-status[data-tone="warn"] { color: #a2361f !important; }
.fd-form-status[data-tone="info"] { color: var(--fd-plum) !important; }
.fd-map { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 20px; border: 1px dashed var(--fd-lav-3); }
.fd-map > div:first-child { display: grid; gap: 2px; }
.fd-map span { color: var(--fd-muted); font-size: 13.5px; }
.fd-map iframe { width: 100%; height: 320px; border: 0; border-radius: 16px; }

/* loading / error */
.fd-skel { display: grid; gap: 12px; padding: 18px 0; }
.fd-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, #f1ecfb 0%, #f9f6ff 50%, #f1ecfb 100%); background-size: 200% 100%; animation: fdShimmer 1.3s linear infinite; }
.fd-skel i:first-child { height: 34px; width: 55%; }
.fd-skel .w60 { width: 60%; } .fd-skel .w80 { width: 80%; } .fd-skel .w40 { width: 40%; }
.fd-skel .blk { height: 140px; border-radius: 18px; }
@keyframes fdShimmer { to { background-position: -200% 0; } }
.fd-error { padding: 26px; border-radius: 20px; background: #fff3ee; border: 1px solid #f4d2c4; }

/* ---------- extracted legacy content, isolated ---------- */
.fd-extract + .fd-extract { margin-top: 44px; }
.fd-x { color: var(--fd-ink-2); font-size: 15.5px; }
.fd-x-source { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--fd-line); }
.fd-x-source span { font: 500 11.5px var(--fd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fd-purple); }
.fd-x-source a { font-size: 13px; font-weight: 600; color: var(--fd-muted); }
.fd-x section { padding: 22px 0; }
.fd-x section + section { border-top: 1px dashed var(--fd-line); }
.fd-x .container, .fd-x .container-fluid, .fd-x [class*="wrap"] { max-width: 100%; padding: 0; margin: 0; }
.fd-x h1, .fd-x h2, .fd-x .fd-x-title { font-family: var(--fd-display); font-size: clamp(25px, 3vw, 36px); line-height: 1.15; color: var(--fd-ink); margin: 0 0 14px; font-weight: 650; }
.fd-x .fd-x-title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.02em; }
.fd-x h3, .fd-x h4, .fd-x h5, .fd-x h6 { font-family: var(--fd-body); font-weight: 700; color: var(--fd-ink); margin: 0 0 8px; line-height: 1.3; }
.fd-x h3 { font-size: 20px; } .fd-x h4 { font-size: 17.5px; } .fd-x h5, .fd-x h6 { font-size: 15.5px; }
.fd-x p { margin: 0 0 12px; }
.fd-x ul, .fd-x ol { padding-left: 20px; margin: 0 0 14px; }
.fd-x li { margin-bottom: 6px; }
.fd-x img { border-radius: 16px; max-height: 520px; object-fit: cover; }
.fd-x a { color: var(--fd-plum); text-underline-offset: 3px; }
.fd-x .text-gradient, .fd-x .grad { color: var(--fd-purple); background: none; -webkit-text-fill-color: currentColor; font-style: italic; }
.fd-x .badge-pill, .fd-x .course-badge, .fd-x .badge, .fd-x [class*="eyebrow"], .fd-x [class*="kicker"] { display: inline-block; font: 500 11px/1.4 var(--fd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fd-purple); background: var(--fd-lav); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.fd-x .row, .fd-x [class*="-grid"], .fd-x .learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 0 0 14px; }
.fd-x [class*="col-"] { min-width: 0; width: auto; max-width: none; }
.fd-x .d-flex { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-x .text-center { text-align: center; }
.fd-x .text-center .fd-sub, .fd-x .mx-auto { margin-left: auto; margin-right: auto; }
.fd-x [class*="card"], .fd-x .glass, .fd-x .learn-item, .fd-x .syl-month, .fd-x .prereq-item, .fd-x .faq-item, .fd-x .feature, .fd-x [class*="box"]:not(.icon-box) {
  padding: 18px 20px; border-radius: 18px; background: var(--fd-paper); border: 1px solid var(--fd-line); margin-bottom: 10px;
}
.fd-x [class*="card"] [class*="card"] { padding: 0; border: 0; background: none; }
.fd-x .page-hero, .fd-x .course-detail-hero, .fd-x [class*="hero"]:not([class*="hero-"]) { padding: 28px; border-radius: 24px; background: linear-gradient(140deg, #f3edff, #fcf6ea); border: 1px solid var(--fd-line); }
.fd-x .course-hero-card, .fd-x .pricing-card.featured, .fd-x [class*="featured"] { background: linear-gradient(150deg, #efe7ff, #f9efff); }
.fd-x .hero-course-stats, .fd-x .hcs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.fd-x .hcs-item { padding: 6px 12px; border-radius: 999px; background: var(--fd-paper); border: 1px solid var(--fd-lav-3); font-size: 13px; font-weight: 600; color: var(--fd-ink); }
.fd-x .price-main { font: 650 30px var(--fd-display); color: var(--fd-ink); }
.fd-x .syl-header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.fd-x .syl-num { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--fd-purple); color: #fff; font: 650 16px var(--fd-display); }
.fd-x .syl-topic { padding: 5px 0 5px 14px; border-left: 2px solid var(--fd-lav-2); margin-bottom: 4px; font-size: 14.5px; }
.fd-x .fd-x-q { font-size: 16px; margin: 0 0 6px; }
.fd-x .fd-x-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--fd-lav); color: var(--fd-plum); font-size: 13px; font-weight: 600; }
.fd-x .btn, .fd-x [class*="btn-"] { display: inline-flex; align-items: center; gap: 6px; padding: 10px 17px; border-radius: 999px; background: var(--fd-lav); color: var(--fd-plum); font-weight: 650; font-size: 14px; text-decoration: none; border: 0; margin: 4px 6px 4px 0; }
.fd-x .btn-primary, .fd-x .btn-primary-gradient, .fd-x .btn-get-quote { background: var(--fd-purple); color: #fff; }
.fd-x table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; display: block; overflow-x: auto; }
.fd-x th, .fd-x td { padding: 10px 12px; border-bottom: 1px solid var(--fd-line); text-align: left; }
.fd-x th { font-weight: 700; color: var(--fd-ink); background: #f8f4ff; }
.fd-x hr { border: 0; border-top: 1px dashed var(--fd-line); margin: 18px 0; }
.fd-x blockquote { margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid var(--fd-purple); background: #faf7ff; border-radius: 0 14px 14px 0; font-family: var(--fd-display); font-style: italic; }
.fd-x .text-muted, .fd-x small { color: var(--fd-muted); }
.fd-x .fw-600, .fd-x .fw-700, .fd-x .fw-800 { font-weight: 700; }
.fd-x-callout { margin: 16px 0; padding: 22px; border-radius: 20px; background: linear-gradient(140deg, #f1e9ff, #fff5e1); border: 1px solid var(--fd-lav-3); }
.fd-x-callout b { display: block; font: 650 20px var(--fd-display); color: var(--fd-ink); margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  html.fd-deck .fd-stage { --cw: min(900px, 80vw); --step: 14%; --tilt: -12deg; }
  html.fd-deck .fd-card.is-deep { opacity: 0; visibility: hidden; }
}
@media (max-width: 860px) {
  .fd-hero, .fd-visit, .fd-cta, .fd-split, .fd-contact, .fd-founder { grid-template-columns: 1fr; }
  .fd-hero-art { max-width: 380px; margin: 0 auto; }
  .fd-cta img { display: none; }
  .fd-founder img { max-width: 200px; }
}
@media (max-width: 767px) {
  :root { --header-h: 66px; --dock-h: 58px; --foot-h: 58px; }
  html.fd-deck .fd-stage { --cw: calc(100% - 26px); --step: 3.5%; --tilt: -4deg; --depth: -60px; perspective: 1200px; }
  html.fd-deck .fd-card { top: 10px; bottom: 6px; }
  html.fd-deck .fd-card:not(.is-active)::after { display: none; }
  .fd-card-inner { border-radius: 22px; }
  .fd-tab { padding: 11px 16px; gap: 10px; }
  .fd-tab-kind { display: none; }
  .fd-page { padding: 22px 18px 44px; }
  .fd-dots, .fd-count { display: none; }
  .fd-jump select { max-width: 60vw; }
  html.fd-deck .fd-footline { display: grid; grid-template-columns: 1fr; gap: 0; padding: 4px 16px; text-align: center; line-height: 1.4; }
  html.fd-deck .fd-footline > span { display: none; }
  html.fd-deck .fd-footline a { font-size: 10px !important; }
  .fd-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; max-width: 100%; }
  .fd-filters button { flex: 0 0 auto; }
  .fd-search { min-width: 0; width: 100%; }
  .fd-form-grid { grid-template-columns: 1fr; }
  .fd-facts div, .fd-rows div, .fd-contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .fd-stats { grid-template-columns: 1fr 1fr; }
  .fd-visit, .fd-cta { padding: 22px; }
  .fd-chip.c1 { left: 0; } .fd-chip.c2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.fd-deck .fd-card { transition: opacity .2s linear !important; transform: translateX(calc(var(--o, 0) * var(--step))) scale(calc(1 - var(--abs, 0) * .045)); }
  .fd-card.is-arriving .fd-page > *, .fd-chip, .fd-skel i, .fd-card-inner { animation: none !important; }
  .fd-deck-page * { scroll-behavior: auto !important; }
  .fd-btn, .fd-course, .fd-tech li, .fd-toc a, .fd-services a, .fd-linklist a, .fd-dots i { transition: none !important; }
}
