@import '_base.css';
@import '_effects.css';

/* =============================================
   wtnportal.cards — mdt58 site styles
   Minimal light-cool palette with one bold gesture: solid-blue hero
   ============================================= */

:root {
  /* Shadow / overlay tokens (add to avoid hsl() outside :root) */
  --shadow-low: hsl(215 25% 12% / 0.04);
  --shadow-mid: hsl(215 25% 12% / 0.08);
  --shadow-high: hsl(215 25% 12% / 0.16);
  --shadow-deep: hsl(215 40% 10% / 0.28);
  --shadow-accent: hsl(var(--accent-h) var(--accent-s) 35% / 0.22);
  --shadow-accent-soft: hsl(var(--accent-h) var(--accent-s) 35% / 0.10);
  --white-alpha-90: hsl(0 0% 100% / 0.92);
  --white-alpha-70: hsl(0 0% 100% / 0.7);
  --white-alpha-40: hsl(0 0% 100% / 0.4);
  --white-alpha-15: hsl(0 0% 100% / 0.15);
  --white-alpha-08: hsl(0 0% 100% / 0.08);
  --ink-alpha-60: hsl(215 40% 10% / 0.6);
  --line-soft: hsl(215 20% 88%);
  --line-strong: hsl(215 20% 78%);
  --surface-1: hsl(0 0% 100%);
  --surface-2: hsl(210 25% 98%);
  --surface-3: hsl(210 20% 95%);
  --gold: hsl(42 92% 55%);
  --live-bg: hsl(140 60% 95%);
  --live-fg: hsl(140 60% 32%);

  /* Page rhythm */
  --max-w: 1160px;
  --max-w-narrow: 820px;
  --section-pad-y: clamp(4rem, 9vw, 7.5rem);
  --radius-1: 0.5rem;
  --radius-2: 0.875rem;
  --radius-3: 1.25rem;

  --auto-color-1: hsl(0 0% 100%);
  --auto-color-2: hsl(140 60% 42%);
  --auto-shadow-1: hsl(140 60% 42% / 0.22);
  --auto-color-3: hsl(220 25% 10%);
  --auto-color-4: hsl(215 15% 75%);
  --auto-color-5: hsl(220 20% 20%);
  --auto-color-6: hsl(215 15% 65%);
  --auto-color-7: hsl(140 50% 70%);
  --auto-color-8: hsl(220 20% 22%);
  --auto-overlay-1: hsl(140 40% 30% / 0.12);
  --auto-color-9: hsl(215 12% 55%);
  --auto-color-10: hsl(215 12% 50%);
}

/* =========== Reset / body =========== */

body.mdt58-body {
  background: var(--surface-2);
  color: hsl(var(--fg-1));
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

.mdt58-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.mdt58-container-narrow {
  max-width: var(--max-w-narrow);
}

@media (min-width: 768px) {
  .mdt58-container { padding: 0 2rem; }
}

/* =========== Typography =========== */

.mdt58-h2 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: hsl(var(--fg-1));
  margin: 0;
}

.mdt58-h3 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.mdt58-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--accent-h) var(--accent-s) 38%);
  margin: 0 0 0.875rem;
}
.mdt58-eyebrow-light {
  color: var(--white-alpha-70);
}

.mdt58-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: hsl(var(--fg-2));
  max-width: 62ch;
  margin: 1rem 0 0;
}

/* Section shell */
.mdt58-section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.mdt58-section + .mdt58-section {
  border-top: 1px solid var(--line-soft);
}

.mdt58-sect-head {
  margin-bottom: 3rem;
  max-width: 62ch;
}

/* =========== NAV / HEADER =========== */

.mdt58-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white-alpha-90);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out-3);
}
.mdt58-header.is-hidden {
  transform: translateY(-100%);
}

.mdt58-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.mdt58-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: hsl(var(--fg-1));
}
.mdt58-brand-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}
.mdt58-brand-text {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mdt58-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.mdt58-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--fg-2));
  text-decoration: none;
  transition: color 0.15s;
}
.mdt58-nav-link:hover { color: hsl(var(--accent-h) var(--accent-s) 40%); }

.mdt58-nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-1);
  color: hsl(var(--fg-1));
  text-decoration: none;
  background: var(--surface-1);
  box-shadow: 0 1px 2px var(--shadow-low);
  transition: all 0.15s;
}
.mdt58-nav-cta:hover {
  border-color: var(--accent);
  color: hsl(var(--accent-h) var(--accent-s) 36%);
  box-shadow: 0 2px 6px var(--shadow-accent-soft);
}

