/* ==========================================================================
   STOP GÜGU — Landing Page
   Design source: Hero Wireframes.dc.html / design-system tokens (README.md)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap");

:root {
  /* Color — from design-system/tokens/colors.css */
  --night: #151426;
  --deep-night: #0d0c18;
  --on-night: #f8f6f2;
  --on-night-muted: rgba(248, 246, 242, 0.76);
  --on-night-muted-2: rgba(248, 246, 242, 0.68);
  --on-night-faint: rgba(248, 246, 242, 0.6);
  --on-night-hairline: rgba(248, 246, 242, 0.14);
  --gugu-purple: #7458e8;
  --gugu-purple-pressed: #6147cf;
  --accent-lavender: #b9a6ff;

  /* Monitor modal card tones (README §Design Tokens) */
  --canvas: #faf8f4;
  --surface: #f2efe9;
  --ink: #1c1b20;
  --body-text: #55515c;
  --muted: #7d7884;
  --hairline: #ded9e2;
  --modal-overlay: rgba(13, 12, 24, 0.6);
  --modal-overlay-mobile: rgba(13, 12, 24, 0.64);

  /* LP-specific night tones (README §Design Tokens) */
  --bg-hero: var(--night);
  --bg-hero-mobile: var(--deep-night);
  --bg-mechanism: #0f1524;
  --bg-video: var(--deep-night);
  --bg-device: #1b1930;
  --bg-monitor: #161a2e;
  --bg-faq: #10121f;
  --bg-final: var(--deep-night);

  /* Type */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  /* Radius */
  --radius-button: 16px;

  /* Motion */
  --ease-sleep: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-control: 200ms;
  --dur-reveal: 700ms;
  --dur-accordion: 260ms;
  --dur-modal-open: 450ms;
  --dur-modal-close: 200ms;

  /* Layout */
  --content-max: 1152px;
  --gutter: 24px;
  --gutter-desktop: 64px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-control: 0ms;
    --dur-reveal: 0ms;
    --dur-accordion: 0ms;
    --dur-modal-open: 0ms;
    --dur-modal-close: 0ms;
  }
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--deep-night);
  color: var(--on-night);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.visually-hidden {
  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: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--on-night);
  color: var(--night);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: top var(--dur-control) var(--ease-sleep);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--gugu-purple);
  outline-offset: 3px;
}

/* --- Layout helpers -------------------------------------------------------- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) {
  .wrap { padding-inline: var(--gutter-desktop); }
}

/* --- Logo ------------------------------------------------------------------ */
.logo {
  display: inline-block;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 20px;
  width: auto;
}

/* --- Site header ------------------------------------------------------------ */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  padding: 22px var(--gutter);
}
@media (min-width: 900px) {
  .site-header { padding: 34px var(--gutter-desktop); }
}
.site-header .wrap {
  max-width: none;
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav {
    display: block;
    font-size: 12.5px;
    color: var(--on-night-muted);
  }
  .site-nav ul { display: flex; gap: 30px; }
  .site-nav a { text-decoration: none; }
  .site-nav a:hover { color: var(--on-night); }
}

/* Language switch (JA / EN). Lives as the last <li> of both navs, so it
   inherits the surrounding type scale — only the pair's own rhythm is set
   here. The current language is a <span>, the other one an <a>. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.06em;
}
.lang-switch [aria-current="true"] {
  color: var(--on-night);
  font-weight: 700;
}
.lang-switch a {
  color: var(--on-night-faint);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--on-night); }
.lang-switch [aria-hidden="true"] { color: var(--on-night-hairline); }

@media (min-width: 900px) {
  /* The 30px nav gap is tuned for word-length items; the switch is a tail
     marker, so it sits closer and gets a hairline to separate it. */
  .site-nav .lang-switch {
    margin-left: -12px;
    padding-left: 18px;
    border-left: 1px solid var(--on-night-hairline);
    font-size: 11.5px;
  }
}

