/* ============================================================
   Fiber Bench — design system
   Family styling shared with slimeinthecoconut.com and the bead
   site: cream page, fat marquee bar, pill buttons, jiggly cards.
   Warmer palette: wool, raspberry, teal, mustard.
   ============================================================ */

:root {
  --cream: #fff9f1;
  --card: #ffffff;
  --ink: #38282e;
  --muted: #7c6a71;
  --faint: #a8939b;
  --accent: #e0518a;      /* default theme: raspberry */
  --accent-2: #f7b8d2;
  --accent-ink: #7a1f45;
  --drip: #e0518a;
  --bar1: #f7b8d2; --bar2: #e0518a; --bar3: #bc2f66; --bar-ink: #4d0626;
  --good: #2e9e5b;
  --radius: 20px;
  --display: 'Fredoka', sans-serif;
  --mega: 'Bagel Fat One', 'Fredoka', sans-serif;
  --body: 'Nunito', sans-serif;
  --mono: 'Nunito', ui-monospace, monospace;
  --shadow: 0 14px 30px -16px rgba(122, 31, 69, .35);
  --shadow-lift: 0 22px 44px -16px rgba(122, 31, 69, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-ink); }
a.lead-link { font-weight: 700; color: var(--accent-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
::selection { background: var(--accent-2); }

/* ---------- marquee announcement bar ---------- */
.launch-bar { overflow: hidden; white-space: nowrap; padding: 9px 0; color: var(--bar-ink);
  background: linear-gradient(180deg, var(--bar1) 0%, var(--bar2) 55%, var(--bar3) 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.5), inset 0 -3px 6px rgba(140,20,70,.35);
  font-family: var(--display); font-weight: 700; font-size: 13px; }
.launch-bar .track { display: inline-flex; gap: 30px; animation: marquee 26s linear infinite; }
.launch-bar:hover .track { animation-play-state: paused; }
.launch-bar .track span { letter-spacing: .5px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,249,241,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(122,31,69,.08), 0 8px 24px -18px rgba(122,31,69,.4); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--mega); font-weight: 400; font-size: 21px; letter-spacing: .5px; }
.brand-word b { color: var(--accent); font-weight: 400; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--muted);
  text-decoration: none; padding: 8px 11px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.nav-links a:hover { color: var(--accent-ink); background: rgba(224,81,138,.08); }
@media (max-width: 860px) { .nav-links a:nth-child(n+6), .nav-app { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 15.5px; text-decoration: none;
  border-radius: 999px; padding: 13px 24px; cursor: pointer; border: 0;
  transition: transform .16s cubic-bezier(.3,1.4,.5,1), box-shadow .16s ease, filter .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--bar1), var(--bar2) 55%, var(--bar3));
  box-shadow: 0 10px 22px -8px rgba(140,20,70,.55), inset 0 2px 1px rgba(255,255,255,.45); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px rgba(122,31,69,.14), 0 6px 16px -10px rgba(122,31,69,.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--accent-2), 0 10px 20px -10px rgba(122,31,69,.45); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }

/* ---------- hanging yarn-thread canvas ---------- */
.strand-canvas { position: absolute; left: 0; right: 0; top: 62px; width: 100%; height: 46vh; min-height: 240px;
  pointer-events: none; z-index: -1; }

/* ---------- hero + sections ---------- */
section { padding: clamp(54px, 8vw, 96px) 0; position: relative; }
h2 { font-family: var(--mega); font-weight: 400; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; margin: 0 0 16px; max-width: 20ch; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 62ch; }
.sec-tag { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px; }
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 4vw, 44px); text-align: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 3; max-width: 780px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .4px; text-transform: uppercase; color: var(--accent-ink); padding: 7px 14px; border-radius: 999px;
  background: #fff; box-shadow: 0 4px 12px -6px rgba(122,31,69,.5), inset 0 0 0 2px rgba(224,81,138,.3); margin-bottom: 14px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.4; transform:scale(.8)} }
