:root {
  color-scheme: light;
  --bg: #f6efe5;
  --bg-strong: #eee3d3;
  --surface: #fffaf2;
  --surface-raised: #ffffff;
  --ink: #14151a;
  --muted: #666168;
  --line: #d8cbbb;
  --accent: #ef3e78;
  --accent-strong: #be2054;
  --accent-soft: #ffe2eb;
  --orange: #ff9748;
  --safe: #a8f23a;
  --safe-ink: #17220c;
  --risk: #ff3766;
  --blue: #1677ff;
  --shadow: 0 22px 70px rgba(68, 45, 28, 0.13);
  --shadow-small: 0 8px 24px rgba(68, 45, 28, 0.09);
  --radius: 24px;
  --radius-small: 14px;
  --header-bg: rgba(246, 239, 229, 0.88);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg-strong: #111721;
  --surface: #141a24;
  --surface-raised: #1b2330;
  --ink: #f5f2ec;
  --muted: #a7afba;
  --line: #313b49;
  --accent: #ff5d94;
  --accent-strong: #ff84ad;
  --accent-soft: #3a1928;
  --orange: #ffa04f;
  --safe: #b5ff4b;
  --safe-ink: #101909;
  --risk: #ff557d;
  --blue: #5ba0ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --shadow-small: 0 8px 28px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(11, 14, 20, 0.9);
}

:root[data-theme="blue"] {
  color-scheme: light;
  --bg: #eaf5ff;
  --bg-strong: #d6ebff;
  --surface: #f7fbff;
  --surface-raised: #ffffff;
  --ink: #0b2543;
  --muted: #506b86;
  --line: #b9d7f2;
  --accent: #006ee6;
  --accent-strong: #004da8;
  --accent-soft: #d6ebff;
  --orange: #ff7f50;
  --safe: #8de43e;
  --safe-ink: #10240b;
  --risk: #ec315f;
  --blue: #006ee6;
  --shadow: 0 22px 70px rgba(19, 80, 136, 0.14);
  --shadow-small: 0 8px 24px rgba(19, 80, 136, 0.11);
  --header-bg: rgba(234, 245, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28rem),
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 78%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

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

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 8px rgba(146, 28, 73, 0.18));
}

.nav-shell,
.site-nav,
.theme-switcher {
  display: flex;
  align-items: center;
}

.nav-shell {
  gap: 18px;
}

.site-nav {
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.theme-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.theme-option {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.theme-option[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.theme-dot {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(20, 21, 26, 0.18);
  border-radius: 50%;
}

.theme-dot--warm {
  background: #f6efe5;
}

.theme-dot--dark {
  background: #111721;
}

.theme-dot--blue {
  background: #42a0ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle svg {
  width: 100%;
}

.page-shell {
  padding-block: 54px 90px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--safe) 26%, transparent);
  content: "";
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 5.7rem);
  font-weight: 880;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(105deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .button {
  min-width: 180px;
}

.hero-proof {
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-small);
}

.proof-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
}

.proof-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.tool {
  display: grid;
  grid-template-columns: minmax(330px, 0.84fr) minmax(440px, 1.16fr);
  min-height: 790px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    #11141b;
}

.preview-stack {
  width: min(100%, 390px);
}

.stage-shell {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 33px;
  background: #05070b;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.reel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 25px;
  background: #0a0d13;
  isolation: isolate;
  --zone-opacity: 0.48;
  touch-action: none;
}

.preview-media,
.demo-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-media {
  background: #080b12;
}

.demo-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.27) 0 12%, transparent 12.5%),
    radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.18) 0 24%, transparent 24.5%),
    linear-gradient(145deg, #7138f1 0%, #ef3e78 51%, #ff9d42 100%);
  color: #fffaf3;
}

