/* =========================================================
   MellowShaders.com — "Painter's Sketchbook" design
   Simple, readable CSS. Edit the variables in section 2 and
   the whole site follows. No build step: edit and upload.
   ========================================================= */

/* ---------- 1. Fonts (self-hosted Poppins) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- 2. Settings you can edit ---------- */
:root {
  /* Colors */
  --orchid: #B8338A;        /* main brand color (links, buttons) */
  --orchid-dark: #8A1F66;   /* hover */
  --orchid-soft: #FBE3F1;   /* pink tint */
  --leaf: #4E7D2C;          /* green accent */
  --leaf-dark: #2F5418;     /* download band */
  --leaf-soft: #E6F1DA;
  --sun: #FFC72C;           /* yellow accent */
  --peach: #FFB37A;
  --peach-soft: #FFEBD6;
  --paper: #FFF8EE;         /* page background */
  --paper-2: #FBEFDD;       /* alternate background */
  --white: #FFFFFF;
  --ink: #2B2130;           /* headings */
  --text: #4D4350;          /* body text */
  --muted: #75697A;
  --line: #EADBC8;          /* borders */
  --ok: #3F7A22;            /* "supported" */
  --no: #A3245B;            /* "not supported" */

  /* Text sizes */
  --hero-h1-size: 3.2rem;   /* hero title on desktop */
  --hero-h1-mobile: 2rem;   /* hero title on phones */
  --h2-size: 2.3rem;
  --body-size: 1.0625rem;

  /* Layout */
  --container: 1140px;
  --radius: 22px;
  --header-h: 80px;
  --paper-shadow: 0 2px 0 rgba(43, 33, 48, .06), 0 16px 30px -18px rgba(43, 33, 48, .35);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: var(--body-size); line-height: 1.75;
  color: var(--text); overflow-wrap: break-word;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(184, 51, 138, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orchid); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--orchid-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: var(--h2-size); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--orchid-soft); color: var(--orchid-dark); padding: .1em .45em; border-radius: 6px; }
kbd { border-bottom: 2px solid #E9B9D6; }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font: 600 1rem/1 "Poppins", sans-serif; text-decoration: none; padding: .95em 1.5em; border-radius: 16px 22px 14px 24px; border: 2px solid var(--ink); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-big { font-size: 1.05rem; padding: 1.05em 1.75em; }
.btn-paint { background: var(--sun); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-paint:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); background: #FFD45C; }
.btn-paint:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-line { background: var(--white); color: var(--ink); }
.btn-line:hover { background: var(--orchid-soft); color: var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--sun); }
.btn-ink:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--sun); }
.btn-paint svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(3px); } 90% { transform: translateY(-1px); } }