h1.headline { font-family: var(--mega); font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.0; margin: 0 0 14px; letter-spacing: .3px; }
h1.headline .grad { background: linear-gradient(100deg, #e0518a 5%, #e78a2e 45%, #2ab3a6 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: clamp(15.5px, 1.8vw, 18px); color: var(--muted); max-width: 50ch; margin: 0 auto 20px; }
.hero .sub strong { color: var(--ink); font-weight: 800; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .btn-primary { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.045); } }
.float-emoji { position: absolute; z-index: 1; pointer-events: none; user-select: none;
  animation: floaty var(--t,6s) ease-in-out var(--d,0s) infinite, wiggle 4.5s ease-in-out var(--d,0s) infinite;
  filter: drop-shadow(0 8px 10px rgba(122,31,69,.22)); }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-20px); } }
@keyframes wiggle { 0%,100%{ rotate: -10deg; } 50%{ rotate: 10deg; } }
.sparkle { position: absolute; z-index: 2; pointer-events: none; animation: twinkle var(--t,3s) ease-in-out var(--d,0s) infinite; }
@keyframes twinkle { 0%,100%{ opacity:.2; transform: scale(.6); } 50%{ opacity:1; transform: scale(1.2); } }

/* ---------- featured video strip ---------- */
.featured { padding: clamp(16px,2.6vw,30px) 0 clamp(8px,1.6vw,18px); }
.feat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.feat-title { font-family: var(--mega); font-weight: 400; font-size: clamp(23px,3.2vw,36px); margin: 0; }
.feat-title .fire { display: inline-block; animation: wiggle 1.1s ease-in-out infinite; transform-origin: 50% 85%; }
.feat-all { font-family: var(--display); font-weight: 700; color: var(--accent-ink); white-space: nowrap; text-decoration: none; }
.video-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }

.vcard { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease; display: flex; flex-direction: column; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.vframe { position: relative; aspect-ratio: 16/9; background: #f3e6ee; display: block; }
.vframe iframe, .vframe img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vthumb { position: relative; overflow: hidden; }
.vthumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px;
  color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.55); background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.25)); }
.vbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.vbody h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.vmeta { font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--muted); }
.vchip { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .6px; text-transform: uppercase; color: var(--accent-ink); background: rgba(224,81,138,.1);
  border-radius: 999px; padding: 3px 9px; margin-bottom: 3px; }

/* ---------- craft grid ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 900px) { .craft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .craft-grid { grid-template-columns: 1fr; } }
.craft { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease;
  text-decoration: none; color: inherit; }
.craft:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.craft .glyph { font-size: 30px; line-height: 1; flex: 0 0 auto; width: 52px; height: 52px; display: grid;
  place-items: center; border-radius: 14px; background: rgba(224,81,138,.09); box-shadow: inset 0 0 0 2px rgba(224,81,138,.14); }
.craft h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0 0 3px; }
.craft p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- product/why cards ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.product { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(224,81,138,.14); display: flex; flex-direction: column;
  transition: box-shadow .2s ease; }
.product:hover { box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(224,81,138,.4); }
.product .thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.product .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(rgba(255,255,255,.45), transparent 38%); }
.product .pbody { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.product p { color: var(--muted); font-size: 14.5px; margin: 0; }
.jiggle:hover { animation: jiggle .5s ease; }
@keyframes jiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-1.4deg)} 50%{transform:rotate(1.2deg)} 75%{transform:rotate(-.6deg)} }

/* ---------- SEO / guides blocks ---------- */
.seo-sec .seo-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 26px; }
.seo-guide { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease; }
.seo-guide:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.seo-guide h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; color: var(--ink); }
.seo-guide p { margin: 0; color: var(--muted); font-size: 14.5px; }
.seo-more { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--accent-ink); margin-top: 6px; }
.seo-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.seo-cols h3.seo-h { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 10px; color: var(--accent-ink); }
.seo-list { list-style: none; padding: 0; margin: 0; }
.seo-list li { padding: 7px 0; border-bottom: 1px dashed rgba(122,31,69,.14); font-size: 14.5px; color: var(--muted); }
.seo-list li b { color: var(--ink); }
.seo-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) { .seo-cols, .shop-grid { grid-template-columns: 1fr; } }

