/* Mitamaton product page: GM chrome + Mitamaton dark body */

:root {
  --gm-charcoal: #111413;
  --gm-graphite: #4B4F52;
  --gm-orange: #E8593C;
  --gm-cream: #F4F1E9;
  --gm-paper: #FBFAF6;
  --gm-divider: #E6E1D6;
  --gm-gray-warm: #8C867C;
  --gm-font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gm-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--gm-font-sans);
  color: var(--gm-charcoal);
  background: var(--gm-cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

/* ---- GM chrome: nav ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--gm-paper);
  border-bottom: 1px solid var(--gm-divider);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-nav .mark { width: 32px; height: 32px; flex-shrink: 0; }

.site-nav .wordmark {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.12em;
}

.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--gm-graphite);
  transition: color 140ms ease;
}

.site-nav .nav-link:hover { color: var(--gm-charcoal); }

.site-nav .nav-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--gm-charcoal);
  color: var(--gm-cream);
  white-space: nowrap;
  transition: background 140ms ease, transform 120ms ease;
}

.site-nav .nav-cta:hover { background: #1e2322; }
.site-nav .nav-cta:active { transform: scale(0.98); }

@media (max-width: 560px) {
  .site-nav .nav-link { display: none; }
  .site-nav { padding: 12px 12px 12px 16px; }
  .site-nav .wordmark { font-size: 12px; letter-spacing: 0.1em; }
  .site-nav .nav-cta { padding: 8px 12px; font-size: 13px; }
}

/* ---- Mitamaton body canvas ---- */
.mt-body {
  margin-top: 60px;
  background: var(--mt-world-moon-garden);
  color: var(--mt-ink-pearl-on-glass);
  font-family: var(--mt-font-sans);
  /* Hard seam: cream nav meets dark canvas with no blend */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.mt-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--mt-border-frosted);
}

.mt-section:last-of-type { border-bottom: 0; }

.mt-eyebrow {
  display: inline-block;
  font-family: var(--mt-font-mono);
  font-size: var(--mt-type-label-size);
  font-weight: 500;
  letter-spacing: var(--mt-type-label-tracking);
  text-transform: uppercase;
  color: var(--mt-ink-label);
  margin-bottom: 14px;
}

.mt-display {
  font-family: var(--mt-font-voice);
  font-size: clamp(36px, 6vw, var(--mt-type-display-lg));
  font-weight: 500;
  letter-spacing: var(--mt-type-display-tracking);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--mt-ink-pearl);
}

.mt-h2 {
  font-family: var(--mt-font-sans);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mt-ink-pearl);
  margin-bottom: 16px;
}

.mt-lede {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--mt-ink-pearl-body);
  max-width: 42ch;
}

.mt-body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mt-ink-pearl-body);
  max-width: 58ch;
}

.mt-body-text + .mt-body-text { margin-top: 12px; }

.mt-link {
  color: var(--mt-accent-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.mt-link:hover { color: var(--mt-accent-action-glow); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--mt-border-frosted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px 56px;
  align-items: center;
}

.hero-copy .mt-display {
  font-size: clamp(40px, 7vw, 60px);
  margin-bottom: 18px;
}

.hero-tagline {
  font-family: var(--mt-font-sans);
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--mt-ink-pearl-on-glass);
  margin-bottom: 18px;
  max-width: 22ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0a0c10;
  color: var(--mt-ink-pearl);
  font-family: var(--mt-font-voice);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--mt-border-hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, transform 120ms ease, background 160ms ease;
}

.btn-primary .arrow {
  color: var(--mt-accent-action);
  font-family: var(--mt-font-sans);
  font-size: 16px;
  line-height: 1;
}

.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #12151c;
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mt-ink-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

.btn-ghost:hover { color: var(--mt-ink-pearl); }

.hero-visual {
  justify-self: end;
  width: min(100%, 320px);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    justify-self: center;
    width: min(100%, 280px);
  }
  .hero { padding: 56px 0 72px; }
}

/* ---- Phone frame ----
   Proportioned to the modern iPhone the captures come from: thin uniform
   bezel, deep continuous corners, titanium edge highlight. The Dynamic
   Island is part of the real screenshots, so the frame never fakes one. */
.phone {
  position: relative;
  border-radius: 52px;
  padding: 11px;
  background: #0b0c0e;
  border: 1.5px solid #3a3d42;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
}

.phone-screen {
  border-radius: 42px;
  overflow: hidden;
  background: #050608;
  aspect-ratio: 1206 / 2622;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(80% 50% at 50% 20%, rgba(16, 122, 238, 0.18), transparent 70%),
    linear-gradient(180deg, #12151c 0%, #0a0c10 100%);
  border: 0;
}

.phone-placeholder span {
  font-family: var(--mt-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mt-ink-label);
  text-align: center;
  line-height: 1.5;
}

/* ---- What it does ---- */
.capability {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  gap: 40px 56px;
  align-items: center;
  padding: 36px 0;
}

.capability + .capability {
  border-top: 1px solid var(--mt-border-frosted);
}

.capability:nth-of-type(even) {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.1fr);
}

.capability:nth-of-type(even) .cap-copy { order: 2; }
.capability:nth-of-type(even) .cap-visual { order: 1; }

.cap-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mt-ink-pearl);
  margin-bottom: 10px;
}

.cap-visual {
  width: min(100%, 220px);
  justify-self: end;
}

.capability:nth-of-type(even) .cap-visual { justify-self: start; }

