:root {
  --ink: #0c1726;
  --muted: #526579;
  --line: #d8e4ef;
  --soft: #f3f8fc;
  --panel: #0c1b29;
  --blue: #176fd3;
  --teal: #008b84;
  --amber: #b87713;
  --deep: #071221;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(12,27,41, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 650;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 28px 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  min-height: 150px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 7px;
}

.note {
  border-left: 4px solid var(--amber);
  padding: 16px 18px;
  background: #fff8ed;
  color: #493312;
  border-radius: 0 8px 8px 0;
}

.subscription-pricing {
  display: grid;
  gap: 18px;
}

.billing-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.billing-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: default;
}

.billing-tab[aria-pressed="true"] {
  background: var(--blue);
  color: #0c1b29;
}

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

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
  box-shadow: 0 18px 34px rgba(12, 23, 38, .06);
}

.plan-card.featured {
  border-color: rgba(23, 111, 211, .35);
  box-shadow: 0 24px 46px rgba(23, 111, 211, .12);
}

.plan-kicker {
  color: var(--teal);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-weight: 700;
}

.plan-note {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.trial-allowance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trial-allowance div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(23, 111, 211, .14);
  border-radius: 8px;
  background: #11212f;
}

.trial-allowance span,
.trial-allowance strong {
  display: block;
}

.trial-allowance span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trial-allowance strong {
  color: var(--ink);
  font-size: .92rem;
}

.plan-features {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.plan-features li.unavailable::before {
  content: "x";
  color: #9aa8b6;
}

.plan-actions {
  margin-top: 4px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related a {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c1b29;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.flowline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
}

.flowline span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-steps .panel:last-child {
  grid-column: 1 / -1;
}

.code-block {
  margin: 18px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #1d3557;
  border-radius: 8px;
  background: #071221;
  color: #e7f1fb;
  font-size: 0.88rem;
  line-height: 1.55;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:not(pre) > code {
  padding: 0.1rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #11202f;
  color: #143456;
  font-size: 0.9em;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tutorial-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-table th,
.tutorial-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tutorial-table th {
  background: #eaf4fd;
  color: #143456;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tutorial-table tr:last-child td {
  border-bottom: 0;
}

.visual-feature {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.visual-card {
  margin: 0;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #0c1b29 0%, #edf7fb 100%);
  overflow: hidden;
}

.visual-canvas {
  min-height: 260px;
  padding: 22px;
  display: grid;
  place-items: center;
}

.visual-card figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: rgba(12,27,41, .86);
  color: var(--muted);
  font-size: .92rem;
}

.diagram {
  width: min(100%, 420px);
  min-height: 220px;
  display: grid;
  gap: 12px;
}

.diagram-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c1b29;
  color: #12324f;
  font-size: .8rem;
  font-weight: 800;
}

.fiche-sheet,
.report-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  border: 2px solid #74a8cf;
  border-radius: 8px;
  background: rgba(12,27,41, .72);
  box-shadow: 0 18px 34px rgba(20, 52, 86, .12);
}

.fiche-cell,
.report-line {
  min-height: 34px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(23, 111, 211, .2), rgba(0, 139, 132, .22));
}

.film-reel {
  width: 170px;
  aspect-ratio: 1;
  border: 18px solid #143456;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #edf7fb 0 14%, transparent 15%),
    conic-gradient(from 20deg, rgba(23, 111, 211, .18), rgba(0, 139, 132, .2), rgba(23, 111, 211, .18));
  box-shadow: 0 18px 34px rgba(7, 18, 33, .18);
}

.workflow-steps {
  display: grid;
  gap: 10px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.workflow-step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #143456;
  color: #0c1b29;
  font-size: .9rem;
}

.field-note {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.field-note strong {
  color: #143456;
}

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

.check-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.check-item strong {
  display: block;
  margin-bottom: 6px;
}

.source-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.source-row span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11202f;
  color: #334761;
  font-size: .92rem;
}

body.page-fiche-compare {
  background: #f4f0e8;
}

body.page-repo {
  background: #eef4f2;
}

body.page-mirofish-ai {
  background:
    linear-gradient(180deg, #eaf5ff 0%, #11202f 42%, #eef6f4 100%);
}

body.page-mirofish-ai .topbar {
  border-bottom-color: rgba(23, 111, 211, .16);
  background: rgba(249, 253, 255, .9);
}

body.page-mirofish-ai .nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(23, 111, 211, .25);
  border-radius: 8px;
  background: #176fd3;
  color: #0c1b29;
  box-shadow: 0 10px 24px rgba(23, 111, 211, .18);
}

.mirofish-home-media {
  padding-top: 8px;
}

.media-section-head {
  max-width: 780px;
  margin: 0 0 18px;
}

.media-section-head h2 {
  max-width: 760px;
}

.media-section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.mirofish-media-video,
.mirofish-media-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
  box-shadow: 0 18px 42px rgba(12, 23, 38, .09);
}