@media (min-width: 900px) {
  .mdt58-nav { display: flex; }
  .mdt58-nav-inner { padding: 1rem 2rem; }
  .mdt58-brand-logo { max-height: 40px; }
  .mdt58-brand-text { font-size: 1rem; }
}

/* =========== HERO (the one bold gesture) =========== */

.mdt58-hero {
  position: relative;
  background: var(--accent);
  color: var(--auto-color-1);
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  isolation: isolate;
}

.mdt58-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.mdt58-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(30%) contrast(110%);
}
.mdt58-hero-bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    hsl(var(--accent-h) var(--accent-s) 48% / 0.55) 0%,
    hsl(var(--accent-h) var(--accent-s) 52% / 0.75) 55%,
    hsl(var(--accent-h) var(--accent-s) 56%) 100%);
}

.mdt58-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: left;
}

@media (min-width: 768px) {
  .mdt58-hero-inner {
    padding: 0 2rem;
    max-width: 860px;
  }
}

.mdt58-hero-pretitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-alpha-70);
  margin: 0 0 1.25rem;
}

.mdt58-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--auto-color-1);
  text-shadow: 0 2px 30px var(--ink-alpha-60);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.mdt58-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  color: var(--white-alpha-90);
  text-shadow: 0 1px 12px var(--ink-alpha-60);
  max-width: 52ch;
  margin: 0 0 2.25rem;
}

.mdt58-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.mdt58-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--white-alpha-70);
  text-shadow: 0 1px 8px var(--ink-alpha-60);
}
.mdt58-sep { opacity: 0.4; }

/* =========== Buttons =========== */

.mdt58-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.15s;
  line-height: 1;
}
.mdt58-btn:focus-visible {
  outline: 2px solid var(--auto-color-1);
  outline-offset: 3px;
}

.mdt58-btn-primary {
  background: var(--auto-color-1);
  color: hsl(var(--accent-h) var(--accent-s) 32%);
  box-shadow: 0 6px 20px var(--shadow-deep), 0 1px 2px var(--shadow-high);
}
.mdt58-btn-primary:hover {
  background: var(--surface-2);
  color: hsl(var(--accent-h) var(--accent-s) 28%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--shadow-deep), 0 2px 4px var(--shadow-high);
}

.mdt58-btn-ghost {
  background: transparent;
  color: var(--auto-color-1);
  border-color: var(--white-alpha-40);
}
.mdt58-btn-ghost:hover {
  background: var(--white-alpha-15);
  border-color: var(--auto-color-1);
}

.mdt58-btn-outline {
  background: var(--surface-1);
  color: hsl(var(--fg-1));
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px var(--shadow-low);
}
.mdt58-btn-outline:hover {
  border-color: var(--accent);
  color: hsl(var(--accent-h) var(--accent-s) 36%);
  box-shadow: 0 3px 8px var(--shadow-accent-soft);
}

.mdt58-btn-sm {
  font-size: 0.8125rem;
  padding: 0.55rem 0.95rem;
}
.mdt58-btn-lg {
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* Shimmer overlay on primary button */
.mdt58-shimmer-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mdt58-shimmer-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, var(--white-alpha-40) 50%, transparent 75%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s var(--ease-out-3);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
.mdt58-shimmer-btn:hover::after {
  background-position: -40% 0;
}

/* =========== TRUST BAR =========== */

.mdt58-trustbar {
  background: var(--surface-1);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 2.25rem;
}
.mdt58-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.mdt58-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  border-left: 2px solid var(--line-soft);
  padding-left: 1rem;
}
.mdt58-trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--fg-1));
  line-height: 1;
}
.mdt58-trust-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--fg-3));
}

@media (min-width: 768px) {
  .mdt58-trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========== LINKS TABLE =========== */

.mdt58-section-links {
  background: var(--surface-1);
}

.mdt58-table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow-low), 0 8px 24px var(--shadow-mid);
  background: var(--surface-1);
}

.mdt58-links-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.mdt58-links-table thead {
  background: var(--surface-3);
  border-bottom: 1px solid var(--line-soft);
}
.mdt58-links-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--fg-3));
  padding: 0.85rem 1rem;
}
.mdt58-th-end { text-align: right; }