/* Mobile header: the switch sits immediately left of the hamburger. Above the
   nav breakpoint the switch inside .site-nav takes over, so this one hides. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-lang-switch {
  font-size: 12.5px;
  color: var(--on-night-muted);
  margin: 0;
}
@media (min-width: 900px) {
  .header-lang-switch { display: none; }
}

.mobile-nav .lang-switch {
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--on-night);
  padding-top: 28px;
  border-top: 1px solid var(--on-night-hairline);
}
.mobile-nav .lang-switch a { font-size: inherit; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-night);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--night);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform var(--dur-reveal) var(--ease-sleep);
}
.mobile-nav[data-open="true"] { transform: translateY(0); }
.mobile-nav .wrap {
  max-width: none;
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 48px;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav a {
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: var(--on-night);
}

/* --- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--gugu-purple);
  color: #fff;
  transition: opacity var(--dur-control) var(--ease-sleep),
              transform var(--dur-control) var(--ease-sleep),
              background var(--dur-control) var(--ease-sleep);
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { background: var(--gugu-purple-pressed); }
.btn--block { width: 100%; }
@media (max-width: 899px) {
  .btn { min-height: 48px; font-size: 15px; }
  .btn--hero { width: 100%; }
}

/* --- Sections shared --------------------------------------------------------- */
.section {
  padding-block: 76px 84px;
}
@media (min-width: 900px) {
  .section { padding-block: 120px 128px; }
}
.section-eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--on-night-muted-2);
}
.section-heading {
  font-size: clamp(28px, 6.5vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--on-night);
}
.section-body {
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.88;
  color: var(--on-night-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-hero-mobile);
  overflow: hidden;
}
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 620;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 12, 24, 0.28) 0%,
    rgba(13, 12, 24, 0) 26%,
    rgba(13, 12, 24, 0.4) 60%,
    rgba(13, 12, 24, 0.86) 84%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: -108px;
  padding: 0 var(--gutter) 44px;
  padding-inline: var(--gutter);
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(32px, 9vw, 41px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--on-night);
}
.hero-lede {
  margin: 0 0 26px;
  max-width: 30em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--on-night-muted);
}
.hero-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--on-night-faint);
}

@media (min-width: 900px) {
  .hero {
    background: var(--bg-hero);
    display: flex;
    align-items: stretch;
    min-height: 92vh;
  }
  .hero-copy {
    order: 1;
    z-index: 2;
    margin-top: 0;
    flex: none;
    width: min(46%, 620px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 96px 56px 64px;
  }
  .hero-title { font-size: clamp(44px, 4.2vw, 59px); line-height: 1.08; margin-bottom: 30px; }
  .hero-lede { font-size: 16.5px; line-height: 1.85; max-width: 470px; margin-bottom: 44px; }
  .hero-cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-note { margin: 0; font-size: 12.5px; }
  .hero-media {
    order: 2;
    position: relative;
    flex: 1;
    aspect-ratio: auto;
  }
  .hero-media::after { display: none; }
}

/* ==========================================================================
   Mechanism (04 しくみ)
   ========================================================================== */
.mechanism { background: var(--bg-mechanism); }
.mechanism-head { padding-bottom: 40px; }
@media (min-width: 900px) {
  .mechanism-head { padding-bottom: 8px; }
}

.mechanism-mobile { margin-top: 40px; }

.step-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.step-track::-webkit-scrollbar { display: none; }
.step-track:focus-visible { outline: 2px solid var(--gugu-purple); outline-offset: 4px; }

.step-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.step-slide-media {
  height: 280px;
  margin-bottom: 24px;
  overflow: hidden;
}
.step-slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* keep slide heights from jumping when copy length differs */
.step-slide .step-text { min-height: 4.5em; }

.step-progress {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}
.step-progress button {
  position: relative;
  flex: 1;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--on-night-hairline);
  cursor: pointer;
  transition: background 400ms var(--ease-sleep);
}
/* widen the tap target without changing the 2px hairline look */
.step-progress button::after {
  content: "";
  position: absolute;
  inset: -14px 0;
}
.step-progress button[data-active="true"] { background: var(--gugu-purple); }

.step-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-lavender);
}
.step-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--on-night);
}
.step-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(248, 246, 242, 0.82);
}

@media (min-width: 900px) {
  .mechanism-head { max-width: 720px; }
  .step-row {
    display: grid;
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    align-items: center;
    opacity: 0.4;
    transition: opacity 600ms var(--ease-sleep);
  }
  .step-row[data-active="true"] { opacity: 1; }
  .step-row:nth-of-type(even) { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .step-row:nth-of-type(even) .step-row-text { order: 2; text-align: right; }
  .step-row:nth-of-type(even) .step-row-media { order: 1; }
  .step-row:nth-of-type(odd) .step-row-text { order: 2; }
  .step-row:nth-of-type(odd) .step-row-media { order: 1; }
  .step-row-media { height: 520px; overflow: hidden; }
  .step-row-media img { width: 100%; height: 100%; object-fit: cover; }
  .step-row-text { padding: 0 64px; }
  .step-number {
    margin: 0 0 20px;
    font-size: clamp(56px, 6vw, 88px);
    line-height: 1;
    font-weight: 700;
    color: rgba(185, 166, 255, 0.34);
  }
  .step-row-title {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--on-night);
  }
  .step-row-body {
    margin: 0;
    max-width: 380px;
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--on-night-muted);
  }
  .step-row:nth-of-type(even) .step-row-body { margin-left: auto; }
  /* mobile-only stepper hidden on desktop, desktop rows hidden on mobile */
  .mechanism-mobile { display: none; }
}
@media (max-width: 899px) {
  .mechanism-desktop { display: none; }
}

