/* Homepage FV — laid out on a 1850px design canvas, scaled with --u (layout) and --t (text). */
.fv {
  --u: min(1px, calc(100vw / 1850));
  --t: max(var(--u), 0.8px);
  --ink: #1b1f4b;
  --muted: #5b6282;
  --primary: #4f46e5;
  --primary-2: #5b54f0;
  --field: #f3f4fb;
  --line: rgba(255, 255, 255, 0.38);
}

/* index.css sets `* { font-size: 16px; line-height: 1 }`; restore inheritance with zero specificity. */
:where(.fv) *, :where(.fv) *::before, :where(.fv) *::after {
  box-sizing: border-box;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

:where(.fv) a { color: inherit; text-decoration: none; }

:where(.fv) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fv {
  position: relative;
  overflow: hidden;
  background: #3d4fe6;
  color: #fff;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  min-height: calc(850 * var(--u));
  padding: 0 calc(70 * var(--u)) calc(28 * var(--u));
  isolation: isolate;
}

.fv__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- header ---------- */
.fv-header {
  display: flex;
  align-items: center;
  height: calc(92 * var(--u));
  gap: calc(40 * var(--u));
  margin-right: calc(-17 * var(--u));
}

.fv-brand {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  font-size: calc(29 * var(--t));
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fv-brand img {
  width: calc(50 * var(--u));
  height: calc(50 * var(--u));
  border-radius: calc(12 * var(--u));
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(40, 30, 140, 0.25);
}

.fv-nav {
  display: flex;
  gap: calc(18 * var(--u));
  margin-left: calc(220 * var(--u));
  font-size: calc(15.5 * var(--t));
  font-weight: 500;
}

.fv-nav a { opacity: 0.95; transition: opacity 0.2s; }
.fv-nav a:hover { opacity: 0.7; }

.fv-header__actions {
  display: flex;
  gap: calc(14 * var(--u));
  margin-left: auto;
}

.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  height: calc(50 * var(--u));
  padding: 0 calc(26 * var(--u));
  border-radius: calc(10 * var(--u));
  font-size: calc(16 * var(--t));
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fv-btn svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.fv-btn:hover { transform: translateY(-1px); }

.fv-btn--light {
  min-width: calc(216 * var(--u));
  background: #fff;
  color: var(--primary);
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(30, 30, 120, 0.15);
}

.fv-btn--primary {
  min-width: calc(218 * var(--u));
  background: var(--primary-2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(40, 30, 160, 0.3);
}

/* ---------- main ---------- */
.fv-main {
  position: relative;
  display: grid;
  grid-template-columns: calc(700 * var(--u)) 1fr calc(534 * var(--u));
  min-height: calc(620 * var(--u));
  padding-top: calc(40 * var(--u));
}

.fv-copy {
  position: relative;
  z-index: 2;
  padding-left: calc(16 * var(--u));
}

.fv-badge {
  display: inline-block;
  margin: 0;
  padding: calc(5 * var(--u)) calc(18 * var(--u));
  border-radius: 999px;
  background: rgba(221, 222, 255, 0.82);
  color: #4c46c9;
  font-size: calc(16 * var(--t));
  font-weight: 700;
}

.fv-title {
  margin: calc(14 * var(--u)) 0 0;
  font-size: calc(77 * var(--u));
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 calc(4 * var(--u)) calc(24 * var(--u)) rgba(30, 30, 140, 0.18);
}

.fv-title span { display: block; }
.fv-title small { font-size: 0.6em; font-weight: 900; }

.fv-name {
  margin: calc(6 * var(--u)) 0 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: calc(38 * var(--t));
  font-weight: 800;
  letter-spacing: 0;
}

.fv-lead {
  margin: calc(12 * var(--u)) 0 0;
  font-size: calc(19 * var(--t));
  font-weight: 500;
  line-height: 1.6;
}

.fv-points {
  display: grid;
  grid-template-columns: repeat(3, calc(195 * var(--u)));
  gap: calc(16 * var(--u));
  margin: calc(20 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}

.fv-points li {
  height: calc(107 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  border-radius: calc(12 * var(--u));
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(40, 40, 140, 0.12);
}

.fv-points__head {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
}

.fv-points__head svg {
  flex: none;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  color: #4c56c9;
  stroke-width: 1.6;
}

.fv-points strong {
  color: #3f47c6;
  font-size: calc(16.5 * var(--t));
  line-height: 1.3;
}

.fv-points p {
  margin: calc(8 * var(--u)) 0 0;
  font-size: calc(13.5 * var(--t));
  font-weight: 500;
  line-height: 1.4;
}

.fv-points .fv-points__note { margin-top: calc(18 * var(--u)); color: #8a8fa8; font-size: calc(12.5 * var(--t)); white-space: nowrap; }

.fv-cta {
  display: flex;
  gap: calc(16 * var(--u));
  margin-top: calc(23 * var(--u));
}

.fv-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  width: calc(338 * var(--u));
  height: calc(64 * var(--u));
  border-radius: calc(14 * var(--u));
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.fv-cta a:hover { transform: translateY(-2px); }
.fv-cta svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

.fv-cta__primary {
  background: #fff;
  color: var(--primary);
  font-size: calc(20 * var(--t));
  box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(30, 30, 130, 0.2);
}

.fv-cta__ghost {
  width: calc(284 * var(--u)) !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  font-size: calc(16.5 * var(--t));
  backdrop-filter: blur(6px);
}

.fv-cta__ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- laptop ---------- */
.fv-visual {
  position: relative;
  z-index: 1;
}

.fv-visual__laptop {
  position: absolute;
  top: calc(-24 * var(--u));
  left: calc(-40 * var(--u));
  width: calc(670 * var(--u));
  aspect-ratio: 995 / 981;
}

.fv-visual__laptop > img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 calc(30 * var(--u)) calc(40 * var(--u)) rgba(20, 10, 90, 0.35));
}

/* The laptop render keeps its bezel and keyboard. This projected HTML surface
   covers only the glass, so the task can run like a real Codex session. */
.fv-desktop-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.fv-desktop-ui.is-ready { opacity: 1; }

.fv-desktop-ui__natural {
  position: absolute;
  top: 0;
  left: 0;
  width: 995px;
  height: 981px;
  transform: scale(var(--fv-desktop-scale, 0));
  transform-origin: 0 0;
}

.fv-desktop-ui__surface {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  width: 640px;
  height: 500px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(150deg, #101b48 0%, #07102d 58%, #080d27 100%);
  color: #e9eeff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.35;
  transform: matrix3d(0.6805766069, -0.1045255946, 0, -0.0002173993, -0.1588087587, 0.8227319779, 0, -0.0001118807, 0, 0, 1, 0, 390, 190, 0, 1);
  transform-origin: 0 0;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(141, 165, 255, 0.18);
}

.fv-desktop-ui__side {
  padding: 30px 15px;
  background: linear-gradient(165deg, rgba(25, 48, 109, 0.96), rgba(11, 25, 66, 0.98));
  border-right: 1px solid rgba(141, 165, 255, 0.12);
}

.fv-desktop-ui__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px 4px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
}

.fv-desktop-ui__brand span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #8a8cff, #4f46e5);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
}

.fv-desktop-ui__brand strong { font-weight: 700; }

.fv-desktop-ui__side > p {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 7px;
  color: rgba(224, 231, 255, 0.64);
  font-size: 11.5px;
}

.fv-desktop-ui__side > p.is-active {
  background: rgba(121, 139, 222, 0.19);
  color: #fff;
}

.fv-desktop-ui__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 18px;
}

.fv-desktop-ui__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  height: 22px;
}

.fv-desktop-ui__toolbar span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(213, 224, 255, 0.55);
  border-radius: 6px;
  color: rgba(235, 241, 255, 0.8);
  font-size: 10px;
}

