/* ==========================================================================
   ME Toolkit 2.0 — "the workshop wall"
   Warm workbench ground, ink, one safety-orange field, product tag colours.
   ========================================================================== */

:root {
    --ground: #eeebe4;
    --ground-2: #e5e1d8;
    --panel: #faf9f6;
    --ink: #1b1a17;
    --ink-2: #4d4940;
    --ink-3: #6b665b;
    --rule: #d3cdc0;
    --orange: #ff5a1f;
    --orange-deep: #e24a12;
    --orange-ink: #b23a0c;
    --night: #1b1a17;
    --night-2: #2a2824;
    --on-night: #eeebe4;
    --on-night-2: #b9b3a6;

    --f-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --r: 6px;
    --shadow-1: 0 1px 2px rgba(40, 30, 10, .08), 0 4px 12px rgba(40, 30, 10, .06);
    --shadow-2: 0 2px 4px rgba(40, 30, 10, .10), 0 14px 30px rgba(40, 30, 10, .14);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: #b9b2a3 var(--ground); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #b9b2a3; border: 3px solid var(--ground); border-radius: 8px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ground); padding: .6rem 1rem; border-radius: var(--r); }
.skip-link:focus { left: 8px; }
.icon { flex: none; vertical-align: middle; }

/* ---------- Type ---------- */
.display {
    font-stretch: 70%;
    font-weight: 850;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: .9;
    letter-spacing: -.005em;
}
.display-sm { font-stretch: 72%; font-weight: 850; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .92; }
.h2 { font-stretch: 72%; font-weight: 850; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: .95; }
.hl { color: var(--orange-deep); }
.lede { font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 50px; padding: .7rem 1.35rem;
    font-weight: 700; font-size: 1rem; font-stretch: 90%; letter-spacing: .01em;
    text-decoration: none; border-radius: var(--r); border: 2px solid var(--ink);
    cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -6px rgba(40, 30, 10, .35); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-arrow .icon { transition: transform .25s var(--ease-out); }
.link-arrow:hover { color: var(--orange-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Free strip + header ---------- */
.free-strip { background: var(--ink); color: var(--on-night); font-size: .9rem; }
.free-strip-inner { display: flex; align-items: center; gap: .7rem; min-height: 40px; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.free-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.free-strip a { color: var(--orange); font-weight: 700; margin-left: auto; }
.free-strip a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 235, 228, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 18px -14px rgba(40, 30, 10, .4); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .5rem .8rem; font-weight: 600; text-decoration: none; border-radius: var(--r); color: var(--ink-2); }
.main-nav a:hover { color: var(--ink); background: var(--ground-2); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; border-radius: var(--r); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; top: 0; z-index: 40; background: var(--ground); padding-top: 120px; overflow-y: auto; }
.mobile-menu ul { list-style: none; margin-bottom: 2rem; }
.mobile-menu li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.9rem; font-weight: 850; font-stretch: 72%; text-transform: uppercase; text-decoration: none; }
.mobile-menu-note { margin-top: 1.5rem; color: var(--ink-2); }

/* ---------- Hero + pegboard ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy .lede { margin-top: 1.5rem; }
.hero .display { font-size: clamp(2.6rem, 5vw, 4.6rem); }

.pegboard {
    --board: var(--orange);
    position: relative;
    background-color: var(--board);
    background-image: radial-gradient(circle, rgba(70, 20, 0, .42) 0 3px, rgba(255, 255, 255, .12) 3.6px, transparent 4.5px);
    background-size: 30px 30px;
    background-position: 15px 15px;
    border-radius: 10px;
    padding: 2.25rem clamp(1rem, 2.5vw, 2rem) 3.25rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -10px 30px rgba(120, 30, 0, .18), var(--shadow-2);
}
.pegboard-rail { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: rgba(0, 0, 0, .12); border-radius: 10px 10px 0 0; }
.peg-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.5rem; padding: 1rem 0 1.5rem; }
.peg-slot { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.peg-slot:nth-child(2n) { margin-top: 2.2rem; }
.peg-slot::before { /* the peg */
    content: ""; position: absolute; top: 14px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8d8a83, #3b3934 70%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .35); z-index: 3;
}
.pegboard-label { position: absolute; right: 1.25rem; bottom: .9rem; font-family: var(--f-mono); font-size: .78rem; color: var(--ink); opacity: .75; }

.tag {
    --tilt: -3deg;
    display: block; width: 100%; max-width: 180px;
    text-decoration: none; color: var(--ink);
    transform-origin: 50% 10px;
    transform: rotate(var(--tilt));
    filter: drop-shadow(0 8px 8px rgba(80, 25, 0, .28));
    animation: tag-settle 1.6s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 90ms + 150ms);
}
.peg-slot:nth-child(3n) .tag { --tilt: 4deg; }
.peg-slot:nth-child(3n+1) .tag { --tilt: -2deg; }
.peg-slot:nth-child(4n) .tag { --tilt: 1.5deg; }
.tag:hover, .tag:focus-visible { color: var(--ink); animation: tag-swing 1.4s var(--ease-out); }
.tag:focus-visible { outline-offset: 6px; }
.tag-body {
    position: relative; display: flex; flex-direction: column; gap: .35rem;
    padding: 2.2rem .85rem .9rem;
    background: var(--panel);
    clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
    border-radius: 0 0 6px 6px;
    background-image: linear-gradient(var(--c), var(--c));
    background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 100%;
}
.tag-hole { position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--board, var(--orange)); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.tag-code { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .04em; }
.tag-icon { color: var(--c); line-height: 0; }
.tag-name { font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: 1.05rem; line-height: 1; min-height: 2em; }
.tag-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; color: var(--ink-3); border-top: 1px dashed var(--rule); padding-top: .4rem; padding-bottom: .3rem; }
.tag-meta b { font-family: var(--f-mono); color: var(--ink); font-size: .9rem; }