/* ==========================================================================
   Video (05)
   ========================================================================== */
.video-section { background: var(--bg-video); }
.video-heading { margin-bottom: 40px; }
@media (min-width: 900px) { .video-heading { margin-bottom: 56px; font-size: 40px; } }

.media-frame {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 9 / 16;
  background: radial-gradient(120% 100% at 50% 0%, rgba(116, 88, 232, 0.16) 0%, rgba(13, 12, 24, 0) 60%), #12111f;
  border: 1px solid var(--on-night-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .media-frame { max-width: 420px; margin: 0 auto; }
}
.media-frame__video { width: 100%; height: 100%; object-fit: cover; }
.media-frame__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(248, 246, 242, 0.1);
  border: 1px solid var(--on-night-hairline);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.media-frame__play:hover { background: rgba(248, 246, 242, 0.18); }
.media-frame[data-playing="true"] .media-frame__play { opacity: 0; pointer-events: none; }
.media-frame__play svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--on-night); }
.media-frame__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.media-frame__label { font-size: 13px; color: var(--on-night-muted-2); }
.video-caption {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--on-night-faint);
}

/* ==========================================================================
   Device (07 いつものデバイスで)
   ========================================================================== */
.device { background: var(--bg-device); }
.device-figure { margin: 0 0 40px; }
.device-figure img { width: 260px; height: auto; margin-inline: auto; }
.device-figure[data-reveal] {
  transform: translateY(28px);
  transition-duration: calc(var(--dur-reveal) * 1.3);
}
.device-heading { margin: 0 0 28px; font-size: 31px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; text-align: center; }
.device-heading[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.device-heading-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-sleep),
              transform var(--dur-reveal) var(--ease-sleep);
}
.device-heading[data-revealed="true"] .device-heading-line {
  opacity: 1;
  transform: translateY(0);
}
.device-heading[data-revealed="true"] .device-heading-line--2 {
  transition-delay: 180ms;
}
.device-lines { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.device-lines p { font-size: 15px; line-height: 1.9; color: rgba(248, 246, 242, 0.8); margin: 0; }
.device-lines p strong { font-weight: 700; color: var(--on-night); }

@media (min-width: 900px) {
  .device .wrap {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 72px;
    align-items: center;
  }
  .device-figure { margin: 0; }
  .device-figure img { width: 100%; height: auto; }
  .device-heading { font-size: 52px; line-height: 1.24; margin-bottom: 36px; text-align: left; }
  .device-lines { text-align: left; }
  .device-lines p { font-size: 17px; }
}

/* ==========================================================================
   Monitor (08 先行モニター募集)
   ========================================================================== */
.monitor { background: var(--bg-monitor); }
.monitor-eyebrow { margin-bottom: 20px; }
.monitor-heading { font-size: 29px; line-height: 1.32; letter-spacing: -0.015em; margin-bottom: 24px; }
.monitor-heading span,
.monitor-copy span,
.monitor-detail-value span { display: inline-block; }
.monitor-copy span:first-child { display: block; }
.monitor-figure { margin: 0 0 32px; }
.monitor-figure img { width: 100%; height: 280px; object-fit: cover; }
.monitor-copy { display: flex; flex-direction: column; gap: 18px; margin-bottom: 44px; }
.monitor-copy p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--on-night-muted); }
.monitor-note { margin: 18px 0 0; font-size: 12px; line-height: 1.8; color: var(--on-night-muted); }

.monitor-detail {
  border-top: 1px solid var(--on-night-hairline);
  padding-top: 32px;
  margin-bottom: 32px;
}
.monitor-detail + .monitor-detail { margin-bottom: 40px; }
.monitor-detail-label { font-size: 12px; letter-spacing: 0.06em; color: var(--on-night-muted-2); margin-bottom: 12px; }
.monitor-detail-value { font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--on-night); margin-bottom: 10px; }
.monitor-detail-text { font-size: 14.5px; line-height: 1.85; color: var(--on-night-muted); margin: 0; }

.monitor-top .btn,
.monitor-top .monitor-note {
  display: none;
}
.monitor-cta-mobile { margin-top: 40px; }
.monitor-cta-mobile .monitor-note { margin-top: 18px; }

