:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #11151e;
  --panel-soft: #171d29;
  --text: #f3f5f8;
  --muted: #a7b0bf;
  --line: #2a3444;
  --accent: #c3a7ff;
  --accent-strong: #8d68e8;
  --green: #9ae6bd;
  --red: #ff9a9a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 75% -15%, #202038 0, transparent 38%), var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration-color: #68758a; text-underline-offset: 4px; }
a:hover { color: #d7c8ff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: .02em; }
.brand span { color: var(--accent); font-size: .82rem; font-weight: 500; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .93rem; }
.topbar nav a { text-decoration: none; }
.language-switch, .text-button { color: var(--accent); border: 0; background: transparent; padding: 5px 0; }
.hero { padding: clamp(42px, 7vw, 82px) 0 34px; max-width: 860px; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 20px; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.25; margin-bottom: 0; }
.lead { color: #c4cbd5; font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 760px; }
.privacy-line { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: .9rem; margin: 24px 0 0; }
.privacy-dot { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 14px #9ae6bd70; border-radius: 50%; flex: 0 0 auto; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.panel, .method-panel, .next-step { background: linear-gradient(145deg, #151a25, #0e121a); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px #00000028; }
.panel { padding: clamp(20px, 3vw, 30px); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.text-button { font-size: .86rem; white-space: nowrap; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #e8ebf1; font-size: .9rem; font-weight: 620; }
.field input, .field select { width: 100%; min-height: 48px; color: var(--text); border: 1px solid #3a4659; border-radius: 9px; background: #090d14; padding: 10px 12px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #c3a7ff20; }
.field small { color: var(--muted); font-size: .76rem; line-height: 1.45; font-weight: 400; }
.form-error { color: var(--red); margin: 16px 0 0; font-size: .9rem; }
.primary-button, .secondary-button, .secondary-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 10px 18px; font-weight: 740; text-decoration: none; }
.primary-button { width: 100%; margin-top: 22px; color: #100d18; background: linear-gradient(100deg, #cbb8ff, #a68ae9); border: 0; }
.primary-button:hover { filter: brightness(1.08); }
.sample-note { color: var(--muted); font-size: .76rem; margin: 12px 0 0; }
.results-panel { position: sticky; top: 18px; }
.live-pill { color: var(--green); border: 1px solid #477a64; background: #15291f; border-radius: 100px; padding: 4px 10px; font-size: .73rem; white-space: nowrap; }
.headline-result { background: linear-gradient(115deg, #222039, #17222a); border: 1px solid #50476d; border-radius: 13px; padding: 19px 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.headline-result span { color: #d7d0e9; font-size: .87rem; }
.headline-result strong { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.headline-result small { color: var(--muted); font-size: .76rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #0c1119; }
.result-card span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.result-card strong { font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-actions { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.secondary-button { color: var(--text); background: transparent; border: 1px solid #4a566b; min-height: 40px; }
.copy-status { color: var(--green); font-size: .8rem; }
.result-caveat { color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); padding-top: 15px; margin: 17px 0 0; }
.method-panel { padding: clamp(20px, 3vw, 30px); margin-top: 18px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.method-grid article { border-inline-start: 2px solid #69588f; padding-inline-start: 14px; }
.method-grid strong { font-size: .95rem; }
.method-grid p { color: var(--muted); font-size: .86rem; margin: 7px 0 0; }
.disclaimer { margin: 24px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #c3b9d8; font-size: .85rem; }
.next-step { margin: 18px 0 38px; padding: 23px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.next-step h2 { margin-bottom: 8px; }
.next-step p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: .9rem; }
.secondary-link { border: 1px solid #7d68ad; color: #e2d7ff; white-space: nowrap; }
footer { border-top: 1px solid var(--line); padding: 22px 0 34px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; }
footer a { color: #e7e1f4; }
[dir="rtl"] { font-family: Tahoma, "Segoe UI", sans-serif; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .topbar nav { gap: 18px; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .results-panel { order: 2; }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 560px); }
  .topbar { align-items: flex-start; padding: 17px 0; flex-direction: column; }
  .topbar nav { gap: 14px; }
  .field-grid, .result-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 15px; }
  .next-step { align-items: flex-start; flex-direction: column; }
  .secondary-link { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel, .method-panel, .next-step { animation: rise-in .35s ease both; }
  @keyframes rise-in { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}