.mdt58-links-table td {
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}
.mdt58-links-table tbody tr:first-child td {
  border-top: none;
}

.mdt58-td-role { width: 1%; white-space: nowrap; }
.mdt58-role-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: hsl(var(--accent-h) var(--accent-s) 92%);
  color: hsl(var(--accent-h) var(--accent-s) 30%);
}
.mdt58-role-tag-alt {
  background: var(--surface-3);
  color: hsl(var(--fg-2));
}

.mdt58-td-addr code {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.8125rem;
  color: hsl(var(--fg-1));
  word-break: break-all;
  display: block;
  max-width: 40ch;
  line-height: 1.5;
}

.mdt58-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--live-bg);
  color: var(--live-fg);
  white-space: nowrap;
}
.mdt58-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--auto-color-2);
  box-shadow: 0 0 0 3px var(--auto-shadow-1);
  display: inline-block;
  animation: mdt58-pulse 2.4s ease-in-out infinite;
}
.mdt58-dot-live { background: var(--auto-color-2); }

@keyframes mdt58-pulse {
  0%, 100% { box-shadow: 0 0 0 3px hsl(140 60% 42% / 0.22); }
  50% { box-shadow: 0 0 0 5px hsl(140 60% 42% / 0.08); }
}

.mdt58-td-up {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--fg-2));
  width: 1%;
  white-space: nowrap;
}

.mdt58-td-copy {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.mdt58-link-note {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-1);
  background: var(--surface-2);
}
.mdt58-link-note p { margin: 0; font-size: 0.9375rem; color: hsl(var(--fg-2)); }
.mdt58-link-note p + p { margin-top: 0.65rem; }
.mdt58-link-small { font-size: 0.8125rem !important; color: hsl(var(--fg-3)) !important; }

@media (max-width: 640px) {
  .mdt58-links-table thead { display: none; }
  .mdt58-links-table,
  .mdt58-links-table tbody,
  .mdt58-links-table tr,
  .mdt58-links-table td { display: block; width: 100%; }
  .mdt58-links-table tr {
    padding: 1rem;
    border-top: 1px solid var(--line-soft);
  }
  .mdt58-links-table tbody tr:first-child { border-top: none; }
  .mdt58-links-table td {
    padding: 0.4rem 0;
    border: none;
  }
  .mdt58-td-copy { text-align: left; padding-top: 0.75rem !important; }
  .mdt58-td-addr code { max-width: 100%; }
}

/* =========== ABOUT =========== */

.mdt58-section-about {
  background: var(--surface-2);
}

.mdt58-about-body {
  max-width: 68ch;
}
.mdt58-about-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--fg-2));
  margin: 0 0 1.25rem;
}
.mdt58-about-body p:last-child { margin-bottom: 0; }

.mdt58-about-figure {
  float: right;
  width: 42%;
  max-width: 380px;
  margin: 0.3rem 0 1.25rem 2rem;
  shape-outside: margin-box;
}
.mdt58-about-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px var(--shadow-mid), 0 2px 6px var(--shadow-low);
  display: block;
}
.mdt58-figcaption {
  font-size: 0.75rem;
  color: hsl(var(--fg-3));
  margin-top: 0.65rem;
  font-style: italic;
  line-height: 1.5;
}

.mdt58-about-outro {
  margin-top: 2rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem !important;
  color: hsl(var(--fg-3)) !important;
}

@media (max-width: 700px) {
  .mdt58-about-figure {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1.75rem;
  }
}

/* =========== FEATURES =========== */

.mdt58-section-features {
  background: var(--surface-1);
}

.mdt58-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.mdt58-feature-card {
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 1px 2px var(--shadow-low);
}
.mdt58-feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px var(--shadow-mid), 0 2px 6px var(--shadow-low);
  transform: translateY(-2px);
}

.mdt58-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) 94%) 0%,
    hsl(var(--accent-h) var(--accent-s) 88%) 100%);
  color: hsl(var(--accent-h) var(--accent-s) 36%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid hsl(var(--accent-h) var(--accent-s) 82%);
}
.mdt58-feat-icon svg { width: 22px; height: 22px; }

.mdt58-feat-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--fg-1));
  margin: 0 0 0.625rem;
}
.mdt58-feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--fg-2));
  margin: 0;
}