@media (max-width: 899px) {
  .monitor-copy { margin-bottom: 28px; }
  .monitor-figure { margin-bottom: 24px; }
  .monitor-figure img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center 40%;
  }
  .monitor-details {
    border-top: 1px solid var(--on-night-hairline);
    border-bottom: 1px solid var(--on-night-hairline);
    padding: 20px 0;
    display: grid;
    gap: 20px;
  }
  .monitor-detail,
  .monitor-detail + .monitor-detail {
    border-top: none;
    padding-top: 0;
    margin-bottom: 0;
  }
  .monitor-detail-label { margin-bottom: 6px; }
  .monitor-detail-value { font-size: 18px; margin-bottom: 6px; }
  .monitor-detail-value:last-child { margin-bottom: 0; }
  .monitor-detail-text { font-size: 14px; line-height: 1.8; }
  .monitor-cta-mobile { margin-top: 24px; }
  .monitor-cta-mobile .monitor-note { margin-top: 12px; text-align: center; }
}

@media (min-width: 900px) {
  .monitor-top {
    display: grid;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    gap: 72px;
    align-items: center;
    margin-bottom: 72px;
  }
  .monitor-heading { font-size: clamp(28px, 2.4vw, 38px); line-height: 1.32; margin-bottom: 32px; }
  .monitor-copy p { font-size: 17px; }
  .monitor-top .btn { display: inline-flex; }
  .monitor-top .monitor-note { display: block; }
  .monitor-cta-mobile { display: none; }
  .monitor-figure { margin: 0; }
  .monitor-figure img { height: 520px; }
  .monitor-details {
    border-top: 1px solid var(--on-night-hairline);
    padding-top: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 72px;
  }
  .monitor-detail,
  .monitor-detail + .monitor-detail { border-top: none; padding-top: 0; margin-bottom: 0; }
  .monitor-detail-value { font-size: 24px; }
  .monitor-detail-text { font-size: 16px; }
}

/* ==========================================================================
   FAQ (09)
   ========================================================================== */
.faq { background: var(--bg-faq); }
.faq-heading { margin-bottom: 28px; font-size: 26px; }
@media (min-width: 900px) {
  .faq .wrap {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
  .faq-heading { font-size: 36px; margin-bottom: 0; }
}

.faq-list {
  border-top: 1px solid var(--on-night-hairline);
  max-width: 880px;
}
.faq-item { border-bottom: 1px solid var(--on-night-hairline); }
.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-night);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex: none;
  display: inline-flex;
  font-size: 18px;
  color: var(--gugu-purple);
  transition: transform var(--dur-accordion) var(--ease-sleep);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  margin: 0;
  padding-bottom: 22px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.82;
  color: var(--on-night-muted);
}

/* ==========================================================================
   Final CTA + Footer (10)
   ========================================================================== */
.final-cta { background: var(--bg-final); text-align: left; }
.final-heading { font-size: 31px; line-height: 1.28; letter-spacing: -0.015em; margin-bottom: 28px; }
.final-copy { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.final-copy p { margin: 0; font-size: 15px; line-height: 1.9; color: rgba(248, 246, 242, 0.76); }

@media (min-width: 900px) {
  .final-cta { text-align: center; }
  .final-heading { font-size: 52px; line-height: 1.24; margin-bottom: 40px; }
  .final-copy { align-items: center; margin-bottom: 48px; }
  .final-copy p { font-size: 17px; }
}

.site-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--on-night-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer p { margin: 0; font-size: 13px; color: var(--on-night-muted-2); }
.site-footer-links a { color: var(--on-night-muted-2); text-decoration: underline; text-underline-offset: 2px; }
.site-footer-links a:hover { color: var(--on-night); }
@media (min-width: 900px) {
  .site-footer { margin-top: 96px; padding-top: 40px; align-items: center; gap: 12px; }
  .site-footer p { font-size: 14px; }
}

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-sleep),
              transform var(--dur-reveal) var(--ease-sleep);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .device-heading-line { transition: none; transition-delay: 0ms; }
  .step-track { scroll-behavior: auto; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .device-heading-line { opacity: 1; transform: none; }

/* ==========================================================================
   Monitor application modal (CTA popup — Hero Wireframes.dc.html Turn5/5a)
   ========================================================================== */
.monitor-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.monitor-modal[hidden] { display: none; }

.monitor-modal__overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  opacity: 0;
  transition: opacity var(--dur-modal-open) var(--ease-sleep);
}
.monitor-modal[data-open="true"] .monitor-modal__overlay { opacity: 1; }

