/* The home page (#661), from look "A in our font" of the Claude Design canvas "Atlas landing page":
   white, large type, three iPhones with the real app, a voice section, a dark section, six features,
   the questions and a closing line. The app's fonts: Baloo Bhaijaan 2 for Arabic, Nunito for Latin.
   Dark follows the system unless theme.js set data-theme to the other one. Only / uses this file;
   the other pages keep site.css. */
:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --band: #f5f5f7;
  --line: #d9d9de;
  --button: #1d1d1f;
  --on-button: #ffffff;
  --night: #0b0b0c;
  --night-frame: #1a1a1c;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 9vw, 128px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --band: #111113;
    --line: #38383c;
    --button: #f5f5f7;
    --on-button: #1d1d1f;
    color-scheme: dark;
  }

  :root:not([data-theme="light"]) .shot-light {
    display: none;
  }

  :root:not([data-theme="light"]) .shot-dark {
    display: block;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --band: #111113;
  --line: #38383c;
  --button: #f5f5f7;
  --on-button: #1d1d1f;
  color-scheme: dark;
}

:root[data-theme="dark"] .shot-light {
  display: none;
}

:root[data-theme="dark"] .shot-dark {
  display: block;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Baloo Bhaijaan 2", "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: "Nunito", "Baloo Bhaijaan 2", system-ui, sans-serif;
}

.home {
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 700;
  text-wrap: balance;
}

a {
  color: inherit;
}

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bar at the top. */
.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme {
  display: grid;
  place-items: center;
}

.theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.theme path {
  fill: currentColor;
}

.language {
  padding: 0 12px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* The headline, the store buttons and the three phones. */
.hero {
  padding: clamp(40px, 7vw, 96px) var(--gutter) 0;
  text-align: center;
}

.eyebrow {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
}

.hero h1 {
  max-width: 980px;
  margin: 12px auto 0;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 1.3;
}

.lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.store.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.stores .store:not(.quiet) {
  min-height: 60px;
  padding: 0 30px;
  font-size: 18px;
}

.store svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

button.store {
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* The App Store waitlist on this page (#694): who it is for, the form, then Google Play, smaller,
   for a computer whose owner has an Android phone. */
.waitlist-line {
  margin-top: 30px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.waitlist-line svg {
  width: 17px;
  height: 17px;
  margin-inline-end: 6px;
  vertical-align: -2px;
  fill: currentColor;
}

.waitlist-line ~ .join,
.waitlist-line ~ .joined {
  margin-top: 14px;
}

.store.small {
  min-height: 42px;
  margin-top: 26px;
  padding: 0 18px;
  font-size: 14px;
}

.store.small svg {
  width: 16px;
  height: 16px;
}

.stage {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 46vw, 640px);
  margin: clamp(44px, 6vw, 80px) calc(-1 * var(--gutter)) 0;
  padding-top: 6px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* An iPhone drawn around a screen recorded on the simulator. Sizes follow the phone's width. */
.device {
  flex: none;
  container-type: inline-size;
}

.device.main {
  position: relative;
  z-index: 2;
  width: clamp(240px, 26vw, 370px);
}

.device.side {
  width: clamp(196px, 21vw, 300px);
  margin-top: clamp(44px, 5vw, 72px);
}

.device.side.before {
  margin-inline-end: clamp(-90px, -4vw, -40px);
}

.device.side.after {
  margin-inline-start: clamp(-90px, -4vw, -40px);
}

.device.feature {
  position: relative;
  width: clamp(240px, 25vw, 340px);
}

.frame {
  padding: 8px;
  padding: 3.2cqw;
  border-radius: 48px;
  border-radius: 17cqw;
  background: #0d0d0e;
  box-shadow: inset 0 0 0 1px #46464a, 0 3cqw 6cqw -2cqw rgb(0 0 0 / 0.25), 0 16cqw 30cqw -12cqw rgb(0 0 0 / 0.4);
}

.device.main .frame {
  box-shadow: inset 0 0 0 1px #46464a, 0 0 0 1px rgb(0 0 0 / 0.06), 0 4cqw 8cqw -3cqw rgb(0 0 0 / 0.3), 0 22cqw 40cqw -14cqw rgb(0 0 0 / 0.5);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
  border-radius: 14cqw;
}

.shot-dark {
  display: none;
}

/* The sections below the phones. */
.section {
  padding: var(--section) var(--gutter);
}

.band {
  background: var(--band);
}

.night {
  background: var(--night);
  color: #f5f5f7;
}

.split {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px clamp(40px, 7vw, 110px);
}

.split.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1 1 380px;
  min-width: 0;
}

.split-media {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

.kicker {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.night .kicker,
.night .split-text p {
  color: #a1a1a6;
}

.split h2 {
  margin-top: 10px;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.35;
}

.split-text p:last-child {
  max-width: 440px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.8;
}

.night .split-text p:last-child {
  color: #a1a1a6;
}

.night .frame {
  background: var(--night-frame);
  box-shadow: inset 0 0 0 1px #5a5a5e, 0 0 0 1px rgb(255 255 255 / 0.04), 0 30cqw 60cqw -20cqw rgb(212 235 76 / 0.16), 0 20cqw 36cqw -14cqw rgb(0 0 0 / 0.8);
}

/* What was said, beside the screen that recorded it. */
.callout {
  position: absolute;
  bottom: 19%;
  inset-inline-start: -10%;
  display: inline-flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 3.4cqw 5cqw;
  border-radius: 6cqw;
  background: rgb(20 20 22 / 0.92);
  color: #ffffff;
  font-size: max(14px, 5cqw);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6cqw 14cqw -5cqw rgb(0 0 0 / 0.6);
}

.callout svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: #d4eb4c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wide {
  max-width: 1080px;
  margin: 0 auto;
}

.wide > h2,
.questions h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.35;
}

.features {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  /* Two columns on a phone, three from a tablet up, so the six never leave one alone. */
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 26vw, 300px), 1fr));
  gap: 0 clamp(20px, 4vw, 56px);
}

.features > div {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.features h3 {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
}

.features p {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
}

.questions {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(40px, 7vw, 110px);
}

.questions h2 {
  flex: 1 1 260px;
}

.questions > div {
  flex: 2 1 480px;
  min-width: 0;
}

.questions > div > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.questions > div > div:last-child {
  border-bottom: 1px solid var(--line);
}

.questions h3 {
  font-size: 18px;
  font-weight: 700;
}

.questions p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.closing {
  padding: clamp(72px, 10vw, 150px) var(--gutter) clamp(56px, 7vw, 96px);
  text-align: center;
}

.closing > img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.35);
}

.closing h2 {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.35;
}

/* Contact (#694): a question in the reader's voice, then three buttons, WhatsApp filled since most
   people write there. */
.closing > p {
  margin-top: clamp(56px, 7vw, 88px);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.contact-links a:first-child {
  background: #25d366;
  color: #0b0b0c;
  box-shadow: none;
}

.contact-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.bottom a {
  color: var(--muted);
  text-decoration: none;
}

/* Nunito sits lower and shorter than Baloo Bhaijaan 2, so English headings sit closer. */
html[lang="en"] .hero h1 {
  line-height: 1.12;
}

html[lang="en"] .split h2,
html[lang="en"] .wide > h2,
html[lang="en"] .questions h2,
html[lang="en"] .closing h2 {
  line-height: 1.2;
}