@media (max-width: 760px) {
  .capability,
  .capability:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .capability:nth-of-type(even) .cap-copy,
  .capability:nth-of-type(even) .cap-visual { order: initial; }
  .cap-visual,
  .capability:nth-of-type(even) .cap-visual {
    justify-self: center;
    width: min(100%, 200px);
  }
}

/* ---- Gallery ---- */
.gallery-head {
  margin-bottom: 36px;
  max-width: 40ch;
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-rail::-webkit-scrollbar { height: 6px; }
.gallery-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.gallery-item {
  scroll-snap-align: start;
}

.gallery-item .phone { border-radius: 38px; padding: 8px; }
.gallery-item .phone-screen { border-radius: 31px; }

.gallery-caption {
  margin-top: 10px;
  font-family: var(--mt-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mt-ink-label);
}

/* ---- Beta + Pengu ---- */
.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px 56px;
  align-items: start;
}

.beta-copy .mt-h2 { max-width: 16ch; }

.beta-form {
  margin-top: 28px;
  max-width: 420px;
}

.beta-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: var(--mt-surface-raised);
  border: 1px solid var(--mt-border-hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.field input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mt-ink-pearl);
  padding: 12px 14px;
  outline: none;
}

.field input::placeholder { color: var(--mt-ink-tertiary); }

.field button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--mt-ink-pearl);
  color: #0a0c10;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, transform 120ms ease;
}

.field button:hover { background: #fff; }
.field button:active { transform: scale(0.98); }
.field button:disabled { opacity: 0.6; cursor: wait; }

.field + .field { margin-top: 8px; }

.field input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mt-ink-pearl);
  padding: 12px 14px;
  outline: none;
  font: inherit;
}

.field select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mt-ink-pearl);
  padding: 12px 34px 12px 14px;
  outline: none;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Until something is picked, the prompt option reads as a placeholder rather
   than as an answer the user already gave. */
.field select:invalid { color: var(--mt-ink-tertiary); }

/* Native option lists inherit the OS surface, not ours, so set them explicitly
   or the menu renders dark-on-dark. */
.field select option { background: #14171d; color: #e9ecf2; }
.field select option[disabled] { color: #7d838f; }

.field.has-select {
  position: relative;
}

.field.has-select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--mt-ink-tertiary);
  border-bottom: 1.5px solid var(--mt-ink-tertiary);
  transform: rotate(45deg);
  pointer-events: none;
}

.fieldhint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mt-ink-tertiary);
}

/* The submit sits below both fields rather than inside the first one, so
   nobody submits on the email field before reaching the Google field. */
.beta-submit {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--mt-ink-pearl);
  color: #0a0c10;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease;
}

.beta-submit:hover { background: #fff; }
.beta-submit:active { transform: scale(0.98); }
.beta-submit:disabled { opacity: 0.6; cursor: wait; }

.formnote {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mt-ink-tertiary);
}

.formnote.error { color: var(--mt-signal-error); }

.beta-done {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--mt-radius-card);
  background: var(--mt-surface-strip);
  border: 1px solid var(--mt-border-hairline);
}

.beta-done .done-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mt-ink-pearl);
  margin-bottom: 6px;
}

.beta-done .done-sub {
  font-size: 14px;
  color: var(--mt-ink-pearl-body);
}

.shells-block { min-width: 0; }

.shells-label {
  font-family: var(--mt-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mt-ink-label);
  margin-bottom: 16px;
}

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

.shells-solid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.shell-card {
  text-align: center;
}

.shell-card img {
  width: 100%;
  aspect-ratio: 760 / 900;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 55%),
    #07090f;
  border-radius: var(--mt-radius-glyph);
  border: 1px solid var(--mt-border-frosted);
}

.shells-solid .shell-card img {
  opacity: 0.92;
}

.shell-name {
  margin-top: 8px;
  font-family: var(--mt-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-ink-label);
}

.shells-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mt-ink-tertiary);
  max-width: 48ch;
}

@media (max-width: 900px) {
  .beta-grid { grid-template-columns: 1fr; gap: 40px; }
  .shells-clear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .shells-clear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shells-solid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Privacy / availability ---- */
.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 720px) {
  .split-two { grid-template-columns: 1fr; gap: 40px; }
}

.mt-list {
  list-style: none;
  margin-top: 18px;
}

.mt-list li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  color: var(--mt-ink-pearl-body);
  font-size: 15px;
  line-height: 1.55;
}

.mt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mt-accent-action);
}

/* ---- Reveal motion (progressive: only hides when JS class is present) ---- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- GM footer ---- */
.pagefoot {
  background: var(--gm-cream);
  color: var(--gm-gray-warm);
  font-family: var(--gm-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 28px 24px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gm-divider);
}

.pagefoot a {
  color: var(--gm-graphite);
  text-decoration: none;
}

.pagefoot a:hover { color: var(--gm-orange); }

.pagefoot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Official Apple product-bezel renders (screenshots pre-composited) ---- */
.device { margin: 0; }
.device img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* ---- Brand kit compliance (2026-08-06) ----
   The wordmark is locked custom vector lettering, never font-rendered. */
.mt-wordmark-title { margin: 0 0 18px; }
.mt-wordmark-title img { display: block; width: min(100%, 420px); height: auto; }

/* Marketing register: nature imagery outside chrome — the provisional
   Milky Way habitat grounds the hero, under a Night scrim for legibility. */
.hero {
  background:
    linear-gradient(180deg, rgba(20, 20, 22, 0.72) 0%, rgba(20, 20, 22, 0.82) 55%, var(--mt-neutral-night) 100%),
    url("/assets/brand/milky-way.webp") center 30% / cover no-repeat;
}