.fv-desktop-ui__prompt {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 4px 0 9px;
  padding: 0 12px;
  border: 1px solid rgba(130, 154, 241, 0.14);
  border-radius: 8px;
  background: rgba(52, 70, 133, 0.12);
  font-size: 16px;
  font-weight: 650;
}

.fv-desktop-ui__prompt b { margin-right: 9px; color: #93b4ff; }
.fv-desktop-ui__prompt i { display: none; width: 2px; height: 1em; margin-left: 3px; background: #84aaff; }
.fv-desktop-ui[data-state="typing"] .fv-desktop-ui__prompt i { display: inline-block; animation: fv-blink 0.76s steps(1) infinite; }

.fv-desktop-ui__steps {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(130, 154, 241, 0.12);
  border-radius: 8px;
  background: rgba(24, 37, 87, 0.42);
  list-style: none;
}

.fv-desktop-ui__steps li {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 2px 6px;
  border-radius: 5px;
  color: rgba(220, 228, 255, 0.42);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.fv-desktop-ui__steps li i {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(183, 200, 255, 0.4);
  border-radius: 50%;
}

.fv-desktop-ui__steps li em {
  color: rgba(204, 216, 255, 0.38);
  font-size: 11px;
  font-style: normal;
}

.fv-desktop-ui__steps li.is-running {
  background: linear-gradient(90deg, rgba(70, 117, 230, 0.16), transparent);
  color: #f3f6ff;
}

.fv-desktop-ui__steps li.is-running i {
  border-color: rgba(96, 165, 250, 0.34);
  border-top-color: #60a5fa;
  animation: fv-spin 0.78s linear infinite;
}

.fv-desktop-ui__steps li.is-running em { color: #72a7ff; }
.fv-desktop-ui__steps li.is-done { color: rgba(236, 241, 255, 0.88); }
.fv-desktop-ui__steps li.is-done i {
  display: grid;
  place-items: center;
  border: 0;
  background: #39d98a;
}
.fv-desktop-ui__steps li.is-done i::after { content: "✓"; color: #071d2f; font-size: 8px; font-style: normal; font-weight: 900; }

.fv-desktop-ui__output {
  min-height: 131px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(130, 154, 241, 0.1);
  border-radius: 8px;
  background: rgba(4, 10, 35, 0.28);
}

.fv-desktop-ui__note { margin: 0 0 5px; color: #cfd8ff; font-style: italic; }

.fv-desktop-ui__file {
  display: grid;
  grid-template-columns: 13px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin: 0;
  color: #cbd5ff;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fv-desktop-ui__file.is-visible { opacity: 1; transform: none; }
.fv-desktop-ui__file > span { color: #5aa8ff; }
.fv-desktop-ui__file em { color: #fb7185; font-size: 11px; font-style: normal; }
.fv-desktop-ui__file em b { margin-right: 8px; color: #45df8f; font-weight: 500; }

.fv-desktop-ui__complete {
  margin: 4px 0 0;
  color: #48e29a;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fv-desktop-ui__complete.is-visible { opacity: 1; transform: none; }

.fv-desktop-ui__input {
  display: flex;
  align-items: center;
  min-height: 39px;
  margin: auto 0 0;
  padding: 0 12px;
  border: 1px solid rgba(130, 154, 241, 0.16);
  border-radius: 7px;
  background: rgba(49, 68, 131, 0.15);
  color: rgba(214, 224, 255, 0.48);
}

.fv-desktop-ui__input span { margin-left: auto; color: #68a8ff; font-size: 18px; }

.fv-desktop-ui.is-paused,
.fv-desktop-ui.is-paused *,
.fv-desktop-ui.is-paused *::before,
.fv-desktop-ui.is-paused *::after { animation-play-state: paused !important; }

/* ---------- form ---------- */
.fv-form {
  position: relative;
  z-index: 3;
  align-self: start;
  height: calc(590 * var(--u));
  padding: calc(26 * var(--u)) calc(48 * var(--u)) 0;
  border-radius: calc(16 * var(--u));
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(30, 30, 120, 0.22);
}

.fv-form__kicker {
  margin: 0;
  color: var(--primary);
  font-size: calc(15 * var(--t));
  font-weight: 700;
}

.fv-form__title {
  margin: calc(6 * var(--u)) 0 0;
  font-size: calc(27 * var(--t));
  font-weight: 900;
  letter-spacing: 0.01em;
}

.fv-form__lead {
  margin: calc(12 * var(--u)) 0 calc(20 * var(--u));
  color: #3c4262;
  font-size: calc(14.5 * var(--t));
  line-height: 1.6;
}

.fv-field {
  display: grid;
  grid-template-columns: calc(198 * var(--u)) 1fr;
  height: calc(42 * var(--u));
  margin-bottom: calc(9.5 * var(--u));
  border-radius: calc(6 * var(--u));
  background: var(--field);
  overflow: hidden;
}

.fv-field__label {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  padding-left: calc(14 * var(--u));
  font-size: calc(15.5 * var(--t));
  font-weight: 700;
}

.fv-field__label svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: #3e4570; }

.fv-field input {
  min-width: 0;
  margin: 1px;
  padding: 0 calc(12 * var(--u));
  border: 1px solid #e7e8f2;
  border-radius: calc(5 * var(--u));
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: calc(14 * var(--t));
}

.fv-field input::placeholder { color: #a2a6ba; }
.fv-field input:focus { outline: 2px solid rgba(79, 70, 229, 0.5); outline-offset: -1px; }

.fv-form__privacy {
  margin: calc(14 * var(--u)) 0 0;
  color: #5d6280;
  font-size: calc(13 * var(--t));
  line-height: 1.75;
  text-align: left;
}

.fv-form__privacy a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.fv-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  width: 100%;
  height: calc(62 * var(--u));
  margin-top: calc(16 * var(--u));
  border: 0;
  border-radius: calc(12 * var(--u));
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: calc(20 * var(--t));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(79, 70, 229, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.fv-form__submit:hover { background: #4338ca; transform: translateY(-1px); }
.fv-form__submit svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

.fv-form__download {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  margin-top: calc(22 * var(--u));
  color: var(--primary);
  font-size: calc(16.5 * var(--t));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fv-form__download svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }

/* ---------- trust bar ---------- */
.fv-trust {
  display: flex;
  align-items: center;
  margin: 0 calc(0 * var(--u)) 0 calc(16 * var(--u));
  margin-top: calc(18 * var(--u));
  padding-top: calc(24 * var(--u));
  border-top: 1px solid var(--line);
}

.fv-trust__text {
  width: calc(420 * var(--u));
  margin: 0;
  font-size: calc(16.5 * var(--t));
  font-weight: 500;
  line-height: 1.6;
}

.fv-stats {
  display: flex;
  margin: 0;
}

.fv-stats div {
  width: calc(185 * var(--u));
  text-align: center;
}

.fv-stats div + div { border-left: 1px solid var(--line); }

.fv-stats dt { font-size: calc(15 * var(--t)); font-weight: 500; opacity: 0.92; }

.fv-stats dd {
  margin: calc(2 * var(--u)) 0 0;
  font-family: "Inter", sans-serif;
  font-size: calc(34 * var(--t));
  font-weight: 800;
  line-height: 1.2;
}

.fv-stats small { margin-left: 2px; font-family: "Noto Sans JP", sans-serif; font-size: 0.5em; font-weight: 700; }

.fv-logos {
  display: flex;
  align-items: center;
  gap: calc(40 * var(--u));
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  font-family: "Inter", sans-serif;
  font-size: calc(23 * var(--t));
  font-weight: 600;
  opacity: 0.6;
}

.fv-logos__more { font-family: "Noto Sans JP", sans-serif; font-size: calc(16 * var(--t)); font-weight: 500; }

/* ---------- page integration ---------- */
.fv-form__status {
  min-height: 1em;
  margin: calc(8 * var(--u)) 0 0;
  font-size: calc(13 * var(--t));
  font-weight: 700;
}

.fv-form__status.is-success { color: #16a34a; }
.fv-form__status.is-error { color: #dc2626; }
.fv-form__submit[disabled] { opacity: 0.7; cursor: wait; }

.fv .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .mirror-home-page .header { display: none; }
}

/* ---------- tablet / mobile: single column ---------- */
@media (max-width: 1279px) {
  .fv {
    --u: 1px;
    --t: 1px;
    min-height: 0;
    padding: 88px 20px 36px;
  }

  .fv-header { display: none; }

  .fv-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 640px;
    margin: 0 auto;
    padding-top: 0;
  }

  .fv-copy { display: contents; }
  .fv-badge { order: 1; align-self: flex-start; font-size: 13px; padding: 4px 14px; }
  .fv-title { order: 2; font-size: clamp(31px, 8.6vw, 60px); white-space: normal; margin-top: 14px; }
  .fv-name { order: 3; font-size: clamp(24px, 6.6vw, 36px); margin-top: 4px; }
  .fv-lead { order: 4; font-size: 15px; margin-top: 10px; }
  .fv-visual { order: 5; margin: 6px -8px 0; }
  .fv-points { order: 6; }
  .fv-cta { order: 7; }
  .fv-form { order: 8; }

  .fv-visual__laptop {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .fv-visual__laptop > img { width: 100%; }

  .fv-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
  }

  .fv-points li { height: auto; padding: 12px 10px; border-radius: 12px; }
  .fv-points__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fv-points__head svg { width: 28px; height: 28px; }
  .fv-points strong { font-size: 13px; }
  .fv-points p { margin-top: 6px; font-size: 11px; }
  .fv-points .fv-points__note { margin-top: 6px; font-size: 10px; white-space: normal; }

  .fv-cta { flex-direction: column; gap: 10px; margin-top: 18px; }
  .fv-cta a, .fv-cta__ghost { width: 100% !important; height: 56px; }
  .fv-cta__primary { font-size: 17px; }
  .fv-cta__ghost { font-size: 15px; }

  .fv-form { align-self: stretch; height: auto; margin-top: 28px; padding: 26px 18px 22px; }
  .fv-form__title { font-size: 21px; }
  .fv-form__lead { font-size: 13px; margin-bottom: 16px; }
  .fv-field { grid-template-columns: 1fr; height: auto; margin-bottom: 10px; background: transparent; }
  .fv-field__label { padding: 0 0 6px 2px; gap: 8px; font-size: 14px; }
  .fv-field__label svg { width: 18px; height: 18px; }
  .fv-field input { height: 46px; margin: 0; font-size: 16px; background: var(--field); border-color: transparent; }
  .fv-form__privacy { font-size: 12px; }
  .fv-form__privacy br { display: none; }
  .fv-form__submit { height: 56px; font-size: 17px; }
  .fv-form__download { font-size: 15px; margin-top: 18px; }

  .fv-trust {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-width: 640px;
    margin: 32px auto 0;
    text-align: center;
  }

  .fv-trust__text { width: auto; font-size: 14px; }
  .fv-stats div { flex: 1; width: auto; }
  .fv-stats dt { font-size: 12px; white-space: nowrap; }
  .fv-stats dd { font-size: 28px; }
  .fv-logos { flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin: 0; font-size: 17px; }
  .fv-logos__more { font-size: 13px; }
}

@media (max-width: 339px) {
  .fv-points { grid-template-columns: 1fr; }
  .fv-points__head { flex-direction: row; align-items: center; }
}

/* The previous mobile hero baked the logo and menu button into its artwork, so index.css hid the real ones. */
@media (max-width: 1279px) {
  .mirror-home-page .header { z-index: 30; }
}

@media screen and (max-width: 767px) {
  .mirror-home-page .header__logoLink { visibility: visible; pointer-events: auto; }
  .mirror-home-page .header__hamburgerButton { opacity: 1; }
  .fv { padding-top: 76px; }
}

/* ---------- mobile wayfinding ---------- */
.fv-quicklinks { display: none; }

@media (max-width: 1279px) {
  /* CTAs sit right under the lead so they are visible without scrolling past the laptop. */
  .fv-cta { order: 5; flex-direction: row; gap: 8px; margin-top: 18px; }
  .fv-cta a, .fv-cta__ghost { flex: 1; width: auto !important; height: 52px; padding: 0 8px; border-radius: 12px; }
  .fv-cta__primary { font-size: 15px; }
  .fv-cta__ghost { font-size: 13px; }
  .fv-cta svg { width: 18px; height: 18px; }
  .fv-visual { order: 6; }
  .fv-points { order: 7; }
  .fv-quicklinks { order: 8; }

  .fv-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
  }

  .fv-quicklinks__label {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
  }

  .fv-quicklinks a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 10px 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
  }

  .fv-quicklinks svg { width: 20px; height: 20px; }

  .fv-quicklinks a.fv-quicklinks__main {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
    border: 0;
    background: #fff;
    color: var(--primary);
    text-align: left;
    box-shadow: 0 10px 26px rgba(30, 30, 130, 0.2);
  }

  .fv-quicklinks__main svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #eef0ff; }
  .fv-quicklinks__main strong { display: block; font-size: 15px; }
  .fv-quicklinks__main small { display: block; margin-top: 2px; color: #6b7091; font-size: 11.5px; font-weight: 500; }
  .fv-quicklinks__arrow { margin-left: auto; font-size: 18px; }
}

@media (max-width: 1279px) {
  .fv-cta a { gap: 6px; white-space: nowrap; }
  .fv-cta__primary > span { display: none; }
}

@media (max-width: 480px) {
  .fv-cta__ghost svg { display: none; }
}

/* ---------- compact phone layout ---------- */
@media (max-width: 767px) {
  .fv { padding: 68px 16px 24px; }

  .fv-badge { font-size: 12px; padding: 3px 12px; }
  .fv-title { margin-top: 10px; font-size: clamp(27px, 7.7vw, 40px); line-height: 1.18; }
  .fv-name { margin-top: 2px; font-size: 22px; }
  .fv-lead { margin-top: 6px; font-size: 13px; line-height: 1.55; }

  .fv-cta { margin-top: 14px; }
  .fv-cta a, .fv-cta__ghost { height: 46px; border-radius: 10px; }
  .fv-cta__primary { font-size: 14px; }
  .fv-cta__ghost { font-size: 12.5px; }

  .fv-visual { margin: 4px 0 -6px; }
  .fv-visual img { width: 76%; }

  /* Feature cards collapse to icon + title chips. */
  .fv-points { gap: 6px; margin-top: 0; }
  .fv-points li { padding: 9px 8px; border-radius: 10px; }
  .fv-points__head { flex-direction: row; align-items: center; gap: 6px; }
  .fv-points__head svg { width: 22px; height: 22px; }
  .fv-points strong { font-size: 11.5px; line-height: 1.3; }
  .fv-points p, .fv-points .fv-points__note { display: none; }

  .fv-quicklinks { gap: 6px; margin-top: 16px; }
  .fv-quicklinks__label { font-size: 12px; }
  .fv-quicklinks a { flex-direction: row; gap: 5px; min-height: 40px; padding: 6px 4px; border-radius: 10px; font-size: 12px; }
  .fv-quicklinks svg { width: 16px; height: 16px; }
  .fv-quicklinks a.fv-quicklinks__main { min-height: 52px; padding: 8px 14px; border-radius: 12px; }
  .fv-quicklinks__main svg { width: 30px; height: 30px; padding: 6px; }
  .fv-quicklinks__main strong { font-size: 14px; }
  .fv-quicklinks__main small { font-size: 11px; }

  /* Form: label and input share one row. */
  .fv-form { margin-top: 18px; padding: 18px 14px 16px; border-radius: 14px; }
  .fv-form__kicker { font-size: 12px; }
  .fv-form__title { margin-top: 2px; font-size: 18px; }
  .fv-form__lead { display: none; }
  .fv-form__title { margin-bottom: 12px; }
  .fv-field { grid-template-columns: 106px 1fr; align-items: center; height: 44px; margin-bottom: 6px; border-radius: 8px; background: var(--field); }
  .fv-field__label { padding: 0 0 0 9px; font-size: 11.5px; line-height: 1.25; letter-spacing: -0.02em; white-space: nowrap; }
  .fv-field__label svg { display: none; }
  .fv-field input { height: 42px; margin: 1px; border-color: #e7e8f2; background: #fff; font-size: 16px; }
  .fv-form__privacy { margin-top: 8px; font-size: 11px; line-height: 1.6; }
  .fv-form__submit { height: 50px; margin-top: 10px; font-size: 16px; border-radius: 10px; }
  .fv-form__status { margin-top: 4px; }
  .fv-form__download { margin-top: 8px; font-size: 13.5px; }

  .fv-trust { gap: 12px; margin-top: 20px; padding-top: 16px; }
  .fv-trust__text { font-size: 12.5px; }
  .fv-trust__text br { display: none; }
  .fv-stats dt { font-size: 11px; }
  .fv-stats dd { font-size: 24px; }
  .fv-logos { gap: 8px 16px; font-size: 14px; }
  .fv-logos__more { font-size: 12px; }
}

/* ---------- phone hero visual ----------
   fv-laptop.webp carries ~10.9% transparent space above the laptop and ~14.8% below
   (percent of image height; the image is ~square, so width-based % margins cancel it).
   The laptop runs edge to edge and sits between the copy and the CTAs. */
@media (max-width: 767px) {
  .fv-visual {
    order: 5;
    position: relative;
    margin: 14px -16px 0;
  }

  .fv-visual::before {
    content: "";
    position: absolute;
    inset: 4% 6% 2%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(196, 188, 255, 0.55), rgba(140, 130, 255, 0.18) 60%, transparent);
    filter: blur(12px);
  }

  .fv-visual img {
    width: 100%;
    margin: -10.9% 0 -14.8%;
    filter: drop-shadow(0 18px 22px rgba(20, 10, 90, 0.35));
  }

  .fv-cta { order: 6; margin-top: 18px; }
  .fv-points { order: 7; margin-top: 10px; }
  .fv-quicklinks { order: 8; }
}

@media (max-width: 389px) {
  .fv-points li { padding: 9px 6px; }
  .fv-points__head { gap: 4px; }
  .fv-points__head svg { width: 18px; height: 18px; }
  .fv-points strong { font-size: 11px; letter-spacing: -0.02em; }
}

/* Smaller laptop on phones: 80% of the viewport; padding offsets scale with it (10.9% / 14.8% × 0.8). */
@media (max-width: 767px) {
  .fv-visual { margin-top: 16px; }
  .fv-visual img { width: 80%; margin: -8.7% auto -11.8%; }
  .fv-visual::before { inset: 6% 14% 4%; }
}

/* ---------- phone hero visual: animated Codex demo (replaces the laptop) ----------
   hero-fv-demo.js drives data-state: typing → working → done, then loops.
   Without JS (or with reduced motion) the card stays in the finished "done" state. */
.fv-mobile-ui { display: none; }

@media (max-width: 767px) {
  .fv-visual { display: none; }

  .fv-mobile-ui {
    order: 5;
    position: relative;
    display: block;
    margin-top: 18px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(124, 108, 255, 0.35), transparent 60%),
      linear-gradient(160deg, #161b4f 0%, #0d1138 100%);
    box-shadow: 0 18px 40px rgba(16, 10, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1.4;
  }

  .fv-mobile-ui__bar { display: flex; align-items: center; gap: 8px; }
  .fv-mobile-ui__bar img { width: 22px; height: 22px; border-radius: 6px; }
  .fv-mobile-ui__app { font-family: "Inter", sans-serif; font-size: 15px; font-weight: 700; }

  .fv-mobile-ui__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
  }

  .fv-mobile-ui__status b { font-weight: 600; }
  .fv-mobile-ui__status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .fv-mobile-ui[data-state="working"] .fv-mobile-ui__status { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
  .fv-mobile-ui[data-state="working"] .fv-mobile-ui__status i { animation: fv-pulse 1.2s ease-in-out infinite; }
  .fv-mobile-ui[data-state="done"] .fv-mobile-ui__status { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }

  .fv-mobile-ui__prompt {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 13.5px;
    font-weight: 700;
  }

  .fv-mobile-ui__prompt b { margin-right: 6px; color: #a5b4fc; font-family: "Inter", monospace; }
  .fv-mobile-ui__caret { display: none; width: 2px; height: 1.1em; margin-left: 2px; background: #a5b4fc; }
  .fv-mobile-ui[data-state="typing"] .fv-mobile-ui__caret { display: inline-block; animation: fv-blink 0.8s steps(1) infinite; }

  /* Fixed-height stage so the page never shifts while the demo runs. */
  .fv-mobile-ui__stage { position: relative; height: 158px; margin-top: 12px; }

  .fv-mobile-ui__work,
  .fv-mobile-ui__result {
    position: absolute;
    inset: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .fv-mobile-ui__result { opacity: 0; transform: translateY(8px) scale(0.98); pointer-events: none; }
  .fv-mobile-ui[data-state="done"] .fv-mobile-ui__work { opacity: 0; transform: translateY(-6px); }
  .fv-mobile-ui[data-state="done"] .fv-mobile-ui__result { opacity: 1; transform: none; }
  .fv-mobile-ui[data-state="typing"] .fv-mobile-ui__work { opacity: 0.35; }

  .fv-mobile-ui__steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

  .fv-mobile-ui__steps li {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
  }

  .fv-mobile-ui__steps li::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
  }

  .fv-mobile-ui__steps li.is-running { border-color: rgba(96, 165, 250, 0.5); background: rgba(96, 165, 250, 0.1); color: #fff; }
  .fv-mobile-ui__steps li.is-running::before { border-color: rgba(96, 165, 250, 0.3); border-top-color: #60a5fa; animation: fv-spin 0.8s linear infinite; }
  .fv-mobile-ui__steps li.is-done { color: rgba(255, 255, 255, 0.92); }
  .fv-mobile-ui__steps li.is-done::before {
    border-color: #34d399;
    background: #34d399 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1138' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 8px no-repeat;
  }

  .fv-mobile-ui__code {
    height: 118px;
    margin: 10px 0 0;
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 11px;
    line-height: 1.75;
    white-space: pre;
  }

  .fv-mobile-ui__code .k { color: #c4b5fd; }
  .fv-mobile-ui__code .s { color: #86efac; }
  .fv-mobile-ui__code .f { color: #93c5fd; }
  .fv-mobile-ui__code .c { color: rgba(255, 255, 255, 0.4); }

  .fv-mobile-ui__result {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 12px;
    padding: 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(52, 211, 153, 0.14), rgba(96, 165, 250, 0.08));
  }

  .fv-mobile-ui__resultIcon {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #34d399;
    color: #0d1138;
  }

  .fv-mobile-ui__resultIcon svg { width: 22px; height: 22px; stroke-width: 3; }
  .fv-mobile-ui__result strong { align-self: end; font-size: 15px; }
  .fv-mobile-ui__result p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 11.5px; }

  .fv-mobile-ui__result dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    gap: 8px;
    margin: 12px 0 0;
  }

  .fv-mobile-ui__result dl div { padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
  .fv-mobile-ui__result dt { color: rgba(255, 255, 255, 0.6); font-size: 10.5px; }
  .fv-mobile-ui__result dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
  .fv-mobile-ui__result em { color: #6ee7b7; font-style: normal; }

  .fv-mobile-ui__progress {
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .fv-mobile-ui__progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width 0.5s ease;
  }

  .fv-mobile-ui[data-state="done"] .fv-mobile-ui__progress span { background: linear-gradient(90deg, #34d399, #60a5fa); }

  .fv-cta { order: 6; margin-top: 16px; }
}

@keyframes fv-spin { to { transform: rotate(360deg); } }
@keyframes fv-pulse { 50% { opacity: 0.35; } }
@keyframes fv-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fv-mobile-ui *,
  .fv-desktop-ui,
  .fv-desktop-ui * { animation: none !important; transition: none !important; }
}

/* OpenAI knot mark on the hero (white) and inside the demo card. */
.fv-brand img { border-radius: 0; box-shadow: none; filter: invert(1); }
.fv-quicklinks__main svg { background: #eef0ff; }
.fv-mobile-ui__bar img { border-radius: 0; filter: invert(1); }

/* 1280–1560px: type keeps a minimum size while the grid keeps shrinking, so the
   inputs outgrew the form card. Scale the form's text with the grid in that range. */
@media (min-width: 1280px) and (max-width: 1560px) {
  .fv-form { padding-left: calc(36 * var(--u)); padding-right: calc(36 * var(--u)); }
  .fv-field { grid-template-columns: calc(170 * var(--u)) minmax(0, 1fr); }
  .fv-field__label { font-size: max(12.5px, calc(15.5 * var(--u))); white-space: nowrap; }
  .fv-field input { min-width: 0; font-size: max(13.5px, calc(14 * var(--u))); }
  .fv-form__title { font-size: max(17px, calc(27 * var(--u))); }
  .fv-form__lead { font-size: max(12px, calc(14.5 * var(--u))); }
  .fv-form__privacy { font-size: max(10.5px, calc(13 * var(--u))); }
  .fv-points strong { font-size: max(11.5px, calc(16.5 * var(--u))); }
  .fv-points p { font-size: max(10.5px, calc(13.5 * var(--u))); }
  .fv-cta__ghost { white-space: nowrap; }
}

/* the honeypot field must stay clipped wherever the form is rendered */
.fv .visually-hidden,
.cm .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fv .visually-hidden input,
.cm .visually-hidden input { width: 1px; min-width: 0; padding: 0; border: 0; }

/* Fixed heights made the chip text and the download link spill out around 1280px.
   Let both grow with their content, and nudge the laptop slightly left. */
@media (min-width: 1280px) {
  .fv-points li { height: auto; min-height: calc(107 * var(--u)); }
  .fv-form { height: auto; min-height: calc(560 * var(--u)); }
  .fv-visual img { left: calc(-92 * var(--u)); }
}

/* ---------- adopter logos: continuous marquee ---------- */
.fv-logos {
  flex: 1;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.fv-logos__track { display: flex; width: max-content; animation: fv-logos-scroll 28s linear infinite; }
.fv-logos:hover .fv-logos__track { animation-play-state: paused; }

.fv-logos__group {
  display: flex;
  align-items: center;
  gap: calc(40 * var(--u));
  margin: 0;
  padding: 0 calc(20 * var(--u));
  list-style: none;
}

.fv-logos__group li {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  flex: none;
  color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: calc(21 * var(--u));
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.8;
}

.fv-logos__group img {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  border-radius: calc(6 * var(--u));
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  padding: calc(3 * var(--u));
}

@keyframes fv-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-logos__track { animation: none; }
}

@media (max-width: 767px) {
  .fv-logos { margin: 0 -16px; }
  .fv-logos__group { gap: 22px; padding: 0 12px; }
  .fv-logos__group li { font-size: 15px; }
  .fv-logos__group img { width: 20px; height: 20px; }
}

/* the adopter row: label on the left, logos scrolling on the right */
.fv-trust__text b { display: block; font-weight: 700; }
.fv-trust__text small { display: block; margin-top: calc(4 * var(--u)); font-size: 0.8em; opacity: 0.75; }
