@font-face {
    font-family: "Instrument Serif";
    src: url("/fonts/display-normal.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("/fonts/display-italic.woff2") format("woff2");
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("/fonts/body-normal.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

/* Tokens */
:root {
    --paper: #f7f6ee;
    --paper-deep: #efefe3;
    --white: #fffefa;
    --ink: #13281f;
    --dark: #173d32;
    --green: #27634d;
    --green-hover: #154638;
    --moss: #4b7d66;
    --muted: #51625a;
    --subtle: #68776e;
    --line: #dadfd3;
    --line-strong: #bccbbc;
    --mint: #e7efe1;
    --mint-deep: #d9e7d6;
    --sand: #f3eddc;
    --peach: #f3c0a8;
    --rust: #a74833;

    /* Status colors always travel with an icon or a label. */
    --good: #2e8b62;
    --good-ink: #1f5c41;
    --good-bg: #e2efe2;
    --good-line: #b5d3bd;
    --caution: #d9a514;
    --caution-ink: #735107;
    --caution-bg: #f8eecb;
    --caution-line: #e6cf8b;
    --serious: #c9562f;
    --serious-ink: #963a1d;
    --serious-bg: #fae5d9;
    --serious-line: #ecbfa8;
    --critical: #8f2420;
    --critical-ink: #86211d;
    --critical-bg: #f6d9d4;
    --critical-line: #e2aaa3;
    --neutral: #9aa59c;
    --neutral-ink: #4c5b53;
    --neutral-bg: #ebeee6;
    --neutral-line: #cfd6cc;

    --display: "Instrument Serif", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --r-sm: .5rem;
    --r-md: .8rem;
    --r-lg: 1.1rem;
    --r-xl: 1.6rem;
    --shadow-xs: 0 1px 2px #13281f0d;
    --shadow-sm: 0 1px 2px #13281f0f, 0 6px 16px -12px #13281f3d;
    --shadow-md: 0 2px 4px #13281f0a, 0 18px 36px -24px #13281f5c;
    --shadow-lg: 0 4px 10px #13281f0d, 0 36px 60px -36px #13281f80;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-height: 4.5rem;
    color-scheme: light;
}
[data-tone="good"], .chip-good { --tone: var(--good); --tone-ink: var(--good-ink); --tone-bg: var(--good-bg); --tone-line: var(--good-line); }
[data-tone="caution"], .chip-caution { --tone: var(--caution); --tone-ink: var(--caution-ink); --tone-bg: var(--caution-bg); --tone-line: var(--caution-line); }
[data-tone="serious"], .chip-serious { --tone: var(--serious); --tone-ink: var(--serious-ink); --tone-bg: var(--serious-bg); --tone-line: var(--serious-line); }
[data-tone="critical"], .chip-critical { --tone: var(--critical); --tone-ink: var(--critical-ink); --tone-bg: var(--critical-bg); --tone-line: var(--critical-line); }
[data-tone="neutral"], .chip-neutral { --tone: var(--neutral); --tone-ink: var(--neutral-ink); --tone-bg: var(--neutral-bg); --tone-line: var(--neutral-line); }

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.62 var(--body); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: .06em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: .2rem; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; color: var(--ink); line-height: 1.04; }
h1, h2 { font: 400 clamp(2.7rem, 5vw, 4.4rem)/.98 var(--display); letter-spacing: -.022em; text-wrap: balance; }
h3 { font-size: 1.14rem; line-height: 1.3; }
p { overflow-wrap: anywhere; }
em { color: var(--green); font-weight: 400; }
summary { cursor: pointer; }
::selection { background: #cfe3cf; }
.wrap { width: min(100% - 5.5rem, 1180px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: .75rem; left: .75rem; padding: .55rem 1rem; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-220%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ui-icon { flex: 0 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.site-nav, .account-nav { display: flex; align-items: center; }
.site-nav { gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--white) 70%, transparent); }
.site-nav a { padding: .42rem .95rem; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .93rem; font-weight: 600; transition: background-color .15s, color .15s; }
.site-nav a:hover { color: var(--ink); background: var(--mint); }
.site-nav a[aria-current="page"] { color: var(--white); background: var(--dark); }
.login-link { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .93rem; font-weight: 600; }
.login-link:hover { color: var(--ink); }
.account-nav { justify-self: end; gap: 1.15rem; }

/* Buttons and small parts */
.button { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; padding: .7rem 1.25rem; min-height: 2.85rem; border-radius: .7rem; border: 1px solid transparent; font: 700 .95rem/1.25 var(--body); text-align: center; white-space: normal; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 2.35rem; padding: .5rem .9rem; font-size: .89rem; border-radius: .6rem; }
.button-primary { color: #fff; background: var(--green); box-shadow: inset 0 1px 0 #ffffff2e, 0 1px 2px #13281f33, 0 8px 16px -10px #173d32b3; }
.button-primary:hover { color: #fff; background: var(--green-hover); box-shadow: inset 0 1px 0 #ffffff2e, 0 1px 2px #13281f33, 0 12px 20px -10px #173d32cc; }
.button-soft { color: var(--dark); background: var(--mint); border-color: #aabdad; }
.button-soft:hover { background: #d4e5d4; border-color: #6a9380; }
.button-outline { color: var(--dark); background: var(--white); border-color: var(--line-strong); }
.button-outline:hover { color: var(--dark); background: var(--mint); border-color: #6a9380; }
.button-light { color: var(--dark); background: #f4f8ee; }
.button-light:hover { color: var(--dark); background: #fff; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.accent-dot { display: inline-block; flex: 0 0 .52rem; height: .52rem; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px #a7483322; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .55rem; border: 1px solid var(--tone-line, transparent); border-radius: 999px; color: var(--tone-ink, var(--green)); background: var(--tone-bg, var(--mint)); font: 700 .76rem/1.45 var(--body); white-space: nowrap; }
.chip .ui-icon { width: .92rem; height: .92rem; }
.chip-outline { color: var(--muted); background: transparent; border-color: var(--line-strong); }
.ref { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 1.75rem; height: 1.4rem; padding: 0 .35rem; border: 1px solid transparent; border-radius: .38rem; font: 700 .72rem/1 var(--mono); text-decoration: none; }
.ref-claim { color: #fff; background: var(--green); }
.ref-premise { color: var(--dark); background: var(--mint-deep); border-color: #a9c2ac; }
.ref-fallacy { color: #fff; background: var(--rust); }
.ref-possible { color: var(--rust); border: 1px dashed var(--rust); }
a.ref:hover { filter: brightness(.92); }

/* Forms */
label, .field-heading { font-weight: 700; }
textarea, input:not([type=radio], [type=checkbox], [type=hidden]), select { display: block; width: 100%; color: var(--ink); background: var(--white); border: 1px solid #c3cfc3; border-radius: .6rem; padding: .62rem .8rem; transition: border-color .15s, box-shadow .15s; }
textarea:hover, input:not([type=radio], [type=checkbox], [type=hidden]):hover, select:hover { border-color: #9db3a2; }
textarea:focus-visible, input:not([type=radio], [type=checkbox], [type=hidden]):focus-visible, select:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px #27634d26; }
textarea { min-height: 106px; height: 118px; resize: vertical; line-height: 1.55; background: #fbfbf6; }
input::placeholder, textarea::placeholder { color: #66766c; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); }
.error-message { margin: .5rem 0; padding: .55rem .75rem; border: 1px solid var(--critical-line); border-radius: .5rem; background: var(--critical-bg); color: var(--critical-ink); font-size: .94rem; }
.notice { margin-block: .85rem; padding: .9rem 1.1rem; border: 1px solid #c6d6c5; border-radius: var(--r-md); background: var(--mint); }
.notice h3 + p { margin-top: .25rem; color: var(--muted); }

/* Home: hero and analyzer */
.hero { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2.4rem, 5.5vw, 5.2rem); align-items: stretch; padding-block: clamp(2.4rem, 5.4vw, 4.8rem) clamp(3.2rem, 6vw, 5.2rem); }
.hero-copy { display: flex; flex-direction: column; padding-block: .3rem .2rem; }
.hero h1 { margin: 1rem 0 .9rem; font-size: clamp(4.6rem, 8.6vw, 8.2rem); line-height: .8; letter-spacing: -.045em; text-wrap: nowrap; }
.hero h1 em { display: inline-block; font-style: italic; }
.hero-intro { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.17rem); line-height: 1.55; max-width: 38ch; margin: 1.5rem 0 1.5rem; }
.hero-copy > .button { align-self: flex-start; }
.hero-art { position: relative; display: grid; border-radius: var(--r-xl); overflow: hidden; background-color: #225245; box-shadow: var(--shadow-lg); min-height: 540px; isolation: isolate; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #ffffff26; pointer-events: none; }
.hero-note { position: absolute; z-index: 1; left: 1.1rem; bottom: 1.1rem; display: flex; align-items: center; gap: .7rem; max-width: calc(100% - 2.2rem); padding: .7rem 1rem .7rem .75rem; border: 1px solid #ffffff59; border-radius: 1rem; background: #fffefae6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 30px -18px #0b1f18; color: var(--ink); font-size: .9rem; line-height: 1.35; text-decoration: none; transition: transform .2s var(--ease); }
.hero-note:hover { transform: translateY(-2px); color: var(--ink); }
.hero-note strong { display: block; font: 400 1.75rem/1 var(--display); }
.hero-note-icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: .7rem; color: #fff; background: var(--dark); }
.analyzer { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: var(--r-lg); padding: 1.15rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.field-heading, .analyzer-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.field-heading { margin-bottom: .58rem; }
.analyzer-actions { margin-top: .85rem; }
.analyzer-actions > .button { margin-inline-start: auto; flex: 0 0 auto; }
.argument-cooldown { color: var(--critical-ink); font-size: .88rem; font-variant-numeric: tabular-nums; text-wrap: balance; }
.argument-length { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.argument-length meter { appearance: none; flex: 1 1 auto; width: 100%; height: .34rem; background: #e4ebdf; border: 0; border-radius: 1rem; overflow: hidden; }
.argument-length meter::-webkit-meter-bar { height: 100%; background: #e4ebdf; border: 0; border-radius: 1rem; }
.argument-length meter::-webkit-meter-optimum-value { background: var(--green); }
.argument-length meter::-webkit-meter-suboptimum-value { background: #be8a23; }
.argument-length meter::-webkit-meter-even-less-good-value { background: #af4234; }
.argument-length meter:-moz-meter-optimum::-moz-meter-bar { background: var(--green); }
.argument-length meter:-moz-meter-sub-optimum::-moz-meter-bar { background: #be8a23; }
.argument-length meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: #af4234; }
.character-count { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Home: sections */
.section-heading, .split-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.75rem; }
.section-heading h2 { margin-top: .45rem; }
.section-heading p:not(.eyebrow), .section-intro { color: var(--muted); margin-top: .65rem; max-width: 62ch; }
.steps { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 4rem); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-grid li { position: relative; padding: 1.35rem 1.35rem 1.45rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); counter-increment: step; }
.steps-grid li::before { content: counter(step); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1rem; border-radius: 50%; color: var(--dark); background: var(--mint); font: 400 1.4rem/1 var(--display); }
.steps-grid li:not(:last-child)::after { content: ""; position: absolute; top: 2.45rem; left: 4.1rem; right: -1.15rem; border-top: 1.5px dashed var(--line-strong); }
.steps-grid h3 { font: 400 1.65rem/1.1 var(--display); }
.steps-grid p { margin-top: .5rem; color: var(--muted); }
.deep-teaser { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center; margin-block: .5rem clamp(2.6rem, 5vw, 4.2rem); padding: clamp(1.6rem, 4.6vw, 3.6rem); border-radius: var(--r-xl); color: #dce9dd; background: var(--dark); box-shadow: var(--shadow-lg); }
.deep-teaser::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 88% -10%, #3f6a54 0%, transparent 58%), radial-gradient(#ffffff12 1px, transparent 1.4px) 0 0 / 22px 22px; }
.deep-teaser .eyebrow { color: #b9d8bf; }
.deep-teaser h2 { margin: .7rem 0 .9rem; color: #fbfdf5; font-size: clamp(2.5rem, 4.6vw, 4rem); }
.deep-teaser h2 em { color: #a9d7b4; }
.deep-teaser p { max-width: 46ch; }
.deep-teaser-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.3rem; margin: 1.35rem 0 1.6rem; padding: 0; list-style: none; font-size: .95rem; font-weight: 600; color: #f1f7ec; }
.deep-teaser-list li { display: flex; align-items: center; gap: .55rem; }
.deep-teaser-list .ui-icon { width: 1.1rem; height: 1.1rem; color: #a9d7b4; }
.teaser-report { display: grid; gap: .8rem; padding: 1.1rem; border-radius: var(--r-lg); color: var(--ink); background: var(--paper); box-shadow: 0 30px 50px -30px #06150f; transform: rotate(1.2deg); }
.teaser-report > div { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.teaser-label { margin-bottom: .4rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.teaser-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; }
.teaser-verdict strong { font: 400 2.1rem/1 var(--display); color: var(--caution-ink); }
.teaser-verdict p { flex: 1 1 12rem; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.teaser-meter { display: flex; align-items: end; gap: 3px; height: 1.7rem; }
.teaser-meter span { width: 7px; border-radius: 2px; background: #d5dbd2; }
.teaser-meter span:nth-child(1) { height: 36%; }
.teaser-meter span:nth-child(2) { height: 52%; }
.teaser-meter span:nth-child(3) { height: 68%; }
.teaser-meter span:nth-child(4) { height: 84%; }
.teaser-meter span:nth-child(5) { height: 100%; }
.teaser-meter .filled { background: var(--caution); }
.teaser-text { font-size: .95rem; line-height: 1.75; }
.teaser-text mark { color: inherit; background: none; }
.teaser-text .t-premise { padding: .1em .12em; border-radius: .2em; background: var(--caution-bg); }
.teaser-text .t-claim { box-shadow: inset 0 -2px 0 var(--green); }
.teaser-text .t-flaw { text-decoration: underline wavy var(--rust); text-decoration-thickness: 1.3px; text-underline-offset: .28em; }
.teaser-text .ref { height: 1.1rem; min-width: 1.4rem; margin-left: .15rem; font-size: .62rem; vertical-align: .15em; }
.teaser-rows { display: grid; gap: .45rem; font-size: .86rem; }
.teaser-rows p { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.featured { border-top: 1px solid var(--line); padding: clamp(2.4rem, 4.75vw, 4rem) 0 clamp(3.5rem, 7.5vw, 6rem); }
.category-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.category-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--dark); font-size: .89rem; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.category-links a:hover { background: var(--mint); border-color: #6a9380; }
.category-links a[aria-current] { color: var(--white); background: var(--dark); border-color: var(--dark); }
.category-links-label { align-self: center; margin-right: .3rem; color: var(--muted); font-size: .86rem; font-weight: 700; }

/* Fallacy cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.fallacy-card { overflow: hidden; border-radius: var(--r-lg); min-width: 0; border: 1px solid var(--line); background: var(--white); scroll-margin-top: calc(var(--header-height) + 1rem); transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); }
.fallacy-card:hover, .fallacy-card:focus-within { border-color: #8aab93; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fallacy-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.fallacy-card > a:focus-visible { outline-offset: -4px; border-radius: var(--r-lg); }
.fallacy-card-art { aspect-ratio: 1.72; overflow: hidden; background: #e4e9dd; }
.fallacy-card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; transition: transform .5s var(--ease); }
.fallacy-card:hover .fallacy-card-art img { transform: scale(1.045); }
.fallacy-card-copy { flex: 1; padding: 1.05rem 1.2rem 1.25rem; }
.fallacy-card-meta { display: flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 700; color: var(--green); letter-spacing: .07em; text-transform: uppercase; }
.fallacy-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.7rem; height: 1.7rem; background: var(--mint); border-radius: .46rem; }
.fallacy-icon img { width: 1.05rem; height: 1.05rem; }
.fallacy-card h3 { margin-block: .6rem .35rem; font: 400 1.85rem/1.05 var(--display); letter-spacing: -.01em; }
.fallacy-card p { color: var(--muted); line-height: 1.52; font-size: .96rem; }

/* Library */
.page-heading h1 { font-size: clamp(3.5rem, 7vw, 6.2rem); letter-spacing: -.034em; }
.page-heading .eyebrow { margin-bottom: .75rem; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; max-width: 53ch; margin-top: .9rem; }
.library, .fallacy-detail, .pricing-page, .prose-page { padding-block: clamp(2.8rem, 6vw, 5.2rem) clamp(4rem, 8vw, 6.25rem); }
.catalog-form { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) auto auto; align-items: end; gap: .85rem; padding: 1.15rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-top: 1.75rem; }
.catalog-form label { color: var(--muted); font-size: .86rem; }
.catalog-form input, .catalog-form select { margin-top: .3rem; height: 2.85rem; font-size: 1rem; }
.catalog-form > a { align-self: center; margin-top: 1.1rem; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.catalog-count { margin: 1.5rem 0 .8rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.breadcrumb { margin-bottom: 1.4rem; color: var(--muted); font-size: .92rem; }
.breadcrumb span { padding-inline: .35rem; }
.detail-hero { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 2.6rem; border-bottom: 1px solid var(--line); padding-bottom: 2.6rem; }
.detail-hero > img { width: min(100%, 320px); height: auto; aspect-ratio: 1; object-fit: cover; border: .5rem solid var(--white); border-radius: var(--r-lg); justify-self: end; box-shadow: var(--shadow-lg); transform: rotate(1.6deg); }
.large-icon { width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; border-radius: .7rem; }
.large-icon img { width: 1.45rem; height: 1.45rem; }
.page-heading .aliases { font-size: .95rem !important; }
.detail-grid { display: grid; grid-template-columns: 1.65fr 1fr; align-items: start; gap: 2.6rem; padding-top: 2.2rem; }
.detail-grid h2, .pricing-details h2, .prose-page h2 { font-size: clamp(2.1rem, 3.7vw, 3.1rem); }
.example-stack { display: grid; gap: 1rem; margin-top: 1.1rem; }
.worked-example { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.worked-example blockquote { position: relative; padding: 1.15rem clamp(1rem, 3vw, 1.4rem) 1.15rem clamp(2.6rem, 6vw, 3.2rem); font: 400 1.32rem/1.35 var(--display); }
.worked-example blockquote::before { content: "“"; position: absolute; left: clamp(.8rem, 2.4vw, 1.1rem); top: .55rem; color: var(--peach); font: 400 3.2rem/1 var(--display); }
.worked-example figcaption { padding: .82rem clamp(1rem, 3vw, 1.4rem); background: #f3f5ed; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.near-miss, .spot-card { border-radius: var(--r-md); padding: 1.25rem; }
.near-miss { margin-top: 1rem; border: 1px solid var(--good-line); background: var(--good-bg); }
.near-miss p, .spot-card p { margin-top: .65rem; }
.spot-card { position: sticky; top: calc(var(--header-height) + 1.2rem); border: 1px solid #c6d6c5; background: var(--mint); }
.spot-card h3 { margin-top: 1.1rem; }
.spot-card ul { margin-block: .7rem 0; padding-left: 1.2rem; }
.spot-card li + li { margin-top: .35rem; }
.spot-card .button { margin-top: 1.2rem; gap: .75rem; }
.spot-card .button span { font-size: 1.15rem; line-height: 1; }

/* Results */
.results-section { border-top: 1px solid var(--line); padding-block: 2.6rem 3.5rem; scroll-margin-top: calc(var(--header-height) + .5rem); }
.quick-review-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 1rem 2rem; }
.results-section > .quick-review-heading { margin-top: .5rem; }
.quick-review-heading h2 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.quick-review-heading > .argument-strength { max-width: 27rem; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-xs); }
.argument-strength { --strength-ink: var(--neutral-ink); --strength-fill: var(--neutral); scroll-margin-top: calc(var(--header-height) + 1rem); }
.argument-strength:is([data-strength="strong"], [data-strength="very_strong"]) { --strength-ink: var(--good-ink); --strength-fill: var(--good); }
.argument-strength:is([data-strength="moderate"], [data-strength="mixed"], [data-strength="partial"]) { --strength-ink: var(--caution-ink); --strength-fill: var(--caution); }
.argument-strength:is([data-strength="weak"], [data-strength="limited"]) { --strength-ink: var(--serious-ink); --strength-fill: var(--serious); }
.argument-strength-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.argument-strength-label { flex: 1 0 100%; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.argument-strength-summary > .ui-icon { width: 1.5rem; height: 1.5rem; color: var(--strength-ink); }
.argument-strength-meter { display: flex; flex: 0 0 auto; align-items: end; gap: 3px; height: 1.45rem; }
.argument-strength-meter span { width: 6px; height: var(--bar-height); border-radius: 2px; background: #d5dbd2; }
.argument-strength-meter span:nth-child(1) { --bar-height: 36%; }
.argument-strength-meter span:nth-child(2) { --bar-height: 52%; }
.argument-strength-meter span:nth-child(3) { --bar-height: 68%; }
.argument-strength-meter span:nth-child(4) { --bar-height: 84%; }
.argument-strength-meter span:nth-child(5) { --bar-height: 100%; }
.argument-strength-meter .filled { background: var(--strength-fill); }
.argument-strength-rating { color: var(--strength-ink); font: 400 1.85rem/1 var(--display); }
.argument-strength-note { margin-top: .4rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.argument-strength > a { display: inline-block; margin-top: .45rem; font: 700 .88rem/1.45 var(--body); }
.result-list { display: grid; gap: .7rem; margin: .95rem 0; }
.score-card { display: flex; align-items: flex-start; gap: clamp(.7rem, 2vw, 1.1rem); padding: .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-xs); }
.score-illustration { flex: 0 0 auto; width: clamp(3.6rem, 11vw, 5.6rem); height: auto; border-radius: .6rem; }
.score-copy { flex: 1; min-width: 0; }
.score-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.score-heading h3 { display: flex; align-items: center; gap: .55rem; }
.score-value { font-weight: 700; font-size: 1.05rem; color: var(--dark); font-variant-numeric: tabular-nums; }
.score-bar { display: block; height: .3rem; margin: .5rem 0 .55rem; overflow: hidden; border-radius: 1rem; background: #e6ebe1; }
.score-bar span { display: block; width: calc(var(--score) * 100%); height: 100%; border-radius: inherit; background: var(--rust); }
.score-card p { color: var(--muted); margin-top: .28rem; font-size: .96rem; }
.clear-result { display: flex; align-items: center; gap: 1rem; margin-block: 1.15rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--good-line); border-radius: var(--r-md); background: var(--good-bg); }
.clear-result-mark { display: grid; flex: 0 0 auto; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; color: var(--white); background: var(--good); font-size: 1.35rem; font-weight: 700; }
.clear-result h3 { font: 400 clamp(1.85rem, 4vw, 2.65rem)/1.06 var(--display); }
.clear-result p { margin-top: .3rem; color: var(--muted); }
.cutoff-note { margin: .2rem 0 .6rem; color: var(--muted); font-size: .88rem; }
.lower-matches { margin: .75rem 0 1rem; }
.lower-matches summary, .saved-argument summary { color: var(--green); font-weight: 700; }
.result-cta { margin-top: 1.65rem; border: 1px solid #c6d6c5; border-radius: var(--r-md); background: var(--mint); padding: 1.2rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: .9rem; }
.result-cta p { color: var(--muted); margin-top: .25rem; }
.review-quote { margin-block: .5rem; padding: .5rem .95rem .55rem; border: 1px solid var(--line); border-radius: .6rem; background: #f6f7f0; color: #2c4035; font: italic 400 1.2rem/1.45 var(--display); }
.review-note, .muted { color: var(--muted); }

/* Passages marked in an argument */
.hl {
    padding-block: .12em;
    color: inherit;
    background: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.hl-premise { background: var(--neutral-bg); }
.hl-premise.hl-tone-good { background: var(--good-bg); }
.hl-premise.hl-tone-caution { background: var(--caution-bg); }
.hl-premise.hl-tone-serious { background: var(--serious-bg); }
.hl-premise.hl-tone-critical { background: var(--critical-bg); }
.hl-claim { box-shadow: inset 0 -2px 0 var(--green); }
.hl-possible { text-decoration: underline dotted var(--rust); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.hl-fallacy { text-decoration: underline wavy var(--rust); text-decoration-thickness: 1.4px; text-underline-offset: .3em; }
.hl-ref {
    display: inline-block;
    margin: 0 .08em 0 .18em;
    padding: .12em .34em;
    border: 1px solid transparent;
    border-radius: .35em;
    font: 700 .62em/1.1 var(--mono);
    text-decoration: none;
    vertical-align: .32em;
    white-space: nowrap;
    transition: transform .15s var(--ease);
}
.hl-ref:hover { transform: translateY(-1px); }
.hl-ref-claim { color: #fff; background: var(--green); }
.hl-ref-premise { color: var(--dark); background: var(--mint-deep); border-color: #a9c2ac; }
.hl-ref-fallacy { color: #fff; background: var(--rust); }
.hl-ref-possible { color: var(--rust); border: 1px dashed var(--rust); }

/* Tone ratings */
.tone-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .75rem; margin: 0; }
.tone-ratings > div { display: grid; align-content: start; gap: .4rem; padding: .95rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.tone-ratings dt { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; font-weight: 700; line-height: 1.3; }
.tone-ratings dd { margin: 0; }
.tone-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--mint); color: var(--dark); }
.tone-icon .ui-icon { width: 1.1rem; height: 1.1rem; }
.tone-label { color: var(--ink); font: 400 1.55rem/1.1 var(--display); }
.tone-scale { display: grid; gap: .3rem; margin-top: .15rem; }
.tone-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.tone-track span { height: .42rem; border-radius: 1rem; background: #dfe5da; }
.tone-track .on { background: var(--dark); }
.tone-ends { display: flex; justify-content: space-between; gap: .75rem; color: var(--subtle); font-size: .72rem; line-height: 1.3; }
.tone-ends span:last-child { text-align: right; }
.tone-score { color: var(--subtle); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tone-score strong { color: var(--muted); }
.tone-relevance { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.tone-relevance strong { color: var(--ink); white-space: nowrap; }
.tone-details { margin-top: 1rem; }
.tone-details summary { cursor: pointer; color: var(--green); font-weight: 700; }
.tone-details p { margin: .65rem 0; color: var(--muted); font-size: .88rem; }
.tone-details table { width: 100%; border-collapse: collapse; font-size: .83rem; line-height: 1.4; }
.tone-details th, .tone-details td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.tone-details td strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tone-quote { margin-top: .2rem; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.claim-ratings { display: grid; gap: .65rem; }
.claim-ratings:has(+ *) { margin-bottom: 1.1rem; }
.claim-ratings > p { color: var(--muted); font-size: .92rem; }

/* Account forms */
.account-page { padding-block: clamp(2.4rem, 6.5vw, 5rem); }
.account-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-md); }
.account-card { padding: clamp(1.4rem, 4.5vw, 3rem); }
.account-card .page-heading h1 { font-size: clamp(2.8rem, 5.4vw, 4.2rem); }
.account-aside { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 22rem; padding: 1.5rem; color: #f4f8ee; background: #225245; }
.account-aside img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-aside::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 38%, #0f2a21e6 100%); }
.account-aside p { font: 400 1.9rem/1.12 var(--display); text-wrap: balance; }
.account-aside span { display: block; margin-top: .5rem; color: #cfe2d2; font: 500 .92rem/1.45 var(--body); }
.stack-form { display: grid; gap: .85rem; margin-top: 1.5rem; }
.stack-form label { font-size: .92rem; }
.stack-form label > input:not([type=checkbox]) { margin-top: .3rem; min-height: 2.85rem; }
.stack-form .check-label { display: flex; gap: .5rem; align-items: baseline; font-weight: 400; }
.stack-form .button { margin-top: .4rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; font-size: .94rem; font-weight: 600; }
.saved-argument { margin: 1.15rem 0; }
.saved-argument blockquote { margin-top: .55rem; padding: 1rem clamp(1rem, 3vw, 1.4rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); scroll-margin-top: calc(var(--header-height) + 1rem); }
.price-card-highlight { color: #e3eee3; background: var(--dark); border-color: var(--dark); box-shadow: var(--shadow-lg); }
.price-card-highlight::before { content: "Best value"; position: absolute; top: 1.35rem; right: 1.35rem; padding: .18rem .65rem; border-radius: 999px; color: var(--dark); background: var(--peach); font: 700 .72rem/1.5 var(--body); letter-spacing: .04em; }
.price-card h2 { font-size: 2.3rem; }
.price-card .price { margin-top: .9rem; color: var(--dark); font: 400 3.2rem/1 var(--display); }
.price-card .price span { color: var(--muted); font: 500 .86rem/1 var(--body); }
.price-card-highlight h2, .price-card.price-card-highlight .price { color: #fbfdf5; }
.price-card.price-card-highlight .price span, .price-card-highlight .plan-status { color: #bcd2bf; }
.price-card-highlight .button-primary { color: var(--dark); background: #f4f8ee; box-shadow: none; }
.price-card-highlight .button-primary:hover { color: var(--dark); background: #fff; }
.price-card-highlight li::before { background-color: #a9d7b4; }
.price-card-highlight :focus-visible { outline-color: var(--peach); }
.price-card ul { flex: 1; width: 100%; margin: 1.3rem 0 1.4rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.price-card-highlight ul { border-top-color: #ffffff2e; }
.price-card li { position: relative; margin-block: .55rem; padding-left: 1.7rem; font-size: .96rem; line-height: 1.45; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--mint-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173d32' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / .72rem no-repeat; }
.price-card > .button, .price-card form, .price-card form .button { width: 100%; }
.plan-status { color: var(--muted); padding-bottom: .55rem; font-size: .93rem; }
.pricing-details { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.pricing-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.4rem 0 0; }
.pricing-details dl > div { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.pricing-details dt { display: flex; align-items: center; gap: .55rem; font: 400 1.6rem/1.1 var(--display); }
.pricing-details dt .ui-icon { width: 1.35rem; height: 1.35rem; color: var(--green); }
.pricing-details dd { margin: .6rem 0 0; color: var(--muted); font-size: .96rem; }

/* Prose pages */
.prose-page { max-width: 780px; }
.prose-page .page-heading { margin-bottom: 2.2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.prose-page .page-heading h1 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); }
.prose-page > h2 { margin-top: 2rem; margin-bottom: .6rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose-page > p { margin-bottom: .85rem; color: #2c4035; font-size: 1.04rem; line-height: 1.7; }
.fact-list { margin: .9rem 0 1.1rem; padding: .35rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-xs); }
.fact-list > div { display: grid; grid-template-columns: minmax(8rem, 26%) minmax(0, 1fr); gap: .2rem 1.2rem; padding-block: .8rem; }
.fact-list > div + div { border-top: 1px solid var(--line); }
.fact-list dt { font-weight: 700; }
.fact-list dd { margin: 0; color: #2c4035; }
.fact-list code { font: .92em var(--mono); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid #ced8cb; background: var(--paper-deep); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, auto)); gap: 2rem clamp(2rem, 7vw, 6rem); padding-block: 2.6rem 2.2rem; }
.footer-brand p { max-width: 34ch; margin-top: .8rem; color: var(--muted); font-size: .93rem; }
.footer-inner nav { display: grid; align-content: start; gap: .5rem; }
.footer-inner nav h2 { margin-bottom: .2rem; color: var(--subtle); font: 700 .72rem/1.4 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.footer-inner nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.footer-inner nav a:hover { color: var(--green); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; padding-top: 1.3rem; border-top: 1px solid #d5ddd0; color: var(--subtle); font-size: .84rem; }

@media (max-width: 980px) {
    .wrap { width: min(100% - 3rem, 1180px); }
    .site-header-inner { gap: 1rem; }
    .account-nav { gap: .65rem; }
    .hero { gap: 2rem; }
    .hero-art { min-height: 490px; }
    .steps-grid li:not(:last-child)::after { display: none; }
    .deep-teaser { grid-template-columns: minmax(0, 1fr); }
    .teaser-report { transform: none; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 2.3rem); }
    .site-header-inner { grid-template-columns: 1fr auto; padding-block: .7rem; row-gap: .6rem; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .site-nav a { padding-inline: .8rem; }
    .account-nav { grid-row: 1; grid-column: 2; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-top: 2.2rem; }
    .hero h1 { font-size: clamp(4.5rem, 19vw, 7.5rem); }
    .hero-art { min-height: clamp(230px, 58vw, 380px); }
    .hero-art img { object-position: center 55%; }
    .steps-grid { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .fallacy-card-copy { padding: .8rem .85rem 1rem; }
    .fallacy-card h3 { font-size: 1.6rem; }
    .fallacy-card-meta { font-size: .66rem; }
    .fallacy-card p { font-size: .93rem; }
    .catalog-form { grid-template-columns: minmax(0, 1fr) auto; }
    .catalog-form label:first-child { grid-column: 1 / -1; }
    .catalog-form > a { margin-top: 0; }
    .detail-hero, .detail-grid { gap: 1.2rem; }
    .spot-card { position: static; }
    .pricing-grid, .pricing-details dl { grid-template-columns: minmax(0, 1fr); }
    .quick-review-heading { grid-template-columns: minmax(0, 1fr); }
    .quick-review-heading > .argument-strength { max-width: none; }
    .account-shell { grid-template-columns: minmax(0, 1fr); }
    .account-aside { display: none; }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
    .wrap { width: calc(100% - 1.8rem); }
    .main_logo { font-size: clamp(1.06rem, 4.6vw, 1.29rem); }
    .site-header-inner { column-gap: .5rem; }
    .login-link { font-size: .82rem; }
    .button-small { padding-inline: .55rem; font-size: .78rem; }
    .analyzer { padding: .85rem; }
    .analyzer-actions > .button { padding-inline: .75rem; }
    .hero-intro { margin-top: 1.22rem; }
    .section-heading, .split-heading, .result-cta { align-items: flex-start; flex-direction: column; }
    .deep-teaser-list { grid-template-columns: minmax(0, 1fr); }
    .fact-list > div { grid-template-columns: minmax(0, 1fr); }
    .detail-hero, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-hero > img { width: min(100%, 235px); justify-self: start; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .fallacy-card > a:has(.fallacy-card-art) { display: grid; grid-template-columns: 32% 1fr; align-items: stretch; }
    .fallacy-card-art { aspect-ratio: unset; height: 100%; }
    .fallacy-card h3 { font-size: 1.5rem; }
}
@media (max-width: 360px) {
    .account-nav { flex-direction: column; align-items: flex-end; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .site-header, .site-footer, .skip-link, .analyzer, .result-cta { display: none !important; }
    body { background: #fff; }
}
