/* ==========================================================================
   Bytenix Research Writing Studio — built on the site tokens (site.css)
   ========================================================================== */
:root { --st-ink: #8B7BF0; --st-paper: color-mix(in srgb, var(--surface) 92%, #fff 8%); }
/* the hidden attribute must win over any display rule set by a class (e.g. .st-doc-bar { display:flex }) */
[hidden] { display: none !important; }
.st-small { font-size: 14px; line-height: 1.5; }
/* site.css makes every svg a block; icons inside a line of text must stay inline */
.st-small > svg, .note > svg, p.muted > svg, .st-why svg, .hint > svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }
/* site.css gives every .field input full width and 46px height, which also hit checkboxes and radios */
.field input[type="checkbox"], .field input[type="radio"], .st-checks input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; padding: 0; flex: none; margin: 3px 0 0; border-radius: 4px; }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-err { color: var(--danger); }
.spacer { flex: 1; }

/* ---------- landing ---------- */
.st-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
/* fixed-size circles that fade out completely inside the hero, so no rectangular edge is ever visible */
.st-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at 78% 30%, color-mix(in srgb, var(--st-ink) 20%, transparent), transparent 70%), radial-gradient(480px circle at 62% 85%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.st-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.st-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 14px 0 18px; letter-spacing: -.02em; }
.st-hero h1 em { font-style: normal; color: var(--brand); }
.st-hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.st-hero .btn-row { margin-top: 26px; }
.st-free { margin-top: 14px; font-size: 14.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.st-demo { position: relative; background: var(--st-paper); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 24px 18px; box-shadow: var(--shadow); font-family: Georgia, "Times New Roman", serif; font-size: 17.5px; line-height: 1.7; color: var(--text); min-height: 248px; }
.st-demo .st-demo-tag { font-family: var(--body); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.st-demo p[data-v] { position: absolute; left: 24px; right: 24px; top: 52px; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.st-demo p[data-v].on { opacity: 1; transform: none; }
.st-demo .st-demo-foot { position: absolute; left: 24px; right: 24px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--body); font-size: 13px; }
.st-lock { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; margin: 0 1px; border-radius: 7px; font-family: var(--body); font-size: .9em; font-weight: 600;
  background: color-mix(in srgb, var(--st-ink) 18%, transparent); color: var(--heading); border: 1px solid color-mix(in srgb, var(--st-ink) 40%, transparent); white-space: nowrap; }
.st-lock::before { content: ""; width: 7px; height: 8px; border: 1.6px solid currentColor; border-top-width: 3px; border-radius: 2px; opacity: .7; }

/* interactive "Try Humanize Text" hero panel */
.st-try { background: var(--st-paper); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px 22px 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.st-try-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.st-try-head b { font-family: var(--display); font-size: 18px; color: var(--heading); }
.st-try textarea { width: 100%; min-height: 110px; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; }
.st-try textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent); outline-offset: 1px; }
.st-try-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-try-bar .muted.warn { color: var(--danger); }
.st-try-bar select { min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 14px; }
.st-try-bar .btn { margin-left: auto; }
.st-try-out { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.st-try-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--heading); font-size: 14px; }
.st-try-text { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.65; margin: 0; }
.st-try-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-try-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.st-try-sample { text-align: center; }