@media (min-width: 640px) {
  .mdt58-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .mdt58-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.mdt58-feature-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.mdt58-media-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2);
  text-align: center;
}
.mdt58-media-img {
  max-width: 70%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--radius-1);
}

@media (min-width: 768px) {
  .mdt58-feature-media { grid-template-columns: 1fr 1fr; }
}

.mdt58-feat-footnote {
  font-size: 0.875rem;
  color: hsl(var(--fg-3));
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--line-soft);
  background: var(--surface-2);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  margin: 0 0 2rem;
}

.mdt58-feature-extra {
  padding: 2rem 0 0;
  border-top: 1px solid var(--line-soft);
  max-width: 68ch;
}
.mdt58-feature-extra-title {
  margin: 0 0 1rem;
}
.mdt58-feature-extra p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--fg-2));
  margin: 0 0 1rem;
}
.mdt58-feature-extra p:last-child { margin-bottom: 0; }

/* =========== HOW-TO =========== */

.mdt58-section-howto {
  background: var(--surface-2);
}

.mdt58-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stepnum;
  position: relative;
}
.mdt58-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line-soft), transparent);
}

.mdt58-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 0 0 3rem;
}
.mdt58-step:last-child { padding-bottom: 0; }

.mdt58-step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  color: hsl(var(--accent-h) var(--accent-s) 36%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px var(--shadow-low), 0 0 0 5px var(--surface-2);
  position: relative;
  z-index: 1;
}

.mdt58-step-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.5rem;
}
.mdt58-step-title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: hsl(var(--fg-1));
  margin: 0 0 0.75rem;
}
.mdt58-step-body p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: hsl(var(--fg-2));
  margin: 0 0 0.85rem;
  max-width: 64ch;
}
.mdt58-step-body p:last-child { margin-bottom: 0; }

.mdt58-inline-fig {
  margin: 1.5rem 0 0;
  padding: 0.75rem;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2);
  max-width: 440px;
}
.mdt58-inline-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-1);
  display: block;
}
.mdt58-inline-img-portrait { max-width: 280px; margin: 0 auto; }

.mdt58-howto-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2);
  box-shadow: 0 1px 2px var(--shadow-low);
}
.mdt58-howto-footer h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: hsl(var(--fg-1));
}
.mdt58-howto-footer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--fg-2));
  margin: 0 0 0.75rem;
  max-width: 68ch;
}
.mdt58-howto-footer p:last-child { margin-bottom: 0; }
.mdt58-howto-footer code {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  background: var(--surface-3);
  border-radius: 4px;
  color: hsl(var(--fg-1));
}

@media (min-width: 768px) {
  .mdt58-steps::before { left: 32px; }
  .mdt58-step { gap: 2rem; padding-bottom: 3.5rem; }
  .mdt58-step-num { width: 64px; height: 64px; font-size: 1rem; }
}

/* =========== FAQ =========== */

.mdt58-section-faq {
  background: var(--surface-1);
}

.mdt58-faq-list {
  border-top: 1px solid var(--line-soft);
}

.mdt58-faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.mdt58-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: hsl(var(--fg-1));
  transition: color 0.15s;
}
.mdt58-faq-q::-webkit-details-marker { display: none; }
.mdt58-faq-q:hover { color: hsl(var(--accent-h) var(--accent-s) 38%); }
.mdt58-faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.mdt58-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 0.2rem;
}
.mdt58-faq-icon::before,
.mdt58-faq-icon::after {
  content: '';
  position: absolute;
  background: hsl(var(--fg-2));
  transition: transform 0.25s var(--ease-out-3), background 0.2s;
}
.mdt58-faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.mdt58-faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.mdt58-faq-item[open] .mdt58-faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  background: var(--accent);
}
.mdt58-faq-item[open] .mdt58-faq-icon::before {
  background: var(--accent);
}
.mdt58-faq-item[open] .mdt58-faq-q { color: hsl(var(--accent-h) var(--accent-s) 36%); }

.mdt58-faq-a {
  padding: 0 0 1.5rem;
  max-width: 68ch;
  animation: mdt58-faq-in 0.3s var(--ease-out-3);
}
.mdt58-faq-a p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--fg-2));
  margin: 0;
}
@keyframes mdt58-faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mdt58-faq-foot {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: hsl(var(--fg-3));
  line-height: 1.65;
}

/* =========== CTA =========== */