/* ---------- notify ---------- */
.notify { margin-top: 44px; border: 0; border-radius: 32px; padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(120deg, rgba(224,81,138,.13), rgba(42,179,166,.12) 55%, rgba(231,138,46,.12));
  box-shadow: inset 0 0 0 2px rgba(224,81,138,.25), 0 18px 40px -22px rgba(122,31,69,.5);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.notify h3 { font-family: var(--mega); font-weight: 400; font-size: clamp(23px, 3vw, 30px); margin: 0 0 10px; }
.notify p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .notify { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news-list { display: grid; gap: 20px; margin-top: 30px; max-width: 820px; }
.news-card { background: var(--card); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: block; transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.news-card .kicker { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); }
.news-card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 6px 0 8px; }
.news-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.news-date { font-family: var(--body); font-weight: 800; font-size: 12.5px; color: var(--faint); margin-left: 10px; }

/* article */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 40px; max-width: none; }
.article h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 28px 0 8px; color: var(--accent-ink); }
.article p, .article li { color: #4c3b41; font-size: 16px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin: 6px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.article th { font-family: var(--display); font-weight: 700; text-align: left; background: rgba(224,81,138,.08); color: var(--ink); }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid rgba(122,31,69,.1); vertical-align: top; }
.article .callout { border-radius: 16px; padding: 18px 20px; background: rgba(224,81,138,.07); box-shadow: inset 0 0 0 2px rgba(224,81,138,.2); margin: 20px 0; }
.article .crumb { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--muted); text-decoration: none; }
.article .byline { color: var(--faint); font-size: 13.5px; margin: 10px 0 6px; }
.toc { background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); margin: 18px 0; font-size: 14.5px; }
.toc b { font-family: var(--display); }
.toc a { color: var(--muted); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--accent-ink); }

/* ---------- playground ---------- */
.game-shell { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lift); margin: 22px 0; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.game-head h3 { font-family: var(--mega); font-weight: 400; font-size: 22px; margin: 0; }
.game-score { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--accent-ink); letter-spacing: .5px; }
.game-board { position: relative; border-radius: 16px; overflow: hidden; background: #fdf6f0;
  box-shadow: inset 0 0 0 2px rgba(224,81,138,.18); touch-action: manipulation; user-select: none; }
.game-board canvas { display: block; width: 100%; height: auto; }
.game-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; background: rgba(255,249,241,.9); backdrop-filter: blur(4px); padding: 20px; }
.game-overlay .big { font-size: 46px; }
.game-overlay p { color: var(--muted); max-width: 36ch; margin: 6px auto 14px; font-size: 14.5px; }
.game-overlay.hid { display: none; }
.game-hint { font-size: 13px; color: var(--faint); margin-top: 10px; text-align: center; }
.game-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.game-tab { font-family: var(--display); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  border: 0; cursor: pointer; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px rgba(122,31,69,.14); }
.game-tab:hover { color: var(--accent-ink); }
.game-tab.on { background: linear-gradient(135deg, var(--bar1), var(--bar2) 60%, var(--bar3)); color: #fff; box-shadow: 0 8px 18px -8px rgba(140,20,70,.6); }

.fz-grid { display: grid; gap: 6px; padding: 14px; justify-content: center; }
.fz-dot { width: clamp(30px, 7.6vw, 42px); height: clamp(30px, 7.6vw, 42px); border-radius: 50%; cursor: pointer;
  border: 0; position: relative; box-shadow: inset 0 -3px 5px rgba(0,0,0,.28), inset 0 2px 3px rgba(255,255,255,.5); transition: transform .08s ease; }
.fz-dot:active { transform: scale(.86); }
.fz-dot.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.fz-dot.hot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; animation: pulse-o 1s infinite; box-shadow: 0 0 0 3px rgba(255,210,58,.75); }
@keyframes pulse-o { 0%,100%{ opacity:.9 } 50%{ opacity:.3 } }

.mem-grid { display: grid; gap: 8px; padding: 16px; justify-content: center; }
.mem-card { width: clamp(46px, 10vw, 60px); height: clamp(46px, 10vw, 60px); border-radius: 12px; border: 0; cursor: pointer;
  background: #fdf0e6; box-shadow: inset 0 -3px 4px rgba(122,31,69,.18); font-size: clamp(20px, 5vw, 26px);
  display: grid; place-items: center; transition: transform .12s ease; }
