/* Find My Shape: soft cards, a warm paper background and one accent colour per section
   (rose = women, blue = men, teal = face). The accent comes from body[data-sec] or a card's own data-sec. */
:root {
  --bg: #FBF9F6;
  --paper: #FFFFFF;
  --ink: #1A1A3D;
  --slate: #5A5E7E;
  --line: #E9E4DB;
  --tape: #F6C945;
  --danger: #B42318;
  --shadow: 0 1px 2px rgba(26, 26, 61, .05), 0 8px 24px rgba(26, 26, 61, .07);
  --shadow-lift: 0 2px 4px rgba(26, 26, 61, .06), 0 16px 40px rgba(26, 26, 61, .13);
  --radius: 22px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* neutral accent (landing, about, privacy) */
  --accent: #4B3FD1; --accent-soft: #EEECFC; --accent-ink: #322A9E; --fig-a: #7B6DF0; --fig-b: #3A2FB8;
}
[data-sec="women"] { --accent: #C0304F; --accent-soft: #FCE8EC; --accent-ink: #8C1C38; --fig-a: #F2708C; --fig-b: #B22850; }
[data-sec="men"]   { --accent: #2657D6; --accent-soft: #E7EEFD; --accent-ink: #163A99; --fig-a: #6C97FF; --fig-b: #1F44B0; }
[data-sec="face"]  { --accent: #0B7A67; --accent-soft: #DEF4EE; --accent-ink: #065446; --fig-a: #3FCDAE; --fig-b: #0A7563; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 1.05rem; line-height: 1.7;
}
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; font-weight: 700; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.arrow { flex: none; vertical-align: -3px; margin-left: .35rem; transition: transform .15s; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 246, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.logo { border-radius: 10px; box-shadow: 0 2px 6px rgba(246, 201, 69, .5); }
.bar nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.bar nav a { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--slate); padding: .4rem .9rem; border-radius: 999px; }
.bar nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.bar nav a.is-section, .bar nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2;
  background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px;
  padding: .85rem 1.6rem; margin-top: 1.1rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-quiet { background: transparent; color: var(--accent-ink); box-shadow: none; }
.btn-quiet:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- switcher (women / men / face) ---------- */
.switcher { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.switcher a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--slate); padding: .5rem 1.2rem; border-radius: 999px; }
.switcher a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.switcher a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- landing ---------- */
.landing {
  padding: 3.5rem 0 3rem; text-align: center;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(240, 112, 140, .18), transparent 70%),
    radial-gradient(600px 300px at 88% 0%, rgba(59, 108, 230, .16), transparent 70%),
    radial-gradient(500px 260px at 50% 30%, rgba(63, 205, 174, .14), transparent 70%);
}
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.landing h1 { font-size: clamp(2.7rem, 8vw, 5.2rem); line-height: 1.02; margin-bottom: 1rem; }
.hl { background: linear-gradient(90deg, #C0304F, #2657D6 55%, #0B7A67); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing .lede { margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 36em; }

.tool-cards { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.2rem; text-align: left; }
.tool-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tool-fig { display: flex; justify-content: center; align-items: flex-end; padding: 1.5rem 1rem 0; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, white)); height: 230px; }
.tool-fig svg { display: block; height: 100%; width: auto; max-width: 100%; }
.tool-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.tool-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.tool-text { color: var(--slate); font-size: .95rem; line-height: 1.5; }
.tool-cta { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; }
.tool-card:hover .arrow { transform: translateX(4px); }

.how { margin: 4rem 0 3rem; }
.how h2 { text-align: center; margin-bottom: 1.6rem; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.how-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.how-steps h3 { margin-bottom: .3rem; }
.how-steps p { margin: 0; color: var(--slate); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tape); color: var(--ink); font-weight: 800; margin-bottom: .7rem; }