.demo-kicker {
  margin-bottom: 3%;
  font-size: clamp(0.58rem, 1.3vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.demo-title {
  max-width: 84%;
  font-size: clamp(1.7rem, 4.1vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.demo-subtitle {
  max-width: 78%;
  margin-top: 6%;
  font-size: clamp(0.58rem, 1.5vw, 0.92rem);
  font-weight: 650;
}

.grid-overlay,
.danger-zone,
.safe-outline,
.instagram-ui {
  position: absolute;
  pointer-events: none;
}

.danger-zone {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 55, 102, var(--zone-opacity));
  transition:
    inset 180ms ease,
    width 180ms ease,
    height 180ms ease,
    background 180ms ease;
}

.reel-stage[data-scenario-type="crop"] .danger-zone {
  background: rgba(255, 164, 55, var(--zone-opacity));
}

.zone-label {
  max-width: 94%;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(16, 17, 22, 0.78);
  color: #ffffff;
  font-size: clamp(0.43rem, 1.1vw, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.danger-left .zone-label {
  display: none;
}

.danger-right .zone-label {
  transform: rotate(90deg);
  white-space: nowrap;
}

.safe-outline {
  z-index: 4;
  border: 2px dashed var(--safe);
  box-shadow:
    0 0 0 1px rgba(12, 19, 8, 0.45),
    inset 0 0 28px rgba(168, 242, 58, 0.08);
  transition:
    inset 180ms ease,
    width 180ms ease,
    height 180ms ease;
}

.safe-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--safe);
  color: var(--safe-ink);
  font-size: clamp(0.45rem, 1.1vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.grid-overlay {
  z-index: 2;
  inset: 0;
  display: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.34) 33.2% 33.5%, transparent 33.5% 66.5%, rgba(255,255,255,.34) 66.5% 66.8%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.34) 33.2% 33.5%, transparent 33.5% 66.5%, rgba(255,255,255,.34) 66.5% 66.8%, transparent 66.8%);
}

.reel-stage[data-show-grid="true"] .grid-overlay {
  display: block;
}

.instagram-ui {
  z-index: 5;
  inset: 0;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.82));
}

.reel-stage[data-show-ui="false"] .instagram-ui,
.reel-stage[data-scenario-type="crop"] .instagram-ui {
  display: none;
}

.ui-user {
  position: absolute;
  top: 3.4%;
  left: 4.5%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(0.5rem, 1.3vw, 0.76rem);
  font-weight: 800;
}

.ui-avatar {
  width: clamp(20px, 5vw, 31px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}

.ui-actions {
  position: absolute;
  right: 3.7%;
  bottom: 18.5%;
  display: grid;
  gap: clamp(9px, 2.4vw, 16px);
}

.ui-action {
  display: grid;
  width: clamp(20px, 5.2vw, 32px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: clamp(0.55rem, 1.6vw, 0.9rem);
  font-weight: 900;
}

.ui-caption {
  position: absolute;
  right: 12%;
  bottom: 7%;
  left: 4.5%;
  display: grid;
  gap: 6px;
}

.ui-caption-line {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
}

.ui-caption-line:nth-child(2) {
  width: 72%;
  opacity: 0.75;
}

.ui-caption-line:nth-child(3) {
  width: 42%;
  opacity: 0.58;
}

.text-probe {
  position: absolute;
  z-index: 7;
  max-width: 78%;
  padding: clamp(7px, 1.8vw, 12px) clamp(10px, 2.4vw, 16px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(16, 21, 28, 0.68);
  border-radius: 11px;
  background: var(--safe);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #111820;
  cursor: grab;
  font-size: clamp(0.64rem, 2.05vw, 1.05rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  touch-action: none;
  user-select: none;
}

.text-probe[data-result="risk"] {
  background: var(--risk);
  color: #ffffff;
}

.text-probe[data-dragging="true"] {
  cursor: grabbing;
  scale: 1.025;
}

.reel-stage[data-show-probe="false"] .text-probe {
  display: none;
}

.stage-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.video-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.video-controls button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.video-controls input {
  width: 100%;
  accent-color: var(--safe);
}

.video-controls span {
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
}

.control-panel {
  padding: 30px;
  background: var(--surface);
}

.control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.control-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.checked-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--safe) 68%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--safe) 14%, var(--surface));
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.drop-zone {
  display: flex;
  min-height: 114px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed color-mix(in srgb, var(--accent) 44%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent),
    var(--surface-raised);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.drop-zone:hover,
.drop-zone[data-dragging="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface));
  transform: translateY(-1px);
}

.drop-zone strong {
  display: block;
  font-size: 1rem;
}

.drop-zone span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.drop-zone small {
  display: block;
  margin-top: 7px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 750;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}

.media-copy {
  min-width: 0;
}

.media-name,
.media-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-name {
  font-size: 0.8rem;
  font-weight: 800;
}

.media-meta {
  color: var(--muted);
  font-size: 0.68rem;
}

.text-button {
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.tool-status {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-strong);
  color: var(--muted);
  font-size: 0.73rem;
}

.tool-status[data-tone="success"] {
  background: color-mix(in srgb, var(--safe) 18%, var(--surface));
  color: color-mix(in srgb, var(--safe-ink) 72%, var(--ink));
}

.tool-status[data-tone="error"] {
  background: color-mix(in srgb, var(--risk) 13%, var(--surface));
  color: color-mix(in srgb, var(--risk) 72%, var(--ink));
}

.control-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

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

.scenario-button {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.scenario-button small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
}

.scenario-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--ink);
}

