/* Inter by Rasmus Andersson. Fontsource 5.3.0, OFL-1.1. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fonts/inter-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Document canvas */
:root {
  color-scheme: light;
  --ink: #241e2b;
  --muted: #665e69;
  --canvas: #f8f6f2;
  --white: #fffefd;
  --line: #ded9d3;
  --violet: #6040be;
  --violet-dark: #4f309f;
  --lavender: #eee7fb;
  --peach: #ffc9a7;
  --radius: 19px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
a, button, textarea, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7850cd; outline-offset: 4px; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
.frame { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(100%); overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 5; top: 15px; left: 15px; width: auto; height: auto; padding: 10px 16px; clip-path: none; background: white; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner,.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-inner { min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 24px/1 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -1.3px; }
.brand img { border-radius: 8px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; }
nav a, .footer-link { padding-block: 9px; font-size: 14px; font-weight: 610; }
nav a:hover, .footer-link:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 5px; }
.local-status, .local-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 540; color: #5f5861; }
.local-status { padding: 6px 10px; background: #efeee9; border-radius: 20px; }
.local-status i { width: 7px; height: 7px; border-radius: 50%; background: #537962; box-shadow: 0 0 0 3px #dfe8de; margin: 0 2px; }
/* Punctuation, fold and pencil are drawn in CSS so the visual stays local. */
.hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; min-height: 265px; isolation: isolate; overflow: hidden; margin-top: 24px; padding: 28px clamp(24px,4.1vw,63px); border-radius: 23px; color: #fffdfc; background: #282034; }
.hero-copy { z-index: 2; }
h1 { font-size: clamp(52px,5.1vw,73px); font-weight: 665; line-height: .99; letter-spacing: -.073em; }
h1 em, .example-intro h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.062em; }
h1 em { color: #ffceb2; }
.hero-copy > p { max-width: 570px; margin: 17px 0 18px; color: #e1d8e8; font-size: clamp(15px,1.25vw,18px); line-height: 1.55; }
.hero-go { display: inline-flex; align-items: center; gap: 9px; color: #f8e7dd; padding: 4px 0; font-size: 14px; font-weight: 640; }
.hero-go:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cover-art { position: absolute; pointer-events: none; inset: 0 0 0 55%; display: grid; place-items: center; overflow: hidden; }
.art-halo { width: 116%; aspect-ratio: 1; top: -47%; right: -34%; border-radius: 50%; position: absolute; background: #68558d; }
.art-halo::after { content: ""; position: absolute; border-radius: 50%; inset: 10%; border: 1px solid #a18abd; }
.art-back,.art-paper { width: clamp(133px,13.7vw,211px); height: clamp(153px,15.4vw,235px); position: absolute; top: 50%; left: 49%; border: 1px solid #21192d; border-radius: 3px 13px 5px 3px; }
.art-back { background: #ffbc92; transform: translate(-67%,-45%) rotate(-18deg); box-shadow: 4px 4px 0 #392a41; }
.art-back::before { content: ""; position: absolute; inset: 8% 9%; border-left: 1px solid #a6735d; border-top: 1px solid #a6735d; }
.art-paper { overflow: hidden; background: #e5d8fc; transform: translate(-42%,-49%) rotate(8deg); color: #452d67; box-shadow: 4px 5px 0 #32223b; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 17px 15px; transition: transform .5s cubic-bezier(.22,.9,.32,1); }
.hero:hover .art-paper { transform: translate(-40%,-51%) rotate(6deg); }
.paper-bars,.paper-lining { display: flex; flex-direction: column; gap: 4px; }
.paper-bars { align-self: end; width: 19%; margin-top: 2%; }
.paper-bars i,.paper-lining i { display: block; height: 1px; background: #795d93; }
.paper-bars i:nth-child(2) { width: 66%; align-self: end; }
.paper-glyph { align-self: center; margin-left: -4%; font: italic clamp(66px,8.4vw,125px)/.85 Georgia,serif; letter-spacing: -.13em; }
.paper-lining { width: 79%; gap: 5px; }
.paper-lining i:nth-child(2) { width: 83%; }.paper-lining i:last-child { width: 55%; }
.art-pencil { position: absolute; top: 61%; left: 58%; width: clamp(95px,10.5vw,155px); height: 11px; background: linear-gradient(#fee1d0 0 28%,#f9a67c 28% 76%,#d58064 76%); box-shadow: 0 3px 0 #2d1e3a55; transform: rotate(-38deg); border-radius: 1px 4px 4px 1px; }
.art-pencil::before { content: ""; position: absolute; right: 100%; top: 0; width: 17px; height: 100%; clip-path: polygon(0 50%,100% 0,100% 100%); background: linear-gradient(to right,#2c2235 0 27%,#f0d1af 27%); }
.art-pencil i { position: absolute; top: 0; bottom: 0; right: 8%; width: 8%; background: #e5d4c8; border-inline: 1px solid #ab998d; }
/* Workspace controls */
.block { margin-top: clamp(35px,4vw,57px); scroll-margin-top: 23px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading.compact { align-items: center; }
h2 { font-size: clamp(27px,3vw,43px); font-weight: 650; line-height: 1.08; letter-spacing: -.058em; }
.section-heading > p, .section-heading > div > p, .example-intro > p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.section-heading > div > p { margin-top: 8px; }
.section-heading > div { min-width: 0; }
#result-summary,#draft-meta { overflow-wrap: anywhere; }
h3 { font-size: 20px; font-weight: 645; line-height: 1.22; letter-spacing: -.038em; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.88fr) minmax(267px,.9fr); gap: 16px; align-items: stretch; }
.card, .price-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.input-card { padding: 23px; display: flex; flex-direction: column; }
.input-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.mode-picker { display: inline-flex; align-items: stretch; padding: 3px; background: #f0eeeb; border-radius: 10px; gap: 2px; }
.mode-picker button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 6px 11px; color: #635b65; font-size: 14px; font-weight: 600; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.mode-picker [aria-pressed="true"] { color: #403343; background: var(--white); border-color: #e0dbd7; box-shadow: 0 1px 3px #3c294312; }
.mode-picker button:hover { color: var(--violet); }
.input-panel { flex: 1; display: flex; flex-direction: column; }
textarea { color: var(--ink); resize: vertical; font-size: 16px; line-height: 1.58; }
textarea:focus-visible { outline: 2px solid #9278c8; outline-offset: 1px; }
#draft { display: block; width: 100%; min-height: 152px; flex: 1; padding: 16px; border: 1px solid #e3ded9; border-radius: 11px; background: #faf9f7; }
#draft::placeholder { color: #79717b; }
.input-bottom, .input-tools, .export-group, .dialog-actions, .paragraph-actions { display: flex; align-items: center; gap: 13px; }
.input-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.input-bottom { justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.quiet { background: transparent; border: 0; padding: 5px 1px; color: var(--violet-dark); font-size: 14px; font-weight: 620; }
.quiet.muted { color: var(--muted); }
.quiet:hover:enabled { text-decoration: underline; text-underline-offset: .2em; }
.settings-card { padding: 23px; background: #f0eaf5; border-color: #e0d7e7; }
fieldset { margin: 14px 0 16px; padding: 0; border: 0; min-width: 0; }
legend { margin: 0 0 6px; padding: 0; font-size: 12px; color: #675b6f; font-weight: 580; }
.profile { display: flex; align-items: center; gap: 10px; position: relative; cursor: pointer; min-height: 45px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; }
.profile:has(input:checked) { background: #fffdff; border-color: #d8ccdf; }
.profile:hover { background: #ffffff70; }
.profile input { position: absolute; left: 8px; top: 12px; width: 1px; height: 1px; opacity: 0; }
.profile:has(input:focus-visible) { outline: 3px solid #8a66c7; outline-offset: 2px; }
.profile-icon { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; color: #725a89; background: #e5dcea; }
.profile:has(input:checked) .profile-icon { color: #6241a8; background: #eee5fa; }
.profile-text { flex: 1; min-width: 0; }
.profile strong,.profile small { display: block; }
.profile strong { font-size: 14px; line-height: 1.4; }
.profile small { font-size: 13px; line-height: 1.35; color: #645b69; }
.radio-mark { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #aea0b7; background: #ffffffa0; }
.profile input:checked ~ .radio-mark { border: 4px solid var(--violet); background: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 650; line-height: 1.3; transition: transform .15s, background .15s, border-color .15s; }
.button:active:enabled { transform: translateY(1px); }
.primary { background: var(--violet); color: #fff; }
.primary:hover:enabled { background: var(--violet-dark); }
.secondary { background: var(--white); color: #46384d; border-color: #d8d1da; }
.secondary:hover:enabled { background: #f3edf8; border-color: #c8b7d6; }
.button.small { min-height: 38px; padding: 7px 11px; font-size: 14px; }
.analyze { width: 100%; min-height: 44px; }
.drop-zone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; border: 1.5px dashed #b8a7c9; border-radius: 10px; padding: 16px 12px; background: #faf8fc; color: var(--muted); font-size: 14px; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone:is(.dragging,.is-dragging,.drag-over) { background: #ede4fa; border-color: #6e4ba3; outline: 2px solid #8567ad; outline-offset: -3px; }
.file-limits { line-height: 1.5; margin: 3px 0; }.file-limits span { white-space: nowrap; }
.busy-label { display: none; }.analyze[aria-busy="true"] .busy-label { display: inline; }.analyze[aria-busy="true"] .ready-label { display: none; }
.analyze[aria-busy="true"] { opacity: 1; background: #59428e; cursor: progress; }
.analyze[aria-busy="true"] .i-scan { width: 14px; height: 14px; border: 2px solid #c4b8de; border-right-color: white; border-radius: 50%; }
.analyze[aria-busy="true"] .i-scan::before,.analyze[aria-busy="true"] .i-scan::after { display: none; }
@keyframes import-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion:no-preference) { .analyze[aria-busy="true"] .i-scan { animation: import-turn .85s linear infinite; } }
.drop-zone strong { color: var(--ink); font-size: 15px; }
.drop-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; margin-bottom: 6px; color: #6042a1; background: #e9e0f4; }
.drop-zone .button { margin-top: 9px; min-height: 38px; padding: 6px 12px; font-size: 14px; }
.file-name { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
.file-name:empty { margin: 0; }
.sample-docx { align-self: flex-start; margin-top: 5px; }.sample-docx:hover { text-decoration: underline; }
.status { line-height: 1.55; margin-top: 12px; border-left: 3px solid #9479bf; border-radius: 4px; background: #f3eef9; color: #514164; padding: 8px 10px; font-size: 14px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.method { margin-top: 12px; padding: 0 3px; color: var(--muted); font-size: 15px; }
.method summary { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; list-style: none; font-weight: 600; }
.method summary::-webkit-details-marker { display: none; }
.method[open] .i-plus::after { opacity: 0; }
.method p { margin: 4px 0; max-width: 870px; }
/* Symbol set */
.ico { position: relative; display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; color: inherit; vertical-align: middle; }
.ico::before,.ico::after { content: ""; position: absolute; }
.i-arrow::before { width: 11px; height: 1.7px; top: 7px; left: 2px; background: currentColor; }
.i-arrow::after { width: 7px; height: 7px; right: 2px; top: 4px; border-right: 1.7px solid; border-top: 1.7px solid; transform: rotate(45deg); }
.i-lock::before { inset: 7px 3px 1px; border: 1.5px solid; border-radius: 2px; }.i-lock::after { inset: 1px 5px 7px; border: 1.5px solid; border-bottom: 0; border-radius: 5px 5px 0 0; }
.i-lines::before { top: 3px; left: 1px; width: 13px; height: 1.5px; background: currentColor; box-shadow: 0 4px, 0 8px; }.i-lines::after { right: 0; bottom: 2px; width: 5px; height: 3px; background: #f1eeec; }
.i-file::before { inset: 1px 3px; border: 1.5px solid; border-radius: 2px; }.i-file::after { top: 3px; right: 4px; width: 4px; height: 4px; border-left: 1px solid; border-bottom: 1px solid; }
.i-book::before { inset: 2px 1px 3px; border: 1.5px solid; border-radius: 2px 2px 1px 1px; }.i-book::after { left: 7px; top: 3px; height: 11px; border-left: 1.5px solid; }
.i-pen::before { left: 6px; top: 1px; width: 4px; height: 11px; border: 1.5px solid; transform: rotate(38deg); border-radius: 1px; }.i-pen::after { width: 3px; height: 3px; bottom: 0; left: 2px; background: currentColor; border-radius: 50%; }
.i-scan::before { inset: 1px; border: 1.5px solid; border-radius: 3px; }.i-scan::after { top: 7px; left: 0; width: 16px; border-bottom: 2px solid; }
.i-plus { width: 12px; height: 12px; }.i-plus::before { left: 1px; top: 5px; width: 10px; height: 1.5px; background: currentColor; }.i-plus::after { left: 5px; top: 1px; width: 1.5px; height: 10px; background: currentColor; }
/* Saved drafts */
.draft-shelf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; padding: 8px 11px; margin-top: 12px; border-radius: 8px; background: #f0eaf7; font-size: 12px; }
.shelf-actions { display: inline-flex; align-items: center; gap: 12px; }.shelf-status:not(:empty) { flex-basis: 100%; }.shelf-status:empty,.save-status:empty { display: none; }
.save-status { padding: 8px 20px; font-size: 14px; color: #514164; background: #f4eef8; }
/* Results and document comparison */
.result-card { overflow: hidden; }
.result-toolbar, .paragraph-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.result-toolbar { padding: 15px 20px; border-bottom: 1px solid var(--line); background: #faf8f5; }
.export-group, .paragraph-actions { flex-wrap: wrap; }
.paragraphs { padding: 5px 20px; }
.paragraph-card { padding: 18px 0; border-bottom: 1px solid #ece6e2; min-width: 0; }
.paragraph-card:last-child { border-bottom: 0; }
.paragraph-head { margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.paragraph-head label { display: inline-flex; align-items: center; gap: 7px; }
.paragraph-head input { accent-color: var(--violet); width: 15px; height: 15px; }
.paragraph-body { display: block; width: 100%; min-height: 80px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.paragraph-meta { color: #5f506f; margin: 6px 0; font-size: 15px; line-height: 1.5; }
.paragraphs > .paragraph-actions { margin: 13px 0; }
.paragraph-actions { font-size: 14px; }
.tag { display: inline-flex; border-radius: 20px; background: var(--lavender); color: var(--violet-dark); padding: 2px 8px; font-size: 12px; }
.working-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.working-comparison section { padding: 19px 21px; min-width: 0; }
.working-comparison section + section { border-left: 1px solid var(--line); background: #fbf9fe; }
.working-comparison h3 { margin-bottom: 12px; font-size: 16px; }
.compare-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.compare-content p { margin: 0 0 11px; }
.example-section { padding-block: 28px; display: grid; grid-template-columns: minmax(175px,.72fr) minmax(0,2fr); gap: 30px; align-items: center; border-block: 1px solid var(--line); }
.example-intro h2 em { color: var(--violet); }
.example-intro > p { max-width: 280px; margin-top: 12px; }
.example-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e1dad6; border-radius: 14px; overflow: hidden; }
.example-pair article { padding: clamp(17px,2vw,28px); background: #fffaf7; }
.example-pair article + article { background: #f0eafb; border-left: 1px solid #dfd4e2; }
.version-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #574c5e; }
.version-label i { width: 7px; height: 7px; border-radius: 50%; }.before { background: #b9795d; }.after { background: #805aba; }
.example-pair p { font: clamp(18px,1.62vw,24px)/1.45 Georgia,serif; letter-spacing: -.012em; margin-top: 13px; }
mark,.old,.new { color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.old { background: #f4d4c4; text-decoration: line-through; text-decoration-color: #a36a56; }
.new { background: #dfcdf3; }
/* Rates and feedback */
button:disabled { opacity: .68; }
.price-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.price-card { padding: 23px; }
.price-card h3 { font-size: 17px; }
.price { font-size: clamp(33px,3.4vw,49px); font-weight: 650; line-height: 1; letter-spacing: -.065em; margin: 17px 0; }
.price span { font-weight: 450; font-size: .6em; }
.price + p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.price + p strong { color: var(--ink); }
.main-plan { background: #30253d; color: #fffaf7; border-color: #30253d; }
.main-plan .price { color: #ffcaac; }.main-plan .price + p, .main-plan .price + p strong { color: #e8ddec; }
.plan-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { min-height: 82px; }
.footer-inner .brand { font-size: 20px; }
dialog { max-width: min(430px,calc(100% - 34px)); padding: 24px; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 22px 95px #1e142e50; }
dialog::backdrop { background: #2c203f70; }
dialog h2 { font-size: 27px; }
dialog p { color: var(--muted); font-size: 15px; margin: 13px 0 21px; }
.dialog-actions { justify-content: flex-end; }
@media (max-width:760px), (pointer:coarse) {
  nav a,.brand,.footer-link,.hero-go,.quiet,.button,.button.small,.mode-picker button,.drop-zone .button,.method summary,.paragraph-actions label { min-height: 44px; }
  nav a,.footer-link,.quiet,.paragraph-actions label { display: inline-flex; align-items: center; }
  .paragraph-actions label { gap: 5px; }
  .hero-go { padding: 8px 0; }
  .input-bottom { flex-wrap: wrap; gap: 1px 9px; }
  .input-tools { flex-wrap: wrap; }
}
@media (max-width:1000px) {
  .frame { width: calc(100% - 56px); }
  .hero { min-height: 245px; }
  .workspace-grid { grid-template-columns: minmax(0,1.6fr) minmax(250px,.95fr); }
  .input-card,.settings-card { padding: 18px; }
  .example-section { gap: 18px; }
}
@media (max-width:760px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; gap: 12px; }
  nav { gap: 17px; }
  .local-status { display: none; }
  .hero { grid-template-columns: 1.6fr 1fr; min-height: 225px; margin-top: 16px; padding: 24px; }
  .hero h1 { font-size: clamp(43px,6.7vw,55px); }
  .hero-copy > p { font-size: 15px; margin-block: 12px; }
  .cover-art { left: 62%; }
  .art-paper,.art-back { width: 118px; height: 147px; left: 44%; }
  .paper-glyph { font-size: 65px; }
  .art-pencil { width: 92px; left: 47%; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .settings-card { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
  .settings-card h3 { grid-column: 1/-1; }
  fieldset { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 0; }
  legend { width: 100%; }
  .analyze { align-self: end; margin-bottom: 3px; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 300px; }
  .example-section { grid-template-columns: 1fr; gap: 16px; }
  .example-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
  .example-intro p { margin: 0; }
  .price-grid { gap: 9px; }
  .price-card { padding: 17px 14px; }
}
@media (max-width:530px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { min-height: 59px; }
  .brand { font-size: 21px; gap: 7px; }.brand img { width: 28px; height: 28px; }
  nav { gap: 12px; }nav a { font-size: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 230px; padding: 21px; border-radius: 17px; }
  .hero-copy > p { margin: 14px 0 29px; max-width: 100%; font-size: 15px; }
  .hero h1 { font-size: clamp(36px,8.8vw,47px); max-width: 100%; }
  .cover-art { left: auto; bottom: -8px; top: auto; right: 2px; width: 110px; height: 83px; opacity: .98; }
  .cover-art .art-halo { display: none; }
  .art-back,.art-paper { width: 56px; height: 65px; left: 52%; padding: 3px 5px; }
  .paper-glyph { font-size: 33px; }.paper-bars { gap: 2px; }.paper-lining { gap: 2px; }
  .art-pencil { width: 52px; height: 5px; left: 58%; }
  .art-pencil::before { width: 8px; }
  .local-note { font-size: 12px; gap: 3px; }
  .local-note .ico { transform: scale(.8); }
  .section-heading.compact { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .section-heading.compact .local-note { max-width: 119px; }
  .block { margin-top: 29px; }
  .section-heading { margin-bottom: 13px; }
  .input-card,.settings-card { padding: 15px; }
  .input-heading { gap: 8px; margin-bottom: 12px; }
  h3 { font-size: 17px; }
  .mode-picker button { gap: 5px; padding: 6px 8px; font-size: 14px; }
  .mode-picker .ico { width: 14px; }
  #draft { padding: 12px; min-height: 141px; }
  .input-tools { gap: 9px; }
  .quiet { font-size: 14px; }
  .settings-card { display: block; }
  fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 11px 0 12px; gap: 5px; }
  .profile { gap: 6px; padding: 7px 6px; }
  .profile-icon { display: none; }
  .radio-mark { flex: 0 0 auto; }
  .profile small { font-size: 12px; }
  .analyze { margin-bottom: 0; }
  .example-intro { display: block; }.example-intro > p { margin-top: 7px; max-width: none; }
  .example-pair,.working-comparison { grid-template-columns: 1fr; }
  .example-pair article + article,.working-comparison section + section { border-left: none; border-top: 1px solid #dfd4e2; }
  .working-comparison section { padding: 15px; }
  .example-section { padding-block: 20px; }
  .plans-section .section-heading { display: block; }.section-heading > p { margin-top: 6px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
  .price { grid-column: 2; grid-row: 1/3; margin: 0; }
  .price + p { grid-column: 1; font-size: 14px; }
  .result-toolbar,.paragraph-head { align-items: start; gap: 10px; }
  .result-toolbar { padding: 12px; }.paragraphs { padding-inline: 12px; }
  .export-group { gap: 9px; }
  .footer-inner { min-height: 64px; }
}
@media (max-width:380px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 3px; }
  .header-inner nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; }
  .header-inner .local-status { display: inline-flex; white-space: nowrap; padding-inline: 6px; gap: 6px; }
  .input-heading { flex-wrap: wrap; align-items: start; }
  .section-heading.compact { align-items: start; }
  .section-heading.compact .local-note { max-width: 95px; line-height: 1.3; }
  .input-tools { width: 100%; justify-content: space-between; }
  .result-section .section-heading { flex-wrap: wrap; }
  .result-section .section-heading .quiet { text-align: left; }
}
@media (max-width:350px) {
  nav { gap: 8px; } nav a { font-size: 14px; }
  .hero { padding: 18px; }
  .local-note { max-width: 100px; line-height: 1.25; }
  .mode-picker button { gap: 3px; padding-inline: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