.prose.explore-wrap { max-width: none; }
.explore-grid { display: grid; gap: 1.2rem; }
.explore { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.explore h3 { margin-bottom: .5rem; }
.explore .plain { margin-top: 1rem; font-size: .98rem; }
.explore .plain li { margin: .35rem 0; }

/* ---------- hero + calculator ---------- */
.hero { padding: 1.8rem 0 2.5rem; background: linear-gradient(180deg, var(--accent-soft), var(--bg) 85%); }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
.hero h1 { margin-bottom: .8rem; }
.hero-fig { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 1.2rem; box-shadow: var(--shadow); }
.hero-fig svg { display: block; width: 100%; max-width: 430px; height: auto; margin-inline: auto; }

.calc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 1.3rem; box-shadow: var(--shadow); margin-top: 1.4rem; }
.units { border: 0; padding: 0; margin: 0 0 1rem; display: inline-flex; background: var(--accent-soft); border-radius: 999px; padding: .25rem; }
.unit { position: relative; display: block; }
.unit input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.unit span { display: block; padding: .35rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--accent-ink); }
.unit input:checked + span { background: var(--paper); box-shadow: 0 1px 4px rgba(26, 26, 61, .18); }
.unit input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.measure { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; margin-bottom: .6rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color .15s, box-shadow .15s, background .15s; }
.measure:focus-within { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.measure-text label { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.hint { display: block; font-size: .86rem; color: var(--slate); line-height: 1.35; margin-top: .1rem; }
.measure-input { display: flex; align-items: baseline; gap: .35rem; flex: none; }
.measure input {
  width: 4.6ch; border: 0; background: transparent; text-align: right; padding: 0; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1.1;
  -moz-appearance: textfield; appearance: textfield;
}
.measure input:focus { outline: none; }
.measure input::placeholder { color: #CFCBC2; }
.measure input::-webkit-outer-spin-button, .measure input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit-label { font-weight: 600; color: var(--slate); min-width: 2.2ch; font-size: .95rem; }
.error { background: #FDECEA; border-radius: 12px; padding: .7rem 1rem; margin: .8rem 0 0; color: var(--danger); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.calc-card .btn { width: 100%; margin-top: .9rem; }

.photo-card { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--paper); border: 1.5px dashed var(--accent); border-radius: 20px; }
.photo-text { flex: 1 1 14rem; }
.photo-text strong { display: block; }
.photo-card .btn { margin: 0; padding: .6rem 1.2rem; }
.photo-card .btn:disabled { opacity: .6; cursor: progress; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-live { flex-basis: 100%; }
.photo-live[hidden] { display: none; }
.photo-frame { position: relative; max-width: 420px; margin-bottom: .8rem; border-radius: 18px; overflow: hidden; background: #111; }
.photo-frame video { display: block; width: 100%; height: auto; transform: scaleX(-1); }   /* mirrored preview, like a mirror */
.photo-guide { position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none; }
.photo-status { flex-basis: 100%; margin: 0; font-size: .92rem; color: var(--slate); }
.photo-status:empty { display: none; }
.photo-status.is-error { color: var(--danger); font-weight: 600; }

/* ---------- figure (mannequin) ---------- */
.fig-cap { fill: var(--fig-b); }
.fig-base { fill: rgba(26, 26, 61, .14); }
.fig-hair { fill: var(--fig-b); }
.fig-ear { fill: var(--fig-a); }
.fig-pole { stroke: #8A8DA8; stroke-width: 4; stroke-linecap: round; }
.fig-band { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.fig-lead { stroke: var(--slate); stroke-width: 1.2; stroke-dasharray: 2 3; }
.fig-dim { stroke: var(--ink); stroke-width: 1.8; }
.fig-key { font-family: var(--text); font-weight: 600; font-size: 15px; fill: var(--slate); }
.fig-val { font-weight: 800; font-size: 19px; fill: var(--ink); }
.is-idle .fig-body, .is-idle .fig-cap, .is-idle .fig-ear { fill: #DCD9EC; }
.is-idle .fig-hair { fill: #C4C0DC; }
.is-idle .fig-pole { stroke: #DCD9EC; }
.is-idle .fig-band { fill: var(--paper); stroke: #A9A6C2; }
.is-idle .fig-dim { stroke: #A9A6C2; }
.is-idle .fig-key { fill: #A9A6C2; }

/* ---------- result ---------- */
.result { background: linear-gradient(135deg, var(--accent-ink), var(--accent)); color: #fff; padding: 2.8rem 0 3.2rem; scroll-margin-top: 4rem; }
.result[hidden] { display: none; }
.result-inner h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; margin: 0; opacity: .92; }
.result h2:focus { outline: none; }
.result-shape { display: block; font-size: clamp(3rem, 11vw, 6.2rem); font-weight: 800; line-height: 1; color: #fff; margin-top: .3rem; letter-spacing: -.02em; }
.result-sum { font-size: 1.2rem; max-width: 34em; margin-top: 1rem; }
.ratios { list-style: none; padding: 0; margin: 0 0 1.2rem; font-weight: 600; }
.ratios li { margin: .3rem 0; padding-left: 1.4rem; position: relative; }
.ratios li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tape); }
.close-note { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: .9rem 1.1rem; max-width: 38em; }
.result h3 { margin-top: 1.5rem; }
.result a { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.result :focus-visible { outline-color: #fff; }
.result .chips a { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.result .chips a:hover { background: #fff; color: var(--accent-ink); }
.result .btn { background: #fff; color: var(--accent-ink); border-color: #fff; margin-right: .6rem; box-shadow: none; }
.result .btn:hover { background: transparent; color: #fff; }
.result .btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.result .btn-quiet:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

/* ---------- content ---------- */
.prose { max-width: 46rem; margin: 2.6rem 0; }
.prose h2 { margin-top: 0; }
.prose h3 { margin: 1.6rem 0 .25rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.plain, .inline-list, .chips, .guide-list, .hub-list, .type-list, .shape-grid, .cat-grid,
.prose .plain, .prose .inline-list, .prose .guide-list, .prose .cat-grid { list-style: none; padding: 0; }
.aka { color: var(--slate); font-size: .95rem; }
.fine { font-size: .88rem; color: var(--slate); }
.notice { background: #FFF4CC; border-radius: 12px; padding: .8rem 1rem; font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.6rem; margin: .6rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }

.rules { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1rem 0; font-size: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rules th, .rules td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules tbody tr:last-child th, .rules tbody tr:last-child td { border-bottom: 0; }
.rules thead th { background: var(--accent-soft); color: var(--accent-ink); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.rules tbody th { font-weight: 700; white-space: nowrap; }

.shapes-row { margin: 3rem 0; }
.shape-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.2rem 0 0; }
.shape-grid a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.shape-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.shape-tile { display: flex; justify-content: center; padding: 1.1rem 1rem 0; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, white)); }
.shape-grid svg { display: block; width: 100%; max-width: 120px; height: auto; }
.shape-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding: .9rem 1.1rem 0; }
.shape-sum { display: block; font-size: .92rem; line-height: 1.5; color: var(--slate); padding: .3rem 1.1rem 1.2rem; }

.cat-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1rem 0 0; max-width: none; }
.cat-grid a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.cat-grid a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.cat-grid a:hover .arrow { transform: translateX(3px); }
.prose:has(.cat-grid) { max-width: none; }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .88rem; font-weight: 500; }
.crumbs li + li::before { content: "\203A"; margin-right: .5rem; color: var(--slate); }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { text-decoration: underline; color: var(--accent-ink); }

.article { padding-block: 1.6rem 3rem; }
.article > h1 { max-width: 20em; }
.article-head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: .5rem; }
.article-head h1 { max-width: 16em; }
.shape-fig { margin: 0; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, white)); border-radius: 28px; padding: 1.2rem 1rem .4rem; }
.shape-fig svg { display: block; width: 100%; max-width: 300px; height: auto; margin-inline: auto; }
.shape-fig.small svg { max-width: 150px; }

.pair { display: grid; gap: 1.2rem; margin: 2.5rem 0; max-width: 62rem; }
.pair section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem 1.1rem; box-shadow: var(--shadow); }
.pair section h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.pair section h2::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--text); font-size: .95rem; font-weight: 800; flex: none; }
.pair .pair-no h2::before { content: "!"; background: #F4B740; color: var(--ink); }
.pair ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.pair li { position: relative; padding-left: 1.5rem; margin: .7rem 0; }
.pair li::before { content: ""; position: absolute; left: .1rem; top: .68em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.pair .pair-no li::before { background: #F4B740; }

.tip { max-width: 46rem; background: var(--accent-soft); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2rem 0; }
.tip h2 { font-family: var(--text); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .3rem; }
.tip p { margin: 0; font-size: 1.1rem; }

.guide-list { display: grid; gap: .8rem; margin: 1rem 0 0; }
.guide-list a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.guide-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.guide-list strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--accent-ink); }
.guide-list span { display: block; color: var(--slate); margin-top: .2rem; font-size: .96rem; line-height: 1.5; }
.prose:has(.guide-list) { max-width: 62rem; }

.inline-list, .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.inline-list a, .chips a { display: inline-block; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--ink); }
.inline-list a:hover, .chips a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.hub-list, .type-list { display: grid; gap: 1rem; margin: 1.6rem 0 0; }
.hub-row, .type-row { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); align-items: start; }
.hub-fig, .type-fig { background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, white)); border-radius: 16px; padding: .6rem .5rem 0; }
.hub-fig svg, .type-fig svg { display: block; width: 100%; height: auto; }
.hub-row h2, .type-row h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.hub-row p, .type-row p { margin-bottom: .5rem; }
.hub-look { color: var(--slate); }

.cta { margin-top: 3rem; padding: 1.6rem 1.8rem; background: linear-gradient(135deg, var(--accent-ink), var(--accent)); border-radius: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.cta p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.cta .btn { margin: 0; background: #fff; color: var(--accent-ink); border-color: #fff; box-shadow: none; }
.cta .btn:hover { background: var(--tape); border-color: var(--tape); color: var(--ink); }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin: .6rem 0; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 2rem 1rem 0; position: relative; list-style: none; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #E7E7F2; margin-top: 4rem; padding: 3rem 0 2rem; }
.foot { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-h { font-family: var(--text); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tape); margin: 0 0 .7rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; font-size: .95rem; line-height: 1.45; }
.site-footer a { color: #E7E7F2; text-decoration: none; }
.site-footer a:hover { color: var(--tape); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--tape); }
.fine-wrap { border-top: 1px solid rgba(231, 231, 242, .18); margin-top: 2rem; padding-top: 1.2rem; }
.site-footer .fine { color: #B9BAD3; max-width: 60rem; }

/* ---------- larger screens ---------- */
@media (min-width: 700px) {
  .tool-cards { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr 1fr; }
  .hub-row, .type-row { grid-template-columns: 130px 1fr; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
  .hero-fig { position: sticky; top: 5rem; }
  .article-head { grid-template-columns: minmax(0, 1fr) 300px; }
  .article-head:has(.small) { grid-template-columns: minmax(0, 1fr) 190px; }
}
@media (max-width: 560px) {
  .site-header { position: static; }
  .bar { justify-content: center; }
  .bar nav a { padding: .35rem .7rem; font-size: .9rem; }
  .measure input { font-size: 1.9rem; }
  .switcher { display: flex; }
  .switcher a { flex: 1; text-align: center; padding-inline: .5rem; }
  .landing { padding-top: 2.2rem; }
  .tool-fig { height: 190px; }
  body { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .inline-list a, .chips a, .cat-grid a, .switcher a, .bar nav a { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card, .shape-grid a, .arrow { transition: none; }
  .tool-card:hover, .shape-grid a:hover { transform: none; }
}