.mdt58-section-cta {
  background: var(--surface-2);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.mdt58-cta-card {
  position: relative;
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) 44%) 0%,
    hsl(var(--accent-h) var(--accent-s) 54%) 100%);
  border-radius: var(--radius-3);
  padding: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  color: var(--auto-color-1);
  box-shadow: 0 24px 48px var(--shadow-accent), 0 2px 6px var(--shadow-mid);
  isolation: isolate;
}
.mdt58-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%,
    hsl(var(--accent-h) var(--accent-s) 80% / 0.25),
    transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.mdt58-cta-media {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}
.mdt58-cta-media img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(200%) contrast(120%);
}
.mdt58-cta-body { max-width: 60ch; }

.mdt58-cta-title {
  color: var(--auto-color-1) !important;
  text-shadow: 0 2px 18px var(--ink-alpha-60);
}
.mdt58-cta-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white-alpha-90);
  margin: 1rem 0 2rem;
  max-width: 54ch;
}
.mdt58-cta-small {
  font-size: 0.8125rem;
  color: var(--white-alpha-70);
  margin: 1.25rem 0 0;
  letter-spacing: 0.01em;
}

/* =========== FOOTER =========== */

.mdt58-footer {
  background: var(--auto-color-3);
  color: var(--auto-color-4);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.mdt58-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--auto-color-5);
}
.mdt58-foot-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auto-color-1);
  margin: 0 0 1rem;
}
.mdt58-foot-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--auto-color-6);
  margin: 0 0 1rem;
  max-width: 34ch;
}
.mdt58-foot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--auto-color-7);
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--auto-color-8);
  border-radius: 4px;
  background: var(--auto-overlay-1);
}

.mdt58-foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mdt58-foot-list a {
  font-size: 0.875rem;
  color: var(--auto-color-4);
  text-decoration: none;
  transition: color 0.15s;
}
.mdt58-foot-list a:hover {
  color: hsl(var(--accent-h) 80% 75%);
}

.mdt58-foot-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mdt58-foot-copy {
  font-size: 0.8125rem;
  color: var(--auto-color-9);
  margin: 0;
}
.mdt58-foot-legal {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--auto-color-10);
  margin: 0;
  max-width: 84ch;
}

@media (min-width: 640px) {
  .mdt58-foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
@media (min-width: 768px) {
  .mdt58-foot-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* =========== Hero fade-in (the only animation the brief allows) =========== */

.mdt58-hero-fade {
  animation: mdt58-hero-fade-up 0.9s var(--ease-out-3) both;
}
@keyframes mdt58-hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.mdt58-hero-fade > * { animation: mdt58-hero-reveal 0.9s var(--ease-out-3) both; }
.mdt58-hero-fade > *:nth-child(1) { animation-delay: 0.05s; }
.mdt58-hero-fade > *:nth-child(2) { animation-delay: 0.15s; }
.mdt58-hero-fade > *:nth-child(3) { animation-delay: 0.25s; }
.mdt58-hero-fade > *:nth-child(4) { animation-delay: 0.35s; }
.mdt58-hero-fade > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes mdt58-hero-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle scroll-in for sections (content always visible by default) */
@supports (animation-timeline: view()) {
  .mdt58-sect-head,
  .mdt58-feature-card,
  .mdt58-step,
  .mdt58-faq-item {
    animation: mdt58-subtle-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
  @keyframes mdt58-subtle-in {
    from { opacity: 0.35; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mdt58-hero-fade,
  .mdt58-hero-fade > *,
  .mdt58-dot,
  .mdt58-sect-head,
  .mdt58-feature-card,
  .mdt58-step,
  .mdt58-faq-item,
  .mdt58-shimmer-btn::after {
    animation: none !important;
    transition: none !important;
  }
  .mdt58-hero-fade > * { opacity: 1; transform: none; }
}

/* === Mobile burger nav === */
.mdt58-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  flex-shrink: 0;
}
.mdt58-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: hsl(var(--fg-1));
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mdt58-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mdt58-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mdt58-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .mdt58-burger { display: none; } }
.mdt58-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: hsl(var(--bg-0));
  padding: 1rem 1.5rem;
  gap: 0.75rem;
  border-top: 1px solid hsl(var(--line-1));
  z-index: 99;
}
@media (max-width: 899px) {
  .mdt58-nav { display: none; }
  .mdt58-nav-cta { display: none; }
}
