:root {
  --navy: #0b132b;
  --deep-blue: #0a1a5e;
  --blue: #1407e6;
  --sky: #0093fc;
  --offwhite: #f8fafc;
  --gold: #ffb800;
  --white: #ffffff;
  --muted: #697590;
  --line: #dde4ef;
  --soft-blue: #edf4ff;
  --shadow: 0 24px 70px rgba(10, 26, 94, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--navy);
  font: 16px/1.6 "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { margin: 0; font-family: "Manrope", Arial, sans-serif; letter-spacing: -.035em; }
p { margin-top: 0; }

.site-header {
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .96);
}
.brand { justify-self: start; }
.brand img { width: 166px; height: 48px; object-fit: contain; }
.stack-label { color: var(--deep-blue); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.stack-label:hover, .breadcrumb a:hover, .footer-inner p a:hover { color: var(--blue); }
.stack-label:focus-visible, .breadcrumb a:focus-visible, .footer-inner p a:focus-visible {
  outline: 3px solid rgba(20, 7, 230, .28);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header .button { justify-self: end; }

.button {
  min-height: 50px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 9px;
  font: 700 .92rem/1.2 "Inter", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .dialog-close:focus-visible, .form-field input:focus-visible {
  outline: 3px solid rgba(20, 7, 230, .28);
  outline-offset: 3px;
}
.button-small { min-height: 40px; padding: 8px 15px; font-size: .8rem; }
.button-outline { border-color: var(--blue); color: var(--blue); }
.button-outline:hover { background: #eeedff; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(20, 7, 230, .22); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(20, 7, 230, .3); }
.button-gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 28px rgba(255, 184, 0, .22); }
.text-link { color: var(--blue); font-weight: 700; text-underline-offset: 5px; }

.tool-hero { padding: 20px 0 40px; background: linear-gradient(180deg, white 0%, var(--offwhite) 100%); }
.breadcrumb { display: flex; gap: 10px; color: #7d88a2; font-size: .75rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner p a { text-underline-offset: 3px; }
.breadcrumb i { color: #b4bdcd; font-style: normal; }
.hero-grid {
  padding: 28px 0 30px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 40px;
}
.hero-avatar { position: relative; }
.avatar-glow {
  width: 240px;
  height: 240px;
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  background: var(--sky);
  filter: blur(45px);
  opacity: .2;
  transform: translate(-50%, -50%);
}
.hero-avatar img {
  width: 310px;
  position: relative;
  border: 10px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { padding: 5px 11px; border: 1px solid; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.tag-blue { border-color: #b9c5ff; background: #eeefff; color: var(--blue); }
.tag-green { border-color: #bce6d2; background: #e5f8ef; color: #14764c; }
.tag-gold { border-color: #f3d17e; background: #fff5d5; color: #916300; }
h1 { margin-top: 14px; font-size: clamp(3.4rem, 6vw, 5.7rem); line-height: .98; }
.hero-subtitle { margin: 12px 0 0; color: var(--blue); font-family: "Manrope", Arial, sans-serif; font-size: 1.25rem; font-weight: 800; }
.hero-description { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.06rem; }
.perfect-for { margin: 18px 0 0; color: var(--navy); font-size: .86rem; font-weight: 600; }
.perfect-for span { color: var(--muted); font-weight: 500; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.problem-card {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid #f0d9b9;
  border-radius: 14px;
  background: #fff9ef;
}
.problem-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #ff9b52; border-radius: 50%; color: #e76e17; font-weight: 800; }
.problem-card strong { font-family: "Manrope", Arial, sans-serif; }
.problem-card p { margin: 3px 0 0; color: var(--muted); font-size: .87rem; }

.section { padding: 52px 0; }
.section-heading { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.eyebrow { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.section h2 { margin-top: 9px; font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: 1.08; }
.workflow-section { background: white; }
.transformation-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}
.flow-card {
  min-height: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--offwhite);
}
.flow-card-result { border-color: #bac7ff; background: #f3f4ff; }
.flow-card-head { display: flex; align-items: center; gap: 12px; }
.flow-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #e8edff; color: var(--blue); font-weight: 800; }
.flow-card h3 { font-size: 1.2rem; }
.flow-card ul { margin: 23px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.flow-card li { padding: 10px 12px; border-radius: 9px; background: white; color: #39445e; font-size: .82rem; font-weight: 600; box-shadow: 0 5px 18px rgba(10,26,94,.04); }
.flow-arrow { align-self: center; color: #8190ad; font-size: 1.7rem; }

.tools-row {
  margin-top: 22px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--offwhite);
}
.tools-label { margin-right: 10px; color: #8993a9; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.tool-pill { display: flex; align-items: center; gap: 9px; }
.tool-pill b { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: var(--deep-blue); color: white; }
.tool-pill span { display: flex; flex-direction: column; line-height: 1.15; }
.tool-pill strong { font-size: .8rem; }
.tool-pill small { color: var(--muted); font-size: .65rem; }
.tools-row > i { color: var(--gold); font-style: normal; }

.sample-section { background: linear-gradient(180deg, #edf5ff 0%, var(--offwhite) 100%); }
.sample-heading { margin-bottom: 24px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 60px; }
.sample-heading > p { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.sample-frame { padding: 0; overflow: hidden; border: 1px solid #dce4f1; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px rgba(10,26,94,.09); }
.sample-toolbar { min-height: 60px; padding: 14px 22px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; color: var(--deep-blue); border-bottom: 1px solid var(--line); background: white; }
.sample-toolbar > span { justify-self: start; font-size: .875rem; font-weight: 600; }
.sample-toolbar a { font-size: .875rem; font-weight: 700; text-underline-offset: 3px; color: var(--blue); }
.sample-dots { display: flex; gap: 6px; }
.sample-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d2dcec; }
.sample-dots i:first-child { background: var(--gold); }
.sample-image { overflow: hidden; display: block; border-radius: 10px; background: white; }
.sample-image img { width: 100%; height: auto; transition: transform .3s ease; }
.sample-image:hover img { transform: scale(1.01); }
.process-scroll { overflow-x: auto; background-color: #f5f8fd; background-image: radial-gradient(#dbe4f2 .8px, transparent .8px); background-size: 18px 18px; scrollbar-color: #a4b6d6 #e8eef8; }
.process-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.process-board { display: grid; grid-template-columns: repeat(6, 232px); gap: 20px; width: max-content; padding: 28px; align-items: start; }
.process-lane { width: 232px; border: 1px solid #dbe4f0; border-top: 4px solid var(--stage-color); border-radius: 13px; background: #ffffffd9; box-shadow: 0 5px 12px #0a1a5e04; }
.lane-heading { height: 132px; padding: 18px 16px; border-bottom: 1px solid #e5ebf4; }
.lane-number { color: var(--stage-color); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.lane-heading h3 { margin: 8px 0 5px; font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; }
.lane-heading p { margin: 0; font-size: .8125rem; color: var(--muted); }
.lane-steps { list-style: none; padding: 18px 12px; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.process-node { position: relative; padding: 12px; border: 1px solid #dce4ef; border-radius: 9px; background: white; text-align: left; }
.process-node:not(:last-child)::after { content: "↓"; position: absolute; left: calc(50% - 7px); bottom: -25px; color: #9aaac3; font-size: 18px; height: 24px; line-height: 24px; }
.node-type { display: block; color: #738099; text-transform: uppercase; font-size: .6875rem; line-height: 1.4; font-weight: 800; letter-spacing: .08em; margin-bottom: 6px; }
.node-label { display: block; font-size: .875rem; line-height: 1.5; font-weight: 500; color: #263652; overflow-wrap: anywhere; }
.node-trigger { background: #eaf2ff; border-color: #c2d8ff; }
.node-trigger .node-type { color: #225db4; }
.node-wait { background: #f6f8fb; border-style: dashed; }
.node-decision { background: #fff8e5; border-color: #efd59a; }
.node-decision .node-type { color: #956211; }
.node-human { background: #fff1e8; border-color: #f0ceb6; }
.node-human .node-type { color: #a45325; }
.node-exit { background: #eaf8f1; border-color: #b8dfcb; }
.node-exit .node-type { color: #22724f; }
.process-node.node-exit::after { display: none; }
.branch-route { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid #ead9ad; color: #795819; font-size: .8125rem; line-height: 1.5; }
.map-reading-note { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: .8125rem; }
.map-reading-note span:last-child { color: var(--blue); font-weight: 600; }
.map-legend { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .7rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border: 1px solid; border-radius: 2px; }
.map-legend .trigger { border-color: #327bff; background: #ddebff; }
.map-legend .action { border-color: #9da7b5; background: white; }
.map-legend .decision { border-color: #f5a623; background: #fff1c8; transform: rotate(45deg); }
.map-legend .human { border-color: #ff7a1a; background: #ffe0cd; }
.map-legend .exit { border-color: #2ebd6f; background: #d5ffe5; }

.astra-section { background: white; }
.astra-card {
  padding: 36px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
  color: white;
  box-shadow: 0 26px 70px rgba(10,26,94,.2);
}
.astra-badge { color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.astra-copy h2 { margin-top: 8px; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.08; }
.astra-copy p { margin: 16px 0 0; color: #c8d7f6; }
.astra-path { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 9px; color: #b7c9ed; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.astra-path i { color: var(--gold); font-style: normal; }
.packet-list { padding: 12px 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.1); }
.packet-list > div { padding: 13px 0; display: grid; grid-template-columns: 38px 1fr; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.packet-list > div:last-child { border-bottom: 0; }
.packet-list span { color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.packet-list strong { font-size: .84rem; }

.final-cta { padding: 24px 0; background: var(--gold); }
.final-inner { min-height: 100px; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 24px; }
.final-inner img { width: 94px; border: 5px solid white; border-radius: 50%; box-shadow: 0 10px 25px rgba(11,19,43,.15); }
.final-inner span { color: #6f5100; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.final-inner h2 { margin-top: 2px; font-size: 2rem; }
.final-inner p { margin: 0; font-size: .84rem; }
.final-inner .button { background: var(--white); color: var(--deep-blue); border: 1px solid rgba(10,26,94,.12); box-shadow: 0 8px 22px rgba(10,26,94,.14); }
.final-inner .button:hover { background: var(--soft-blue); box-shadow: 0 12px 28px rgba(10,26,94,.2); }
.final-inner .button:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 4px; }
.final-inner .button span { color: inherit; font-size: inherit; letter-spacing: 0; }

.access-dialog {
  width: min(900px, calc(100% - 28px));
  max-width: none;
  max-height: min(90vh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: white;
  color: var(--navy);
  box-shadow: 0 40px 120px rgba(3,11,42,.48);
}
.access-dialog::backdrop { background: rgba(5,13,46,.74); backdrop-filter: blur(7px); }
.dialog-close { width: 44px; height: 44px; position: absolute; top: 13px; right: 13px; z-index: 4; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.access-grid { min-height: 620px; display: grid; grid-template-columns: .8fr 1.2fr; }
.access-visual { padding: 38px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--deep-blue), var(--blue)); color: white; text-align: center; }
.access-visual img { width: 250px; border: 7px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,30,.34); }
.access-visual > span { margin-top: 22px; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.access-visual > strong { margin-top: 4px; font-family: "Manrope", Arial, sans-serif; font-size: 1.55rem; }
.access-visual > small { color: #c0d2f4; font-size: .74rem; }
.access-content { padding: 45px 42px 35px; }
.access-content h2 { margin-top: 8px; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; }
.access-content > p { margin: 12px 0 22px; color: var(--muted); font-size: .86rem; }
.access-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .875rem; font-weight: 700; }
.form-field input { width: 100%; height: 49px; padding: 0 13px; border: 1px solid #cbd6e6; border-radius: 8px; background: #fbfdff; color: var(--navy); font: inherit; font-size: 1rem; }
.form-field input:focus { border-color: var(--blue); }
.form-trap { width: 1px; height: 1px; position: absolute; left: -10000px; overflow: hidden; }
.access-submit { width: 100%; grid-column: 1 / -1; }
.access-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 20px; margin: -4px 0 0; grid-column: 1 / -1; font-size: .72rem; font-weight: 600; }
.form-status.is-loading { color: var(--blue); }
.form-status.is-success { color: #167042; }
.form-status.is-error { color: #b22929; }
.form-consent { margin-top: -10px; grid-column: 1 / -1; color: #7d899f; font-size: .75rem; line-height: 1.5; }
.access-divider { margin: 20px 0 15px; display: flex; align-items: center; gap: 10px; color: #8993a8; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; }
.access-divider::before, .access-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.qr-access { display: grid; grid-template-columns: 102px 1fr; align-items: center; gap: 15px; }
.qr-frame { padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 7px 18px rgba(10,26,94,.08); }
.qr-access strong { font-family: "Manrope", Arial, sans-serif; font-size: .85rem; }
.qr-access p { margin: 2px 0 5px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.qr-access a { color: var(--blue); font-size: .7rem; font-weight: 700; text-underline-offset: 3px; }

footer { background: var(--offwhite); }
.footer-inner { min-height: 100px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; }
.footer-inner img { width: 150px; height: 45px; object-fit: contain; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .73rem; }
.footer-inner span { color: var(--deep-blue); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 250px 1fr; gap: 38px; }
  .hero-avatar img { width: 240px; }
  .transformation-flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .flow-card { min-height: 0; }
  .tools-row { flex-wrap: wrap; }
  .tools-label { width: 100%; margin: 0 0 3px; text-align: center; }
  .sample-heading { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .astra-card { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 66px; padding: 0 14px; grid-template-columns: 1fr auto; }
  .brand img { width: 125px; height: 40px; }
  .stack-label { display: none; }
  .site-header .button { min-height: 44px; padding: 9px 12px; font-size: .875rem; }
  .tool-hero { padding: 16px 0 30px; }
  .hero-grid { padding: 20px 0 24px; grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .hero-avatar img { width: 160px; margin: 0 auto; border-width: 6px; }
  .badge-row, .hero-actions { justify-content: center; }
  h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
  .hero-description { font-size: .98rem; }
  .hero-actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .hero-actions .button { width: 100%; }
  .problem-card { padding: 18px; text-align: left; }
  .section { padding: 36px 0; }
  .flow-card { padding: 21px; }
  .tools-row { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px 16px; padding: 14px; }
  .tools-row > i { display: none; }
  .sample-toolbar { grid-template-columns: 1fr auto; }
  .sample-toolbar > span { display: none; }
  .sample-image { overflow-x: auto; }
  .sample-image img { width: 900px; max-width: none; }
  .astra-card { padding: 24px 20px; gap: 22px; }
  .astra-path { flex-direction: row; align-items: center; margin-top: 16px; }
  .astra-path i { transform: none; }
  .final-inner { grid-template-columns: 70px 1fr; gap: 14px; }
  .final-inner img { width: 65px; }
  .final-inner h2 { font-size: 1.45rem; }
  .final-inner .button { grid-column: 1 / -1; width: 100%; }
  .access-dialog { width: calc(100% - 24px); max-height: 92vh; max-height: 92dvh; border-radius: 15px; }
  .access-grid { min-height: 0; grid-template-columns: 1fr; }
  .access-visual { padding: 30px 22px 22px; }
  .access-visual img { width: 142px; }
  .access-visual > span { margin-top: 12px; }
  .access-content { padding: 22px 20px; }
  .access-form { grid-template-columns: 1fr; }
  .qr-access { grid-template-columns: 88px 1fr; }
  .footer-inner { padding: 22px 0; grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .footer-inner img { margin: 0 auto; }
}

.sample-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; }
.sample-mini { min-width: 0; padding: 24px 20px 18px; }
.sample-mini + .sample-mini { border-left: 1px solid var(--line); }
.mini-heading { min-height: 96px; }
.mini-heading > span { color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .11em; }
.mini-heading h3 { font-size: 1.15rem; margin: 7px 0; }
.mini-heading p { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }
.sample-mini svg { width: 100%; display: block; overflow: visible; }
.sample-mini svg text { text-anchor: middle; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; fill: var(--deep-blue); }
.sample-mini svg .mini-edge { font-size: 12px; font-weight: 500; fill: #697590; }
.mini-lines { fill: none; stroke: #8995b0; stroke-width: 1.5; }
.mini-start { fill: #e7e5ff; stroke: #a6a0fa; }
.mini-action { fill: #edf5ff; stroke: #b0cff4; }
.mini-human { fill: #fff0d9; stroke: #ebc080; }
.mini-decision { fill: #fff6cc; stroke: #e5bc49; }
.mini-exit { fill: #e2f4ef; stroke: #98cbb9; }
.access-dialog .access-grid { min-height: 0; }
.access-dialog .access-content { align-self: center; }
[hidden] { display: none !important; }
.pedro-welcome { min-height: 100vh; background: radial-gradient(ellipse at top right, #e5edff, #f8fafc 65%); }
.welcome-back { font-size: .875rem; color: var(--blue); font-weight: 600; }
.welcome-main { padding: 36px 20px; }
.welcome-card { max-width: 980px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.welcome-content { padding: 32px; }
.welcome-content h1 { font-size: clamp(2.6rem, 6vw, 3.7rem); line-height: 1.15; margin: 12px 0 18px; }
.welcome-content > p { color: var(--muted); }
.welcome-content > .button { width: 100%; }
.welcome-account { display: block; font-size: .875rem; color: var(--muted); text-align: center; margin-top: 12px; }
.welcome-qr { display: flex; align-items: center; gap: 22px; }
.welcome-qr img { width: 180px; height: 180px; flex: 0 0 180px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: white; }
.welcome-qr h2 { font-size: 1rem; line-height: 1.4; }
.welcome-qr p { font-size: .875rem; color: var(--muted); margin: 8px 0 0; }
#access-fallback { text-align: center; }
@media (max-width: 900px) {
  .sample-mini { padding: 24px 12px; }
  .welcome-content { padding: 32px 24px; }
  .welcome-qr { flex-direction: column; text-align: center; }
}
@media (max-width: 700px) {
  .sample-gallery { grid-template-columns: 1fr; }
  .sample-mini { padding: 20px 16px; }
  .sample-mini + .sample-mini { border-left: 0; border-top: 1px solid var(--line); }
  .mini-heading { min-height: 0; text-align: center; }
  .sample-mini svg { max-width: 300px; margin: 10px auto 0; }
  .welcome-main { padding: 24px 14px; }
  .welcome-card { grid-template-columns: 1fr; }
  .welcome-card .access-visual { padding: 24px; }
  .welcome-card .access-visual img { width: 130px; }
  .welcome-content { padding: 24px 20px; }
  .access-dialog .access-grid { min-height: 0; }
}


/* Keep narrow layouts readable without adding page-wide horizontal scrolling. */
.hero-copy, .access-content, .welcome-content, .sample-heading > *, .final-inner > div { min-width: 0; }
.form-field { min-width: 0; }
.text-link, .welcome-back { display: inline-flex; align-items: center; min-height: 44px; }
.flow-card li, .problem-card p, .packet-list strong { font-size: .875rem; }
.hero-description, .astra-copy p, .welcome-content > p { overflow-wrap: anywhere; }
@media (min-width: 701px) and (max-width: 900px) {
  .transformation-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .flow-arrow { display: none; }
  .flow-card { padding: 16px; }
  .flow-card-head { gap: 8px; flex-wrap: wrap; }
  .flow-card h3 { font-size: 1.05rem; }
  .sample-gallery { grid-template-columns: 1fr; }
  .sample-mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); align-items: center; gap: 24px; padding: 20px 28px; }
  .sample-mini + .sample-mini { border-left: 0; border-top: 1px solid var(--line); }
  .mini-heading { min-height: 0; }
}
@media (max-width: 700px) {
  .avatar-glow { width: 140px; height: 140px; filter: blur(30px); }
  .section h2 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); line-height: 1.15; }
  .section-heading { margin-bottom: 22px; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-description { font-size: 1rem; margin-top: 14px; }
  .perfect-for { margin-top: 12px; }
  .transformation-flow { gap: 8px; }
  .flow-arrow { line-height: 1; }
  .flow-card ul { margin-top: 16px; gap: 8px; }
  .problem-card { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .packet-list { padding: 8px 14px; }
  .packet-list > div { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 10px 0; }
  .access-dialog .access-visual { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 14px; padding: 20px 60px 20px 20px; text-align: left; }
  .access-dialog .access-visual img { width: 72px; border-width: 3px; grid-row: 1 / 4; }
  .access-dialog .access-visual > span, .access-dialog .access-visual > strong { margin-top: 0; }
  .access-dialog .access-visual > strong { font-size: 1.2rem; }
  .access-dialog .access-visual > small { font-size: .75rem; }
  .access-content h2 { font-size: 1.75rem; }
  .access-content > p { font-size: .9375rem; margin-bottom: 16px; }
  .form-status { font-size: .8125rem; }
  .map-reading-note { padding: 14px 16px; gap: 6px; }
  .map-legend { font-size: .75rem; gap: 8px 14px; margin-top: 14px; }
  .welcome-card .access-visual { padding: 20px; }
  .welcome-card .access-visual img { width: 100px; }
  .welcome-card .access-visual > span { margin-top: 8px; }
  .welcome-main { padding: 20px 14px; }
  .welcome-qr { gap: 12px; }
}

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

/* Interface refinements: preserve markup, content and interaction handlers. */
:root { --muted: #596780; }
html { scroll-padding-top: 24px; }
.site-header { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-top: 12px; padding-bottom: 12px; }
.site-header > *, .hero-grid > *, .flow-card, .astra-card > *, .welcome-card > * { min-width: 0; }
h1 { line-height: 1.08; }
h2, h3 { text-wrap: balance; }
p, li, .button, .packet-list strong { overflow-wrap: break-word; }
.button { border-radius: 10px; min-height: 48px; text-align: center; }
.button-small { min-height: 44px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.button:active { transform: translateY(0); box-shadow: none; }
.button:disabled { transform: none; box-shadow: none; }
.breadcrumb { align-items: center; flex-wrap: wrap; font-size: .875rem; gap: 6px 10px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 4px; }
.stack-label { min-height: 44px; align-items: center; justify-content: center; text-underline-offset: 4px; }
a.stack-label { display: inline-flex; }
.tag, .eyebrow, .astra-badge, .tools-label, .final-inner > div > span { font-size: .75rem; }
.hero-description { max-width: 65ch; }
.perfect-for, .flow-card li, .problem-card p, .access-content > p, .final-inner p { font-size: 1rem; }
.hero-actions { gap: 12px 24px; margin-top: 24px; }
.flow-card { padding: 24px; border-radius: 16px; }
.flow-card-head { align-items: flex-start; }
.flow-icon { flex-shrink: 0; }
.flow-card h3 { line-height: 1.4; }
.flow-card ul { margin-top: 20px; gap: 10px; }
.tools-row { flex-wrap: wrap; }
.tool-pill strong, .packet-list strong, .map-legend { font-size: .875rem; }
.tool-pill small, .footer-inner p, .footer-inner span { font-size: .8125rem; }
.tool-pill span { line-height: 1.45; }
.sample-heading { gap: 24px 40px; }
.sample-toolbar > span { line-height: 1.5; }
.sample-toolbar a { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.sample-mini { padding: 24px; }
.mini-heading { min-height: 112px; }
.sample-mini svg { max-width: 340px; margin-inline: auto; }
.map-reading-note { font-size: .875rem; }
.access-dialog { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.access-content { padding: 56px 32px 32px; }
.access-content h2 { line-height: 1.2; }
.access-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form-field { gap: 8px; }
.form-field input { min-height: 52px; border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.form-field input::placeholder { color: #68768e; }
.form-field input:focus { box-shadow: 0 0 0 3px #1407e612; }
.form-field input:user-invalid { border-color: #b22929; }
.form-status { font-size: .875rem; min-height: 0; margin: 0; }
.form-status:empty { display: none; }
.form-consent { margin: 0; font-size: .8125rem; color: var(--muted); }
.access-visual > small { font-size: .875rem; }
.access-divider { font-size: .75rem; color: var(--muted); }
.welcome-back { justify-self: end; text-underline-offset: 4px; }
.welcome-content { padding: 36px; }
@media (hover: hover) {
  .dialog-close:hover { background: var(--soft-blue); border-color: #a5b6d4; }
  .form-field input:hover:not(:focus) { border-color: #8c9fbd; }
  .text-link:hover, .breadcrumb a:hover, .welcome-back:hover { color: var(--deep-blue); }
}
@media (max-width: 900px) {
  .hero-grid { gap: 28px; }
  .flow-card { padding: 18px; }
  .sample-mini { padding: 24px; }
  .mini-heading { min-height: 0; }
  .welcome-content { padding: 28px; }
}
@media (max-width: 700px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  a.stack-label { display: none; }
  .hero-grid { gap: 18px; padding-top: 12px; }
  h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .hero-actions { gap: 8px; }
  .flow-card { padding: 20px; }
  .tools-label { width: 100%; text-align: center; margin: 0; }
  .tools-row { gap: 14px; }
  .sample-toolbar { padding: 10px 16px; grid-template-columns: minmax(0, 1fr) auto; }
  .sample-toolbar .sample-dots { display: none; }
  .sample-toolbar > span { display: block; font-size: .8125rem; }
  .sample-toolbar a { font-size: .8125rem; }
  .sample-mini { padding: 20px 16px; }
  .sample-image img { width: 100%; max-width: 100%; }
  .map-legend { justify-content: flex-start; gap: 10px 16px; }
  .astra-path { font-size: .75rem; gap: 8px; }
  .access-content { padding: 24px 20px; }
  .access-dialog .access-visual > small { font-size: .8125rem; }
  .welcome-content { padding: 24px 20px; }
  .welcome-account { line-height: 1.5; }
  .footer-inner { gap: 12px; }
}
@media (max-width: 360px) {
  .brand img { width: 108px; }
  .site-header .button { padding-inline: 9px; gap: 6px; }
  .sample-toolbar { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sample-toolbar a { justify-self: start; }
  .final-inner { grid-template-columns: 56px minmax(0, 1fr); }
  .final-inner img { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover, .button:active, .sample-image:hover img { transform: none; }
}
