/* Bin Sajjad Enterprises — ideas site styles.
   Happy, playful look: warm cream background, bright colours, ink outlines and "pop" shadows.
   Change colours and fonts in the tokens below, not in the components. */

:root {
  color-scheme: light;

  --bg: #fff8ee;
  --bg-2: #fff0dc;
  --surface: #ffffff;
  --ink: #1e1b3a;
  --ink-2: #47445f;
  --muted: #76728c;
  --hair: rgba(30, 27, 58, 0.16);

  --sun: #ffc83d;
  --sun-soft: #fff0c2;
  --coral: #ff7a66;
  --coral-soft: #ffe1da;
  --mint: #2fd19b;
  --mint-soft: #d6f7ea;
  --sky: #5b9dff;
  --sky-soft: #dceaff;
  --lilac: #9b7dff;
  --lilac-soft: #ece6ff;
  --pink: #ff8fc7;
  --pink-soft: #ffe4f2;

  --good: #0f8a5f;
  --warn: #a86400;
  --bad: #cf3a27;

  --radius: 24px;
  --radius-sm: 14px;
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --gutter: 20px;
}

/* Colour themes for idea types and moods: set --c and --c-soft */
.t-machine, .c-sky { --c: var(--sky); --c-soft: var(--sky-soft); }
.t-events, .c-coral { --c: var(--coral); --c-soft: var(--coral-soft); }
.t-product, .c-mint { --c: var(--mint); --c-soft: var(--mint-soft); }
.t-digital, .c-lilac { --c: var(--lilac); --c-soft: var(--lilac-soft); }
.c-sun { --c: var(--sun); --c-soft: var(--sun-soft); }
.c-pink { --c: var(--pink); --c-soft: var(--pink-soft); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sun); }
a:hover { text-decoration-color: var(--coral); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 0.45em; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.06; font-weight: 800; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 64px) 0; }
.band-sun { background: var(--sun-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band-mint { background: var(--mint-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band-lilac { background: var(--lilac-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.head .lead { margin: 0 auto; }
.head-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.head-row h2 { margin-bottom: 0.2em; }
.head-row p { margin: 0; }

.hl {
  background: linear-gradient(transparent 56%, var(--sun) 56%, var(--sun) 90%, transparent 90%);
  padding: 0 0.06em;
  border-radius: 4px;
}
.rotator { color: var(--coral); display: inline-block; transition: opacity 0.25s ease, transform 0.25s ease; }
.rotator.out { opacity: 0; transform: translateY(8px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--pop-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-coral { background: var(--coral); }
.btn-mint { background: var(--mint); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--sun); }
.btn-ink:hover { color: #fff; box-shadow: 5px 5px 0 var(--sun); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--pop-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.arrow { transition: transform 0.15s ease; }
a:hover > .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* ---------- Stickers & tags ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--c, var(--sun)); color: var(--ink);
  font-weight: 700; font-size: 0.82rem; line-height: 1.2;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-3deg);
}
.sticker.flat { transform: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1.5px solid var(--hair);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2); line-height: 1.3;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Preview banner ---------- */
.preview-banner { background: var(--ink); color: var(--bg); font-size: 0.88rem; text-align: center; padding: 8px var(--gutter); }
.preview-banner b { color: var(--sun); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 2px solid var(--ink); }
#site-header:empty { display: block; min-height: 74px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--sun); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; color: var(--ink);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; line-height: 1; letter-spacing: -0.02em; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; border: 2px solid transparent; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--sun-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 2px solid var(--ink); padding: 12px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .header-cta .btn-label { display: none; }
  .header-cta .btn { padding: 9px 12px; }
  .logo-text small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.hero::before { width: 520px; height: 520px; background: var(--sun); top: -180px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: var(--mint); bottom: -220px; left: -160px; opacity: 0.35; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .sticker { margin-bottom: 22px; }
.hero h1 { margin-bottom: 0.3em; }
.hero-sub { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; margin: 0 0 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--ink); }
.hero-art { position: relative; isolation: isolate; width: 100%; max-width: 500px; margin-left: auto; }
.frame { position: relative; isolation: isolate; }
.frame::before {
  content: ""; position: absolute; z-index: -1; inset: 16px -16px -16px 16px;
  background: var(--frame, var(--sun)); border: 2.5px solid var(--ink); border-radius: 38px; transform: rotate(2.5deg);
}
.frame img { width: 100%; aspect-ratio: var(--ratio, 4 / 5); object-fit: cover; border: 2.5px solid var(--ink); border-radius: 38px; background: var(--bg-2); }
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--pop-sm);
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; }
.float-chip.c1 { top: 8%; left: -7%; transform: rotate(-4deg); animation-delay: -1s; }
.float-chip.c2 { top: 46%; right: -9%; transform: rotate(3deg); animation-delay: -2.5s; }
.float-chip.c3 { bottom: 7%; left: -4%; transform: rotate(-2deg); animation-delay: -3.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; margin: 18px auto 0; }
  .float-chip { font-size: 0.82rem; padding: 7px 12px; }
  .float-chip.c1 { left: -8px; }
  .float-chip.c2 { right: -8px; }
  .float-chip.c3 { left: -8px; }
}

/* ---------- Mood tiles ---------- */
.moods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.mood {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px;
  background: var(--c-soft); border: 2px solid var(--ink); border-radius: 22px;
  color: var(--ink); text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mood:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.ico { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--c, var(--sun)); display: grid; place-items: center; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.ico svg { width: 22px; height: 22px; }
.mood .ico { margin-bottom: 10px; }
.mood b { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.2; letter-spacing: -0.01em; }
.mood span { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }

/* ---------- Idea of the week (feature) ---------- */
.feature {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: var(--c-soft); border: 2.5px solid var(--ink); border-radius: 34px; box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden; color: var(--ink); text-decoration: none;
}
.feature-art { position: relative; border-right: 2.5px solid var(--ink); background: var(--c-soft); min-height: 340px; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-art .sticker { position: absolute; top: 22px; left: 22px; font-size: 0.9rem; z-index: 1; }
.feature-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--surface); }
.feature-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.feature-body p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { border-right: 0; border-bottom: 2.5px solid var(--ink); }
  .feature-art { min-height: 0; aspect-ratio: 4 / 3; }
}

.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; padding: 9px 14px; line-height: 1.25; }
.fact small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fact b { font-family: var(--font-head); font-size: 1.08rem; letter-spacing: -0.01em; }
.feature-body .fact { background: var(--bg); }