.scenario-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.73rem;
}

.scenario-note strong {
  color: var(--ink);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.range-row input {
  width: 100%;
  accent-color: var(--accent);
}

.range-value {
  min-width: 40px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-strong);
}

.segmented button {
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface-raised);
  box-shadow: var(--shadow-small);
  color: var(--ink);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 750;
}

.toggle input {
  accent-color: var(--accent);
}

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

.preset-row {
  display: flex;
  gap: 5px;
}

.preset-row button {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 750;
}

.probe-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--safe) 58%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--safe) 12%, var(--surface));
}

.result-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--safe) 20%, transparent);
}

.probe-result[data-result="risk"] {
  border-color: color-mix(in srgb, var(--risk) 52%, var(--line));
  background: color-mix(in srgb, var(--risk) 10%, var(--surface));
}

.probe-result[data-result="risk"] .result-dot {
  background: var(--risk);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--risk) 18%, transparent);
}

.probe-result strong,
.probe-result span {
  display: block;
}

.probe-result strong {
  font-size: 0.75rem;
}

.probe-result span {
  color: var(--muted);
  font-size: 0.66rem;
}

.export-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
}

.button--primary {
  background: linear-gradient(105deg, var(--accent), var(--orange));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
  color: #ffffff;
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.export-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.content-section {
  margin-top: 90px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.step-grid,
.feature-grid,
.scenario-cards {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-small);
}

.card-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.scenario-card {
  position: relative;
  padding-top: 58px;
}

.scenario-card::before {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--safe);
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--safe) 13%, transparent);
  content: "";
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.spec-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

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

.spec-table th {
  background: var(--bg-strong);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.methodology {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
}

.methodology-callout {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #191b24, #2a2030);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.methodology-callout .eyebrow {
  color: #ff9dbc;
}

.methodology-callout h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.methodology-callout p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.method-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.method-item strong {
  display: block;
  margin-bottom: 4px;
}

.method-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

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

.faq-list summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  float: right;
  color: var(--accent);
  content: "+";
  font-size: 1.25rem;
}

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

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(115deg, var(--accent), #8a3ffc 60%, #3f79ff);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .button {
  background: #ffffff;
  color: #26142a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 56%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  padding-block: 44px;
}

.footer-brand {
  max-width: 560px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.legal-shell {
  width: min(840px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 64px 100px;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-header p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
}

.updated {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.legal-content {
  padding: clamp(24px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 2.2em 0 0.55em;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 7px;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form textarea {
  min-height: 190px;
  resize: vertical;
}

.feedback-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-strong);
  color: var(--muted);
  font-size: 0.8rem;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(5rem, 20vw, 11rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found p {
  max-width: 520px;
  color: var(--muted);
}

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

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

  .tool {
    grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1.2fr);
  }

  .preview-panel,
  .control-panel {
    padding: 24px;
  }

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

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 10px;
    border-radius: 9px;
  }

  .nav-toggle {
    display: block;
  }

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

  .preview-panel {
    padding-block: 28px;
  }

  .preview-stack {
    width: min(100%, 350px);
  }

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

  .section-heading,
  .methodology,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    grid-column: auto;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .header-inner,
  .page-shell,
  .footer-inner,
  .legal-shell {
    width: min(100% - 24px, 1180px);
  }

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

  .brand span {
    max-width: 150px;
    font-size: 0.8rem;
    line-height: 1.05;
  }

  .nav-shell {
    gap: 8px;
  }

  .page-shell {
    padding-block: 38px 70px;
  }

  .hero {
    gap: 24px;
  }

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

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

  .tool {
    border-radius: 22px;
  }

  .preview-panel,
  .control-panel {
    padding: 18px;
  }

  .control-header {
    display: grid;
  }

  .checked-pill {
    justify-self: start;
  }

  .scenario-grid,
  .control-row,
  .probe-controls,
  .export-row {
    grid-template-columns: 1fr;
  }

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

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

  .section-heading {
    gap: 18px;
  }

  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .content-section {
    margin-top: 68px;
  }

  .cta-band {
    padding: 25px;
    border-radius: 22px;
  }

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

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

@media print {
  .site-header,
  .theme-switcher,
  .nav-toggle,
  .cta-band,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .page-shell,
  .legal-shell {
    width: 100%;
  }
}