.mirofish-media-video {
  margin-bottom: 20px;
}

.mirofish-media-frame {
  display: block;
  width: 100%;
  height: clamp(640px, 68vw, 820px);
  border: 0;
  background: #f2f4f8;
}

.mirofish-media-figure {
  margin: 0;
}

.mirofish-media-figure picture,
.mirofish-media-figure img {
  display: block;
  width: 100%;
}

.mirofish-media-figure img {
  height: auto;
  aspect-ratio: 1620 / 971;
  object-fit: cover;
}

.mirofish-media-figure figcaption {
  padding: 13px 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(12,27,41, .94);
  font-size: .88rem;
  line-height: 1.45;
}

.mirofish-ai-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, .76fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1280px;
  padding-top: 28px;
}

.mirofish-ai-showcase::before {
  content: "";
  position: absolute;
  inset: 0 28px auto;
  height: 100%;
  z-index: -1;
  border: 1px solid rgba(23, 111, 211, .13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12,27,41, .9), rgba(235, 247, 255, .68)),
    repeating-linear-gradient(90deg, rgba(23, 111, 211, .06) 0 1px, transparent 1px 88px);
}

.mirofish-ai-showcase .mirofish-media-video {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-bottom: 16px;
  border-color: rgba(23, 111, 211, .22);
  box-shadow: 0 26px 70px rgba(12, 23, 38, .16);
}

.mirofish-ai-showcase .mirofish-media-figure {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  border-color: rgba(0, 139, 132, .22);
  box-shadow: 0 22px 54px rgba(12, 23, 38, .11);
}

.mirofish-ai-showcase .mirofish-media-frame {
  height: clamp(660px, 57vw, 760px);
}

.mirofish-ai-showcase .mirofish-media-figure img {
  height: clamp(250px, 23vw, 320px);
  object-fit: cover;
}

.media-home-float {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(12,27,41, .72);
  border-radius: 8px;
  background: #071221;
  color: #0c1b29;
  font-weight: 850;
  box-shadow: 0 18px 38px rgba(7, 18, 33, .28);
}

.mirofish-ai-intro {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  max-width: 980px;
  margin: 0;
  padding: 18px 4px 2px;
}

.mirofish-ai-intro h1 {
  max-width: 980px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
}

.mirofish-ai-intro .lead {
  max-width: 800px;
  color: #334761;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.home-button {
  min-height: 52px;
  padding-inline: 24px;
  box-shadow: 0 14px 30px rgba(23, 111, 211, .2);
}

.product-signal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.product-signal-row span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(23, 111, 211, .18);
  border-radius: 8px;
  background: rgba(12,27,41, .82);
  color: #143456;
  font-weight: 820;
  text-align: center;
}

.product-definition {
  align-items: stretch;
  padding-top: 52px;
}

.product-definition > div,
.definition-panel,
.product-flow-grid article,
.product-cta-band {
  border: 1px solid rgba(23, 111, 211, .16);
  border-radius: 8px;
  background: rgba(12,27,41, .86);
  box-shadow: 0 16px 42px rgba(12, 23, 38, .07);
}

.product-definition > div,
.definition-panel {
  padding: 30px;
}

.definition-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0c1b29;
  background: linear-gradient(135deg, #071221 0%, #143456 58%, #008b84 100%);
}

.definition-panel h2,
.definition-panel p {
  color: #0c1b29;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 20px;
}

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

.product-flow-grid article {
  min-height: 244px;
  padding: 22px;
}

.product-flow-grid article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e7f2ff;
  color: #176fd3;
  font-weight: 900;
}

.product-flow-grid article h3 {
  font-size: 1.14rem;
}

.product-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(7, 18, 33, .96), rgba(20, 52, 86, .92)),
    linear-gradient(90deg, rgba(0, 139, 132, .2), rgba(23, 111, 211, .2));
}

