:root {
  color-scheme: light;
  --primary: #ff5e1f;
  --primary-hover: #e5480a;
  --background: #ffffff;
  --surface: #f0f0f0;
  --surface-soft: #fdfdfc;
  --border: #e4e4e4;
  --text: #262626;
  --muted: #666666;
  --success: #147d52;
  --danger: #b42318;
  --display: "FT Kunst Grotesk", "Arial Narrow", Arial, sans-serif;
  --mono: "Apercu Mono Pro", "SFMono-Regular", Consolas, monospace;
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-xl: 4px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 60px rgba(255, 80, 10, 0.06), 0 2px 12px rgba(0, 0, 0, 0.03);
  --duration-fast: 100ms;
  --duration-base: 200ms;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.14px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.site-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.2px; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--radius-md); background: var(--primary); color: #fff; }
.brand-mark svg { width: 18px; stroke: currentColor; stroke-width: 1.8; }
.brand-muted { color: #8a8a8a; }
.privacy-pill, .status-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--background); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; text-transform: uppercase; }
.privacy-pill { padding: 8px 12px; }
.privacy-dot, .status-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.generator-card { overflow: hidden; margin-top: 60px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-soft); box-shadow: var(--shadow-card); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; }
.input-panel, .output-panel { min-width: 0; padding: 48px; }
.input-panel { border-right: 1px solid var(--border); background: var(--background); }
.output-panel { display: flex; flex-direction: column; background: var(--surface-soft); }
.section-label { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.section-label .step { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--primary-hover); font-family: var(--mono); font-size: 10px; }
.section-label h2 { margin: 0 0 8px; font-size: 19px; font-weight: 400; letter-spacing: -0.48px; line-height: 1.2; }
.section-label p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.3; }
.output-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.output-label { margin-bottom: 0; }
.status-badge { padding: 7px 10px; color: var(--success); }
label, legend { color: var(--text); font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 1.5; text-transform: uppercase; }
.length-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.length-heading label { margin: 0; }
.length-stepper { display: grid; grid-template-columns: 44px 48px 44px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.length-stepper button { display: grid; min-width: 44px; height: 44px; padding: 0; place-items: center; border: 0; background: #fff; color: var(--text); font-family: var(--mono); font-size: 18px; cursor: pointer; transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease); }
.length-stepper button:first-child { border-right: 1px solid var(--border); }
.length-stepper button:last-child { border-left: 1px solid var(--border); }
.length-stepper button:hover:not(:disabled) { background: var(--primary); color: #fff; }
.length-stepper button:disabled { color: #b9b9b9; cursor: not-allowed; }
.length-heading output { display: grid; min-width: 48px; height: 44px; place-items: center; color: var(--primary-hover); font-family: var(--mono); font-size: 13px; text-align: center; }
#password-length { --range-progress: 21.4%; width: 100%; height: 3px; margin: 14px 0 0; appearance: none; border-radius: var(--radius-pill); outline: none; background: linear-gradient(to right, var(--primary) var(--range-progress), var(--surface) var(--range-progress)); cursor: pointer; }
#password-length::-webkit-slider-thumb { width: 18px; height: 18px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
#password-length::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #8a8a8a; font-family: var(--mono); font-size: 10px; }
fieldset { display: grid; gap: 8px; margin: 32px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; }
.option-row { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); cursor: pointer; text-transform: none; transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease); }
.option-row:hover { border-color: #c7c7c7; background: #fff; }
.option-row > span:first-child { display: flex; align-items: baseline; gap: 12px; }
.option-row strong { min-width: 78px; font-family: var(--display); font-size: 13px; font-weight: 500; }
.option-row small { color: #7d7d7d; font-family: var(--mono); font-size: 10px; }
.option-row input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox { position: relative; width: 18px; height: 18px; border: 1px solid #b9b9b9; border-radius: var(--radius-md); background: #fff; }
.option-row input:checked + .checkbox { border-color: var(--primary); background: var(--primary); }
.option-row input:checked + .checkbox::after { position: absolute; top: 3px; left: 6px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.option-row input:focus-visible + .checkbox { outline: 2px solid var(--primary); outline-offset: 2px; }
.error-message { min-height: 18px; margin: 8px 0 0; color: var(--danger); font-size: 12px; }
.generate-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 16px; border: 1px solid var(--primary); border-radius: var(--radius-md); background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease); }
.generate-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.generate-button:active { transform: translateY(1px); }
.generate-button svg { width: 20px; stroke: currentColor; stroke-width: 1.8; }
.local-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.local-note svg { flex: 0 0 auto; width: 18px; margin-top: 1px; color: var(--success); stroke: currentColor; stroke-width: 1.6; }
.local-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.local-note strong { color: var(--text); font-weight: 500; }
.password-area { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 56px 0 44px; text-align: center; }
.password-caption { margin: 0 0 16px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; text-transform: uppercase; }
.password-display { display: flex; width: 100%; align-items: center; justify-content: center; padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--text); cursor: pointer; }
#password-value { overflow-wrap: anywhere; font-family: var(--mono); font-size: clamp(19px, 2.2vw, 28px); font-weight: 400; letter-spacing: 0.5px; line-height: 1.35; }
.password-display svg { flex: 0 0 auto; width: 18px; margin-left: 16px; color: var(--muted); stroke: currentColor; stroke-width: 1.6; opacity: 0; transition: opacity var(--duration-fast) var(--ease); }
.password-display:hover svg, .password-display:focus-visible svg { opacity: 1; }
.copy-feedback { min-height: 15px; margin: 12px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; opacity: 0; transition: opacity var(--duration-fast) var(--ease); }
.password-area:hover .copy-feedback, .copy-feedback.visible { opacity: 1; }
.strength-block { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.strength-copy { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.strength-copy strong { color: var(--success); font-family: var(--mono); font-weight: 400; }
.strength-copy strong[data-level="1"] { color: var(--danger); }
.strength-copy strong[data-level="2"] { color: #a35d00; }
.strength-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-track span { height: 3px; background: var(--surface); }
.strength-track span.active { background: var(--primary); }
.password-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.password-stats > span { display: flex; align-items: center; justify-content: space-between; padding-right: 16px; }
.password-stats > span + span { padding-right: 0; padding-left: 16px; border-left: 1px solid var(--border); }
.password-stats small { color: var(--muted); font-size: 11px; }
.password-stats strong { font-family: var(--mono); font-size: 11px; font-weight: 400; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; color: var(--primary-hover); font-family: var(--mono); font-size: 12px; line-height: 1.5; text-transform: uppercase; }
.how-it-works { display: grid; grid-template-columns: .85fr 2fr; gap: 112px; padding: 128px 0; }
.how-it-works h2 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.8px; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts article { min-height: 180px; padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.facts article > span { color: var(--primary-hover); font-family: var(--mono); font-size: 10px; }
.facts h3 { margin: 40px 0 12px; font-size: 19px; font-weight: 400; letter-spacing: -.48px; line-height: 1.2; }
.facts p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
footer { display: flex; justify-content: space-between; padding: 24px 0 40px; border-top: 1px solid var(--border); color: #777; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 768px) {
  .page-shell { width: calc(100% - 32px); }
  .generator-card { margin-top: 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .input-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .output-panel { min-height: 480px; }
  .how-it-works { grid-template-columns: 1fr; gap: 48px; padding: 112px 0; }
}

@media (max-width: 550px) {
  .page-shell { width: calc(100% - 24px); }
  .site-header { min-height: 64px; }
  .privacy-pill { padding: 7px 9px; font-size: 9px; }
  .generator-card { margin-top: 32px; }
  .input-panel, .output-panel { padding: 32px 20px; }
  .section-label { margin-bottom: 32px; }
  .output-panel { min-height: 430px; }
  .output-topline { display: block; }
  .status-badge { margin: -16px 0 0 44px; }
  .password-area { padding: 48px 0 40px; }
  .option-row > span:first-child { gap: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts article { min-height: 150px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 400px) {
  .brand-muted { display: none; }
  .input-panel, .output-panel { padding: 32px 16px; }
  .option-row small { display: none; }
  .password-stats { grid-template-columns: 1fr; gap: 12px; }
  .password-stats > span, .password-stats > span + span { padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