.st-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; padding: 0; margin: 0; }
.st-how li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; counter-increment: st; }
.st-how li::before { content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--heading); font-weight: 700; margin-bottom: 10px; }
.st-how b { display: block; color: var(--heading); font-family: var(--display); margin-bottom: 4px; }
.st-how span { color: var(--muted); font-size: 15px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.st-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .25s var(--ease), border-color .2s; }
a.st-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--text); }
.st-card .st-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--brand)) 20%, transparent); color: var(--heading); }
.st-card h3 { font-size: 19px; margin: 6px 0 0; }
.st-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.st-card .badge { position: absolute; top: 18px; right: 18px; }
.st-card.soon { opacity: .78; }
/* the two main tools get a wide row of their own; the three free tools share the next row, so no card is left alone */
.st-cards.st-cards-2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
.st-cards.st-cards-3 { grid-template-columns: repeat(3, 1fr); }
.st-card.feat { padding: 26px 26px 22px; background: linear-gradient(150deg, color-mix(in srgb, var(--c, var(--brand)) 14%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--c, var(--brand)) 30%, var(--line)); }
.st-card.feat h3 { font-size: 23px; }
.st-card.feat p { font-size: 16px; }
.st-card .st-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--brand); }
.st-card .st-go svg { transition: transform .25s var(--ease); }
a.st-card:hover .st-go svg { transform: translateX(4px); }
.st-checks-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0; }
.st-checks-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.st-checks-list li svg { flex: none; color: var(--ok); margin-top: 3px; }
.st-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-trust > div { padding: 22px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--st-ink) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.st-trust h3 { font-size: 18px; margin: 10px 0 6px; }
.st-trust p { color: var(--muted); font-size: 15.5px; margin: 0; }
.st-teaser { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 28px; border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, var(--surface)), color-mix(in srgb, var(--st-ink) 18%, var(--surface))); border: 1px solid var(--line-2); }
.st-teaser h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.st-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.st-faq summary { cursor: pointer; font-weight: 600; color: var(--heading); font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.st-faq details[open] summary::after { content: "–"; }
.st-faq details p, .st-faq details ul { color: var(--muted); margin-top: 10px; }

/* ---------- workspace ---------- */
.st-app { max-width: 1520px; margin: 0 auto; padding: 22px 20px 60px; }
.st-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-bottom: 18px; }
.st-top h1 { font-size: 30px; margin: 6px 0 0; }
.st-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.st-mods a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--surface); }
.st-mods a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--heading); }
.st-top #st-meter { margin-left: auto; }
.st-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.st-plan { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 8px; background: color-mix(in srgb, var(--st-ink) 22%, transparent); color: var(--heading); }
.st-credits b { font-family: var(--display); color: var(--heading); font-size: 18px; }
.st-warn { font-size: 13px; color: var(--warn); }
.st-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.st-left { display: grid; gap: 14px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.st-right { display: grid; gap: 14px; position: sticky; top: 84px; }
.st-right h2, .st-left h2 { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.st-step h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: 14px; }
.st-left .panel, .st-right .panel { padding: 18px; }
.st-left .tabs { margin-bottom: 12px; }
.st-left .st-toolpick { display: flex; width: 100%; margin-bottom: 6px; }
.st-left .st-toolpick button { flex: 1; }
#o-tool-hint { margin: 0 0 14px; color: var(--muted); }
.st-drop { padding: 22px 14px; text-align: center; }
.st-drop b { font-family: var(--display); color: var(--heading); }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.st-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.st-seg label { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; background: var(--bg-2); }
.st-seg label.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.st-seg input { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-seg b { color: var(--heading); font-size: 15px; } .st-seg small { color: var(--muted); font-size: 12.5px; }
.st-seg label:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
.st-est { margin-bottom: 12px; }
.st-est-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.st-est-row b { font-family: var(--display); color: var(--heading); }
.st-est-row.st-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.st-prog { margin-top: 12px; }
.st-doc { min-width: 0; }
.st-doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: 76px; z-index: 5; }
.st-sel { min-height: 36px; width: auto; padding: 4px 10px; font-size: 14.5px; }
.st-empty { padding: 60px 20px; }
.st-h { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 22px 4px 10px; font-family: var(--display); font-weight: 700; color: var(--heading); font-size: 19px; }
.st-sec { font-family: var(--body); font-size: 13.5px; min-height: 32px; padding: 2px 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); }
.st-p { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.st-p p { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; line-height: 1.65; }
.st-p.sel { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.st-p.skip { background: transparent; border-style: dashed; }
.st-p.skip p { color: var(--muted); font-size: 15px; }
.st-p.busy { position: relative; overflow: hidden; }
.st-p.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 12%, transparent), transparent); animation: st-sweep 1.4s linear infinite; }
@keyframes st-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.st-p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.st-pick input { width: 18px; height: 18px; accent-color: var(--brand); }
.st-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--st-ink) 18%, transparent); color: var(--heading); }
.st-chip.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; }
.st-chip.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.st-chip.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.st-cmp { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-cmp-h { display: grid; grid-template-columns: 1fr 1fr 44px; background: var(--surface-2); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.st-cmp-h span { padding: 7px 12px; }
.st-unit { display: grid; grid-template-columns: 1fr 1fr 44px; border-top: 1px solid var(--line); }
.st-unit > div { padding: 10px 12px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; }
.st-a { color: var(--muted); border-right: 1px solid var(--line); }
.st-unit.rej .st-b { opacity: .45; } .st-unit.rej .st-a { color: var(--text); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.st-unit del { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--text); text-decoration-color: var(--danger); border-radius: 4px; }
.st-unit ins { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--heading); text-decoration: none; border-radius: 4px; }
.st-use { align-self: stretch; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ok); cursor: pointer; display: grid; place-items: center; }
.st-use[aria-pressed="false"] { color: var(--muted); }
.st-use:hover { background: var(--surface-2); }
.st-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.st-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ok); }
.st-why { margin-top: 8px; font-size: 14.5px; }
.st-why summary { cursor: pointer; color: var(--link); font-weight: 600; }
.st-why ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.st-stat { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.st-stat b { font-family: var(--display); font-size: 26px; color: var(--heading); }
.st-stat span { color: var(--muted); font-size: 14.5px; }
.st-exp { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.st-tips ol { padding-left: 20px; color: var(--muted); margin: 0 0 10px; } .st-tips li { margin-bottom: 6px; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.st-kpis div { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.st-kpis b { display: block; font-family: var(--display); font-size: 24px; color: var(--heading); }
.st-kpis span { font-size: 13px; color: var(--muted); }
.st-tiplist { padding-left: 18px; } .st-tiplist > li { margin-bottom: 10px; } .st-tiplist ul { color: var(--muted); font-size: 14.5px; padding-left: 18px; }

/* ---------- forms (disclosure) ---------- */
.st-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.st-form .full { grid-column: 1 / -1; }
.st-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.st-checks legend { margin-bottom: 8px; }
.st-checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.st-checks input, .st-credit input { width: 17px; height: 17px; accent-color: var(--brand); margin-top: 3px; }
.st-out { margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: var(--st-paper); border: 1px solid var(--line-2); }
.st-out-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.st-out-head b { color: var(--heading); font-family: var(--display); }
.st-out p#d-body { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; line-height: 1.65; }
.st-pre { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; margin: 0; }
.st-pane { margin-top: 16px; }
.st-credit td, .st-credit th { text-align: center; padding: 6px 8px; } .st-credit th[scope="row"] { text-align: left; font-weight: 500; }

/* ---------- references ---------- */
.st-refs-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.st-refs-grid > .panel { position: sticky; top: 84px; }
.st-sum { margin-bottom: 14px; }
.st-big { font-size: 18px; }
.st-ref-list { display: grid; gap: 10px; }
.st-ref { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); }
.st-ref.ok { border-left-color: var(--ok); } .st-ref.warn { border-left-color: var(--warn); } .st-ref.err { border-left-color: var(--danger); } .st-ref.info { border-left-color: var(--st-ink); }
.st-ref-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-ref-n { font-family: var(--display); font-weight: 700; color: var(--heading); min-width: 26px; }
.st-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.st-badge.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--heading); }
.st-badge.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--heading); }
.st-badge.err { background: color-mix(in srgb, var(--danger) 22%, transparent); color: var(--heading); }
.st-badge.info { background: color-mix(in srgb, var(--st-ink) 22%, transparent); color: var(--heading); }
.st-ref-raw { margin: 8px 0 6px; font-size: 15px; }
.st-diff { margin: 8px 0; font-size: 14.5px; }
.st-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .st-inline .input { max-width: 300px; min-height: 38px; }
.st-issues { padding-left: 20px; margin: 0; } .st-issues li { margin-bottom: 4px; } .st-issues .missing, .st-issues .duplicate { color: var(--danger); } .st-issues .order, .st-issues .uncited { color: var(--warn); }
.st-final-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-final-head h2 { margin: 0; font-size: 20px; }
.st-final { list-style: none; padding: 0; margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.6; }
.st-final li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
#rf-final { margin-top: 16px; }

