/* ==========================================================================
   OGCEN · Organic Growth Center — site styles
   Brand: green growth accent on deep navy ink. Light / dark via html[data-theme].
   ========================================================================== */

:root {
    color-scheme: light;

    --green: #2f8a40;
    --green-soft: #45993f;
    --green-deep: #237b3f;
    --navy: #1a2630;
    --navy-soft: #2b3a48;

    --accent: #2f8a40;
    --accent-ink: #1f6b33;
    --gradient: linear-gradient(135deg, #45993f 0%, #237b3f 100%);
    --gradient-hover: linear-gradient(135deg, #3d8f39 0%, #1f6f38 100%);
    --gradient-text: linear-gradient(120deg, #45993f 0%, #2f8a40 55%, #1f6b33 100%);
    --wash: linear-gradient(140deg, rgba(69, 153, 63, .09), rgba(35, 123, 63, .07));
    --glow: rgba(47, 138, 64, .22);

    --page: #ffffff;
    --surface: #f5f8f5;
    --surface-2: #ffffff;
    --ink: #1a2630;
    --body: #33414c;
    --muted: #5a6875;
    --faint: #75838f;
    --line: rgba(26, 38, 48, .11);
    --line-strong: rgba(47, 138, 64, .38);
    --shadow: 0 24px 60px rgba(26, 38, 48, .07);
    --shadow-lift: 0 30px 70px rgba(47, 138, 64, .16);

    --radius: 16px;
    --radius-lg: 26px;
    --nav-h: 68px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --accent: #5cb853;
    --accent-ink: #7ccb73;
    --gradient: linear-gradient(135deg, #5cb853 0%, #2f9448 100%);
    --gradient-hover: linear-gradient(135deg, #6cc463 0%, #38a052 100%);
    --gradient-text: linear-gradient(120deg, #7ccb73 0%, #5cb853 55%, #3aa04f 100%);
    --wash: linear-gradient(140deg, rgba(92, 184, 83, .14), rgba(47, 148, 72, .10));
    --glow: rgba(92, 184, 83, .22);

    --page: #0b1218;
    --surface: #101a21;
    --surface-2: #14202a;
    --ink: #f4f7f5;
    --body: #c9d3d9;
    --muted: #9aa9b3;
    --faint: #7f8f9a;
    --line: rgba(148, 170, 160, .16);
    --line-strong: rgba(92, 184, 83, .45);
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
    --shadow-lift: 0 30px 70px rgba(0, 0, 0, .62);
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(64% 42% at 50% -6%, rgba(69, 153, 63, .10), transparent 70%),
        radial-gradient(38% 34% at 92% 8%, rgba(35, 123, 63, .07), transparent 72%),
        radial-gradient(40% 40% at 2% 58%, rgba(69, 153, 63, .06), transparent 76%),
        var(--page);
    color: var(--body);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
::selection { background: rgba(69, 153, 63, .22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--page);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.shell { width: min(100% - 44px, 1140px); margin-inline: auto; }
.narrow { width: min(100% - 44px, 780px); margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-tight { padding: clamp(52px, 6vw, 78px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 26px; }
.mt { margin-top: 28px; }

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -.028em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.24; letter-spacing: -.018em; }
h4 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.lede {
    color: var(--body);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.55;
    max-width: 58ch;
}
.copy { color: var(--muted); font-size: 16px; line-height: 1.78; }
.copy + .copy { margin-top: 16px; }
.copy strong { color: var(--ink); font-weight: 600; }
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* -------------------------------------------------------------- nav shell */

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--page) 86%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { text-decoration: none; color: inherit; padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.icon-btn svg { width: 22px; height: 22px; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--ink) 42%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity .26s ease, visibility .26s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    background: var(--page);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}
.mobile-menu.open .mobile-panel { transform: none; }
.mobile-menu-head { height: var(--nav-h); padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-menu-head .icon-btn { display: inline-flex; margin: 0; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; overflow-y: auto; }
.mobile-panel nav a { padding: 13px 16px; border-radius: 12px; color: var(--body); font-size: 16px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.mobile-panel nav a:hover { background: var(--surface); color: var(--ink); }
.mobile-panel nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.mobile-actions { margin-top: auto; padding: 16px 18px 24px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- buttons */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #ffffff; background: var(--gradient); box-shadow: 0 12px 28px var(--glow); }
.btn-primary:hover { background: var(--gradient-hover); box-shadow: 0 16px 34px var(--glow); transform: translateY(-1px); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface-2); }
.btn-quiet:hover { border-color: var(--line-strong); color: var(--accent); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ hero */

.hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 92px)) 0 clamp(56px, 7vw, 88px); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, .82fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: clamp(20px, 2.4vw, 30px); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-actions.center { justify-content: center; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }

/* Growth chain visual (pure CSS): Presence → Discoverability → Trust → Engagement → Growth */
.chain-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--green) 9%, var(--surface-2)), var(--surface-2));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.chain-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(69, 153, 63, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 153, 63, .10) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    pointer-events: none;
}
.chain-inner { position: relative; display: grid; gap: 14px; }
.chain-bar { display: flex; align-items: center; gap: 7px; }
.chain-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(69, 153, 63, .5); }
.chain-dot:nth-child(2) { background: rgba(35, 123, 63, .38); }
.chain-dot:nth-child(3) { background: rgba(69, 153, 63, .2); }
.chain-url {
    flex: 1;
    height: 24px;
    margin-left: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: .04em;
}
.chain-canvas { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.chain-step {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}
.chain-step .n {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--wash);
    border: 1px solid var(--line);
    color: var(--accent);
}
.chain-step .n svg { width: 18px; height: 18px; }
.chain-step strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.chain-step span { display: block; margin-top: 1px; color: var(--faint); font-size: 12px; }
.chain-step .bar { width: 64px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.chain-step .bar i { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.chain-step:nth-child(1) .bar i { width: 96%; }
.chain-step:nth-child(2) .bar i { width: 82%; }
.chain-step:nth-child(3) .bar i { width: 70%; }
.chain-step:nth-child(4) .bar i { width: 58%; }
.chain-step:nth-child(5) .bar i { width: 44%; }
.chain-step .arrow { display: none; }
.chain-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 0; color: var(--faint); font-size: 12px; }
.chain-foot b { color: var(--accent); font-weight: 600; }

/* Generic preview rows (mockup lists) */
.preview-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}
.preview-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.preview-row strong { display: block; color: var(--ink); font-size: 14.5px; }
.preview-row span { display: block; margin-top: 2px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------- statement */

.statement { padding: clamp(80px, 11vw, 140px) 0; }
.statement-inner { width: min(100% - 44px, 840px); margin-inline: auto; display: grid; justify-items: center; gap: 28px; text-align: center; }
.statement h2 { max-width: 22ch; }
.statement-rule { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.statement-lines { display: grid; gap: 15px; max-width: 62ch; }
.statement-lines .copy { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.66; }

/* ------------------------------------------------------------ head units */

.head { max-width: 760px; display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 54px); }
.head-center { margin-inline: auto; justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ----------------------------------------------------------------- cards */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 10px; }
.card .copy { font-size: 15px; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }
a.card { display: block; text-decoration: none; color: inherit; }
.card-tag { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--wash);
    border: 1px solid var(--line);
}
.card-icon svg { width: 21px; height: 21px; }

.card-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.card-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--body); font-size: 14.5px; line-height: 1.5; }
.card-list svg { width: 15px; height: 15px; margin-top: 4px; flex: 0 0 auto; color: var(--accent); }

/* Framework: 5-step chain */
.framework { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.frame {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-2);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.frame:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.frame-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.frame-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.frame h3 { font-size: 20px; }
.frame .lead { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.frame .copy { font-size: 14px; line-height: 1.65; }

/* Equation strip */
.equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: Manrope, Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.equation svg { width: 16px; height: 16px; color: var(--accent); }
.equation .final { color: var(--accent); }

/* ----------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.steps-7 .step { padding: 20px 18px; }
.step-index { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.steps-7 .step h3 { font-size: 17px; margin-bottom: 8px; }
.step .copy { font-size: 15px; }
.steps-7 .step .copy { font-size: 13.5px; line-height: 1.6; }
.steps-list { display: grid; gap: 14px; }
.steps-list .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; }
.steps-list .step-index { margin: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); border: 1px solid var(--line); font-size: 13px; letter-spacing: 0; }
.steps-list .step h4 { font-size: 17px; margin-bottom: 6px; color: var(--ink); }

/* ----------------------------------------------------------------- lists */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.check-list svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.check-list.two-col-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

/* ----------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 90px); }
.split-text { display: grid; gap: 22px; }
.split-reverse .split-text { order: 2; }
.split-top { align-items: start; }

/* ------------------------------------------------------------------ band */

.band { padding: clamp(30px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--wash); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.band-dark {
    background: var(--navy);
    border-color: transparent;
    color: #c9d3d9;
}
.band-dark h2, .band-dark h3, .band-dark strong { color: #ffffff; }
.band-dark .copy { color: #b3c0c9; }
.band-dark .eyebrow, .band-dark .check-list svg { color: #7ccb73; }
.band-dark .check-list li { color: #d9e2e7; }
.band-dark .btn-quiet { color: #ffffff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.band-dark .btn-quiet:hover { border-color: #7ccb73; color: #7ccb73; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--accent);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
}
.pill svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------- crosslink */

.crosslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--wash);
}
.crosslink p { color: var(--body); font-size: 16px; }
.crosslink strong { color: var(--ink); }

/* Mini 3/4-up definition list */
.mini-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini { display: grid; gap: 7px; }
.mini h4 { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mini p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ------------------------------------------------------------------- faq */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { padding: 2px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .copy { padding: 0 0 20px; font-size: 15.5px; }

/* ------------------------------------------------------------ case study */

.case { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow); overflow: hidden; }
.case-head { display: grid; gap: 10px; padding: clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line); background: var(--wash); }
.case-head h3 { font-size: 24px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--faint); font-size: 13px; }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 14px; height: 14px; color: var(--accent); }
.case-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.case-cell { padding: 22px 20px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.case-cell:last-child { border-right: 0; }
.case-cell h4 { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.case-cell p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.case-cell ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.case-cell li { color: var(--body); font-size: 14px; line-height: 1.5; padding-left: 14px; position: relative; }
.case-cell li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case + .case { margin-top: 26px; }

/* -------------------------------------------------------------- articles */

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: grid; gap: 12px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.article-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-card h3 { font-size: 19px; line-height: 1.3; }
.article-card .copy { font-size: 14.5px; }
.article-card .meta { display: flex; gap: 12px; color: var(--faint); font-size: 12.5px; }
.article-card .read { margin-top: auto; }

.topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--body); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.topic-list a:hover { border-color: var(--line-strong); color: var(--accent); }

.article { display: grid; gap: 22px; }
.article > h2 { font-size: 28px; margin-top: 18px; }
.article > h3 { font-size: 21px; margin-top: 8px; }
.article p, .article li { color: var(--body); font-size: 17px; line-height: 1.8; }
.article ul, .article ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.article blockquote { margin: 0; padding: 18px 24px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--wash); color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.5; }
.article a { color: var(--accent); }
.article-head { display: grid; gap: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--faint); font-size: 13.5px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; color: var(--accent); }
.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ------------------------------------------------------------- page top */

.page-hero { padding: calc(var(--nav-h) + clamp(56px, 7vw, 84px)) 0 clamp(30px, 4vw, 48px); }
.page-hero .head { margin-bottom: 0; }

/* ----------------------------------------------------------------- forms */

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: clamp(34px, 5vw, 56px); align-items: start; }
.form-panel { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); box-shadow: var(--shadow); }
.field-group { display: grid; gap: 8px; margin-bottom: 18px; }
.field-group label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.field, textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--page);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder, textarea::placeholder { color: var(--faint); opacity: .75; }
.field:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 132px; resize: vertical; }
.form-note { margin-top: 14px; color: var(--faint); font-size: 12px; line-height: 1.6; text-align: center; }
.entry-note { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.form-success { display: grid; justify-items: center; gap: 14px; text-align: center; }
.form-success[hidden] { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 0; color: #c0392b; font-size: 13px; line-height: 1.5; }
.field-error svg { width: 15px; height: 15px; flex: none; }
[data-theme="dark"] .field-error { color: #ff8a7a; }
[aria-invalid="true"] { border-color: #c0392b; }
[aria-invalid="true"]:focus { border-color: #c0392b; box-shadow: 0 0 0 3px color-mix(in srgb, #c0392b 20%, transparent); }
.form-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 20px; padding: 13px 15px;
    border: 1px solid color-mix(in srgb, #c0392b 35%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, #c0392b 8%, transparent);
    color: var(--ink); font-size: 14px; line-height: 1.6;
}
.form-alert svg { width: 18px; height: 18px; flex: none; color: #c0392b; margin-top: 1px; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--wash); border: 1px solid var(--line); }
.success-mark svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- legals */

.prose { display: grid; gap: 22px; }
.prose h2 { font-size: 24px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); display: grid; gap: 12px; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); background: var(--page); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 38px; padding: clamp(44px, 6vw, 66px) 0 38px; }
.footer-brand p { margin-top: 16px; max-width: 36ch; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.footer-brand .footer-tag { margin-top: 12px; color: var(--faint); font-size: 12.5px; }
.footer-col h4 { margin-bottom: 16px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.footer-col nav { display: grid; gap: 11px; }
.footer-col nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color .2s ease; }
.footer-col nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ------------------------------------------------------------- theme fab */

.theme-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 158px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.theme-fab.open .theme-menu { opacity: 1; visibility: visible; transform: none; }
.theme-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.theme-menu button:hover { background: var(--surface); color: var(--ink); }
.theme-menu button.active { color: var(--accent); font-weight: 600; }
.theme-menu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.theme-menu .check { margin-left: auto; opacity: 0; }
.theme-menu button.active .check { opacity: 1; }

/* -------------------------------------------------------------- 404 page */

.notfound { min-height: 100svh; display: grid; place-items: center; padding: 100px 22px 60px; text-align: center; }
.notfound .brand { justify-content: center; }
.notfound-code {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(72px, 14vw, 132px);
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* -------------------------------------------------------------- motional */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
    .framework { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .case-cell { border-bottom: 1px solid var(--line); }
    .case-cell:nth-child(3n) { border-right: 0; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .icon-btn { display: inline-flex; }
    .hero-grid, .split, .band-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
    .split > *, .band-grid > *, .two-col > * { min-width: 0; }
    .split-reverse .split-text { order: 0; }
    .hero-side { max-width: 480px; margin-inline: auto; width: 100%; }
    .grid-3, .grid-4, .steps, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .framework, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-3, .mini-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-cell:nth-child(3n) { border-right: 1px solid var(--line); }
    .case-cell:nth-child(2n) { border-right: 0; }
    .check-list.two-col-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .steps, .steps-7, .framework, .article-grid, .mini-3, .mini-4, .article-nav { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .case-cell, .case-cell:nth-child(3n) { border-right: 0; }
    .theme-fab { right: 14px; bottom: 14px; }
    .equation { border-radius: 22px; }
    .chain-step { grid-template-columns: 38px 1fr; }
    .chain-step .bar { display: none; }
}