/* ---------- Idea cards ---------- */
.ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 960px) { .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ideas-grid { grid-template-columns: 1fr; gap: 22px; } }
.idea-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: popIn 0.5s ease both; animation-delay: calc(var(--i, 0) * 70ms);
}
.idea-card:hover { transform: translate(-4px, -4px) rotate(-0.5deg); box-shadow: var(--pop); color: var(--ink); }
.idea-art { position: relative; aspect-ratio: 4 / 3; background: var(--c-soft); border-bottom: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.idea-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.idea-card:hover .idea-art img { transform: scale(1.05); }
.idea-art .sticker { position: absolute; top: 14px; left: 14px; z-index: 1; }
.idea-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.idea-body h3 { margin: 0; font-size: 1.28rem; }
.idea-body p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.idea-body .tags { margin-top: auto; padding-top: 10px; }
.read-more { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- "How every idea works" ---------- */
.explain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .explain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .explain { grid-template-columns: 1fr; } }
.explain-card { background: var(--c-soft); border: 2px solid var(--ink); border-radius: 22px; padding: 22px; }
.explain-card .ico { margin-bottom: 14px; background: #fff; }
.explain-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.explain-card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.promise-note { margin: 30px auto 0; max-width: 680px; text-align: center; font-weight: 600; color: var(--ink-2); }

/* ---------- Tool cards ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.tool-card .idea-art { aspect-ratio: 16 / 10; }

.tool-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tool-body h3 { margin: 0; }
.tool-body p { margin: 0; color: var(--ink-2); }
.tool-body .btn-row { margin-top: auto; padding-top: 8px; }
.list-ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.95rem; }
.list-ticks li { display: flex; gap: 8px; }
.list-ticks li::before { content: "✓"; font-weight: 800; color: var(--good); }

/* ---------- Video cards ---------- */
.video-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 20px; background: var(--c-soft); overflow: hidden; display: grid; place-items: center; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.video-card:hover .video-thumb { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { color: var(--sun); z-index: 1; position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--sun); }
.play svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--sun); }
.video-thumb .sticker { position: absolute; top: 12px; left: 12px; z-index: 1; }
.video-card h3 { font-size: 1.1rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--coral); border: 2.5px solid var(--ink); border-radius: 34px; box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(28px, 5vw, 52px); position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band p { margin: 0 0 22px; font-size: 1.12rem; font-weight: 500; }
.cta-band .frame { width: clamp(220px, 26vw, 320px); --ratio: 4 / 3; --frame: var(--sun); margin: 0 16px 16px 0; }
.cta-band .frame img, .cta-band .frame::before { border-radius: 24px; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } .cta-band .frame { justify-self: center; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-art { max-width: 480px; --ratio: 4 / 3; --frame: var(--lilac); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-art { max-width: 420px; margin: 0 16px 16px 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 2px 22px; }
.faq details[open] { box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-head::before { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; border-radius: 50%; background: var(--sun); filter: blur(70px); opacity: 0.4; top: -220px; right: -80px; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Library filters ---------- */
.filters { display: grid; gap: 16px; margin-bottom: 30px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tab:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-sm); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--hair); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.search {
  display: flex; align-items: center; gap: 10px; min-width: 260px; flex: 0 1 360px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px;
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 9px 0; width: 100%; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--surface); }
.empty .ico { margin: 0 auto 12px; }

/* ---------- Idea page ---------- */
.idea-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-soft); border-bottom: 2.5px solid var(--ink); padding: clamp(28px, 4vw, 44px) 0 clamp(44px, 6vw, 72px); }
.idea-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.crumbs { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--ink); font-weight: 600; }
.idea-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); margin: 18px 0 14px; }
.idea-hero .lead { margin-bottom: 24px; }
.idea-hero-art { width: 100%; max-width: 460px; margin-left: auto; --ratio: 4 / 3; --frame: var(--c); }
@media (max-width: 860px) {
  .idea-hero-grid { grid-template-columns: 1fr; }
  .idea-hero-art { max-width: 420px; margin: 0 16px 16px 0; }
}

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 56px); align-items: start; padding: clamp(40px, 6vw, 64px) 0; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .side-card { position: static; order: -1; } }
.article section { margin-bottom: 46px; }
.article h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.article h2 .ico { background: var(--c-soft); }
.article p { color: var(--ink-2); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1.04rem; }
.checks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; color: var(--ink); margin-top: 1px; }
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .need-grid { grid-template-columns: 1fr; } }
.need { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.need::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 26px 62px; color: var(--ink-2); font-size: 1.04rem; min-height: 72px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem;
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; border-left: 2px dashed var(--ink); opacity: 0.35; }
.steps li:last-child::after { display: none; }
.warns { display: grid; gap: 12px; }
.warn { background: var(--coral-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 13px 16px; display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.warn::before { content: "!"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; line-height: 1; }
.rules { display: grid; gap: 10px; }
.rule { background: var(--sky-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 13px 16px; display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.rule::before { content: "i"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; line-height: 1; font-style: italic; font-family: Georgia, serif; }
.rule a { font-weight: 700; white-space: nowrap; }
.note { background: var(--sun-soft); border: 2px dashed var(--ink); border-radius: 16px; padding: 14px 18px; font-size: 0.95rem; color: var(--ink-2); }

.side-card { position: sticky; top: 96px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); padding: 24px; }
.side-card h3 { margin-bottom: 14px; }
.glance { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 0; }
.glance li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--hair); font-size: 0.97rem; }
.glance li:last-child { border-bottom: 0; }
.glance span { color: var(--muted); font-weight: 600; }
.glance b { text-align: right; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc-results { position: static !important; } }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); padding: 26px; }
.calc-results { position: sticky; top: 96px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
legend .num { width: 32px; height: 32px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 540px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.input-wrap { display: flex; align-items: center; background: var(--bg); border: 2px solid var(--hair); border-radius: 14px; }
.input-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
.input-wrap span { padding: 0 0 0 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.input-wrap span.suffix { padding: 0 12px 0 0; }
.input-wrap input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 11px 12px; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.toggle { display: flex; gap: 10px; }
.toggle label { flex: 1; display: flex; align-items: center; gap: 8px; border: 2px solid var(--hair); border-radius: 14px; padding: 10px 14px; cursor: pointer; font-weight: 600; background: var(--bg); }
.toggle input { accent-color: var(--ink); }
.toggle label:has(input:checked) { border-color: var(--ink); background: var(--sun-soft); }
.big-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; margin: 4px 0 6px; }
.verdict { border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0 18px; background: var(--bg-2); }
.verdict strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.verdict span { color: var(--ink-2); font-size: 0.95rem; }
.verdict.good { background: var(--mint-soft); }
.verdict.warn { background: var(--sun-soft); }
.verdict.bad { background: var(--coral-soft); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--bg); border: 1.5px solid var(--hair); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.12rem; }
.stat span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.stat.good b { color: var(--good); }
.stat.warn b { color: var(--warn); }
.stat.bad b { color: var(--bad); }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { text-align: left; padding: 9px 6px; border-bottom: 1.5px dashed var(--hair); vertical-align: top; }
.table th { font-weight: 500; color: var(--ink-2); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table tr.total td, .table tr.total th { font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--ink); }
.calc-tag { display: inline-flex; margin-bottom: 20px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 248, 238, 0.86); padding: 56px 0 30px; margin-top: 0; }
.site-footer a { color: rgba(255, 248, 238, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: var(--sun); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text small { color: rgba(255, 248, 238, 0.6); }
.site-footer .logo-mark { box-shadow: 2px 2px 0 var(--coral); }
.footer-note { max-width: 36ch; margin-top: 16px; font-size: 0.95rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1.5px solid rgba(255, 248, 238, 0.16); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.85rem; color: rgba(255, 248, 238, 0.62); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Icon sizes inside components ---------- */
.btn svg { width: 18px; height: 18px; flex: none; }
.tag svg { width: 15px; height: 15px; flex: none; }
.sticker svg { width: 15px; height: 15px; flex: none; }
.tab svg { width: 18px; height: 18px; flex: none; }
.kicker svg { width: 17px; height: 17px; }
.search span[data-icon] { display: inline-grid; }
.tool-body > .ico { margin-bottom: 4px; }

/* ---------- Toast ("coming soon" messages) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--sun); padding: 12px 20px; font-weight: 600; text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Compact tags on idea cards ---------- */
.idea-body .tags { gap: 6px; }
.idea-body .tag { font-size: 0.8rem; padding: 4px 9px; gap: 5px; }
.idea-body .tag svg { width: 14px; height: 14px; }