.mem-card:active { transform: scale(.92); }
.mem-card.up { background: #fff; box-shadow: inset 0 0 0 2px rgba(224,81,138,.35); }

.simon-row { display: flex; gap: 12px; justify-content: center; padding: 20px 0 12px; flex-wrap: wrap; }
.simon-bead { width: clamp(48px, 11vw, 64px); height: clamp(48px, 11vw, 64px); border-radius: 50%; border: 0; cursor: pointer;
  box-shadow: inset 0 -4px 6px rgba(0,0,0,.3), inset 0 3px 4px rgba(255,255,255,.5); transition: transform .1s, filter .1s; }
.simon-bead.lit { transform: scale(1.14); filter: brightness(1.45) saturate(1.2); box-shadow: 0 0 26px 6px rgba(255,255,255,.55), inset 0 -4px 6px rgba(0,0,0,.25); }
.simon-bead:active { transform: scale(.92); }

.game-pad { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.game-big-btn { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 14px 30px; border-radius: 999px;
  border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--bar1), var(--bar2) 55%, var(--bar3));
  box-shadow: 0 10px 22px -8px rgba(140,20,70,.55); touch-action: none; user-select: none; -webkit-user-select: none; }
.game-big-btn:active { transform: scale(.96); }

/* ---------- studio ---------- */
.studio-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .studio-wrap { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.panel h3 { font-family: var(--display); font-weight: 700; margin: 2px 0 8px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pal-swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15); }
.pal-swatch.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.studio-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tool-tip { font-size: 13px; color: var(--faint); margin-top: 10px; }
.swatch-label { font-family: var(--body); font-weight: 800; font-size: 12px; color: var(--muted); }
.text-input { font: 700 16px var(--body); padding: 10px 14px; border-radius: 12px; border: 0;
  box-shadow: inset 0 0 0 2px rgba(122,31,69,.2); color: var(--ink); max-width: 200px; }
.text-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-2); }

/* ---------- patterns (printable charts) ---------- */
.chart-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px; margin-top: 24px; }
.chart-card h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 2px; }
.chart-card .chart-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.chart-facts { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- glossary ---------- */
.glossary-cols { columns: 2 340px; column-gap: 40px; margin-top: 24px; }
.glossary-cols h3 { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--accent-ink); margin: 18px 0 4px; break-inside: avoid; }
.glossary-cols p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; break-inside: avoid; }
.glossary-cols div { break-inside: avoid; }
.glossary-cols b { color: var(--ink); }

/* ---------- learn ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }

.quiz-q { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); margin: 18px 0; }
.quiz-q h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: left; font-family: var(--body); font-weight: 700; font-size: 15px; padding: 12px 16px;
  border-radius: 14px; border: 0; cursor: pointer; background: #fdf0f5; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(224,81,138,.16); }
.quiz-opt:hover { box-shadow: inset 0 0 0 2px var(--accent-2); }
.quiz-result { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lift); text-align: center; }
.quiz-result .glyph { font-size: 44px; }

/* ---------- tablet sim ---------- */
.sim-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.sim-controls select { font: 700 14px var(--body); padding: 8px 12px; border-radius: 10px; border: 0;
  box-shadow: inset 0 0 0 2px rgba(122,31,69,.18); background: #fff; color: var(--ink); }
.sim-cards { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.sim-card-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  padding: 5px 8px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 2px rgba(122,31,69,.15); }
.sim-card-badge i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- footer ---------- */
footer { background: #35232b; color: #f6e4ec; padding: 44px 0 30px; margin-top: 40px; }
.foot-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
footer .brand { color: #fff; }
footer .foot-links { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; }
footer .foot-links a { color: #f6e4ec; opacity: .85; text-decoration: none; font-weight: 700; font-size: 13.5px; }
footer .foot-links a:hover { opacity: 1; color: #fff; }
footer .made { font-size: 13px; opacity: .8; }

/* ---------- embed mode (app WebView) ---------- */
body.embed .nav-app, body.embed .hero .cta-row [data-app-link], body.embed .notify p a[data-app-link],
body.embed .launch-bar { display: none !important; }
body.embed .nav-inner { height: 52px; }

/* ---------- print ---------- */
@media print {
  .launch-bar, header.nav, .strand-canvas, .float-emoji, .sparkle, footer, .no-print, .video-strip .vframe iframe { display: none !important; }
  body { background: #fff; }
  .chart-card, .vcard, .seo-guide { box-shadow: none; }
  .chart-card { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* family links row (added for the craft-family cross-links) */
footer .foot-links.fam { border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
footer .foot-links.fam a { font-size: 12.5px; }
