:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #112a44;
  --muted: #647386;
  --line: #dbe4ee;
  --aqua: #3ec7c6;
  --aqua-dark: #159e9d;
  --soft-aqua: #e4f8f7;
  --warning: #fff6dd;
  --shadow: 0 18px 50px rgba(17, 42, 68, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(62, 199, 198, 0.18), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42rem);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-card {
  width: min(520px, 100%);
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.access-logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
  margin-bottom: 28px;
}

.access-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.access-row input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-row button,
.button,
.copy-box button,
.site-footer button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  background: var(--ink);
}

.button.secondary {
  background: var(--soft-aqua);
  color: var(--ink);
  border: 1px solid rgba(62, 199, 198, 0.45);
}

.button.small {
  min-height: 40px;
  width: fit-content;
  margin: 10px 0;
}

.access-error {
  color: #a33a2f;
  min-height: 1.4em;
  margin: 0;
}

.tiny {
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 0;
}

.access-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.access-legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-legal-links a:focus-visible {
  outline: 2px solid var(--aqua-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.muted {
  color: var(--muted);
}

.site-shell.is-locked {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 210px;
  max-width: 44vw;
  display: block;
}

.top-nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.45;
  color: var(--muted);
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-panel,
.voice-card,
.voice-check-panel,
.info-block,
.step-card,
.route-card,
.file-explain article,
.homework-grid article,
.module-card,
.completion-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 42, 68, 0.08);
}

.hero-panel {
  padding: 26px;
}

.hero-panel h2 {
  margin-top: 0;
}

.voice-intake {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0 28px;
}

.voice-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.voice-meta,
.voice-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.voice-meta span,
.voice-flow span {
  padding: 8px 10px;
  background: var(--soft-aqua);
  border-radius: var(--radius);
  font-weight: 800;
}

.voice-card {
  padding: 28px;
}

.voice-card h2,
.voice-check-panel h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.topic-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.recording-note,
.privacy-note {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: var(--radius);
  line-height: 1.5;
}

.recording-note {
  background: var(--soft-aqua);
  color: var(--ink);
  font-weight: 700;
}

.privacy-note {
  background: var(--warning);
  color: var(--ink);
}

.voice-check-section {
  padding: 0 0 42px;
}

.voice-check-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding: 24px;
}

.voice-check-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.voice-checklist {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.voice-checklist .checkline:first-child {
  margin-top: 0;
}

.recorder-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.recorder-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.recorder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.recorder-controls .button.small {
  margin: 0;
}

.recording-status {
  margin: 12px 0 0;
  font-size: 14px;
}

.business-layer {
  display: none;
}

.business-layer.is-visible {
  display: block;
}

.hero-visual {
  min-height: 440px;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 42, 68, 0.08);
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(228, 248, 247, 0.9), rgba(255, 255, 255, 0.3)),
    repeating-linear-gradient(
      0deg,
      rgba(17, 42, 68, 0.04) 0,
      rgba(17, 42, 68, 0.04) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(17, 42, 68, 0.04) 0,
      rgba(17, 42, 68, 0.04) 1px,
      transparent 1px,
      transparent 34px
    );
}

.map-piece {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 138px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(17, 42, 68, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(17, 42, 68, 0.42);
  box-shadow: 0 12px 24px rgba(17, 42, 68, 0.08);
}

.map-piece span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgba(17, 42, 68, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.map-piece strong {
  font-size: 18px;
  line-height: 1.1;
}

.piece-00 {
  top: 28px;
  left: 22px;
}

.piece-01 {
  top: 116px;
  right: 22px;
}

.piece-02 {
  left: 56px;
  bottom: 24px;
}

.map-line {
  position: absolute;
  height: 2px;
  background: rgba(17, 42, 68, 0.12);
  transform-origin: left center;
}

.line-01 {
  width: 150px;
  top: 118px;
  left: 130px;
  transform: rotate(21deg);
}

.line-02 {
  width: 170px;
  top: 204px;
  left: 138px;
  transform: rotate(-18deg);
}

.map-node {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(17, 42, 68, 0.18);
}

.node-01 {
  top: 62px;
  right: 54px;
}

.node-02 {
  left: 40px;
  bottom: 62px;
}

.node-03 {
  right: 84px;
  bottom: 36px;
}

.hero-visual-00 .piece-00,
.hero-visual-01 .piece-00,
.hero-visual-01 .piece-01,
.hero-visual-02 .piece-00,
.hero-visual-02 .piece-01,
.hero-visual-02 .piece-02 {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(62, 199, 198, 0.7);
}

.hero-visual-00 .piece-00 span,
.hero-visual-01 .piece-00 span,
.hero-visual-01 .piece-01 span,
.hero-visual-02 .piece-00 span,
.hero-visual-02 .piece-01 span,
.hero-visual-02 .piece-02 span {
  background: var(--soft-aqua);
}

.hero-visual-01 .line-01,
.hero-visual-02 .line-01,
.hero-visual-02 .line-02 {
  background: var(--aqua-dark);
}

.hero-visual-01 .node-01,
.hero-visual-01 .node-02,
.hero-visual-02 .map-node {
  background: var(--aqua);
}

.map-caption h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1;
}

.map-caption p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.result-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.result-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.result-list strong {
  word-break: break-word;
}

.section-grid,
.route-grid,
.file-explain,
.homework-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-grid,
.steps-section,
.routes-section,
.files-section,
.homework-section,
.modules-section,
.completion-section,
.faq-section {
  padding: 42px 0;
}

.info-block,
.file-explain article,
.homework-grid article,
.module-card,
.completion-panel {
  padding: 24px;
}

.info-block h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: 0;
}

