@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #ffa3cb;
  --teal: #3dd6c3;
  --yellow: #ffd23f;
  --red: #f95a2c;
  --ink: #18191f;
  --paper: #ffffff;
  --muted: #4a4b52;
  --radius: 22px;
  --border: 3px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede { font-size: 1.25rem; font-weight: 600; }

/* Header */

.site-header { background: var(--pink); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .brand img { height: 25px; width: auto; }

.site-header nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: var(--border);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: var(--border);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.button.secondary { background: var(--paper); }

/* Apple's badge, unaltered, with our own "Coming soon" tag beneath it. */
.app-store {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.app-store img { width: auto; height: 52px; }

.app-store .soon {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.buttons { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }

/* Sections */

section { padding: 88px 0; }

.pink { background: var(--pink); }
.teal { background: var(--teal); }
.yellow { background: var(--yellow); }

.hero { padding: 56px 0 0; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.hero-copy { align-self: center; padding-bottom: 72px; }

/* A tall phone that runs off the bottom of the hero. */
.hero-phone {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  height: 600px;
  border: 14px solid var(--ink);
  border-bottom: 0;
  border-radius: 64px 64px 0 0;
  background: var(--ink);
  overflow: hidden;
}

.hero-phone img {
  width: 100%;
  height: auto;
  border-radius: 50px 50px 0 0;
}

.hero .punchline {
  display: block;
  margin-top: 0.35em;
  font-size: 0.42em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  font-style: italic;
}

.hero .lede { max-width: 640px; margin: 0 0 0.6em; }

.hero .question {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.split.flip > :first-child { order: 2; }

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 10px solid var(--ink);
  border-radius: 48px;
  background: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
}

/* The Dynamic Island, which simulator captures leave out. */
.phone::before,
.hero-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 30%;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 1;
}

.phone::before { top: 9px; height: 20px; }

.quote {
  margin: 0 0 1em;
  padding: 18px 22px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
}

.siri-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.siri-replies li {
  padding: 8px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 6px 0 var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.steps li:nth-child(2)::before { background: var(--pink); }
.steps li:nth-child(3)::before { background: var(--teal); }

.steps p { margin: 0; }

/* Science */

.note {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* FAQ */

.faq { max-width: 760px; }

.faq details {
  border-bottom: 2px solid rgba(24, 25, 31, 0.15);
}

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 800;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { padding-bottom: 8px; }

/* Closing */

.closing { text-align: center; }
.closing .buttons { justify-content: center; }

.closing h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); }

.closing h2 span { white-space: nowrap; }
/* Footer */

.site-footer {
  padding: 48px 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand img { height: 21px; width: auto; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 700;
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

.site-footer small { width: 100%; opacity: 0.7; }

/* Policy page */

.policy { padding: 64px 0 88px; }

.policy .wrap { max-width: 760px; }

.policy h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }

.policy h2 {
  margin-top: 1.6em;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.policy .summary {
  margin: 28px 0;
  padding: 24px 28px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--yellow);
}

.policy .summary h2 { margin-top: 0; }
.policy .summary ul { margin: 0; padding-left: 1.2em; }
.policy .summary li { margin-bottom: 0.3em; font-weight: 600; }

/* Small screens */

@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .site-header.has-menu .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .has-menu .menu-toggle { display: flex; }
  .has-menu nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; font-size: 1.1rem; }
  .has-menu.menu-open nav { display: flex; }
  .has-menu nav a { padding: 14px 0; border-top: 2px solid var(--ink); }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-copy { padding-bottom: 40px; }
  .hero .lede, .hero .question { margin-left: auto; margin-right: auto; }
  .hero .buttons { justify-content: center; }
  .hero-phone { justify-self: center; max-width: 320px; height: 440px; border-width: 11px; border-radius: 50px 50px 0 0; }
  .hero-phone img { border-radius: 39px 39px 0 0; }
}