.product-cta-band h2,
.product-cta-band p,
.product-cta-band .eyebrow {
  color: #0c1b29;
}

.product-cta-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: #d6e8f8;
}

body.page-fiche-definition {
  background: #f7f3ea;
}

body.page-fiche-today {
  background: #f3f7f5;
}

body.page-mirofish-english {
  background: #f2f4fa;
}

body.page-fiche-library {
  background: #f5f1e9;
}

body.page-miro-fish {
  background: #eff7f6;
}

body.page-offline {
  background: #f1f3f6;
}

body.page-fishing-ai {
  background: #f6f3ee;
}

body.page-ai-predictor {
  background: #f4f2f8;
}

body.page-resources {
  background: #f3f6ee;
}

body[class*="page-"] .hero {
  padding-top: 76px;
}

.editorial-showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.editorial-showcase.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.showcase-copy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,27,41, .78);
}

.artifact-card {
  margin: 0;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
  overflow: hidden;
}

.artifact-card picture,
.artifact-card img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.artifact-card img {
  height: auto;
}

.artifact-card figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(12,27,41, .9);
  font-size: .92rem;
}

.artifact-stage {
  min-height: 276px;
  padding: 24px;
  display: grid;
  place-items: center;
}

.archive-desk {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  width: min(100%, 520px);
  align-items: center;
}

.sheet-stack {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 2px solid #7b9a9b;
  background: #fbfff9;
  box-shadow: 10px 12px 0 #d7c8a7;
}

.sheet-stack span {
  min-height: 30px;
  border: 1px solid #bed3d1;
  background: repeating-linear-gradient(90deg, #dfecea 0 18px, #f8fbf6 18px 28px);
}

.reel-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 2px solid #5f6d7a;
  background: #eef1f2;
}

.reel-stack::before,
.reel-stack::after {
  content: "";
  position: absolute;
  width: 96px;
  aspect-ratio: 1;
  border: 14px solid #23323d;
  border-radius: 50%;
  background: radial-gradient(circle, #11202f 0 18%, transparent 19%);
}

.reel-stack::before {
  left: 22px;
}

.reel-stack::after {
  right: 22px;
}

.repo-window {
  width: min(100%, 560px);
  border: 1px solid #1f3845;
  border-radius: 8px;
  background: #0f1d24;
  color: #dcebe8;
  box-shadow: 0 18px 28px rgba(15, 29, 36, .22);
  overflow: hidden;
}

.repo-window header {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(12,27,41, .14);
}

.repo-window header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0b257;
}

.repo-window pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #dcebe8;
  font-size: .9rem;
  line-height: 1.55;
}

.signal-map {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
}

.signal-map .node-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-map span,
.route-map span,
.boundary-map span,
.name-lockup span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
  font-weight: 760;
  text-align: center;
}

.signal-map .output {
  min-height: 86px;
  color: #0c1b29;
  background: #16324f;
}

.definition-specimen {
  display: grid;
  gap: 12px;
  width: min(100%, 480px);
  padding: 22px;
  border: 1px solid #c7b58f;
  background: #fffdf7;
  box-shadow: 12px 12px 0 #eadfca;
}

.definition-specimen .term {
  font-size: 2rem;
  font-weight: 850;
}