@keyframes tag-settle {
    0% { transform: rotate(calc(var(--tilt) - 14deg)); opacity: 0; }
    15% { opacity: 1; }
    40% { transform: rotate(calc(var(--tilt) + 8deg)); }
    65% { transform: rotate(calc(var(--tilt) - 4deg)); }
    85% { transform: rotate(calc(var(--tilt) + 1.5deg)); }
    100% { transform: rotate(var(--tilt)); opacity: 1; }
}
@keyframes tag-swing {
    0% { transform: rotate(var(--tilt)); }
    20% { transform: rotate(calc(var(--tilt) + 10deg)); }
    45% { transform: rotate(calc(var(--tilt) - 7deg)); }
    70% { transform: rotate(calc(var(--tilt) + 3deg)); }
    100% { transform: rotate(var(--tilt)); }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-2); max-width: 44ch; justify-self: end; }

/* ---------- Plugin drawer ---------- */
.drawer { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.drawer-list { list-style: none; border-top: 2px solid var(--ink); }
.drawer-row {
    display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1.5fr) auto;
    gap: 1.5rem 2rem; align-items: center;
    padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
    transition: background-color .25s;
}
.drawer-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 60%); }
.drawer-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; justify-content: center;
    height: 96px; border-radius: var(--r); background: var(--c); color: #fff;
    transition: transform .35s var(--ease-out);
}
.drawer-row:hover .drawer-tab { transform: translateX(6px) rotate(-2deg); }
.drawer-code { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; opacity: .9; }
.drawer-name { font-stretch: 75%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1; }
.drawer-name a { text-decoration: none; }
.drawer-name a:hover { color: var(--c); }
.drawer-job { margin-top: .45rem; color: var(--ink-2); }
.drawer-points { list-style: none; display: grid; gap: .35rem; font-size: .95rem; color: var(--ink-2); }
.drawer-points li, .apps-points li, .sheet-features li { display: flex; gap: .55rem; align-items: flex-start; }
.drawer-points .icon { color: var(--c); margin-top: .3em; }
.drawer-act { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.drawer-ver a { color: inherit; }
.drawer-ver { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }

/* ---------- Apps (dark band) ---------- */
.apps { background: var(--night); color: var(--on-night); padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; position: relative; }
.apps::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.apps-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.apps .lede { color: var(--on-night-2); margin-top: 1.25rem; }
.apps a:not(.btn):hover { color: #fff; }
.apps-points { list-style: none; display: grid; gap: .5rem; margin-top: 1.75rem; color: var(--on-night); }
.apps-points .icon { color: var(--c); margin-top: .3em; }
.status-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--orange)) 22%, transparent); color: #ffd0e0; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; }
.status-chip-light { background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--ink); margin: 0; align-self: center; }
.btn-bloom { background: var(--c); color: #fff; border-color: var(--c); }
.btn-bloom:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-light { background: transparent; color: var(--on-night); border-color: rgba(238, 235, 228, .4); }
.btn-ghost-light:hover { border-color: var(--on-night); color: #fff; }

.apps-visual { display: flex; justify-content: center; }
.phone {
    width: min(330px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px;
    background: #0d0c0b; box-shadow: 0 0 0 2px #3a3833, 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 120px -30px color-mix(in srgb, var(--c) 70%, transparent);
    transform: rotate(4deg);
}
.phone-screen { height: 100%; border-radius: 32px; background: #fff3f6; padding: 46px 16px 20px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .78rem; }
.phone-bar b { font-family: var(--f-sans); font-stretch: 75%; font-size: 1.6rem; font-weight: 850; }
.bloom-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 6px; background: #f3d9e1; border-radius: 12px; }
.cell { aspect-ratio: 1; border-radius: 5px; background: #fff; display: grid; place-items: center; }
.cell svg { width: 86%; height: 86%; }
.cell-a { background: #2fb37a; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.cell-b { background: #f2b23a; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.cell-c { background: #3d7bea; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.cell-d { background: #8a5bd6; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.cell-s { background: #fff; background-image: radial-gradient(circle, #7b5a3a 0 3px, transparent 3.5px); }
.cell-f { background: var(--c); animation: bloom 2.8s var(--ease-out) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes bloom {
    0%, 55%, 100% { transform: scale(1); }
    65% { transform: scale(1.18); }
    78% { transform: scale(.96); }
}
.phone-tray { margin-top: auto; display: flex; justify-content: space-around; align-items: end; padding: 12px 4px 4px; }
.piece { display: grid; gap: 3px; }
.piece i { width: 18px; height: 18px; border-radius: 4px; background: #2fb37a; }
.piece-l { grid-template-columns: repeat(2, 18px); }
.piece-l i:nth-child(1) { grid-column: 1; } .piece-l i:nth-child(2) { grid-column: 1; } .piece-l i:nth-child(3) { grid-column: 1; } .piece-l i:nth-child(4) { grid-column: 2; grid-row: 3; }
.piece-sq { grid-template-columns: repeat(2, 18px); } .piece-sq i { background: #3d7bea; }
.piece-i { grid-template-columns: repeat(3, 18px); } .piece-i i { background: #f2b23a; }

/* ---------- How free works ---------- */
.howfree { padding: clamp(4rem, 8vw, 7rem) 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--panel); }
.steps li { padding: 2rem 1.75rem 2.25rem; position: relative; }
.steps li + li { border-left: 2px dashed var(--rule); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); font-weight: 850; font-stretch: 75%; font-size: 1.3rem; margin-bottom: 1.25rem; }
.steps h3 { font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); }
.howfree-note { margin-top: 1.5rem; color: var(--ink-2); }
.howfree-note a { color: var(--orange-ink); font-weight: 600; }

/* ---------- Principles ---------- */
.principles { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--ground-2); border-top: 1px solid var(--rule); }
.principles-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.principles-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 3rem; margin: 0; }
.principles-list dt { font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: 1.35rem; padding-top: .9rem; border-top: 2px solid var(--ink); margin-bottom: .5rem; }
.principles-list dd { margin: 0; color: var(--ink-2); }

/* ---------- Closer ---------- */
.closer { background: var(--orange); padding: clamp(3.5rem, 7vw, 6rem) 0; background-image: radial-gradient(circle, rgba(70, 20, 0, .28) 0 2.5px, transparent 3px); background-size: 30px 30px; }
.closer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.closer .actions { margin-top: 0; }
.closer .btn-line { background: var(--orange); }
.closer .btn-line:hover { background: var(--ink); color: var(--ground); }
.closer h2 { max-width: 16ch; }

/* ---------- Page heads (inner pages) ---------- */
.page-head, .page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 2px solid var(--ink); }
.page-head .lede, .page-hero .section-subtitle { margin-top: 1.25rem; }
.page-head-sm .display { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.section-pill { display: none; }
.page-hero .section-title { font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: .92; }
.section-subtitle { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Catalog sheets ---------- */
.filter { display: inline-flex; gap: .4rem; margin-top: 2rem; padding: 4px; background: var(--ground-2); border-radius: 10px; }
.filter-btn { border: 0; background: transparent; padding: .55rem 1rem; min-height: 44px; border-radius: 7px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.filter-btn span { font-family: var(--f-mono); font-size: .78rem; margin-left: .25rem; opacity: .7; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.sheets { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.sheets .container { display: grid; gap: 1.5rem; }
.sheet { display: grid; grid-template-columns: 260px 1fr; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); }
.sheet[hidden] { display: none; }
.sheet-side { background: color-mix(in srgb, var(--c) 10%, var(--panel)); border-right: 1px dashed var(--rule); padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.sheet-tag { position: relative; width: 150px; padding: 2.4rem 1rem 1rem; background: var(--c); color: #fff; border-radius: 0 0 8px 8px; clip-path: polygon(22% 0, 78% 0, 100% 15%, 100% 100%, 0 100%, 0 15%); display: flex; flex-direction: column; align-items: center; gap: .6rem; transform: rotate(-3deg); transition: transform .5s var(--ease-out); }
.sheet:hover .sheet-tag { transform: rotate(2deg); }
.sheet-tag .tag-hole { --board: color-mix(in srgb, var(--c) 10%, var(--panel)); background: var(--board); top: 8px; }
.sheet-code { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; }
.sheet-price { font-family: var(--f-mono); font-weight: 500; font-size: 1.1rem; border-top: 1px dashed rgba(255,255,255,.5); padding-top: .4rem; width: 100%; text-align: center; }
.spec-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.spec-chips li { font-family: var(--f-mono); font-size: .75rem; padding: .25rem .55rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); color: var(--ink-2); }
.spec-chips-dark { justify-content: flex-start; margin-top: 1.5rem; }
.spec-chips-dark li { background: transparent; border-color: rgba(238,235,228,.25); color: var(--on-night-2); }
.sheet-body { padding: clamp(1.75rem, 3vw, 2.75rem); }
.sheet-kind { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }
.sheet-name { font-stretch: 72%; font-weight: 850; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: .95; margin-top: .35rem; }
.sheet-job { font-weight: 600; font-size: 1.15rem; margin-top: .6rem; }
.sheet-summary { color: var(--ink-2); margin-top: .75rem; max-width: 65ch; }
.sheet-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 2rem; margin-top: 1.5rem; }
.sheet-features .icon { color: var(--c); margin-top: .2em; }
.sheet .actions { margin-top: 1.75rem; }

/* ---------- Pricing ---------- */
.price-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.price-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.price-hero .lede { margin-top: 1.5rem; }
.receipt {
    background: var(--panel); padding: 2rem 1.75rem 2.5rem; box-shadow: var(--shadow-2); transform: rotate(1.5deg);
    font-family: var(--f-mono); font-size: .9rem;
    -webkit-mask: radial-gradient(circle 8px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
            mask: radial-gradient(circle 8px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
}
.receipt-head { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-3); border-bottom: 2px dashed var(--rule); padding-bottom: .8rem; margin-bottom: .8rem; }
.receipt ul { list-style: none; display: grid; gap: .55rem; }
.receipt li { display: flex; align-items: baseline; gap: .5rem; }
.receipt-code { color: var(--c); font-weight: 500; min-width: 4.4em; }
.receipt-name { font-family: var(--f-sans); font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 1rem; }
.receipt-total { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .9rem; border-top: 2px solid var(--ink); font-size: 1.35rem; font-weight: 500; }
.receipt-foot { margin-top: .6rem; color: var(--ink-3); font-size: .8rem; }

.faq { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--panel); border-top: 1px solid var(--rule); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 62ch; }
.faq details a { color: var(--orange-ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 6rem); align-items: start; }
.about-card { position: sticky; top: 100px; background: var(--panel); border: 2px solid var(--ink); border-radius: 10px; padding: 1.75rem; display: grid; gap: .8rem; }
.about-card h2 { font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; }
.about-card p { display: flex; gap: .55rem; align-items: center; color: var(--ink-2); }
.about-card .btn { margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { background: var(--panel); border: 2px solid var(--ink); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.field input, .field select, .field textarea,
.woocommerce form .input-text, .woocommerce select {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #bdb6a7; border-radius: var(--r); padding: .75rem .9rem; min-height: 48px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .35); }
.field ::placeholder { color: #857f72; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: #11663f; }
.form-status.is-error { color: #a32a0c; }
.mail-card { background: var(--orange); border: 2px solid var(--ink); border-radius: 10px; padding: clamp(1.75rem, 4vw, 3rem); background-image: radial-gradient(circle, rgba(70, 20, 0, .28) 0 2.5px, transparent 3px); background-size: 30px 30px; }
.mail-card-label { font-family: var(--f-mono); font-size: .8rem; }
.mail-card .big-mail { color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.8rem); font-stretch: 75%; text-transform: uppercase; text-decoration: none; }
.mail-card .big-mail:hover { text-decoration: underline; }
.mail-card .btn-orange { background: var(--ink); color: var(--ground); }
.mail-card .btn-orange:hover { background: #000; color: #fff; }
.mail-card-tip { margin-top: 1.5rem; max-width: 46ch; }
.contact-aside a { color: var(--orange-ink); }
.contact-aside h2 { font-stretch: 75%; text-transform: uppercase; font-size: 1.6rem; }
.big-mail { display: inline-block; margin-top: .5rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; font-stretch: 85%; color: var(--orange-ink); word-break: break-all; }
.contact-aside dl { margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-aside dl div { border-top: 1px solid var(--rule); padding-top: .8rem; }
.contact-aside dt { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }
.contact-aside dd { margin: .2rem 0 0; }

/* ---------- Prose (legal, generic pages, Gutenberg) ---------- */
.page-content-wrap { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.prose { max-width: 72ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--ink); font-stretch: 78%; text-transform: uppercase; font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { color: var(--ink); font-size: 1.25rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange-ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--orange-deep); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--ground-2); padding: .1em .35em; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); }
.callout-box { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.5rem; }

/* ---------- WooCommerce basics ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
    background: var(--ink) !important; color: var(--ground) !important; border-radius: var(--r) !important;
    font-weight: 700 !important; padding: .8rem 1.3rem !important; border: 0 !important;
}
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover { background: #000 !important; }
.woocommerce table.shop_table { border-color: var(--rule); border-radius: 8px; background: var(--panel); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--orange) !important; background: var(--panel) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--orange-deep) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.brand-light, .brand-light:hover { color: var(--on-night); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; color: var(--on-night); font-weight: 600; text-decoration: none; }
.footer-mail:hover { color: var(--orange); }
.footer-heading { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.footer-col ul + .footer-heading { margin-top: 1.75rem; }
.footer-col a { color: var(--on-night); text-decoration: none; }
.footer-col a:hover { color: var(--orange); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #3a3833; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; }
    .drawer-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
    .drawer-tab { height: 80px; }
    .drawer-points { grid-column: 2 / -1; grid-row: 2; }
    .drawer-act { grid-column: 3; grid-row: 1; }
}
@media (max-width: 900px) {
    .main-nav, .header-actions .btn { display: none; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .apps-grid, .price-hero-grid, .contact-grid, .about-grid, .faq-grid, .principles-grid { grid-template-columns: 1fr; }
    .about-card { position: static; }
    .section-head { grid-template-columns: 1fr; gap: 1rem; }
    .section-head p { justify-self: start; }
    .steps { grid-template-columns: 1fr; }
    .steps li + li { border-left: 0; border-top: 2px dashed var(--rule); }
    .sheet { grid-template-columns: 1fr; }
    .sheet-side { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; border-right: 0; border-bottom: 1px dashed var(--rule); padding: 1.5rem; }
    .spec-chips { justify-content: flex-start; flex: 1; min-width: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .receipt { transform: none; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .free-strip { font-size: .84rem; }
    .free-strip-dot { display: none; }
    .free-strip-inner { gap: .2rem .6rem; }
    .free-strip a { margin-left: 0; }
    .peg-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem .5rem; }
    .tag-name { font-size: .9rem; }
    .tag-body { padding: 2rem .55rem .7rem; }
    .tag-code { font-size: .62rem; }
    .peg-slot:nth-child(2n) { margin-top: 1.2rem; }
    .pegboard { padding: 2rem 1rem 3rem; }
    .tag { max-width: 160px; }
    .drawer-row { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
    .drawer-tab { height: 64px; }
    .drawer-tab .icon { width: 24px; height: 24px; }
    .drawer-points { grid-column: 1 / -1; grid-row: auto; }
    .drawer-act { grid-column: 1 / -1; grid-row: auto; flex-direction: row; justify-content: space-between; align-items: center; }
    .principles-list { grid-template-columns: 1fr; }
    .sheet-features { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .actions .btn { flex: 1 1 100%; }
    .closer .actions { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .phone { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