/* ---------- 5. Header (logo left, menu right) ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); }
.header-row { position: relative; display: flex; align-items: center; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.logo img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink); transform: rotate(-4deg); transition: transform .3s; }
.logo:hover img { transform: rotate(4deg) scale(1.06); }
.logo:hover { color: var(--orchid); }
.header-row { justify-content: space-between; gap: 20px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 13px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; transition: background .2s, transform .2s; }
.nav a:hover { background: var(--orchid-soft); transform: rotate(-2deg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); }
.brushline { display: block; width: 100%; height: 12px; }
.brushline path { fill: none; stroke: var(--orchid); stroke-width: 3; stroke-dasharray: 26 14; animation: flow 6s linear infinite; opacity: .6; }
@keyframes flow { to { stroke-dashoffset: -400; } }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 14px 18px 12px 18px; background: var(--sun); cursor: pointer; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink); }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle i { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 6. Shared section pieces ---------- */
.section { padding: 100px 0; }
.band-paper { background: var(--paper-2); }
.band-blush { background: linear-gradient(180deg, var(--orchid-soft), var(--peach-soft)); }
.band-leaf { background: var(--leaf-dark); color: #E9F2DF; }
.label-tag { display: inline-block; position: relative; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 4px 12px; margin-bottom: 14px; transform: rotate(-2deg); z-index: 0; }
.label-tag::before { content: ""; position: absolute; inset: 0; background: var(--sun); border-radius: 4px 12px 6px 14px; z-index: -1; }
.label-tag.light::before { background: var(--peach); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { font-size: 1.06rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.aside-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; padding: 20px 24px; background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); }
.aside-note svg { width: 28px; height: 28px; flex: none; color: var(--orchid); margin-top: 2px; }
.note-text { margin-top: 26px; max-width: 860px; }

/* Scroll reveal (only with JavaScript) */
.js .reveal { opacity: 0; transform: translateY(24px) rotate(-.6deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.show { opacity: 1; transform: none; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.blobs .blob { position: absolute; z-index: -1; filter: blur(2px); opacity: .85; animation: morph 14s ease-in-out infinite; }
.b1 { width: 460px; height: 420px; left: -120px; top: 30px; background: var(--orchid-soft); }
.b2 { width: 380px; height: 360px; right: -80px; top: -40px; background: var(--peach-soft); animation-delay: -4s; }
.b3 { width: 300px; height: 280px; left: 30%; bottom: -200px; background: var(--leaf-soft); animation-delay: -8s; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0); }
  33% { border-radius: 63% 37% 41% 59% / 58% 62% 38% 42%; transform: rotate(8deg) scale(1.04); }
  66% { border-radius: 38% 62% 55% 45% / 61% 35% 65% 39%; transform: rotate(-6deg) scale(.97); }
}
.petals i { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 2px; background: #F7A8D2; opacity: 0; animation: fall 12s linear infinite; }
.petals i:nth-child(2n) { background: var(--sun); width: 8px; height: 8px; }
.petals i:nth-child(3n) { background: #BFE19A; }
.petals i:nth-child(1) { left: 6%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 18%; animation-delay: 3s; }
.petals i:nth-child(3) { left: 33%; animation-delay: 6.5s; }
.petals i:nth-child(4) { left: 52%; animation-delay: 1.5s; }
.petals i:nth-child(5) { left: 67%; animation-delay: 8s; }
.petals i:nth-child(6) { left: 81%; animation-delay: 4.5s; }
.petals i:nth-child(7) { left: 94%; animation-delay: 10s; }
@keyframes fall { 5% { opacity: .9; } 85% { opacity: .8; } 100% { transform: translate(-60px, 700px) rotate(540deg); opacity: 0; } }

.hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.polaroid { position: relative; margin: 0; background: var(--white); padding: 16px 16px 14px; border-radius: 6px; box-shadow: var(--paper-shadow); transform: rotate(-4deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-10px); } }
.polaroid img { width: 100%; border-radius: 3px; image-rendering: auto; }
.polaroid figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.tape { position: absolute; width: 110px; height: 30px; background: rgba(255, 199, 44, .6); border-left: 2px dashed rgba(255,255,255,.6); border-right: 2px dashed rgba(255,255,255,.6); }
.tape.t1 { top: -14px; left: -24px; transform: rotate(-30deg); }
.tape.t2 { top: -10px; right: -30px; transform: rotate(32deg); background: rgba(184, 51, 138, .35); }
.hello { display: inline-block; font-weight: 600; color: var(--leaf-dark); background: var(--leaf-soft); padding: 6px 14px; border-radius: 30px 30px 30px 6px; margin-bottom: 18px; }
.hero h1 { font-size: var(--hero-h1-size); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.brush { position: relative; display: inline-block; color: var(--orchid); white-space: nowrap; }
.brush svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 18px; overflow: visible; }
.brush path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: 1.08rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0 32px; }
.dabs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0; }
.dabs li { display: grid; gap: 0; position: relative; padding-left: 0; }
.dab { width: 30px; height: 26px; margin-bottom: 6px; border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; animation: morph 9s ease-in-out infinite; }
.d1 { background: var(--orchid); } .d2 { background: var(--sun); animation-delay: -2s; } .d3 { background: var(--leaf); animation-delay: -4s; } .d4 { background: var(--peach); animation-delay: -6s; }
.dabs b { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.dabs small { color: var(--muted); font-size: .8rem; }

/* ---------- 8. Features sketchbook strip ---------- */
.strip { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px max(22px, calc((100vw - var(--container)) / 2 + 22px)) 40px; scrollbar-width: thin; scrollbar-color: var(--orchid) transparent; }
.strip:focus-visible { outline-offset: -6px; }
.note { flex: 0 0 300px; scroll-snap-align: start; background: var(--white); border-radius: 8px; padding: 30px 26px 28px; box-shadow: var(--paper-shadow); position: relative; transition: rotate .35s, translate .35s, opacity .7s; background-image: repeating-linear-gradient(transparent 0 31px, #F7EEE3 31px 32px); background-position: 0 128px; background-repeat: no-repeat; background-size: 100% calc(100% - 128px); }
.note:nth-child(odd) { rotate: -1.6deg; }
.note:nth-child(even) { rotate: 1.4deg; translate: 0 10px; }
.note:hover { rotate: 0deg; translate: 0 -8px; }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--orchid); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2); }
.note:nth-child(3n+2)::before { background: var(--leaf); }
.note:nth-child(3n)::before { background: var(--sun); }
.note-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: var(--orchid-soft); color: var(--orchid-dark); margin-bottom: 14px; }
.note:nth-child(3n+2) .note-icon { background: var(--leaf-soft); color: var(--leaf-dark); }
.note:nth-child(3n) .note-icon { background: var(--peach-soft); color: #8A4A12; }
.note-icon svg { width: 28px; height: 28px; }
.note p { margin: 0; font-size: .96rem; line-height: 2; }
.strip-hint { margin-top: -18px; font-weight: 600; color: var(--orchid); font-size: .9rem; }
.strip-hint span { display: inline-block; animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateX(10px); } }

