/* Automation Studio: hero with the store badge and waitlist, features with screenshots, specs. */
:root {
  --ground: #f6f8fc;
  --surface: #ffffff;
  --ink: #12151c;
  --muted: #565e6f;
  --faint: #8a91a1;
  --line: rgba(18, 21, 28, 0.10);
  --dot: rgba(80, 100, 140, 0.18);
  --accent: #0064ff;
  --accent-soft: rgba(0, 100, 255, 0.08);
  --accent-ink: #ffffff;
  --ok: #1b8a5a;
  --error: #c2362b;
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.06), 0 24px 64px rgba(11, 42, 91, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1017;
    --surface: #171b24;
    --ink: #eef1f7;
    --muted: #a6adbd;
    --faint: #7c8396;
    --line: rgba(255, 255, 255, 0.10);
    --dot: rgba(170, 185, 220, 0.11);
    --accent: #3b8cff;
    --accent-soft: rgba(59, 140, 255, 0.14);
    --ok: #4fd08f;
    --error: #ff7b6e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ground);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.brand img { border-radius: 7px; }

.top-actions { display: flex; gap: 16px; align-items: center; }
.top-actions a { font-size: 14px; color: var(--muted); text-decoration: none; }
.top-actions a:hover { color: var(--ink); }

.lang {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch .lang { padding: 4px 10px; }
.lang[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 0 40px;
  text-align: center;
}

.eyebrow, .kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
  text-wrap: pretty;
}

.get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
/* Apple's badge as supplied: never recolored or redrawn, at least 40px high. */
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; height: 52px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.soon { margin: 0; color: var(--muted); font-size: 15px; text-wrap: balance; }

.waitlist {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.waitlist-title { margin: 0 0 12px; font-weight: 600; text-wrap: balance; }

.field-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.button.quiet { color: var(--accent); background: var(--accent-soft); }
.button:disabled { opacity: 0.6; cursor: default; }

.status { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }

.legal-first-layer {
  max-width: 480px;
  margin: 8px auto 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Screenshots */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-shot { margin-bottom: 56px; }

/* Three pillars under the hero */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 96px;
  padding: 0;
  list-style: none;
}
.pillars li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pillars strong { display: block; margin-bottom: 6px; }
.pillars span { color: var(--muted); font-size: 15px; }

/* Alternating feature rows */
.features { display: grid; gap: 96px; margin-bottom: 96px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.feature.reverse .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin: 0 0 14px; }
.feature-text .kicker { color: var(--accent); }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0;
  font-size: 15px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.35em + 4px);
  width: 5px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* iPhone row */
.devices { text-align: center; margin-bottom: 96px; }
.section-lede {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--muted);
  text-wrap: pretty;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: 28px;
}
.phone { margin: 0; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.phone:nth-child(2) { transform: translateY(-24px); }

/* Screenshots inside Apple's product bezels: the image is the device, so no card chrome. */
.device img,
.phone.device img {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 24px 40px rgba(11, 42, 91, 0.16));
}
/* The laptop is wider than the column so the app inside stays readable. */
.hero-shot.device {
  position: relative;
  left: 50%;
  width: min(1360px, calc(100vw - 48px));
  transform: translateX(-50%);
}
@media (max-width: 700px) {
  /* Narrow screens get the plain window (see the <picture> in index.html). */
  .hero-shot.device { width: auto; left: 0; transform: none; }
  .hero-shot.device img {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    filter: none;
  }
}

/* Specs */
.specs { margin: 96px 0; }
.specs h2 { text-align: center; margin-bottom: 32px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 920px;
  margin: 0 auto;
}
.spec-grid div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.spec-grid dt { font-weight: 600; }
.spec-grid dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Closing call to action */
.closing {
  text-align: center;
  margin: 0 auto 80px;
  padding: 48px 24px;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.closing .section-lede { margin-bottom: 24px; }

.bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.bottom p { margin: 4px 0; }

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; color: var(--muted); }
.consent a { color: var(--accent); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent-actions .button { padding: 8px 16px; }

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

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-text { order: 0; }
  .pillars { grid-template-columns: 1fr; margin-bottom: 64px; }
  .features { gap: 64px; margin-bottom: 64px; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero { padding-top: 24px; }
  .field-row { flex-direction: column; }
  .nav-link { display: none; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phone:not(.device) img { border-radius: 16px; }
  .phone:nth-child(2) { transform: none; }
  .spec-grid div { grid-template-columns: 1fr; gap: 4px; }
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { color: var(--faint); font-size: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.legal th { white-space: nowrap; }
