/* Atriamas site. Plain CSS, no libraries, no web fonts: the system font is SF Pro on
   Apple devices and Roboto/Segoe elsewhere, which is what makes it feel native. */

:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --accent: #0a7c66;
  --accent-ink: #ffffff;
  --link: #0066cc;
  --bubble: #e7f7ef;
  --sos: #d70015;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);

  /* Motion (strong custom curves; UI under 300 ms, scroll reveals a little longer) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --press: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #a1a1a6;
    --line: #424245;
    --bg: #000000;
    --bg-alt: #161617;
    --card: #1d1d1f;
    --accent: #2fc9a4;
    --accent-ink: #00241c;
    --link: #2997ff;
    --bubble: #12352a;
    --sos: #ff453a;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Navigation: thin, translucent, always there ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.brand {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Type ---------- */
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}
.display {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.04;
  font-weight: 700;
}
.headline {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
}
.lede {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.38;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.center {
  text-align: center;
}
.measure {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons: pill, press feedback ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  transition:
    transform var(--press) var(--ease-out),
    background-color 200ms ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-link {
  color: var(--link);
  padding-left: 6px;
  padding-right: 6px;
}
.btn-link::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transform: translateY(-1px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  }
  .btn-link:hover {
    text-decoration: underline;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
.alt {
  background: var(--bg-alt);
}

/* Hero */
.hero {
  padding: 72px 0 0;
  overflow: hidden;
}
.hero .lede {
  margin: 18px auto 0;
  max-width: 620px;
}
.stage {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: flex-end;
}

/* ---------- Phones (drawn in CSS, not screenshots) ---------- */
.phone {
  width: 280px;
  flex: none;
  border-radius: 44px;
  padding: 12px;
  background: #1d1d1f;
  box-shadow: var(--shadow);
}
.screen {
  border-radius: 34px;
  overflow: hidden;
  height: 500px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-align: left;
}
.status {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 6px;
  font-size: 13px;
  font-weight: 600;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: var(--accent-ink);
}
.chat-head b {
  display: block;
  font-size: 15px;
}
.chat-head small {
  color: var(--muted);
  font-size: 12px;
}
.thread {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 92%;
  background: var(--bubble);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.bubble .sos {
  color: var(--sos);
  font-weight: 700;
}
.bubble time {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.quick {
  max-width: 92%;
  background: var(--card);
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.reply {
  align-self: flex-end;
  max-width: 80%;
  background: var(--card);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 12px;
  font-size: 14px;
}

.call {
  background: linear-gradient(180deg, #2b3a36 0%, #121816 100%);
  color: #fff;
  align-items: center;
  text-align: center;
}
.call .status {
  width: 100%;
  color: #fff;
}
.call .who {
  margin-top: 64px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.call .what {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.call .said {
  margin: 40px 22px 0;
  padding: 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}
.call .keys {
  margin-top: auto;
  margin-bottom: 44px;
  display: flex;
  gap: 56px;
}
.call .key {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.call .key i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.call .key.go i {
  background: #30d158;
  font-weight: 600;
}

/* ---------- Timeline: the ladder at a glance ---------- */
.ladder {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.ladder::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--line);
}
.ladder li {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.ladder .t {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.ladder li:first-child .t {
  background: var(--accent);
  color: var(--accent-ink);
}
.ladder h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.ladder p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.stop {
  margin: 48px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 17px;
}
.stop b {
  color: var(--accent);
}

/* ---------- Feature tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.tile {
  background: var(--card);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.alt .tile {
  box-shadow: none;
}
.tile .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 18px;
}
.tile .icon svg {
  width: 24px;
  height: 24px;
}
.tile h3 {
  font-size: 24px;
  line-height: 1.17;
  margin-bottom: 8px;
}
.tile p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Promise list ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}
.promises h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.promises p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Contact ---------- */
.contact-card {
  margin: 40px auto 0;
  max-width: 640px;
  background: var(--card);
  border-radius: 28px;
  padding: 8px 28px;
  box-shadow: var(--shadow);
}
.alt .contact-card {
  box-shadow: none;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row dt {
  color: var(--muted);
}
.row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0 32px;
}
footer .fine {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
footer .bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
footer a {
  color: var(--ink-2);
}

/* ---------- Legal page ---------- */
.doc {
  padding: 64px 0 96px;
}
.doc .wrap {
  max-width: 720px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  margin-bottom: 10px;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 36px;
}
.doc h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}

/* ---------- Motion ----------
   Hero: a CSS-only rise on load that always ends visible.
   Below the fold: the script marks items "later" and reveals them on scroll. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}
.reveal.later {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.later.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
  .reveal.later {
    transform: none;
    transition: opacity 300ms ease;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  section {
    padding: 72px 0;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .promises {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ladder {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
  .ladder::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .ladder li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    text-align: left;
    padding: 0;
  }
  .ladder .t {
    margin: 0;
    grid-row: span 2;
  }
  .ladder h3 {
    align-self: end;
  }
}
@media (max-width: 640px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a.hide-sm {
    display: none;
  }
  .stage {
    gap: 14px;
  }
  .phone {
    width: 238px;
    border-radius: 38px;
    padding: 10px;
  }
  .screen {
    height: auto;
    min-height: 420px;
    padding-bottom: 14px;
    border-radius: 30px;
  }
  .stage .phone + .phone {
    display: none;
  }
  .tile {
    padding: 28px;
    border-radius: 24px;
  }
  .row {
    flex-direction: column;
    gap: 2px;
  }
  .row dd {
    text-align: left;
  }
}