.monitor-modal__card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 660px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 40px 48px 36px;
  background: var(--canvas);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(20, 16, 36, 0.32);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px));
  transition: opacity var(--dur-modal-open) var(--ease-sleep),
              transform var(--dur-modal-open) var(--ease-sleep);
}
.monitor-modal[data-open="true"] .monitor-modal__card {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.monitor-modal[data-closing="true"] .monitor-modal__overlay,
.monitor-modal[data-closing="true"] .monitor-modal__card {
  transition-duration: var(--dur-modal-close);
}

.monitor-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

.monitor-modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}
.monitor-modal__heading {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}
.monitor-modal__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-text);
}

.monitor-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
}
.monitor-modal__tab {
  min-height: 48px;
  padding: 0 8px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-control) var(--ease-sleep),
              border-color var(--dur-control) var(--ease-sleep);
}
.monitor-modal__tab:hover { color: var(--body-text); }
.monitor-modal__tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--gugu-purple);
}

.monitor-insta__steps {
  margin: 0 0 22px;
  padding-left: 1.4em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--body-text);
}
.monitor-insta__steps li::marker { color: var(--muted); font-weight: 700; }
.monitor-insta__account { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

.monitor-insta__handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 12px 0 18px;
  margin-bottom: 22px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
}
.monitor-insta__handle-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.monitor-insta__copy {
  flex: none;
  min-width: 72px;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--gugu-purple);
  cursor: pointer;
  transition: color var(--dur-control) var(--ease-sleep);
}
.monitor-insta__copy:hover { color: var(--gugu-purple-pressed); }

.monitor-modal__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.monitor-modal__field { display: flex; flex-direction: column; gap: 6px; }
.monitor-modal__input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
}
.monitor-modal__input::placeholder { color: var(--muted); }
.monitor-modal__input[aria-invalid="true"] { border-color: var(--muted); }
.monitor-modal__error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}
.monitor-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-text);
  cursor: pointer;
}
.monitor-modal__checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gugu-purple);
}
.monitor-modal__submit-row {
  display: flex;
  width: 64%;
  min-width: 340px;
}
.monitor-modal__submit-row .btn {
  min-height: 52px;
}
.monitor-modal__submit-row .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 送信中スピナー（data-loading が立っている間だけ表示） */
.btn__spinner {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: btn-spin 0.7s linear infinite;
}
.btn[data-loading="true"] .btn__spinner { display: block; }
.btn[data-loading="true"] { cursor: progress; }
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn__spinner { animation-duration: 2s; }
}

.monitor-modal__footer {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
}
.monitor-modal__disclaimer {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}
.monitor-modal__disclaimer a { color: var(--gugu-purple); text-decoration: underline; text-underline-offset: 2px; }
.monitor-modal__disclaimer a:hover { color: var(--gugu-purple-pressed); }
.monitor-modal__illustration {
  flex: none;
  width: 186px;
  height: 186px;
  object-fit: contain;
  margin: -96px -12px -10px 0;
  pointer-events: none;
}

.monitor-modal__success { text-align: center; padding: 24px 0; }
.monitor-modal__success-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

@media (max-width: 899px) {
  .monitor-modal__overlay { background: var(--modal-overlay-mobile); }
  .monitor-modal__card {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: translateY(calc(-50% + 10px));
    padding: 28px 24px 24px;
  }
  .monitor-modal[data-open="true"] .monitor-modal__card { transform: translateY(-50%); }
  .monitor-modal__header { gap: 8px; margin-bottom: 20px; }
  .monitor-modal__tabs { margin-bottom: 22px; }
  .monitor-modal__tab { font-size: 14px; padding: 0 4px 10px; }
  .monitor-insta__steps { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
  .monitor-insta__handle {
    min-height: 48px;
    padding: 0 8px 0 14px;
    margin-bottom: 18px;
  }
  .monitor-insta__handle-text { font-size: 14px; }
  .monitor-modal__heading { font-size: 27px; line-height: 1.25; }
  .monitor-modal__sub { font-size: 14px; }
  .monitor-modal__form { gap: 18px; }
  .monitor-modal__input { height: 48px; }
  .monitor-modal__submit-row { width: 100%; min-width: 0; }
  .monitor-modal__submit-row .btn { min-height: 48px; }
  .monitor-modal__footer { gap: 8px; margin-top: 14px; }
  .monitor-modal__disclaimer { font-size: 11.5px; line-height: 1.85; }
  .monitor-modal__illustration {
    width: 118px;
    height: 118px;
    margin: -52px -10px -8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monitor-modal__overlay,
  .monitor-modal__card,
  .monitor-modal__tab,
  .monitor-insta__copy {
    transition: none;
  }
}