/* ---------- 9. Download (rotating ring + spec) ---------- */
.dl-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.ring { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 50%; }
.ring svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.ring text { font: 700 14px "Poppins", sans-serif; letter-spacing: 2.4px; fill: var(--sun); }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-core { position: absolute; inset: 22%; display: grid; place-content: center; text-align: center; background: var(--orchid); color: #fff; border-radius: 48% 52% 46% 54% / 54% 46% 54% 46%; box-shadow: 8px 8px 0 var(--sun); animation: morph 10s ease-in-out infinite; }
.ring-core b { font-size: 4rem; line-height: 1; font-weight: 800; }
.ring-core small { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; }
.dl-info h2 { color: #fff; }
.dl-info p { color: #DDEBCF; }
.dl-note { font-size: .88rem; margin-top: 16px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 0; }
.spec div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; }
.spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #BFD6A8; }
.spec dd { margin: 0; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.4; }

/* ---------- 10. Pinboard (how to download) ---------- */
.board { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.sticky { position: relative; padding: 34px 20px 24px; border-radius: 4px; box-shadow: var(--paper-shadow); transition: transform .3s; }
.sticky { transition: rotate .3s, scale .3s, opacity .7s, transform .7s; }
.sticky:nth-child(1) { background: #FFF1B8; rotate: -2deg; }
.sticky:nth-child(2) { background: #FBD9EC; rotate: 1.5deg; translate: 0 14px; }
.sticky:nth-child(3) { background: #DDEFCB; rotate: -1deg; }
.sticky:nth-child(4) { background: #FFE0C4; rotate: 2deg; translate: 0 14px; }
.sticky:nth-child(5) { background: #FFF1B8; rotate: -1.5deg; }
.sticky:hover { rotate: 0deg; scale: 1.03; z-index: 2; }
.sticky .tape { top: -12px; left: 50%; width: 80px; height: 24px; margin-left: -40px; transform: rotate(-4deg); background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.06); }
.num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--orchid); margin-bottom: 8px; }
.sticky h3 { font-size: 1.02rem; }
.sticky p { margin: 0; font-size: .93rem; line-height: 1.6; }

/* ---------- 11. What it does ---------- */
.big-quote { margin: 0 0 56px; text-align: center; }
.big-quote p { font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); margin: 0 0 10px; }
.big-quote p::first-letter { color: var(--orchid); }
.big-quote cite { font-style: normal; color: var(--muted); font-weight: 500; }
.what-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; align-items: start; }
.what-grid > * { min-width: 0; }
.tubes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.tubes li { display: flex; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--paper-shadow); }
.tubes h3 { margin: 0 0 2px; font-size: 1.02rem; }
.tubes p { margin: 0; font-size: .93rem; line-height: 1.6; }
.tube { flex: none; position: relative; width: 22px; height: 64px; border-radius: 6px 6px 12px 12px; }
.tube::before { content: ""; position: absolute; top: -10px; left: 5px; width: 12px; height: 12px; background: var(--ink); border-radius: 3px; }
.t-a { background: var(--orchid); } .t-b { background: var(--leaf); } .t-c { background: var(--sun); }
.tubes li:hover .tube { animation: squeeze .6s ease; }
@keyframes squeeze { 50% { transform: scaleY(.85) scaleX(1.12); } }

/* ---------- 12. Installation ---------- */
.install-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 50px; align-items: start; }
.install-grid > * { min-width: 0; }
.flow { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.flow li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 2px dotted var(--line); }
.flow b { flex: none; display: grid; place-items: center; width: 48px; height: 46px; font-size: 1.2rem; font-weight: 800; color: #fff; background: var(--orchid); border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; }
.flow li:nth-child(even) b { background: var(--leaf); }
.flow h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.flow p { margin: 0; }
.after-flow { margin-top: 22px; }
.side-card { background: var(--paper-2); border: 2px dashed var(--orchid); border-radius: var(--radius); padding: 28px; transform: rotate(1deg); position: sticky; top: calc(var(--header-h) + 30px); }
.side-card h3 { font-size: 1.1rem; }
.side-card ul { padding-left: 1.1em; }
.side-card p:last-child { margin: 0; font-weight: 600; }

/* ---------- 13. Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--paper-shadow); }
table.swatch, table.data { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.swatch th, .swatch td, .data th, .data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.swatch thead th, .data thead th { background: var(--orchid-soft); color: var(--ink); font-weight: 700; }
.swatch tbody tr:last-child > *, .data tbody tr:last-child > * { border-bottom: 0; }
.swatch tbody th { color: var(--ink); font-weight: 600; border-left: 6px solid transparent; }
.swatch tr.ok th { border-left-color: var(--leaf); }
.swatch tr.maybe th { border-left-color: var(--sun); }
.swatch tr.no th { border-left-color: var(--no); }
.swatch tbody td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.swatch tr.ok td:nth-child(2) { color: var(--ok); }
.swatch tr.maybe td:nth-child(2) { color: #7A5300; }
.swatch tr.no td:nth-child(2) { color: var(--no); }
.swatch tbody tr { transition: background .2s; }
.swatch tbody tr:hover { background: #FFFBF3; }

.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.profiles div { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--paper-shadow); }
.profiles span { font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.profiles i { display: block; height: 12px; margin: 10px 0 8px; border-radius: 12px; background: linear-gradient(90deg, var(--leaf), var(--sun), var(--orchid)); width: var(--w); }
.js .profiles i { width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.js .profiles.show i { width: var(--w); }
.profiles small { color: var(--muted); font-size: .86rem; }

/* ---------- 14. Pros and cons (balance) ---------- */
.balance { max-width: 380px; margin: -10px auto 30px; }
.balance svg { width: 100%; height: auto; }
.balance .beam { transform-origin: 200px 42px; animation: tilt 5s ease-in-out infinite; }
.balance rect, .balance path { fill: var(--ink); }
.pan-good { fill: var(--leaf); } .pan-bad { fill: var(--orchid); }
@keyframes tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pc { border-radius: 30px 30px 30px 8px; padding: 30px; }
.pc.good { background: var(--leaf-soft); }
.pc.bad { background: var(--orchid-soft); border-radius: 30px 30px 8px 30px; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { display: flex; gap: 12px; padding: 9px 0; }
.pc li svg { width: 24px; height: 24px; flex: none; margin-top: 3px; padding: 4px; border-radius: 50%; background: var(--white); }
.pc.good svg { color: var(--ok); } .pc.bad svg { color: var(--no); }

/* ---------- 15. Comparison cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--paper-shadow); border: 2px solid transparent; transition: transform .3s; }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card.us { border-color: var(--orchid); background: linear-gradient(180deg, var(--orchid-soft), var(--white) 40%); }
.card h3 { padding-bottom: 12px; border-bottom: 2px dotted var(--line); }
.card dl { margin: 0; }
.card dl div { padding: 8px 0; }
.card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .94rem; line-height: 1.45; }
.unk { display: inline-block; font-size: .8rem; background: #FFF0C2; color: #7A5300; padding: 2px 9px; border-radius: 20px; }

/* ---------- 16. Troubleshooting (symptom → fix) ---------- */
.rx { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rx li { display: grid; grid-template-columns: 290px 1fr; gap: 34px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--paper-shadow); position: relative; }
.sym { font-weight: 700; color: var(--ink); background: var(--orchid-soft); padding: 8px 14px; border-radius: 12px; position: relative; }
.sym::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: var(--orchid); font-weight: 800; }
.fix { font-size: .97rem; }

/* ---------- 17. Editorial perspectives ---------- */
.moods { display: grid; gap: 18px; }
.mood { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; background: var(--white); border-radius: 60px 22px 22px 60px; padding: 22px 30px; box-shadow: var(--paper-shadow); transition: transform .3s; }
.mood:hover { transform: translateX(8px); }
.mood h3 { margin: 0; padding-left: 26px; position: relative; }
.mood h3::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; }
.m1 h3::before { background: var(--orchid); } .m2 h3::before { background: var(--leaf); } .m3 h3::before { background: var(--sun); } .m4 h3::before { background: var(--peach); }
.mood p { margin: 0; }

/* ---------- 18. FAQ ---------- */
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq-split > * { min-width: 0; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border-radius: 18px; box-shadow: var(--paper-shadow); border: 2px solid transparent; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--sun); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: center; padding: 16px 20px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.q { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orchid-soft); color: var(--orchid-dark); font-weight: 800; transition: transform .3s, background .3s; }
.faq-list details[open] .q { background: var(--sun); color: var(--ink); transform: rotate(360deg); }
.answer { padding: 0 22px 18px 68px; }
.answer p { margin: 0; }

