:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --paper-deep: #f0eadf;
  --white: #fffefa;
  --ink: #17263c;
  --muted: #536174;
  --navy: #17263c;
  --navy-2: #20344e;
  --orange: #e77935;
  --gold: #f2b83f;
  --line: #e6dfd1;
  --green: #36725d;
  --shadow: 0 18px 50px rgba(30, 41, 57, .08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 84% 0%, rgba(242,184,63,.11), transparent 29rem), var(--paper);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
button, textarea { font: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.page-shell { width: min(100% - 3.5rem, 1120px); margin-inline: auto; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.skip-link { position: absolute; z-index: 5; top: .7rem; inset-inline-start: .7rem; transform: translateY(-180%); padding: .65rem 1rem; border-radius: 9px; background: var(--white); box-shadow: var(--shadow); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
.site-header { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 1.25rem; border-bottom: 1px solid rgba(23,38,60,.09); }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .8rem; text-decoration: none; }
.brand-logo { display: block; width: 62px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: grid; gap: .18rem; }
.brand-name { font-size: .83rem; font-weight: 800; letter-spacing: .11em; line-height: 1.25; }
.brand-caption { color: var(--muted); font-size: .58rem; font-weight: 650; letter-spacing: .11em; }
.header-links a { color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.header-links a:hover { color: var(--orange); }
.header-links span { color: var(--orange); }
.hero { max-width: 790px; margin: clamp(2.25rem, 6vw, 4.6rem) auto clamp(1.75rem, 4vw, 2.7rem); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 .85rem; color: #9b582c; font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow-line { width: 23px; height: 2px; border-radius: 2px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 0 auto; font-size: clamp(2.4rem, 6vw, 4.15rem); font-weight: 760; letter-spacing: -.067em; line-height: 1.06; text-wrap: balance; }
.accent { color: var(--orange); }
.hero-copy { max-width: 600px; margin: 1rem auto 0; color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.08rem); line-height: 1.7; text-wrap: pretty; }
.converter-card { padding: clamp(1rem, 3.1vw, 2rem); border: 1px solid rgba(23,38,60,.07); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
.card-topline h2 { margin: 0 0 .2rem; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.04em; line-height: 1.3; }
.card-intro { margin: 0; color: var(--muted); font-size: .82rem; }
.privacy-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; margin-top: .12rem; padding: .42rem .65rem; border: 1px solid #dce9e1; border-radius: 999px; background: #fbfdfb; color: var(--green); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #65a47a; }
.case-modes { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0 1.1rem; }
.mode-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fffefa; color: #4a596d; font-size: .76rem; font-weight: 670; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.mode-button:hover { transform: translateY(-1px); border-color: #e9c8a9; color: var(--ink); }
.mode-button.is-active { border-color: var(--navy); background: var(--navy); color: white; box-shadow: 0 4px 10px rgba(23,38,60,.11); }
.mode-button.is-active:hover { border-color: var(--navy-2); background: var(--navy-2); }
.text-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.text-panel { display: flex; min-width: 0; flex-direction: column; padding: .95rem 1rem .75rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.input-panel:focus-within, .result-panel:focus-within { border-color: #e3a26d; box-shadow: 0 0 0 3px rgba(231,121,53,.09); }
.result-panel { background: #fdfbf7; }
.panel-heading { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: .55rem; }
.panel-heading > div { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.panel-title { margin: 0; color: var(--ink); font-size: .84rem; font-weight: 740; }
.panel-hint { color: #8a8c8f; font-size: .55rem; font-weight: 790; letter-spacing: .12em; }
textarea { display: block; width: 100%; min-width: 0; min-height: 245px; flex: 1 1 auto; margin: .35rem 0 .55rem; padding: .45rem .1rem; resize: vertical; border: 0; border-radius: 0; outline: none; background: transparent; color: var(--ink); font-size: .98rem; line-height: 1.75; overflow-wrap: anywhere; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: #92969b; opacity: 1; }
textarea[readonly] { color: #28374b; }
.quiet-button { display: inline-flex; min-width: 42px; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; gap: .35rem; padding: .4rem .55rem; border: 0; border-radius: 9px; background: transparent; color: #647184; font-size: .72rem; font-weight: 650; cursor: pointer; }
.quiet-button:hover:not(:disabled) { background: #f4eee3; color: var(--ink); }
.quiet-button:disabled, .use-result-button:disabled { color: #a9adb2; cursor: not-allowed; }
.copy-button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.panel-footer { display: flex; min-height: 34px; align-items: center; flex-wrap: wrap; gap: .28rem .5rem; padding-top: .5rem; border-top: 1px solid rgba(23,38,60,.08); color: #738093; font-size: .68rem; }
.panel-footer strong { color: #48566a; font-weight: 720; }
.stat-divider { color: #c1b6a3; }
.result-footer { justify-content: space-between; gap: .5rem; }
#result-status { min-width: 0; color: #718093; }
.use-result-button { min-height: 34px; flex: 0 0 auto; padding: .3rem .45rem; border: 0; border-radius: 7px; background: transparent; color: #8c603b; font-size: .68rem; font-weight: 700; cursor: pointer; }
.use-result-button:hover:not(:disabled) { background: #f8f0e3; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 1.05rem 0 0; color: #667569; font-size: .72rem; text-align: center; }
.privacy-note span { color: var(--green); font-size: .9rem; font-weight: 800; }
.about-section { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding: clamp(2.5rem, 6vw, 4.5rem) .35rem; }
.section-kicker { margin-bottom: .6rem; color: #9b582c; font-size: .62rem; font-weight: 780; letter-spacing: .15em; }
.about-copy h2 { max-width: 490px; margin-bottom: .65rem; font-size: clamp(1.6rem, 3.3vw, 2.35rem); letter-spacing: -.055em; line-height: 1.13; }
.about-copy > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.1rem; }
.about-point { display: flex; align-items: flex-start; gap: .6rem; color: #455469; font-size: .76rem; font-weight: 620; line-height: 1.5; }
.check { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; margin-top: .05rem; border-radius: 50%; background: #e7f1e9; color: var(--green); font-size: .67rem; font-weight: 800; }
.site-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(23,38,60,.1); color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: .82rem; font-weight: 740; text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.site-footer p { margin: 0; font-size: .68rem; }
.site-footer nav a { color: var(--muted); font-size: .72rem; font-weight: 650; text-decoration: none; }
.site-footer nav a:hover { color: var(--orange); }
.noscript-note { width: min(100% - 2rem, 700px); margin: 1rem auto; padding: .75rem; border: 1px solid #f1cfc0; border-radius: 10px; background: #fff6f1; color: #7c3c2b; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .page-shell { width: min(100% - 2.25rem, 620px); }
  .site-header { min-height: 82px; }
  .brand-logo { width: 53px; height: 51px; }
  .text-panels { grid-template-columns: 1fr; }
  textarea { min-height: 185px; }
  .about-section { grid-template-columns: 1fr; gap: 1.35rem; }
}
@media (max-width: 480px) {
  .page-shell { width: calc(100% - 1.5rem); }
  .site-header { min-height: 74px; }
  .brand { gap: .55rem; }
  .brand-logo { width: 46px; height: 45px; }
  .brand-name { font-size: .72rem; }
  .brand-caption { font-size: .49rem; letter-spacing: .08em; }
  .header-links a { font-size: .7rem; }
  .hero { margin-top: 2rem; }
  h1 { font-size: clamp(2.15rem, 10.5vw, 2.8rem); }
  .hero-copy { font-size: .9rem; }
  .converter-card { padding: 1rem .75rem .9rem; border-radius: 18px; }
  .card-topline { flex-wrap: wrap; gap: .65rem; }
  .privacy-badge { margin-top: 0; }
  .case-modes { gap: .45rem; margin: 1rem 0 .85rem; }
  .mode-button { min-height: 40px; padding: .47rem .7rem; font-size: .69rem; }
  .text-panel { padding: .75rem .75rem .65rem; }
  textarea { min-height: 165px; font-size: .95rem; }
  .panel-footer { font-size: .62rem; }
  .result-footer { align-items: flex-start; }
  .privacy-note { align-items: flex-start; font-size: .68rem; }
  .about-section { padding: 2.5rem .15rem; }
  .about-points { grid-template-columns: 1fr; gap: .65rem; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; gap: .5rem 1rem; }
  .site-footer p { order: 3; width: 100%; }
  .site-footer nav { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
