:root {
  color-scheme: light;
  --ink: #1a2541;
  --muted: #66728b;
  --accent: #4e61ed;
  --accent-dark: #3549d2;
  --border: #e4e9f3;
  --surface: #fff;
  --bg: #f7f9ff;
  --soft: #f2f5fd;
  --green: #159d79;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #a3b2ff; outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 10px 16px; background: white; z-index: 50; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border); position: relative; z-index: 3; }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 20px; font-weight: 650; letter-spacing: -.65px; text-decoration: none; white-space: nowrap; }
.brand strong, .footer-brand strong { font-weight: 800; }
.brand-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #d9dfff; border-radius: 12px; background: var(--accent); box-shadow: 0 5px 12px #4e61ed2b; }
.brand-icon svg { width: 34px; height: 34px; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 650; }
.main-nav a { text-decoration: none; color: #556079; transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-action { background: #eef0ff; color: var(--accent); padding: 10px 16px; border-radius: 10px; }
.main-nav .nav-action:hover { background: #e2e6ff; }
.hero { min-height: 418px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 66px 65px; }
.hero-content { max-width: 730px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: 1.7px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; background: #e9edff; padding: 8px 13px; border-radius: 100px; }
.eyebrow-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #d4dcff; }
.hero h1 { font-size: clamp(40px, 4.6vw, 61px); font-weight: 820; line-height: 1.14; letter-spacing: -2.8px; margin: 22px 0 20px; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 605px; margin: 0; }
.hero-points { margin-top: 29px; display: flex; gap: 20px; flex-wrap: wrap; color: #40516f; font-size: 12px; font-weight: 700; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; stroke: var(--green); }
.hero-decoration { position: relative; min-width: 290px; height: 278px; margin-right: 18px; }
.paper { position: absolute; border: 1px solid #e5e8f8; background: white; box-shadow: 0 20px 55px #293d7b1d; border-radius: 13px; padding: 35px 20px; width: 175px; height: 220px; }
.paper i { display: block; height: 7px; border-radius: 5px; background: #cfd5e5; margin: 12px 0; }
.paper i:nth-of-type(2) { width: 90%; }
.paper i:nth-of-type(3) { width: 70%; }
.paper i:nth-of-type(4) { width: 82%; }
.paper-back { transform: rotate(-14deg); left: 8px; top: 21px; }
.paper-back i:nth-of-type(1) { width: 84%; }
.paper-back i:nth-of-type(2) { width: 53%; }
.paper-front { transform: rotate(7deg); left: 114px; top: 37px; border-color: #d9e7e4; }
.paper-front i { background: #8ed5bc; }
.paper-check { display: grid; place-items: center; height: 35px; width: 35px; border-radius: 50%; background: #dcf9ef; color: #11a677; font-size: 24px; font-weight: 800; margin-bottom: 13px; }
.decoration-sparkle { position: absolute; font-size: 27px; color: #bcc6ff; }
.sparkle-one { right: 0; top: 0; }
.sparkle-two { left: 32px; bottom: 0; color: #9bddcc; font-size: 18px; }
.workspace-section { padding-bottom: 100px; }
.workspace { background: var(--surface); border: 1px solid #e6eaf5; border-radius: 24px; box-shadow: 0 16px 64px #273d7a13; padding: 30px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 24px; }
.workspace-heading h2 { margin: 8px 0 5px; font-size: clamp(20px, 2.7vw, 27px); letter-spacing: -.8px; line-height: 1.25; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; font-size: 13px; font-weight: 750; padding: 12px 17px; min-height: 44px; transition: background .2s, border-color .2s, transform .2s; }
.button:not(:disabled):active { transform: scale(.98); }
.button svg { height: 17px; width: 17px; }
.button-subtle { border-color: #dce2f0; color: #405075; background: white; }
.button-subtle:hover { background: #f7f8ff; border-color: #aab8e5; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 6px 15px #4659eb23; }
.button-primary:not(:disabled):hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent); background: #edf0ff; }
.button-secondary:not(:disabled):hover { background: #dfe5ff; }
.button-ghost { color: #65728b; background: transparent; }
.button-ghost:hover { background: #f1f3fa; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.editor-card { min-width: 0; border: 1px solid #e2e7f1; border-radius: 15px; overflow: hidden; background: #fff; }
.output-card { background: #fcfffe; border-color: #cce9e1; }
.editor-head, .editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; }
.editor-head { background: #fafbff; border-bottom: 1px solid #e8ebf3; }
.output-card .editor-head { background: #f4fffb; border-bottom-color: #dceee9; }
.editor-head label { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.editor-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.editor-dot.original { background: var(--accent); }
.editor-dot.cleaned { background: var(--green); }
.editor-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.editor-textarea { display: block; width: 100%; height: 284px; border: 0; padding: 20px; resize: vertical; min-height: 215px; max-height: 800px; background: transparent; outline: 0; color: #34405a; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.editor-textarea::placeholder { color: #9aa4bb; }
.editor-textarea:focus-visible { outline: 3px solid #b5c0ff; outline-offset: -4px; }
.output-card .editor-textarea { color: #244b42; }
.editor-foot { border-top: 1px solid #edf0f6; font-size: 11px; color: #8a94aa; min-height: 42px; }
.output-card .editor-foot { border-top-color: #deefe9; }
.output-ready { font-weight: 700; color: var(--green); white-space: nowrap; }
.workspace-bottom { display: flex; flex-direction: column; gap: 26px; padding-top: 23px; }
.options { display: flex; flex-wrap: wrap; column-gap: 25px; row-gap: 15px; border: 0; margin: 0; padding: 0; min-width: 0; }
.options legend { font-size: 12px; font-weight: 800; padding: 0 0 12px; }
.option { cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; color: #54617a; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option input:focus-visible + .option-switch { outline: 3px solid #a3b2ff; outline-offset: 3px; }
.option-switch { width: 32px; height: 18px; border-radius: 30px; background: #c9d1e1; position: relative; flex: none; transition: background .2s; }
.option-switch::after { position: absolute; top: 3px; left: 3px; content: ""; width: 12px; height: 12px; border-radius: 50%; background: white; transition: transform .2s; }
.option input:checked + .option-switch { background: var(--accent); }
.option input:checked + .option-switch::after { transform: translateX(14px); }
.option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.option-hint { color: var(--muted); }
.workspace-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.workspace-actions .button-ghost { margin-right: auto; }
.workspace-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 22px 0 0; color: #76839a; font-size: 11px; text-align: center; }
.workspace-note svg { height: 15px; width: 15px; color: var(--green); flex: none; }
.how-section { padding-block: 12px 110px; }
.section-heading { text-align: center; margin-bottom: 35px; }
.section-heading h2 { font-size: clamp(27px,3vw,37px); line-height: 1.2; letter-spacing: -1.2px; margin: 12px 0 10px; }
.section-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.step { position: relative; background: white; border: 1px solid var(--border); border-radius: 17px; padding: 28px; box-shadow: 0 6px 22px #24345b08; }
.step-number { position: absolute; right: 25px; top: 23px; color: #e0e5f3; font-size: 24px; font-weight: 800; }
.step-icon { height: 54px; width: 54px; border-radius: 14px; color: var(--accent); background: #edf0ff; display: grid; place-items: center; }
.step-icon svg { height: 25px; width: 25px; }
.step h3 { margin: 23px 0 7px; font-size: 17px; letter-spacing: -.4px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.noscript-message { padding: 12px 16px; margin-block: 20px 0; background: #fff3dd; border: 1px solid #f2dca7; border-radius: 10px; color: #704f15; font-size: 14px; }
.example-section { padding-block: 0 105px; text-align: center; }
.example-section .section-heading { margin-bottom: 32px; }
.example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; text-align: left; }
.example-card { margin: 0; border: 1px solid var(--border); background: white; border-radius: 16px; overflow: hidden; min-width: 0; }
.example-card.result { background: #f7fffb; border-color: #cce9e1; }
.example-card figcaption { display: flex; align-items: center; gap: 9px; padding: 17px 20px; border-bottom: 1px solid var(--border); color: #33425b; font-size: 13px; font-weight: 800; }
.example-card.result figcaption { border-bottom-color: #d6eae1; }
.example-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 50%; }
.before-dot { background: var(--accent); }
.after-dot { background: var(--green); }
.example-card pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 22px; margin: 0; font: 13px/1.9 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; color: #4d5873; }
.example-card.result pre { color: #245d49; }
.example-explanation { max-width: 750px; margin: 22px auto 12px; font-size: 13px; color: var(--muted); }
.example-link { display: inline-block; font-size: 13px; font-weight: 780; text-decoration: none; color: var(--accent); padding: 5px; }
.example-link:hover { text-decoration: underline; }
.details-section { background: #ecf1fe; padding-block: 85px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px,7vw,110px); }
.details-grid h2 { font-size: clamp(29px,3.7vw,42px); line-height: 1.19; letter-spacing: -1.5px; margin: 16px 0 22px; }
.details-grid p { color: #60708b; font-size: 14px; }
.feature-list { display: grid; gap: 22px; }
.feature-list > div { display: flex; gap: 15px; }
.feature-icon { display: grid; place-items: center; min-width: 30px; height: 30px; background: white; border-radius: 9px; color: var(--green); font-weight: 900; box-shadow: 0 3px 10px #50619a11; }
.feature-list h3 { margin: 0; font-size: 14px; }
.feature-list p { margin: 4px 0 0; font-size: 12px; }
.faq-section { padding-block: 93px 100px; max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { background: transparent; border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 38px 22px 1px; font-size: 15px; font-weight: 720; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 17px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list p { margin: -7px 25px 20px 1px; font-size: 13px; color: var(--muted); }
.site-footer { background: white; border-top: 1px solid var(--border); }
.footer-inner { min-height: 106px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { font-size: 17px; font-weight: 700; letter-spacing: -.4px; text-decoration: none; }
.footer-inner p, .footer-inner span { color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #233253; color: white; border-radius: 10px; padding: 12px 18px; font-size: 13px; font-weight: 650; box-shadow: 0 10px 30px #0002; z-index: 20; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 930px) {
  .hero-decoration { display: none; }
  .hero { min-height: 0; padding-block: 60px; }
  .hero-content { max-width: 760px; }
  .details-grid { gap: 35px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 18px; }
  .brand-icon { height: 36px; width: 36px; }
  .main-nav { gap: 12px; }
  .main-nav > a:not(.nav-action) { display: none; }
  .main-nav .nav-action { padding: 9px 11px; font-size: 12px; }
  .hero { padding-block: 55px 48px; }
  .hero h1 { font-size: clamp(36px,8vw,48px); letter-spacing: -1.8px; }
  .hero-lead { font-size: 15px; }
  .hero-points { gap: 9px 16px; }
  .workspace-section { padding-bottom: 76px; }
  .workspace { padding: 19px; border-radius: 18px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-textarea { height: 200px; min-height: 160px; }
  .workspace-actions { gap: 9px; }
  .workspace-actions .button-ghost { margin-right: 0; }
  .workspace-actions .button-primary { flex: 1; }
  .options { gap: 13px 17px; }
  .step { padding: 22px; }
  .steps-grid, .details-grid, .example-grid { grid-template-columns: 1fr; }
  .example-section { padding-bottom: 75px; }
  .how-section { padding-bottom: 75px; }
  .details-section { padding-block: 65px; }
  .faq-section { padding-block: 72px; }
  .footer-inner { flex-wrap: wrap; gap: 4px 18px; justify-content: center; text-align: center; padding-block: 24px; }
  .footer-inner p { flex-basis: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