/* ---------- pricing ---------- */
.st-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.st-plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.st-sec { margin-top: 56px; }
.st-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.st-pack h3 { margin: 0 0 4px; font-size: 19px; }
.st-pack-price { font-family: var(--display); font-size: 28px; color: var(--heading); margin: 0 0 6px; }
.st-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; } .st-coupon .input { max-width: 200px; min-height: 40px; text-transform: uppercase; }
.st-calc { max-width: 720px; }
.st-calc-out { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.st-cmp-t th[scope="row"] { text-align: left; } .st-cmp-t td { text-align: center; }

/* ---------- guides ---------- */
.st-guide { max-width: 780px; margin: 0 auto; padding: 40px 20px 70px; }
.st-guide h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin: 14px 0 12px; }
.st-guide h2 { font-size: 24px; margin: 38px 0 10px; }
.st-guide h3 { font-size: 19px; margin: 24px 0 8px; }
.st-guide p, .st-guide li { font-size: 17.5px; }
.st-guide .st-meta { color: var(--muted); font-size: 14.5px; }
.st-guide blockquote { margin: 16px 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--st-paper); border-radius: 0 14px 14px 0; font-family: Georgia, "Times New Roman", serif; }
.st-guide .st-cta-box { margin: 30px 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, var(--st-ink) 14%, var(--surface))); border: 1px solid var(--line-2); }
.st-guide table { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .st-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .st-right { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
/* pricing comparison: keep the tool name visible while the plan columns scroll sideways on a phone */
.st-cmp-t th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); }
@media (max-width: 960px) {
  .st-hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .st-checks-list { grid-template-columns: repeat(2, 1fr); }
  .st-how { grid-template-columns: 1fr 1fr; }
  .st-trust { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: 1fr; }
  .st-left { position: static; max-height: none; overflow: visible; }
  .st-refs-grid { grid-template-columns: 1fr; } .st-refs-grid > .panel { position: static; }
  .st-top #st-meter { margin-left: 0; width: 100%; }
  .st-doc-bar { position: static; }
}
@media (max-width: 760px) {
  .st-cards.st-cards-2, .st-cards.st-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .st-app { padding: 16px 16px 50px; }
  .st-checks-list { grid-template-columns: 1fr; }
  .st-try { padding: 16px; }
  .st-try-bar select { flex: 1; }
  .st-try-bar .btn { width: 100%; margin-left: 0; justify-content: center; min-height: 46px; }
  .st-try-foot .btn { width: 100%; justify-content: center; }
  .st-how { grid-template-columns: 1fr; }
  .st-form, .st-two { grid-template-columns: 1fr; }
  .st-cmp-h { display: none; }
  .st-unit { grid-template-columns: 1fr 44px; }
  .st-unit .st-a { grid-column: 1; border-right: 0; border-bottom: 1px dashed var(--line); }
  .st-unit .st-a::before { content: "Original"; display: block; font: 600 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .st-unit .st-b { grid-column: 1; }
  .st-unit .st-b::before { content: "Rewritten"; display: block; font: 600 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .st-use { grid-column: 2; grid-row: 1 / span 2; }
  .st-try textarea { font-size: 15px; min-height: 100px; }
  .st-guide p, .st-guide li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .st-p.busy::after { animation: none; } }
.st-sum a svg, .st-out a svg, .st-guide a svg { display: inline; vertical-align: -2px; }