.info-block p,
.section-heading p,
.step-card p,
.route-card p,
.file-explain p,
.homework-grid p,
.module-card p,
.completion-panel p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.flow span {
  padding: 8px 10px;
  background: var(--soft-aqua);
  border-radius: var(--radius);
  font-weight: 700;
}

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

.steps {
  display: grid;
  gap: 18px;
}

.step-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
}

.step-number,
.route-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: #ffffff;
  font-weight: 900;
}

.step-card h3,
.route-card h3,
.file-explain h3,
.homework-grid h3,
.module-card h3,
.completion-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(760px, 100%);
  padding: 10px;
  background: #f3f7fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.copy-box code {
  overflow-wrap: anywhere;
}

.copy-box button {
  background: var(--aqua-dark);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
}

.checkline input {
  width: 20px;
  height: 20px;
  accent-color: var(--aqua-dark);
}

details {
  margin-top: 14px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdff;
  color: var(--ink);
  line-height: 1.5;
}

#instructionsText {
  min-height: 420px;
}

#business01InstructionsText {
  min-height: 520px;
}

#business02InstructionsText {
  min-height: 520px;
}

.file-list {
  columns: 2;
  color: var(--muted);
}

.source-groups {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.source-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-group h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.compact-list {
  margin-top: 8px;
}

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

.route-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.route-card:hover {
  transform: translateY(-3px);
  border-color: var(--aqua);
}

.route-card ul,
.homework-grid ul {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.files-section .copy-box {
  margin-top: 16px;
}

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

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.module-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.module-link:hover,
.module-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--aqua);
}

.module-card.is-current {
  border-color: rgba(62, 199, 198, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbfb 100%);
}

.module-label {
  width: fit-content;
  margin: 0;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: var(--soft-aqua);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.module-card ul {
  margin: auto 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.completion-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.completion-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.next-step-panel {
  display: none;
  padding: 22px;
  border: 1px solid rgba(62, 199, 198, 0.5);
  border-radius: var(--radius);
  background: #f2fbfb;
}

.next-step-panel.is-visible {
  display: block;
}

.next-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.next-options span,
.next-options a {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.next-options a:hover,
.next-options a:focus-visible {
  border-color: var(--aqua);
}

.cover-page {
  padding-bottom: 20px;
}

.cover-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0 44px;
}

.cover-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 42px 0;
}

.cover-section {
  padding: 42px 0;
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.output-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.output-list article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 42, 68, 0.08);
}

.output-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.output-list p {
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer button {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cookie-settings-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
  display: none;
  pointer-events: none;
}

.cookie-banner.is-visible {
  display: block;
  pointer-events: auto;
}

.cookie-banner__panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  overflow: auto;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(10, 34, 45, 0.18);
}

.cookie-banner__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__panel a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cookie-banner__actions button {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 16px;
  cursor: pointer;
}

.cookie-banner__accept {
  color: #ffffff;
  background: var(--ink);
  border: 0;
}

.cookie-banner__reject {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .top-nav {
    display: none;
  }

  .hero,
  .voice-intake,
  .cover-hero,
  .voice-check-panel,
  .cover-grid,
  .section-grid,
  .route-grid,
  .file-explain,
  .homework-grid,
  .module-grid,
  .process-grid,
  .completion-panel,
  .output-list {
    grid-template-columns: 1fr;
  }

  .hero,
  .voice-intake,
  .cover-hero {
    min-height: auto;
    padding-top: 38px;
  }

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

  .copy-box {
    grid-template-columns: 1fr;
  }

  .copy-box button {
    width: 100%;
  }

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

  .file-list {
    columns: 1;
  }

  .hero-visual {
    min-height: auto;
  }

  .map-stage {
    min-height: 260px;
  }
}

@media (max-width: 540px) {
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }
  .cookie-banner {
    inset-inline: 10px;
    bottom: 10px;
  }

  .cookie-banner__panel {
    padding: 12px;
  }

  .cookie-banner__actions button {
    flex: 1 1 130px;
  }
  .site-header {
    padding-inline: 12px;
  }

  .access-card {
    padding: 22px;
  }

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

  .hero h1,
  .voice-copy h1,
  .cover-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-visual {
    padding: 18px;
  }

  .map-stage {
    min-height: 250px;
  }

  .map-piece {
    min-width: 118px;
    min-height: 78px;
    padding: 12px;
  }

  .map-piece strong {
    font-size: 15px;
  }

  .piece-00 {
    top: 18px;
    left: 14px;
  }

  .piece-01 {
    top: 102px;
    right: 14px;
  }

  .piece-02 {
    left: 22px;
    bottom: 18px;
  }

  .line-01 {
    width: 112px;
    top: 96px;
    left: 112px;
  }

  .line-02 {
    width: 120px;
    top: 176px;
    left: 96px;
  }
}