.definition-specimen .grid-mark {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.definition-specimen .grid-mark span {
  min-height: 24px;
  background: #e4ebe5;
  border: 1px solid #bdcfc6;
}

.timeline-board {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-left: 4px solid #2f6659;
  background: #0c1b29;
}

.timeline-board .event {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-board b {
  color: #2f6659;
}

.route-map {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.route-map .main-route {
  background: #1c3560;
  color: #0c1b29;
}

.library-desk {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.library-desk .drawer,
.library-desk .reader {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #c9b996;
  background: #fffaf0;
}

.library-desk .drawer span {
  display: block;
  min-height: 24px;
  margin-top: 8px;
  border: 1px solid #d6c7a5;
  background: #efe2c8;
}

.name-lockup {
  width: min(100%, 500px);
  display: grid;
  gap: 12px;
}

.name-lockup .correct {
  color: #0c1b29;
  background: #0d5656;
}

.boundary-map {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.boundary-map .local {
  border-color: #2f6659;
  background: #edf7f2;
}

.boundary-map .external {
  border-color: #9d7f45;
  background: #fff7e7;
}

.intent-splitter {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.intent-splitter div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.intent-splitter b {
  display: block;
  margin-bottom: 8px;
}

.predictor-board {
  width: min(100%, 540px);
  display: grid;
  gap: 10px;
}

.predictor-board .branch {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.resource-shelf {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.resource-shelf a,
.resource-shelf span {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #c7d0b6;
  border-radius: 8px;
  background: #fffffb;
  color: var(--ink);
  font-weight: 760;
}

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

.editorial-strip > * {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,27,41, .82);
}

.memo-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1b29;
}

.page-predictions .split {
  align-items: start;
}

.page-hot-scenario .visual-card:has(> picture) {
  min-height: 0;
}

.memo-card h3 {
  color: #143456;
}

.site-footer {
  margin-top: 48px;
  padding: 34px 28px;
  color: #c8d7e6;
  background: var(--deep);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #e7f1fb;
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 22px;
    width: 100%;
    overflow: hidden;
  }

  .hero,
  .section,
  .panel,
  .note,
  .card,
  .artifact-card,
  .visual-card,
  .memo-card {
    min-width: 0;
    max-width: 100%;
  }

  .navlinks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .navlinks a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  h1,
  h2,
  h3,
  .lead,
  .media-section-head,
  .media-section-head h2,
  .mirofish-media-video,
  .mirofish-media-figure {
    max-width: 100%;
  }

  .lead {
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 58px 22px 34px;
  }

  .section {
    padding: 24px 22px;
  }

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

  .button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .mirofish-media-frame {
    height: 560px;
  }

  .mirofish-ai-showcase {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .mirofish-ai-showcase::before {
    inset: 0 22px auto;
  }

  .mirofish-ai-showcase .mirofish-media-video,
  .mirofish-ai-showcase .mirofish-media-figure,
  .mirofish-ai-intro {
    grid-column: auto;
    grid-row: auto;
  }

  .mirofish-ai-showcase .mirofish-media-frame {
    height: 560px;
  }

  .mirofish-ai-showcase .mirofish-media-figure img {
    height: auto;
  }

  .media-home-float {
    top: 30px;
    right: 32px;
    min-height: 40px;
    padding-inline: 14px;
    font-size: .9rem;
  }

  .mirofish-ai-intro {
    margin-top: 26px;
  }

  .product-signal-row,
  .product-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-flow-grid article {
    min-height: 210px;
  }

  .product-cta-band {
    grid-template-columns: 1fr;
  }

  .split,
  .grid,
  .visual-feature,
  .editorial-showcase,
  .editorial-showcase.reverse,
  .plan-grid,
  .check-grid,
  .source-row,
  .editorial-strip,
  .archive-desk,
  .library-desk,
  .boundary-map,
  .intent-splitter,
  .resource-shelf {
    grid-template-columns: 1fr;
  }

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

  .tutorial-steps .panel:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .navlinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(2rem, 6.4vw, 2.55rem);
    line-height: 1.08;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 14px 18px;
  }

  .navlinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .trial-allowance {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 18px 30px;
  }

  .section {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(2rem, 8.7vw, 2.35rem);
    line-height: 1.08;
  }

  .mirofish-media-frame {
    height: 520px;
  }

  .mirofish-ai-showcase .mirofish-media-frame {
    height: 520px;
  }

  .media-home-float {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin: 10px 0 16px;
    padding-inline: 18px;
  }

  .product-signal-row,
  .product-flow-grid {
    grid-template-columns: 1fr;
  }

  .product-definition > div,
  .definition-panel,
  .product-flow-grid article {
    padding: 22px;
  }
}

.conversion-page .product-entry { padding-top: 56px; padding-bottom: 32px; }
.conversion-page .mirofish-media-video { margin-top: 28px; }
.conversion-page .first-run { padding-left: 24px; max-width: 850px; }
.conversion-page .first-run li { padding: 8px 0; }
.conversion-page .usage-note { color: var(--muted); }
@media (max-width: 600px) { .conversion-page .topbar { padding: 12px 20px; flex-wrap: wrap; gap: 8px; } .conversion-page .navlinks { gap: 8px 14px; } .conversion-page .product-entry { padding-top: 32px; } }

.conversion-page .product-entry h1 { max-width: 980px; font-size: clamp(2.1rem, 4vw, 4rem); }