/* ---------- 19. Final CTA ---------- */
.splash { position: relative; overflow: hidden; padding: 110px 0; text-align: center; background: linear-gradient(120deg, var(--orchid) 0%, #D95B8F 45%, var(--peach) 100%); color: #fff; }
.splat { position: absolute; opacity: .35; animation: morph 12s ease-in-out infinite; }
.s1 { width: 280px; height: 260px; left: -60px; top: -60px; background: var(--sun); }
.s2 { width: 220px; height: 220px; right: 8%; bottom: -80px; background: #BFE19A; animation-delay: -5s; }
.s3 { width: 140px; height: 140px; right: 30%; top: 20px; background: #fff; animation-delay: -9s; }
.splash-inner { position: relative; }
.splash h2 { color: #fff; font-size: 2.8rem; }
.splash p { max-width: 640px; margin: 0 auto 28px; }
.splash .small { font-size: .88rem; margin-top: 22px; }

/* ---------- 20. Footer (light paper) ---------- */
.footer { background: var(--paper-2); padding-top: 30px; border-top: 2px dashed var(--line); }
.footer-word { margin: 0; font-size: clamp(4rem, 17vw, 13rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 2px var(--orchid); background: linear-gradient(90deg, transparent 0 40%, rgba(255,199,44,.55) 50%, transparent 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 7s linear infinite; user-select: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-top: 30px; }
.footer .logo { margin-bottom: 14px; }
.footer .logo img { width: 56px; height: 56px; }
.footer-brand p { font-size: .95rem; }
.footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; color: var(--orchid-dark); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--orchid); text-decoration: underline; }
.footer-note { margin: 36px 0 0; padding: 18px 0; border-top: 2px dotted var(--line); font-size: .9rem; color: var(--text); }
.footer-bottom { text-align: center; padding: 18px 22px; background: var(--ink); color: #E8DEE9; font-size: .9rem; }
.footer-bottom a { color: var(--sun); font-weight: 600; }

/* ---------- 21. Inner pages ---------- */
.page-top { padding: 54px 0 40px; background: linear-gradient(180deg, var(--orchid-soft), transparent); }
.page-top h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; max-width: 900px; }
.page-top > .container > p { font-size: 1.08rem; max-width: 760px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .88rem; }
.crumbs li:not(:last-child)::after { content: "✿"; margin-left: 6px; color: var(--orchid); font-size: .7rem; }
.crumbs li[aria-current] { color: var(--muted); }
.label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--sun); color: var(--ink); padding: 4px 12px; border-radius: 4px 12px 6px 14px; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.page-top + .section { padding-top: 40px; }
.content { max-width: 800px; min-width: 0; }
.content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.content h3 { margin-top: 1.3em; }
.content li { margin-bottom: 6px; }
.content .table-wrap { margin: 1.2em 0 1.6em; }
.cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--paper-shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.article-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--paper-shadow); }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orchid-dark); }
.toc ol { padding-left: 1.1em; margin: 0 0 18px; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc .btn { width: 100%; justify-content: center; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--leaf-dark); }
.end-cta h2 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.end-cta p { margin: 0; color: #DDEBCF; }
.related { margin-top: 70px; }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.guide-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--paper-shadow); transition: transform .3s; }
.guide-card:nth-child(odd):hover { transform: translateY(-6px) rotate(-1deg); }
.guide-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.guide-card .body { padding: 20px 22px 24px; }
.guide-card .cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.guide-card h2, .guide-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover, .guide-card h3 a:hover { color: var(--orchid); }
.guide-card p { font-size: .94rem; margin: 0; }
.cols, .map-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.map-cols { grid-template-columns: repeat(3, 1fr); }
.cols > div { background: var(--white); border-radius: 18px; padding: 20px; box-shadow: var(--paper-shadow); }
.cols h3 { margin-top: 0; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.mail-link svg { width: 26px; height: 26px; flex: none; }
.error-page { text-align: center; padding: 80px 22px; }
.error-page img { width: 130px; margin: 0 auto 10px; border-radius: 20px; animation: bob 5s ease-in-out infinite; }
.error-page .big { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--orchid); margin: 0; }
.error-page .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* ---------- 22. Tablet (960px and below) ---------- */
@media (max-width: 960px) {
  :root { --h2-size: 1.95rem; --header-h: 70px; }
  .menu-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: 100%; flex-direction: column; background: var(--paper); border-bottom: 3px solid var(--orchid); box-shadow: 0 24px 30px -22px rgba(0,0,0,.35); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s; }
  .js .nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .js .nav ul { flex-direction: column; padding: 0 24px; gap: 0; }
  .js .nav ul:first-child { padding-top: 10px; }
  .js .nav ul:last-child { padding-bottom: 18px; }
  .js .nav a { padding: 13px 6px; border-bottom: 1px dotted var(--line); border-radius: 0; font-size: 1rem; }
  .js .nav a:hover { transform: none; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-row { flex-wrap: wrap; padding: 10px 0; }
  .no-js .nav { flex-wrap: wrap; justify-content: flex-start; }
  .no-js .nav ul { flex-wrap: wrap; }
  .hero-grid, .dl-wrap, .what-grid, .install-grid, .faq-split { grid-template-columns: 1fr; }
  .polaroid { max-width: 340px; margin: 10px auto 0; }
  .hero-copy { order: -1; }
  .hero h1 { font-size: 2.6rem; }
  .ring { max-width: 300px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .sticky:nth-child(n) { rotate: -1deg; translate: none; }
  .sticky:nth-child(even) { rotate: 1deg; }
  .side-card, .faq-intro { position: static; }
  .profiles { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .rx li { grid-template-columns: 1fr; gap: 10px; }
  .sym::after { display: none; }
  .mood { grid-template-columns: 1fr; gap: 8px; border-radius: 30px 22px 22px 30px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .guides { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 23. Phone (640px and below) ---------- */
@media (max-width: 640px) {
  :root { --h2-size: 1.65rem; --body-size: 1rem; }
  .section { padding: 66px 0; }
  .container { padding: 0 18px; }
  .logo { font-size: 1.05rem; gap: 10px; }
  .logo img { width: 40px; height: 40px; }
  .hero { padding: 40px 0 60px; }
  .hero h1 { font-size: var(--hero-h1-mobile); }
  .brush { white-space: normal; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .dabs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .polaroid { padding: 10px 10px 8px; }
  .note { flex-basis: 260px; }
  .spec { grid-template-columns: 1fr; }
  .dl-info .btn { width: 100%; justify-content: center; }
  .board { grid-template-columns: 1fr; }
  .pc-cols, .cards, .cols, .map-cols, .guides { grid-template-columns: 1fr; }
  .pc { padding: 24px 20px; }
  .answer { padding: 0 18px 16px 18px; }
  .splash { padding: 80px 0; }
  .splash h2 { font-size: 2rem; }
  .splash .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-top h1 { font-size: 1.9rem; }
  .end-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .profiles i { width: var(--w); }
  .brush path { stroke-dashoffset: 0; }
  .petals { display: none; }
}
