/* The landing page: the hero, the app in a window, then quiet sections divided by space and a hairline. */

/* Hero */
.hero {
  position: relative;
  padding-block: var(--space-18) var(--space-8);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 640px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-muted);
}

.eyebrow b {
  color: var(--color-ink);
  font-weight: 600;
}

a.eyebrow {
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.eyebrow:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-line));
  color: var(--color-ink);
}

.spark {
  width: 14px;
  height: 14px;
  flex: none;
}

.hero h1 {
  max-width: 100%;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}

/* One sentence a line on wider screens; a phone wraps them as it needs. */
.hero h1 .line {
  display: block;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-spark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.alt-download {
  margin: calc(var(--space-3) * -1) 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  color: var(--color-muted);
  font-size: 13px;
}

/* The app in a window, with a tab per screen */
.showcase {
  padding-block: var(--space-2) var(--space-18);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.tab {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.tab:hover {
  color: var(--color-ink);
}

.tab[aria-selected="true"] {
  background: var(--color-surface);
  border-color: var(--color-line);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}

.window {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window .bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface-2);
}

.window .bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-line);
}

.window .bar span {
  margin-inline: auto;
  transform: translateX(-24px);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.screen {
  position: relative;
  aspect-ratio: 1280 / 800;
  max-width: 100%;
  background: var(--color-surface-2);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  max-width: 60ch;
  min-height: 3.2em;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--color-muted);
  font-size: 15px;
}

/* Sections */
section.block {
  padding-block: var(--space-18);
  border-top: 1px solid var(--color-line);
}

section.block h2 {
  max-width: 22ch;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 650;
}

.sub {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: var(--text-md);
  color: var(--color-muted);
}

/* Free Apple ID limits */
.limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.limit {
  padding: var(--space-6);
  background: var(--color-surface);
}

.limit .n {
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.limit .n small {
  margin-inline-start: var(--space-1);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.limit p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--color-muted);
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px var(--space-12);
  margin-top: 44px;
}

.feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-4);
}

.feature .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.feature .ic svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: var(--space-1) 0 0;
  font-size: 15px;
  color: var(--color-muted);
}

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

/* How it works: three steps in order */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.step {
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-line);
}

.step:first-child {
  border-top-color: var(--color-accent);
}

.step .no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

.step h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.step p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--color-muted);
}

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

/* Open by design */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-12);
  align-items: start;
}

.trust ul {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-3);
  font-size: 15px;
  color: var(--color-muted);
}

.trust li b {
  color: var(--color-ink);
  font-weight: 600;
}

.trust li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-ok);
}

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

.terminal {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-terminal-bg);
  color: var(--color-terminal-ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.terminal .tb {
  display: flex;
  gap: 6px;
  padding: var(--space-3) 14px;
  border-bottom: 1px solid var(--color-terminal-line);
}

.terminal .tb i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b2d4d;
}

.terminal pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.terminal .c {
  color: var(--color-terminal-dim);
}

.terminal .g {
  color: #4ade80;
}

.terminal .y {
  color: #fbbf24;
}

/* Roadmap */
.roadmap {
  display: grid;
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-line);
}

.phase {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.phase .pn {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.phase h3 {
  font-size: var(--text-base);
  font-weight: 600;
}

.phase p {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

@media (max-width: 560px) {
  .phase {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .phase .chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* FAQ (the first questions; the FAQ page has them all) */
.faq {
  display: grid;
  gap: 10px;
  margin-top: var(--space-8);
}

.faq-more {
  margin: var(--space-5) 0 0;
}

/* Closing call to action */
.final {
  padding-block: 88px;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.final .wrap {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.final img {
  width: 72px;
  height: 72px;
}

.final h2 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  font-weight: 650;
}
