:root {
  --brand-950: #061b50;
  --brand-900: #08246b;
  --brand-800: #0b2f8a;
  --brand-700: #1246bd;
  --brand-600: #1f5ee0;
  --brand-100: #dbe7ff;
  --brand-50: #f3f7ff;
  --green-600: #1f9d55;
  --green-500: #2dbd6e;
  --ink-950: #101828;
  --ink-800: #263247;
  --ink-600: #536179;
  --ink-400: #8d99aa;
  --line: #dfe5ee;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --shadow-sm: 0 8px 22px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 28px 70px rgba(6, 27, 80, 0.2);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shell: 1180px;
  --focus: 0 0 0 4px rgba(31, 94, 224, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-950);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--brand-950);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-950);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ink-800);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-700);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}

.menu-button span[aria-hidden="true"] {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink-950);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.8rem) 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(45, 189, 110, 0.18), transparent 24rem),
    radial-gradient(circle at 15% 10%, rgba(31, 94, 224, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -5rem -10rem auto;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(31, 94, 224, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(31, 94, 224, 0.04),
    0 0 0 7rem rgba(31, 94, 224, 0.025);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #a9c4ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.038em;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.hero-lede,
.section-copy,
.section-heading > p:last-child,
.generator-intro p,
.closing-card p {
  color: var(--ink-600);
  font-size: clamp(1.07rem, 1.7vw, 1.28rem);
}

.hero-lede {
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.6rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--brand-700);
  box-shadow: 0 12px 28px rgba(18, 70, 189, 0.24);
}

.button-primary:hover {
  background: var(--brand-800);
}

.button-secondary {
  color: var(--brand-900);
  background: white;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  padding: 0;
  margin: 0;
  color: var(--ink-600);
  list-style: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.trust-list li::before {
  content: "✓";
  margin-right: 0.42rem;
  color: var(--green-600);
  font-weight: 900;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-card {
  width: min(100%, 430px);
  padding: 1.35rem;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    var(--brand-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #d8e5ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(45, 189, 110, 0.15);
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.mini-board div {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.mini-board .winner {
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-500);
  font-size: 1.7rem;
  font-weight: 900;
}

.code-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  color: var(--ink-950);
  background: white;
  border-radius: 22px;
}

.code-card img {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.code-card div {
  display: grid;
  gap: 0.25rem;
}

.code-card strong {
  color: var(--brand-950);
  font-size: 1.05rem;
}

.code-card span {
  color: var(--ink-600);
  font-size: 0.9rem;
}

.phone-note {
  margin-top: 1rem;
  color: #c9d9ff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.steps-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card,
.feature-card,
.generator-preview,
.legal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-card {
  position: relative;
  min-height: 250px;
  padding: 1.6rem;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 2.5rem;
  color: white;
  background: var(--brand-700);
  border-radius: 13px;
  font-weight: 850;
}

.step-card p,
.feature-card p {
  margin-bottom: 0;
  color: var(--ink-600);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.section-blue {
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(45, 189, 110, 0.18), transparent 25rem),
    linear-gradient(135deg, var(--brand-950), var(--brand-800));
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.generator-intro p {
  color: #d3e0ff;
}

.generator-preview {
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--ink-950);
}

.generator-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  color: var(--ink-400);
  font-size: 0.78rem;
  font-weight: 760;
}

.generator-progress span {
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--line);
}

.generator-progress .active {
  color: var(--brand-800);
  border-color: var(--brand-700);
}

.preview-form {
  display: grid;
  gap: 1rem;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.preview-field {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.preview-field span {
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-form button {
  min-height: 50px;
  margin-top: 0.4rem;
  color: white;
  background: var(--brand-700);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  opacity: 0.62;
}

.build-note {
  margin: 1rem 0 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brand-700);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 1.1rem 1.1rem;
  margin: 0;
  color: var(--ink-600);
}

.closing-section {
  padding-top: 0;
}

.closing-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
}

.closing-card h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.closing-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

.site-footer {
  padding: 2.5rem 0;
  color: #d6e2ff;
  background: var(--brand-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

.footer-brand {
  color: white;
}

.site-footer p {
  margin: 0.8rem 0 0;
  color: #aebfe5;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer nav a {
  color: #d6e2ff;
  font-weight: 650;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: white;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.legal-main {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--surface-soft);
}

.legal-card {
  max-width: 850px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.legal-card h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.legal-card h2 {
  margin-top: 2.4rem;
  font-size: 1.55rem;
}

.legal-intro {
  color: var(--ink-600);
  font-size: 1.18rem;
}

.legal-card li,
.legal-card p {
  color: var(--ink-600);
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-layout,
  .generator-shell,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 760px) {
  .menu-button {
    display: block;
  }

  .site-nav:not(.site-nav-static) {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav:not(.site-nav-static) a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-inline: 0.25rem;
  }

  .feature-grid,
  .preview-row {
    grid-template-columns: 1fr;
  }

  .generator-progress {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.9rem;
  }

  .closing-card {
    grid-template-columns: auto 1fr;
  }

  .closing-card .button {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-direction: column;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .hero {
    padding-top: 3.8rem;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    flex-direction: column;
    gap: 0.45rem;
  }

  .phone-card {
    padding: 1rem;
    border-radius: 26px;
    transform: none;
  }

  .code-card {
    grid-template-columns: 100px 1fr;
    padding: 0.75rem;
  }

  .code-card img {
    width: 100px;
    height: 100px;
  }

  .closing-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #99a3b3;
  }

  .button-secondary,
  .step-card,
  .feature-card,
  .generator-preview,
  .faq-list details {
    border-width: 2px;
  }
}


/* WEB-02 generator */

.generator-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: 2rem;
}

.generator-heading h2 {
  margin-bottom: 0;
}

.generator-heading > p {
  margin-bottom: 0;
  color: #d3e0ff;
  font-size: 1.08rem;
}

.generator-app {
  color: var(--ink-950);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgba(3, 16, 48, 0.32);
  overflow: hidden;
}

.generator-app .generator-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.generator-app .generator-progress li {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  color: var(--ink-400);
  border-bottom: 4px solid transparent;
}

.generator-app .generator-progress li + li {
  border-left: 1px solid var(--line);
}

.generator-app .generator-progress li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink-600);
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 850;
}

.generator-app .generator-progress li strong {
  font-size: 0.88rem;
}

.generator-app .generator-progress li.active {
  color: var(--brand-800);
  background: white;
  border-bottom-color: var(--brand-700);
}

.generator-app .generator-progress li.active span {
  color: white;
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.generator-app .generator-progress li.complete {
  color: var(--green-600);
}

.generator-app .generator-progress li.complete span {
  color: white;
  background: var(--green-600);
  border-color: var(--green-600);
}

.generator-form,
.generator-complete {
  padding: clamp(1.25rem, 4vw, 2.7rem);
}

.generator-form[hidden],
.generator-complete[hidden],
.period-panel[hidden],
.reverse-fields[hidden],
.empty-bonus-message[hidden],
.period-navigation .button[hidden] {
  display: none !important;
}

.form-heading {
  max-width: 760px;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.form-heading:focus,
.generator-complete h3:focus {
  outline: none;
}

.form-heading h3,
.generator-complete h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.form-heading > p:last-child,
.generator-complete > p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 1.03rem;
}

.form-kicker {
  margin-bottom: 0.5rem;
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field-group {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.field-group-full {
  grid-column: 1 / -1;
}

.field-group label {
  color: var(--ink-800);
  font-size: 0.92rem;
  font-weight: 780;
}

.optional-label {
  margin-left: 0.35rem;
  color: var(--ink-400);
  font-size: 0.78rem;
  font-weight: 650;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 50px;
  padding: 0.78rem 0.9rem;
  color: var(--ink-950);
  background: white;
  border: 1px solid #b9c3d1;
  border-radius: 12px;
}

.field-group input::placeholder {
  color: #909cad;
}

.field-group input:hover,
.field-group select:hover {
  border-color: var(--brand-600);
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"] {
  border-color: #c53333;
  box-shadow: 0 0 0 3px rgba(197, 51, 51, 0.12);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-600);
  font-size: 0.78rem;
}

.field-help {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.8rem;
}

.field-error {
  min-height: 1.25rem;
  margin: 0;
  color: #a51d1d;
  font-size: 0.82rem;
  font-weight: 680;
}

.orientation-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
}

.orientation-preview > div {
  display: grid;
  gap: 0.18rem;
}

.orientation-preview > div:last-child {
  text-align: right;
}

.orientation-preview span {
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 680;
}

.orientation-preview strong {
  color: var(--brand-900);
  overflow-wrap: anywhere;
}

.orientation-divider {
  color: var(--brand-600) !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.form-actions-end {
  justify-content: flex-end;
}

.period-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.period-tabs button {
  min-height: 48px;
  padding: 0.65rem;
  color: var(--ink-600);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 760;
}

.period-tabs button[aria-selected="true"] {
  color: white;
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.period-panel {
  display: grid;
  gap: 1rem;
}

.period-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0 0.5rem;
}

.period-heading h4 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.period-status,
.required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.rule-card {
  padding: 1.2rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rule-card-standard {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.rule-card-heading,
.toggle-row,
.bonus-rule-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.rule-card-heading {
  margin-bottom: 1rem;
}

.rule-card h5,
.toggle-row h5 {
  margin: 0 0 0.3rem;
  color: var(--ink-950);
  font-size: 1.05rem;
}

.rule-card-heading p,
.toggle-row p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.money-group {
  max-width: 330px;
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background: white;
  border: 1px solid #b9c3d1;
  border-radius: 12px;
  overflow: hidden;
}

.money-input:focus-within {
  border-color: var(--brand-600);
  box-shadow: var(--focus);
}

.money-input > span {
  padding-left: 0.9rem;
  color: var(--ink-600);
  font-weight: 760;
}

.money-input input {
  min-height: 48px;
  padding-left: 0.35rem;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.money-input:has(input[aria-invalid="true"]) {
  border-color: #c53333;
  box-shadow: 0 0 0 3px rgba(197, 51, 51, 0.12);
}

.switch-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control span[aria-hidden="true"] {
  position: relative;
  width: 52px;
  height: 30px;
  background: #aeb7c5;
  border-radius: 999px;
  transition: background 150ms ease;
}

.switch-control span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.25);
  transition: transform 150ms ease;
}

.switch-control input:checked + span {
  background: var(--brand-700);
}

.switch-control input:checked + span::after {
  transform: translateX(22px);
}

.switch-control input:focus-visible + span {
  box-shadow: var(--focus);
}

.reverse-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.button-small {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.button:disabled,
.period-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.bonus-list {
  display: grid;
  gap: 0.85rem;
}

.empty-bonus-message {
  margin: 0;
  padding: 1rem;
  color: var(--ink-600);
  background: white;
  border: 1px dashed #b9c3d1;
  border-radius: 13px;
  text-align: center;
  font-size: 0.86rem;
}

.bonus-rule {
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bonus-rule-header {
  margin-bottom: 0.85rem;
}

.bonus-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(110px, 0.55fr) minmax(170px, 0.8fr);
  gap: 0.9rem;
  align-items: start;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #8e1f1f;
  background: #fff5f5;
  border: 1px solid #f1cccc;
  border-radius: 11px;
  font-size: 1.45rem;
}

.bonus-duplicate-error {
  margin-top: 0.4rem;
}

.rule-limit-note {
  margin-top: 1rem;
  color: var(--ink-600);
  font-size: 0.82rem;
  text-align: right;
}

.generator-alert {
  margin: 1.25rem;
  padding: 1rem;
  color: #713b00;
  background: #fff6dc;
  border: 1px solid #ead28f;
  border-radius: 14px;
}

.generator-complete {
  text-align: center;
}

.complete-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  color: white;
  background: var(--green-600);
  border-radius: 22px;
  font-size: 2rem;
  font-weight: 900;
}

.setup-summary {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.summary-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.summary-board > div,
.summary-period {
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.summary-board > div {
  display: grid;
  gap: 0.25rem;
}

.summary-board span {
  color: var(--ink-600);
  font-size: 0.78rem;
}

.summary-board strong {
  overflow-wrap: anywhere;
}

.summary-periods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.summary-period h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.summary-period ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-period li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-600);
  font-size: 0.84rem;
}

.summary-period li strong {
  color: var(--ink-950);
  white-space: nowrap;
}

.generator-complete .form-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .generator-heading {
    grid-template-columns: 1fr;
  }

  .bonus-fields {
    grid-template-columns: 1fr 1fr;
  }

  .bonus-fields .money-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .generator-app .generator-progress li {
    min-height: 64px;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem 0.35rem;
  }

  .generator-app .generator-progress li strong {
    font-size: 0.72rem;
  }

  .generator-app .generator-progress li span {
    width: 26px;
    height: 26px;
  }

  .field-grid,
  .summary-board,
  .summary-periods {
    grid-template-columns: 1fr;
  }

  .field-group-full {
    grid-column: 1;
  }

  .period-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .period-navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .button,
  .period-navigation .button {
    width: 100%;
  }

  .bonus-fields {
    grid-template-columns: 1fr;
  }

  .bonus-fields .money-group {
    grid-column: 1;
  }

  .rule-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .rule-card-heading .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .orientation-preview {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .orientation-preview > div:last-child {
    text-align: left;
  }

  .orientation-divider {
    transform: rotate(90deg);
  }

  .period-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toggle-row {
    align-items: center;
  }
}


/* WEB-03 board-code review and export */

.review-actions {
  align-items: center;
}

.review-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.code-error {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  color: #8e1f1f;
  background: #fff5f5;
  border: 1px solid #f1cccc;
  border-radius: 12px;
  font-weight: 680;
  text-align: left;
}

.code-error[hidden] {
  display: none;
}

.generator-code {
  padding: clamp(1.25rem, 4vw, 2.7rem);
  text-align: center;
}

.generator-code[hidden] {
  display: none;
}

.generator-code > p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--ink-600);
  font-size: 1.03rem;
}

.generator-code h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.generator-code h3:focus {
  outline: none;
}

.code-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.code-metadata > div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.code-metadata dt {
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 680;
}

.code-metadata dd {
  margin: 0;
  color: var(--ink-950);
  font-weight: 820;
}

.code-output-group {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.code-output-group label {
  color: var(--ink-800);
  font-size: 0.92rem;
  font-weight: 780;
}

.code-output-group textarea {
  width: 100%;
  min-height: 190px;
  padding: 1rem;
  color: var(--brand-950);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  resize: vertical;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-status {
  margin: 0 !important;
  color: var(--ink-600) !important;
  font-size: 0.85rem !important;
  text-align: left;
}

.technical-details {
  margin-top: 1rem;
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.technical-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--ink-800);
  font-weight: 760;
}

.technical-details p {
  margin: 0;
  padding: 0 1rem 0.75rem;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.technical-details pre {
  max-height: 260px;
  margin: 0 1rem 1rem;
  padding: 0.85rem;
  overflow: auto;
  color: var(--ink-800);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.74rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.local-processing-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem;
  color: var(--ink-600);
  background: #f1fbf5;
  border: 1px solid #bce5ca;
  border-radius: 14px;
  text-align: left;
}

.local-processing-note > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green-600);
  background: white;
  border-radius: 10px;
  font-weight: 900;
}

.local-processing-note p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.88rem;
}

.generator-code .form-actions {
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .review-actions,
  .review-edit-actions,
  .copy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .review-edit-actions .button,
  .review-actions > .button,
  .copy-row .button {
    width: 100%;
  }

  .code-metadata {
    grid-template-columns: 1fr;
  }
}


/* WEB-04 QR rendering and actual app-icon integration */

.brand img,
.closing-card > img,
.qr-share-header img {
  border-radius: 22%;
}

.code-metadata {
  grid-template-columns: repeat(4, 1fr);
}

.qr-share-card {
  max-width: 820px;
  margin: 2rem auto 1rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  color: var(--ink-950);
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.qr-share-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.qr-share-header img {
  width: 72px;
  height: 72px;
}

.qr-share-header div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.qr-share-header span {
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qr-share-header strong {
  color: var(--ink-950);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.qr-share-header small {
  color: var(--ink-600);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.qr-canvas-frame {
  display: grid;
  place-items: center;
  padding: clamp(0.55rem, 2vw, 1rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.qr-canvas-frame canvas {
  display: block;
  max-width: 100%;
  background: white;
  image-rendering: pixelated;
}

.qr-scan-label {
  margin: 1rem 0 0 !important;
  color: var(--brand-800) !important;
  font-size: 1.15rem !important;
  font-weight: 850;
  text-align: center;
}

.qr-technical-label {
  margin: 0.25rem 0 0 !important;
  color: var(--ink-600) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem !important;
  text-align: center;
}

.qr-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.qr-action-status {
  min-height: 1.4rem;
  margin: 0.65rem 0 0 !important;
  color: var(--ink-600) !important;
  font-size: 0.82rem !important;
  text-align: center;
}

@media (max-width: 760px) {
  .code-metadata {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .qr-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .qr-actions .button {
    width: 100%;
  }

  .qr-share-header {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .qr-share-header img {
    width: 56px;
    height: 56px;
  }
}

@media print {
  @page {
    size: portrait;
    margin: 0.45in;
  }

  body.printing-qr {
    background: white !important;
  }

  body.printing-qr > * {
    display: none !important;
  }

  body.printing-qr main > *:not(#generator),
  body.printing-qr #generator > .shell > *:not([data-generator]) {
    display: none !important;
  }

  body.printing-qr main,
  body.printing-qr #generator,
  body.printing-qr #generator > .shell,
  body.printing-qr [data-generator],
  body.printing-qr [data-board-code-view],
  body.printing-qr [data-qr-print-card] {
    display: block !important;
  }

  body.printing-qr main,
  body.printing-qr #generator,
  body.printing-qr #generator > .shell,
  body.printing-qr [data-generator],
  body.printing-qr [data-board-code-view] {
    margin: 0 !important;
    padding: 0 !important;
    color: black !important;
    background: white !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.printing-qr [data-generator] > *:not([data-board-code-view]),
  body.printing-qr [data-board-code-view] > *:not([data-qr-print-card]) {
    display: none !important;
  }

  body.printing-qr [data-qr-print-card] {
    width: 100% !important;
    max-width: 7.4in !important;
    margin: 0 auto !important;
    padding: 0.2in !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  body.printing-qr .qr-canvas-frame {
    padding: 0.08in !important;
    border: 0 !important;
  }

  body.printing-qr .qr-share-header img {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}


/* WEB-05 review, validation, recovery, and reset */

.generator-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.7rem);
  background: white;
  border-bottom: 1px solid var(--line);
}

.generator-toolbar p {
  display: grid;
  gap: 0.05rem;
  margin: 0;
}

.generator-toolbar strong {
  color: var(--ink-800);
  font-size: 0.85rem;
}

.generator-toolbar span {
  color: var(--ink-600);
  font-size: 0.76rem;
}

.recovery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.25rem clamp(1.25rem, 4vw, 2.7rem) 0;
  padding: 1.2rem;
  color: var(--ink-950);
  background: #f1fbf5;
  border: 1px solid #bce5ca;
  border-radius: 16px;
}

.recovery-card[hidden] {
  display: none;
}

.recovery-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.recovery-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 0.88rem;
}

.recovery-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.validation-summary {
  margin-bottom: 1.4rem;
  padding: 1rem;
  color: #7d1c1c;
  background: #fff5f5;
  border: 2px solid #d95656;
  border-radius: 14px;
}

.validation-summary[hidden] {
  display: none;
}

.validation-summary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(197, 51, 51, 0.18);
}

.validation-summary h4 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.validation-summary ul {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.25rem;
  margin: 0;
}

.validation-summary button {
  padding: 0;
  color: #7d1c1c;
  background: transparent;
  border: 0;
  font-weight: 720;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.field-meta.is-over-limit {
  color: #a51d1d;
  font-weight: 760;
}

.review-readiness {
  margin: 1.5rem 0;
  padding: 1.2rem;
  text-align: left;
  background: #f1fbf5;
  border: 1px solid #bce5ca;
  border-radius: 18px;
}

.review-readiness[hidden] {
  display: none !important;
}

.review-readiness.is-warning {
  background: #fff9e8;
  border-color: #ead28f;
}

.review-readiness.is-error {
  background: #fff5f5;
  border-color: #f1cccc;
}

.readiness-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.readiness-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-600);
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.review-readiness.is-warning .readiness-icon {
  color: #713b00;
  background: #ffe39a;
}

.review-readiness.is-error .readiness-icon {
  background: #c53333;
}

.readiness-heading h4 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.readiness-heading p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.readiness-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.3rem 0.7rem;
  color: #11663a;
  background: white;
  border: 1px solid #bce5ca;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.review-readiness.is-warning .readiness-badge {
  color: #713b00;
  border-color: #ead28f;
}

.review-readiness.is-error .readiness-badge {
  color: #8e1f1f;
  border-color: #f1cccc;
}

.readiness-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.readiness-facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  background: white;
  border: 1px solid rgba(83, 97, 121, 0.18);
  border-radius: 12px;
}

.readiness-facts dt {
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 680;
}

.readiness-facts dd {
  margin: 0;
  color: var(--ink-950);
  font-size: 0.88rem;
  font-weight: 820;
}

.review-notes {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(83, 97, 121, 0.18);
}

.review-notes[hidden] {
  display: none;
}

.review-notes h5 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.review-notes ul {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--ink-600);
  font-size: 0.83rem;
}

.code-verification {
  max-width: 820px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem auto 0;
  padding: 0.75rem 0.9rem;
  color: #11663a;
  background: #f1fbf5;
  border: 1px solid #bce5ca;
  border-radius: 13px;
  text-align: left;
}

.code-verification > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-600);
  border-radius: 9px;
  font-weight: 900;
}

.code-verification p {
  margin: 0;
  color: #11663a;
  font-size: 0.82rem;
  font-weight: 700;
}

.button-danger {
  color: white;
  background: #a52a2a;
  border-color: #a52a2a;
}

.button-danger:hover {
  background: #871f1f;
}

.reset-dialog {
  width: min(calc(100% - 2rem), 520px);
  padding: 0;
  color: var(--ink-950);
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(6, 27, 80, 0.28);
}

.reset-dialog::backdrop {
  background: rgba(6, 27, 80, 0.64);
  backdrop-filter: blur(4px);
}

.reset-dialog form {
  padding: 1.5rem;
  text-align: center;
}

.reset-dialog-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: #8e1f1f;
  background: #fff5f5;
  border-radius: 18px;
  font-size: 1.6rem;
  font-weight: 900;
}

.reset-dialog h3 {
  margin-bottom: 0.65rem;
  font-size: 1.65rem;
}

.reset-dialog p {
  color: var(--ink-600);
}

.reset-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.code-final-actions {
  justify-content: space-between !important;
}

@media (max-width: 760px) {
  .recovery-card,
  .generator-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .recovery-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recovery-actions .button,
  .generator-toolbar .button {
    width: 100%;
  }

  .readiness-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .readiness-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .readiness-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .readiness-facts,
  .reset-dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.printing-qr .generator-toolbar,
  body.printing-qr .recovery-card,
  body.printing-qr .reset-dialog,
  body.printing-qr .code-verification {
    display: none !important;
  }
}


/* WEB-06 release certification corrections */

.qr-canvas-frame canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.not-found-card .eyebrow {
  margin-top: 1.5rem;
}


/* WEB-07 elevated visual system */

:root {
  --brand-950: #051638;
  --brand-900: #08265f;
  --brand-800: #0a3b91;
  --brand-700: #1559d6;
  --brand-600: #2b72ee;
  --brand-100: #d9e7ff;
  --brand-50: #f1f6ff;
  --green-600: #168f50;
  --green-500: #2ccf78;
  --green-100: #dff9eb;
  --ink-950: #0b1425;
  --ink-800: #253149;
  --ink-600: #58667d;
  --ink-400: #8c99ad;
  --line: #dfe6f0;
  --surface-soft: #f5f8fc;
  --shadow-sm: 0 12px 34px rgba(11, 31, 70, 0.08);
  --shadow-lg: 0 36px 90px rgba(2, 14, 43, 0.32);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shell: 1220px;
  --focus: 0 0 0 4px rgba(64, 139, 255, 0.38);
}

body {
  overflow-x: clip;
  background: #ffffff;
  font-feature-settings: "kern" 1, "liga" 1;
}

.shell {
  width: min(calc(100% - clamp(2rem, 5vw, 5rem)), var(--shell));
}

.site-header {
  color: white;
  background: rgba(5, 18, 45, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 40px rgba(1, 10, 30, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.header-inner {
  min-height: 78px;
}

.brand {
  color: white;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}

.brand img {
  border-radius: 13px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.site-nav {
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  color: #dce7fb;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span[aria-hidden="true"] {
  background: white;
}

.hero {
  min-height: min(850px, calc(100svh - 78px));
  display: grid;
  align-items: center;
  padding: clamp(5rem, 8vw, 8.5rem) 0;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(48, 217, 128, 0.22), transparent 22rem),
    radial-gradient(circle at 14% 12%, rgba(54, 127, 255, 0.34), transparent 30rem),
    linear-gradient(145deg, #04112b 0%, #071d48 52%, #08265c 100%);
}

.hero::before {
  inset: auto -7rem -14rem auto;
  width: 34rem;
  height: 34rem;
  border-color: rgba(124, 168, 255, 0.13);
  box-shadow:
    0 0 0 4rem rgba(57, 117, 230, 0.045),
    0 0 0 9rem rgba(57, 117, 230, 0.025);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-grid {
  z-index: 1;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  gap: clamp(3rem, 7vw, 7.5rem);
}

.hero .eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: #c9dcff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  letter-spacing: 0.095em;
}

.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(44, 207, 120, 0.12);
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 1.6rem;
  color: #ffffff;
  font-size: clamp(3.25rem, 6.2vw, 5.65rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.057em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 0.12em;
  color: #82e5b0;
}

.hero-lede {
  max-width: 650px;
  color: #c3d1ea;
  font-size: clamp(1.08rem, 1.65vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.25rem;
}

.button {
  min-height: 52px;
  padding-inline: 1.3rem;
  border-radius: 15px;
  letter-spacing: -0.012em;
}

.button-primary {
  background: linear-gradient(135deg, #2269e3, #1249bd);
  box-shadow:
    0 14px 34px rgba(13, 70, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero .button-primary {
  color: #07152f;
  background: linear-gradient(135deg, #8aebb6, #42d687);
  box-shadow:
    0 16px 38px rgba(25, 195, 103, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero .button-primary:hover {
  background: linear-gradient(135deg, #9af0c2, #55de94);
}

.hero .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero .trust-list {
  color: #adbedb;
  font-size: 0.9rem;
}

.hero .trust-list li::before {
  color: #70e5a7;
}

.hero-visual {
  min-width: 0;
}

.hero-visual-stage {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  isolation: isolate;
}

.hero-visual-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -12% 4%;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.3), transparent 68%);
  filter: blur(20px);
}

.phone-card {
  width: 100%;
  padding: 1.45rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    #0b2459;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow:
    0 42px 90px rgba(0, 7, 25, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotate(1.2deg);
  animation: hero-float 7s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: rotate(1.2deg) translateY(0); }
  50% { transform: rotate(0.4deg) translateY(-9px); }
}

.mini-board {
  gap: 7px;
  padding: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.mini-board div {
  background: #f8faff;
  box-shadow: inset 0 -1px 0 rgba(6, 27, 80, 0.08);
}

.mini-board .winner {
  background: linear-gradient(145deg, #3ad985, #20b968);
  box-shadow: 0 8px 18px rgba(25, 189, 101, 0.3);
}

.code-card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 38px rgba(1, 12, 38, 0.2);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  color: #13203a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 12, 37, 0.24);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-badge > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f7e45;
  background: var(--green-100);
  border-radius: 11px;
  font-weight: 900;
}

.hero-badge div {
  display: grid;
  gap: 0.05rem;
}

.hero-badge strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero-badge small {
  color: #637087;
  font-size: 0.7rem;
}

.hero-badge-private {
  top: 18%;
  left: -18%;
  transform: rotate(-2deg);
}

.hero-badge-share {
  right: -15%;
  bottom: 12%;
  transform: rotate(2deg);
}

.app-visual-stage {
  display: grid;
  gap: 1rem;
  padding-top: 2.75rem;
}

.app-icon-lockup {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1.25rem -4.2rem;
  padding: 0.8rem 1.15rem 0.8rem 0.8rem;
  color: #13203a;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(0, 10, 35, 0.3);
}

.hero-app-icon {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  border-radius: 25%;
  box-shadow:
    0 12px 28px rgba(15, 61, 144, 0.24),
    0 0 0 1px rgba(14, 55, 126, 0.1);
}

.app-icon-lockup > div {
  display: grid;
  gap: 0.2rem;
}

.app-icon-lockup span {
  color: #0e2f78;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.app-icon-lockup strong {
  max-width: 190px;
  color: #637087;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.app-preview-card {
  display: grid;
  gap: 1rem;
  padding: 5.9rem 1.4rem 1.45rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(54, 129, 255, 0.24), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    #0a2459;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow:
    0 42px 90px rgba(0, 7, 25, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
}

.app-preview-header > div {
  display: grid;
  gap: 0.16rem;
}

.app-preview-header small {
  color: #a9c4f5;
  font-size: 0.72rem;
  font-weight: 750;
}

.app-preview-header strong {
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.app-preview-header > span {
  padding: 0.48rem 0.68rem;
  color: #dce9ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-score-panel {
  padding: 1.15rem;
  color: #17243d;
  background: #f8faff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(0, 12, 38, 0.22);
}

.app-score-panel > p {
  margin-bottom: 0.85rem;
  color: #596983;
  font-size: 0.75rem;
  font-weight: 750;
}

.app-score-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.app-score-row > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem;
  background: white;
  border: 1px solid #dbe4f1;
  border-radius: 14px;
}

.app-score-row span {
  overflow: hidden;
  color: #627089;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-score-row strong {
  color: #0e2f78;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.app-check-action {
  margin-top: 0.85rem;
  padding: 0.78rem 1rem;
  color: white;
  background: linear-gradient(135deg, #276fe9, #1249bd);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18, 73, 189, 0.24);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.app-result-panel,
.app-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.app-result-panel {
  padding: 0.95rem 1rem;
  color: #dce9ff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.app-result-panel > span,
.app-privacy-note > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f7e45;
  background: #dff8e9;
  border-radius: 11px;
  font-weight: 900;
}

.app-result-panel > div,
.app-privacy-note > div {
  display: grid;
  gap: 0.08rem;
}

.app-result-panel strong,
.app-privacy-note strong {
  font-size: 0.8rem;
  line-height: 1.3;
}

.app-result-panel small {
  color: #9fb5db;
  font-size: 0.7rem;
}

.app-privacy-note {
  width: fit-content;
  max-width: calc(100% - 2rem);
  justify-self: end;
  margin: -2.35rem -1.2rem 0 0;
  padding: 0.78rem 0.9rem;
  color: #13203a;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 12, 37, 0.24);
}

.app-privacy-note small {
  color: #637087;
  font-size: 0.68rem;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.55), #f5f8fc),
    var(--surface-soft);
  border-bottom: 1px solid #e9eef6;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 3.2rem;
}

h2 {
  color: var(--ink-950);
  font-weight: 820;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.eyebrow {
  color: #1551bd;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.steps-grid {
  gap: 1.15rem;
}

.step-card,
.feature-card {
  border-color: #e2e9f3;
  box-shadow: 0 16px 44px rgba(16, 35, 73, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.step-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c8daf8;
  box-shadow: 0 24px 56px rgba(16, 45, 101, 0.11);
}

.step-card {
  overflow: hidden;
  min-height: 280px;
  padding: 1.85rem;
  background: linear-gradient(160deg, #ffffff 58%, #f2f7ff 100%);
}

.step-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #1e63de, #36d486);
  opacity: 0;
  transition: opacity 180ms ease;
}

.step-card:hover::after {
  opacity: 1;
}

.step-number {
  width: 46px;
  height: 46px;
  margin-bottom: 3.1rem;
  background: linear-gradient(145deg, #246ce5, #0c3b9e);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(19, 82, 198, 0.22);
}

.step-card h3,
.feature-card h3 {
  color: #111b2d;
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.feature-layout {
  gap: clamp(3rem, 8vw, 8rem);
}

.feature-layout > div:first-child {
  position: sticky;
  top: 116px;
}

.feature-grid {
  gap: 1.15rem;
}

.feature-card {
  min-height: 220px;
  padding: 1.75rem;
  background: #ffffff;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: #0b4bb6;
  background: linear-gradient(145deg, #e9f1ff, #dce9ff);
  border: 1px solid #d5e4ff;
  box-shadow: inset 0 1px 0 white;
}

.section-blue {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(44, 207, 120, 0.2), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(59, 120, 239, 0.24), transparent 30rem),
    #06183d;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(135deg, black, transparent 68%);
  mask-image: linear-gradient(135deg, black, transparent 68%);
}

.section-blue > .shell {
  position: relative;
}

.generator-heading {
  margin-bottom: 2.6rem;
}

.generator-heading h2 {
  color: white;
}

.eyebrow-light {
  color: #7ee6af;
}

.generator-heading > p {
  color: #bdcce6;
  line-height: 1.7;
}

.generator-app {
  border-color: rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  box-shadow:
    0 44px 110px rgba(0, 6, 24, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.generator-app .generator-progress {
  background: #f5f8fc;
}

.generator-app .generator-progress li {
  min-height: 82px;
}

.generator-app .generator-progress li.active {
  color: #0d49ac;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border-bottom-color: #2469df;
}

.generator-app .generator-progress li.active span {
  background: linear-gradient(145deg, #2c75ec, #0f49bd);
  border-color: #175acb;
  box-shadow: 0 7px 18px rgba(25, 91, 208, 0.22);
}

.generator-toolbar {
  background: #fbfcfe;
}

.generator-form,
.generator-complete,
.generator-code {
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
}

.field-group input,
.field-group select,
.code-output-group textarea {
  min-height: 54px;
  border-color: #b8c5d8;
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(10, 30, 68, 0.035);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-group input:focus,
.field-group select:focus,
.code-output-group textarea:focus {
  border-color: #2b72ee;
  box-shadow: 0 0 0 4px rgba(43, 114, 238, 0.13);
}

.orientation-preview,
.review-readiness,
.code-verification {
  background: linear-gradient(145deg, #f0f6ff, #f8fbff);
  border-color: #d2e2fb;
}

.rule-card,
.setup-summary,
.qr-share-card {
  border-color: #dfe7f1;
  box-shadow: 0 12px 32px rgba(13, 35, 77, 0.055);
}

.period-tabs button {
  min-height: 50px;
  border-radius: 13px;
}

.period-tabs button[aria-selected="true"] {
  background: linear-gradient(145deg, #2b72ee, #154bb8);
  box-shadow: 0 10px 24px rgba(27, 89, 205, 0.2);
}

.faq-layout {
  gap: clamp(3rem, 8vw, 8rem);
}

.faq-list {
  gap: 0.85rem;
}

.faq-list details {
  border-color: #dfe7f1;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 36, 74, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-list details[open] {
  border-color: #c7daf8;
  box-shadow: 0 18px 42px rgba(18, 58, 132, 0.09);
}

.faq-list summary {
  min-height: 66px;
  padding: 1.15rem 1.25rem;
}

.faq-list summary::after {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand-50);
  border-radius: 9px;
  font-size: 1.15rem;
}

.closing-section {
  padding-bottom: clamp(5rem, 8vw, 7rem);
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
}

.closing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(75, 223, 142, 0.22), transparent 20rem),
    linear-gradient(135deg, #082861, #0b3c8e);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(7, 37, 94, 0.22);
}

.closing-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025);
}

.closing-card > * {
  position: relative;
  z-index: 1;
}

.closing-card h2,
.closing-card .eyebrow {
  color: white;
}

.closing-card .eyebrow {
  color: #83e7b2;
}

.closing-card p {
  color: #c8d6ef;
}

.closing-card .button-primary {
  color: #08214d;
  background: linear-gradient(135deg, #91edbb, #44d68a);
  box-shadow: 0 14px 32px rgba(23, 190, 100, 0.2);
}

.site-footer {
  padding-top: 3.25rem;
  color: #dbe6fa;
  background: #031027;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  color: #91a5c7;
}

.site-footer nav a {
  color: #c6d4ed;
}

.legal-main {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(43, 114, 238, 0.1), transparent 28rem),
    #f4f7fb;
}

.legal-card {
  overflow: hidden;
  max-width: 920px;
  padding: clamp(1.75rem, 5vw, 4.5rem);
  border-color: #dde6f1;
  box-shadow: 0 28px 72px rgba(13, 38, 84, 0.1);
}

.legal-card h1 {
  font-weight: 850;
  letter-spacing: -0.055em;
}

.legal-card h2 {
  color: #10203b;
  letter-spacing: -0.03em;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: 3rem;
  }

  .hero-badge-private {
    left: -8%;
  }

  .hero-badge-share {
    right: -7%;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    justify-content: center;
    padding-top: 1rem;
  }

  .feature-layout > div:first-child {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 70px;
  }

  .site-nav:not(.site-nav-static) {
    background: rgba(5, 20, 51, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 44px rgba(0, 8, 25, 0.3);
  }

  .site-nav:not(.site-nav-static) a {
    padding-inline: 0.75rem;
    color: #e2ebfb;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generator-app {
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .hero {
    padding-top: 4.25rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 3.85rem);
  }

  .hero-visual-stage {
    display: grid;
    gap: 0.8rem;
  }

  .app-visual-stage {
    padding-top: 1.5rem;
  }

  .app-icon-lockup {
    max-width: 94%;
    margin: 0 0.6rem -3.5rem;
    padding: 0.65rem 0.85rem 0.65rem 0.65rem;
    border-radius: 22px;
  }

  .hero-app-icon {
    width: 82px;
    height: 82px;
  }

  .app-icon-lockup span {
    font-size: 1.05rem;
  }

  .app-icon-lockup strong {
    font-size: 0.62rem;
  }

  .app-preview-card {
    padding: 5rem 0.9rem 1rem;
    border-radius: 28px;
  }

  .app-score-row {
    grid-template-columns: 1fr;
  }

  .app-privacy-note {
    max-width: 92%;
    margin: -1.8rem 0.4rem 0 0;
  }

  .hero-badge {
    position: relative;
    inset: auto;
    min-width: 0;
    width: min(88%, 300px);
    transform: none;
  }

  .hero-badge-private {
    justify-self: start;
    margin-bottom: -1.5rem;
  }

  .hero-badge-share {
    justify-self: end;
    margin-top: -1.5rem;
  }

  .phone-card {
    padding: 1rem;
    border-radius: 26px;
    animation: none;
    transform: none;
  }

  .steps-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .feature-card {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 1.8rem;
  }

  .closing-card {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-card,
  .app-preview-card {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  .hero .eyebrow,
  .hero .button-secondary,
  .hero-badge,
  .phone-card,
  .app-icon-lockup,
  .app-preview-card,
  .app-privacy-note {
    border-width: 2px;
  }
}

@media print {
  .site-header {
    color: var(--ink-950);
    background: white;
  }

  .brand {
    color: var(--ink-950);
  }
}

/* WEB-09 — app-aligned product experience */
:root {
  --brand-950: #0d2f78;
  --brand-900: #113a91;
  --brand-800: #1546b8;
  --brand-700: #1546b8;
  --brand-600: #2457c5;
  --brand-100: #e3e9f7;
  --brand-50: #f1f4fb;
  --green-600: #28a745;
  --green-500: #34c759;
  --green-100: #e6f8eb;
  --ink-950: #000000;
  --ink-800: #1c1c1e;
  --ink-600: #636366;
  --ink-400: #8e8e93;
  --line: #d1d1d6;
  --surface: #ffffff;
  --surface-soft: #f2f2f7;
  --shadow-sm: 0 10px 30px rgba(21, 70, 184, 0.08);
  --shadow-lg: 0 30px 80px rgba(21, 70, 184, 0.16);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 30px;
  --focus: 0 0 0 4px rgba(21, 70, 184, 0.24);
}

body {
  color: var(--ink-950);
  background: var(--surface-soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

.site-header {
  background: rgba(242, 242, 247, 0.9);
  border-bottom-color: rgba(60, 60, 67, 0.12);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  color: var(--ink-950);
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(21, 70, 184, 0.16);
}

.site-nav a {
  color: var(--ink-600);
}

.site-nav a:hover {
  color: var(--brand-800);
}

.hero {
  min-height: auto;
  padding: clamp(4.25rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 78% 24%, rgba(21, 70, 184, 0.12), transparent 29rem),
    linear-gradient(180deg, #f2f2f7 0%, #f8f8fb 100%);
}

.hero::before {
  inset: -8rem auto auto -11rem;
  width: 30rem;
  height: 30rem;
  border-color: rgba(21, 70, 184, 0.08);
  box-shadow:
    0 0 0 4rem rgba(21, 70, 184, 0.025),
    0 0 0 9rem rgba(21, 70, 184, 0.014);
}

.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.product-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-lockup img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow:
    0 14px 34px rgba(21, 70, 184, 0.18),
    0 0 0 1px rgba(21, 70, 184, 0.08);
}

.product-lockup div {
  display: grid;
  gap: 0.15rem;
}

.product-lockup strong {
  color: var(--ink-950);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.product-lockup span {
  color: var(--ink-400);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero .eyebrow {
  padding: 0;
  color: var(--brand-800);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hero .eyebrow::before {
  background: var(--brand-800);
  box-shadow: 0 0 0 5px rgba(21, 70, 184, 0.1);
}

.hero h1 {
  color: var(--ink-950);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.99;
}

.hero h1 span {
  color: var(--brand-800);
}

.hero-lede {
  color: var(--ink-600);
}

.button {
  border-radius: 16px;
}

.button-primary,
.hero .button-primary {
  color: white;
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 12px 28px rgba(21, 70, 184, 0.22);
}

.button-primary:hover,
.hero .button-primary:hover {
  color: white;
  background: var(--brand-900);
  border-color: var(--brand-900);
}

.button-secondary,
.hero .button-secondary {
  color: var(--brand-800);
  background: white;
  border-color: rgba(21, 70, 184, 0.16);
  box-shadow: 0 8px 22px rgba(21, 70, 184, 0.06);
}

.button-secondary:hover,
.hero .button-secondary:hover {
  color: var(--brand-900);
  background: var(--brand-50);
  border-color: rgba(21, 70, 184, 0.26);
}

.hero .trust-list {
  color: var(--ink-600);
}

.hero .trust-list li::before {
  color: var(--green-500);
}

.phone-showcase {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}

.device-frame {
  overflow: hidden;
  margin: 0;
  background: #000;
  border: 10px solid #111114;
  border-radius: 52px;
  box-shadow:
    0 32px 70px rgba(21, 38, 75, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

.device-frame img {
  width: 100%;
  height: auto;
}

.hero-device {
  width: min(82%, 360px);
  margin-inline: auto;
  transform: rotate(1.25deg);
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 205px;
  padding: 0.78rem 0.9rem;
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 70, 184, 0.12);
  border-radius: 17px;
  box-shadow: 0 18px 44px rgba(21, 44, 92, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.floating-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 12px;
  font-weight: 850;
}

.floating-note div {
  display: grid;
  gap: 0.05rem;
}

.floating-note strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.floating-note small {
  color: var(--ink-400);
  font-size: 0.68rem;
}

.floating-note-top {
  top: 16%;
  left: -5%;
}

.floating-note-bottom {
  right: -7%;
  bottom: 17%;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--surface);
}

.section-soft {
  background: var(--surface-soft);
  border-color: rgba(60, 60, 67, 0.08);
}

.eyebrow,
.eyebrow-light {
  color: var(--brand-800);
}

h2,
.step-card h3,
.feature-card h3 {
  color: var(--ink-950);
}

.step-card,
.feature-card {
  background: white;
  border-color: rgba(60, 60, 67, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(21, 45, 93, 0.07);
}

.step-card {
  min-height: 260px;
}

.step-card::after {
  background: var(--brand-800);
}

.step-number {
  background: var(--brand-800);
  box-shadow: 0 9px 22px rgba(21, 70, 184, 0.18);
}

.feature-icon {
  color: var(--brand-800);
  background: var(--brand-100);
  border-color: rgba(21, 70, 184, 0.1);
}

.product-tour {
  overflow: hidden;
  background: #f2f2f7;
}

.product-tour-heading {
  max-width: 850px;
}

.screenshot-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.screenshot-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.65rem 1.65rem 0;
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(21, 45, 93, 0.08);
}

.screenshot-card-win {
  background: linear-gradient(160deg, white 64%, rgba(52, 199, 89, 0.08));
}

.screenshot-copy {
  position: relative;
  z-index: 1;
  min-height: 190px;
}

.screenshot-copy > span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 800;
}

.screenshot-card-win .screenshot-copy > span {
  color: #187a35;
  background: rgba(52, 199, 89, 0.14);
}

.screenshot-copy h3 {
  margin-bottom: 0.6rem;
  color: var(--ink-950);
  font-size: 1.45rem;
}

.screenshot-copy p {
  color: var(--ink-600);
  line-height: 1.55;
}

.story-device {
  width: min(85%, 255px);
  max-height: 500px;
  margin: 1.2rem auto -3.25rem;
  border-width: 7px;
  border-radius: 39px;
  box-shadow: 0 22px 48px rgba(17, 33, 69, 0.17);
}

.games-showcase {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: 1.2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(21, 70, 184, 0.14), transparent 19rem),
    white;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(21, 45, 93, 0.08);
}

.games-showcase-copy h3 {
  max-width: 620px;
  margin-bottom: 1rem;
  color: var(--ink-950);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.games-showcase-copy > p:not(.eyebrow) {
  max-width: 630px;
  color: var(--ink-600);
  font-size: 1.1rem;
}

.games-showcase-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.games-showcase-copy li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-800);
  font-weight: 650;
}

.games-showcase-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 900;
}

.games-device {
  width: min(100%, 275px);
  max-height: 570px;
  justify-self: center;
  margin-bottom: -8rem;
  border-width: 8px;
  border-radius: 44px;
}

.section-blue {
  background: var(--surface-soft);
  border-color: rgba(60, 60, 67, 0.08);
}

.section-blue::before {
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(21, 70, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 70, 184, 0.035) 1px, transparent 1px);
}

.generator-heading h2 {
  color: var(--ink-950);
}

.generator-heading > p {
  color: var(--ink-600);
}

.generator-app {
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.12);
  box-shadow: 0 28px 75px rgba(21, 45, 93, 0.12);
}

.generator-app .generator-progress {
  background: #f2f2f7;
}

.generator-app .generator-progress li.active {
  color: var(--brand-800);
  background: white;
  border-bottom-color: var(--brand-800);
}

.generator-app .generator-progress li.active span,
.period-tabs button[aria-selected="true"] {
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 8px 20px rgba(21, 70, 184, 0.18);
}

.generator-toolbar {
  background: #fafafd;
}

.orientation-preview,
.review-readiness,
.code-verification {
  background: var(--brand-50);
  border-color: rgba(21, 70, 184, 0.14);
}

.field-group input:focus,
.field-group select:focus,
.code-output-group textarea:focus {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 4px rgba(21, 70, 184, 0.12);
}

.support-section {
  background: var(--surface-soft);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.support-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 1.75rem;
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(21, 45, 93, 0.07);
}

.support-card-privacy {
  background: linear-gradient(155deg, white 66%, rgba(21, 70, 184, 0.07));
}

.support-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1.55rem;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 15px;
  font-size: 1.15rem;
  font-weight: 850;
}

.support-card h3 {
  color: var(--ink-950);
}

.support-card p {
  color: var(--ink-600);
}

.support-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--brand-800);
  font-weight: 750;
  text-decoration: none;
}

.support-card a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.privacy-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
  padding: 1.5rem 1.65rem;
  background: white;
  border: 1px solid rgba(52, 199, 89, 0.18);
  border-radius: 24px;
}

.privacy-summary-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #187a35;
  background: rgba(52, 199, 89, 0.14);
  border-radius: 15px;
  font-weight: 900;
}

.privacy-summary strong {
  display: block;
  margin-bottom: 0.2rem;
}

.privacy-summary p {
  margin: 0;
  color: var(--ink-600);
}

.faq-list details {
  border-color: rgba(60, 60, 67, 0.1);
  box-shadow: 0 10px 28px rgba(21, 45, 93, 0.06);
}

.closing-section {
  background: white;
}

.closing-card {
  color: white;
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 24px 60px rgba(21, 70, 184, 0.2);
}

.closing-card::after {
  border-color: rgba(255, 255, 255, 0.15);
}

.closing-card .eyebrow,
.closing-card h2,
.closing-card p {
  color: white;
}

.closing-card .button-primary {
  color: var(--brand-800);
  background: white;
  border-color: white;
  box-shadow: none;
}

.site-footer {
  color: var(--ink-800);
  background: #f2f2f7;
  border-top-color: rgba(60, 60, 67, 0.1);
}

.site-footer p,
.site-footer nav a {
  color: var(--ink-600);
}

.legal-main {
  background: var(--surface-soft);
}

.legal-card {
  background: white;
  border-color: rgba(60, 60, 67, 0.1);
  box-shadow: 0 24px 64px rgba(21, 45, 93, 0.1);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .phone-showcase {
    margin-top: 1rem;
  }

  .screenshot-story {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.58fr);
    align-items: center;
    gap: 2rem;
  }

  .screenshot-copy {
    min-height: 0;
  }

  .story-device {
    width: min(100%, 245px);
    margin-top: 0;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-nav:not(.site-nav-static) {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(60, 60, 67, 0.1);
    box-shadow: 0 22px 44px rgba(21, 45, 93, 0.12);
  }

  .site-nav:not(.site-nav-static) a {
    color: var(--ink-800);
  }

  .games-showcase {
    grid-template-columns: 1fr;
  }

  .games-device {
    margin: 0 auto -8rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.4rem;
  }

  .product-lockup {
    margin-bottom: 1.5rem;
  }

  .product-lockup img {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 3.8rem);
  }

  .phone-showcase {
    width: min(100%, 365px);
  }

  .hero-device {
    width: 78%;
    border-width: 8px;
    border-radius: 43px;
  }

  .floating-note {
    position: relative;
    inset: auto;
    min-width: 0;
    width: min(92%, 300px);
  }

  .floating-note-top {
    margin: -2rem 0 0;
  }

  .floating-note-bottom {
    margin: 0 0 0 auto;
  }

  .screenshot-card {
    display: flex;
  }

  .screenshot-copy {
    min-height: 0;
  }

  .story-device {
    width: min(82%, 245px);
    margin-top: 1.2rem;
  }

  .games-showcase {
    padding: 1.6rem 1.4rem 0;
  }

  .games-device {
    width: min(78%, 245px);
    margin-top: 1rem;
  }

  .privacy-summary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .device-frame,
  .floating-note,
  .screenshot-card,
  .games-showcase,
  .support-card,
  .privacy-summary {
    border-width: 2px;
  }
}

/* WEB-10 — restrained, product-led refinement */
:root {
  --brand-950: #0d2f78;
  --brand-900: #123b92;
  --brand-800: #1546b8;
  --brand-700: #1546b8;
  --brand-600: #2457c5;
  --brand-100: #e4eaf8;
  --brand-50: #f3f6fc;
  --ink-950: #111114;
  --ink-800: #2c2c2e;
  --ink-600: #636366;
  --ink-400: #8e8e93;
  --line: #d8d8de;
  --surface: #ffffff;
  --surface-soft: #f2f2f7;
  --shadow-sm: 0 8px 24px rgba(17, 17, 20, 0.06);
  --shadow-lg: 0 22px 54px rgba(17, 17, 20, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --shell: 1180px;
  --focus: 0 0 0 4px rgba(21, 70, 184, 0.22);
}

body {
  overflow-x: clip;
  color: var(--ink-950);
  background: white;
  font-feature-settings: "kern" 1;
}

.shell {
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--shell));
}

.site-header {
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(60, 60, 67, 0.13);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  min-height: 72px;
}

.brand {
  color: var(--ink-950);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.brand img,
.closing-card > img,
.qr-share-header img {
  content: normal;
}

.brand img {
  border-radius: 10px;
  box-shadow: none;
}

.site-nav {
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  color: var(--ink-600);
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--ink-950);
  background: var(--surface-soft);
}

.menu-button {
  border-color: var(--line);
  background: white;
}

.menu-button span[aria-hidden="true"] {
  background: var(--ink-950);
}

.hero {
  min-height: auto;
  padding: clamp(4.75rem, 9vw, 8rem) 0;
  background: white;
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
}

.hero::before,
.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(3rem, 8vw, 7.5rem);
}

.product-lockup {
  margin-bottom: 2.25rem;
}

.product-lockup img {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(21, 70, 184, 0.12);
}

.product-lockup strong {
  font-size: 1.22rem;
}

.product-lockup span {
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.eyebrow,
.eyebrow-light,
.hero .eyebrow {
  padding: 0;
  color: var(--brand-800);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.13em;
}

.hero .eyebrow::before {
  display: none;
}

.hero h1 {
  max-width: 760px;
  color: var(--ink-950);
  font-size: clamp(3.25rem, 6.1vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: var(--brand-800);
}

.hero-lede {
  max-width: 660px;
  color: var(--ink-600);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.button {
  min-height: 50px;
  border-radius: 12px;
  font-weight: 720;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  transform: none;
}

.button-primary,
.hero .button-primary {
  color: white;
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: none;
}

.button-primary:hover,
.hero .button-primary:hover {
  background: var(--brand-900);
  border-color: var(--brand-900);
}

.button-secondary,
.hero .button-secondary {
  color: var(--ink-950);
  background: white;
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover,
.hero .button-secondary:hover {
  color: var(--brand-800);
  background: var(--brand-50);
  border-color: #bfc8dc;
}

.hero .trust-list {
  gap: 0.45rem 1.15rem;
  color: var(--ink-600);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero .trust-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0.5rem 0.15rem 0;
  background: var(--brand-800);
  border-radius: 50%;
}

.phone-showcase {
  width: min(100%, 345px);
}

.device-frame {
  background: transparent;
  border: 0;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
}

.hero-device {
  width: 100%;
  margin-inline: auto;
  transform: none;
}

.floating-note {
  display: none;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: white;
}

.section-soft,
.product-tour,
.support-section,
.section-blue {
  background: var(--surface-soft);
  border-color: rgba(60, 60, 67, 0.1);
}

.section-blue::before {
  display: none;
}

.section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  max-width: 820px;
  color: var(--ink-950);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  letter-spacing: -0.05em;
}

.steps-grid {
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.step-card,
.feature-card {
  min-height: 0;
  padding: 1.75rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.step-card::after {
  display: none;
}

.step-number {
  width: auto;
  height: auto;
  margin-bottom: 2.25rem;
  color: var(--brand-800);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.step-card h3,
.feature-card h3 {
  color: var(--ink-950);
}

.feature-icon {
  display: none;
}

.product-tour {
  overflow: hidden;
}

.product-tour-heading {
  max-width: 780px;
}

.screenshot-story {
  gap: 1rem;
}

.screenshot-card {
  padding: 1.6rem 1.6rem 0;
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  box-shadow: none;
}

.screenshot-card-win {
  background: white;
  border-color: rgba(52, 199, 89, 0.35);
}

.screenshot-copy {
  min-height: 178px;
}

.screenshot-copy > span,
.screenshot-card-win .screenshot-copy > span {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 1.5rem;
  color: var(--brand-800);
  background: transparent;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}

.screenshot-card-win .screenshot-copy > span {
  color: #1d7d38;
}

.story-device {
  width: min(88%, 250px);
  max-height: 500px;
  margin: 1.1rem auto -3.2rem;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 16px 38px rgba(17, 17, 20, 0.12);
}

.games-showcase {
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  box-shadow: none;
}

.games-device {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 16px 38px rgba(17, 17, 20, 0.12);
}

.feature-layout {
  align-items: start;
}

.feature-grid {
  gap: 1.4rem 2rem;
}

.generator-heading {
  margin-bottom: 2.25rem;
}

.generator-heading h2 {
  color: var(--ink-950);
}

.generator-heading > p {
  color: var(--ink-600);
}

.generator-app {
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.15);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(17, 17, 20, 0.08);
}

.generator-app .generator-progress,
.generator-toolbar {
  background: #f7f7fa;
}

.generator-app .generator-progress li.active {
  color: var(--brand-800);
  background: white;
  border-bottom-color: var(--brand-800);
}

.generator-app .generator-progress li.active span,
.period-tabs button[aria-selected="true"] {
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: none;
}

.orientation-preview,
.review-readiness,
.code-verification {
  background: var(--brand-50);
  border-color: #d5ddef;
}

.support-grid {
  gap: clamp(1.5rem, 4vw, 3rem);
}

.support-card,
.support-card-privacy {
  min-height: 230px;
  padding: 1.6rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.support-icon {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  color: var(--brand-800);
  background: transparent;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.privacy-summary {
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #d5ddef;
  border-radius: 14px;
}

.privacy-summary-mark {
  width: 34px;
  height: 34px;
  color: white;
  background: var(--brand-800);
  border-radius: 50%;
  font-size: 0.78rem;
}

.faq-list details {
  border-color: rgba(60, 60, 67, 0.14);
  border-radius: 12px;
  box-shadow: none;
}

.faq-list summary::after {
  background: transparent;
  border-radius: 0;
}

.closing-section {
  padding-top: 0;
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  background: white;
}

.closing-card {
  position: relative;
  overflow: visible;
  padding: clamp(2rem, 4vw, 3rem) 0;
  color: var(--ink-950);
  background: white;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.closing-card::after {
  display: none;
}

.closing-card .eyebrow,
.closing-card h2 {
  color: var(--ink-950);
}

.closing-card .eyebrow {
  color: var(--brand-800);
}

.closing-card p {
  color: var(--ink-600);
}

.closing-card .button-primary {
  color: white;
  background: var(--brand-800);
  border-color: var(--brand-800);
}

.site-footer {
  padding-top: 2.75rem;
  color: var(--ink-800);
  background: var(--surface-soft);
  border-top: 1px solid rgba(60, 60, 67, 0.1);
}

.footer-brand {
  color: var(--ink-950);
}

.site-footer p,
.site-footer nav a {
  color: var(--ink-600);
}

.site-footer nav a:hover {
  color: var(--ink-950);
}

.copyright {
  border-top-color: rgba(60, 60, 67, 0.12);
}

.legal-main {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--surface-soft);
}

.legal-card {
  overflow: visible;
  max-width: 820px;
  padding: clamp(2rem, 6vw, 4.5rem);
  background: white;
  border: 1px solid rgba(60, 60, 67, 0.13);
  border-radius: 18px;
  box-shadow: none;
}

.legal-card h1 {
  letter-spacing: -0.05em;
}

.legal-card section {
  border-top-color: rgba(60, 60, 67, 0.13);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.52fr);
    gap: 3rem;
  }

  .screenshot-story {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.55fr);
    align-items: center;
    gap: 2rem;
  }

  .screenshot-copy {
    min-height: 0;
  }

  .story-device {
    width: min(100%, 235px);
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .site-nav:not(.site-nav-static) {
    color: var(--ink-950);
    background: rgba(255, 255, 255, 0.99);
    border-bottom-color: rgba(60, 60, 67, 0.12);
    box-shadow: var(--shadow-sm);
  }

  .site-nav:not(.site-nav-static) a {
    color: var(--ink-800);
  }

  .hero-grid,
  .games-showcase {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .phone-showcase {
    width: min(82%, 330px);
  }

  .games-device {
    margin: 0 auto -7rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 3.65rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero .trust-list {
    display: grid;
    gap: 0.4rem;
  }

  .screenshot-card {
    display: flex;
  }

  .story-device {
    width: min(82%, 235px);
    margin-top: 1.1rem;
  }

  .support-card {
    min-height: 0;
  }

  .closing-card {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .screenshot-card,
  .games-showcase,
  .generator-app,
  .privacy-summary,
  .legal-card {
    border-width: 2px;
  }
}

/* WEB-11 — focused first-viewport refinement */
.hero {
  padding: clamp(3.25rem, 5.5vw, 5rem) 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.product-lockup {
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 5.25vw, 4.75rem);
  line-height: 1.02;
}

.hero-lede {
  max-width: 620px;
}

.hero-actions {
  margin: 1.65rem 0 1rem;
}

.app-store-cta {
  min-width: 218px;
  justify-content: space-between;
}

.app-store-cta:disabled {
  color: white;
  background: var(--brand-800);
  border-color: var(--brand-800);
  cursor: not-allowed;
  opacity: 1;
}

.cta-status {
  padding-left: 0.7rem;
  margin-left: 0.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.owner-action {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.owner-action > span {
  color: var(--ink-400);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.owner-action a {
  color: var(--brand-800);
  font-weight: 720;
  text-underline-offset: 0.2em;
}

.owner-action a:hover {
  color: var(--brand-900);
}

.device-frame {
  border-radius: 32px;
  box-shadow:
    0 18px 40px rgba(17, 17, 20, 0.11),
    0 0 0 1px rgba(60, 60, 67, 0.08);
}

.hero-collage {
  width: min(100%, 540px);
  margin: 0 auto;
}

.hero-collage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(21, 70, 184, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(24, 53, 119, 0.13);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 0.75rem;
  }

  .hero-collage {
    width: min(100%, 480px);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.75rem 0 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.45rem);
  }

  .hero-actions {
    display: grid;
  }

  .app-store-cta {
    min-width: 0;
  }

  .owner-action {
    display: grid;
    gap: 0.25rem;
  }

  .hero-collage img {
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(24, 53, 119, 0.12);
  }
}
