/* Together website – same palette as the app: soft pink, forest green, cream, raspberry. */
:root {
  --blossom: #FBADB8;
  --blossom-deep: #F59AA8;
  --forest: #0D4A3E;
  --forest-soft: #356458;
  --cream: #FFF3EC;
  --raspberry: #B02442;
  --honey: #D99A2B;
  --live: #1FA463;
  --glass: rgba(255, 255, 255, 0.38);
  --glass-strong: rgba(255, 255, 255, 0.55);
  --stroke: rgba(13, 74, 62, 0.12);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 28px;
  --page: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blossom);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

em { font-style: italic; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 173, 184, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
}

.brand svg { width: 34px; height: 34px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons and pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:active { transform: scale(0.97); }
.button.primary { background: var(--forest); color: var(--cream); }
.button.secondary { border-color: rgba(13, 74, 62, 0.55); color: var(--forest); }
.button.on-dark { background: var(--cream); color: var(--forest); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button[aria-disabled="true"] { cursor: default; }

/* The contact button shows the address where there's room, and "Contact us" where there isn't. */
.contact .contact-short { display: none; }

@media (max-width: 900px) {
  .contact .contact-email { display: none; }
  .contact .contact-short { display: inline; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--raspberry);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Screens change with a short fade instead of sliding. */
  .device { transition: opacity 0.2s linear; }
  .phones-dots button::before { transition: none; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
}

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

.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  letter-spacing: -0.01em;
  margin: 22px 0 22px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--forest-soft);
  max-width: 34em;
  margin: 0 0 30px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest-soft);
}

.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; flex: none; }

/* Phone carousel: real screens from the app in an iPhone frame, the next ones waiting either side */

.hero { overflow-x: clip; }

.phones {
  --device-w: 264px;
  --bezel: 10px;
  /* iPhone screen corners are about 13.7% of the screen's width. */
  --screen-radius: calc((var(--device-w) - 2 * var(--bezel)) * 0.137);
  justify-self: center;
  width: 100%;
  max-width: 480px;
  -webkit-user-select: none;
  user-select: none;
}

.phones-stage {
  position: relative;
  /* One device tall: the screen is 1206 × 2622, plus the bezel above and below. */
  height: calc((var(--device-w) - 2 * var(--bezel)) * 2.174 + 2 * var(--bezel));
  perspective: 1600px;
  touch-action: pan-y;
}

.device {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--device-w);
  margin: 0 0 0 calc(var(--device-w) / -2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

/* Without JavaScript, just the first screen. */
.phones:not(.is-ready) .device:first-child { opacity: 1; }

.device[data-pos="0"] { opacity: 1; z-index: 3; pointer-events: auto; }
.device[data-pos="1"] { transform: translateX(56%) scale(0.8) rotateY(-14deg); opacity: 1; z-index: 2; pointer-events: auto; cursor: pointer; }
.device[data-pos="-1"] { transform: translateX(-56%) scale(0.8) rotateY(14deg); opacity: 1; z-index: 2; pointer-events: auto; cursor: pointer; }
.device[data-pos="2"] { transform: translateX(84%) scale(0.64) rotateY(-20deg); z-index: 1; }
.device[data-pos="-2"] { transform: translateX(-84%) scale(0.64) rotateY(20deg); z-index: 1; }

.device-frame {
  position: relative;
  padding: var(--bezel);
  border-radius: calc(var(--screen-radius) + var(--bezel));
  background: #0a0e0d;
  box-shadow:
    inset 0 0 0 1.5px #5b6763,
    inset 0 0 0 3.5px #1d2523,
    0 40px 70px -30px rgba(13, 74, 62, 0.55),
    0 16px 28px -18px rgba(13, 74, 62, 0.4);
}

/* A pink wash pushes the phones either side back into the page. */
.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blossom);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.device[data-pos="1"] .device-frame::after,
.device[data-pos="-1"] .device-frame::after { opacity: 0.38; }

.device-button {
  position: absolute;
  z-index: -1;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #26302d, #66726e);
}

.device-button.action { left: -2.5px; top: 16%; height: 5%; }
.device-button.volume-up { left: -2.5px; top: 24%; height: 8.5%; }
.device-button.volume-down { left: -2.5px; top: 34.5%; height: 8.5%; }
.device-button.power { right: -2.5px; top: 27%; height: 13%; }

.device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: var(--screen-radius);
  background: var(--blossom);
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}

.device-island {
  position: absolute;
  top: 1.26%;
  left: 50%;
  width: 31%;
  aspect-ratio: 125 / 37;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Soft glare across the glass. */
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.phones-caption {
  margin: 28px 0 0;
  min-height: 1.4em;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}

.phones-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.phones-controls[hidden] { display: none; }

.round-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--glass);
  color: var(--forest);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.round-button:active { transform: scale(0.94); }
.round-button svg { width: 16px; height: 16px; }
.round-button[data-state="playing"] .icon-play,
.round-button[data-state="paused"] .icon-pause { display: none; }

.phones-dots { display: flex; }

/* Each dot sits in a larger tap area. */
.phones-dots button {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

.phones-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 74, 62, 0.28);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.phones-dots button[aria-current="true"]::before { width: 24px; background: var(--forest); }

.round-button:focus-visible,
.phones-dots button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

@media (hover: hover) {
  .round-button:hover { background: var(--glass-strong); }
  .phones-dots button:hover::before { background: rgba(13, 74, 62, 0.5); }
  .phones-dots button[aria-current="true"]:hover::before { background: var(--forest); }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0 14px; }
.section-head p { color: var(--forest-soft); font-size: 18px; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}

.feature h3 { font-size: 24px; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--forest-soft); font-size: 16px; }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
}

.icon-tile svg { width: 24px; height: 24px; }

/* Private by design */

.private {
  border-radius: 36px;
  background: var(--forest);
  color: var(--cream);
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.private h2 { font-size: clamp(34px, 4.4vw, 52px); max-width: 14em; }
.private > p { color: rgba(255, 243, 236, 0.8); max-width: 38em; font-size: 18px; margin: 16px 0 36px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }

.pillar {
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 243, 236, 0.15);
}

.pillar h3 { font-size: 22px; margin-bottom: 6px; }
.pillar p { margin: 0; color: rgba(255, 243, 236, 0.8); font-size: 15px; }

.private .rings {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  opacity: 0.5;
  pointer-events: none;
}

/* How it works */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }

.step {
  border-top: 1.5px solid rgba(13, 74, 62, 0.3);
  padding-top: 20px;
}

.step .number { font-family: var(--serif); font-size: 22px; color: var(--raspberry); }
.step h3 { font-size: 26px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--forest-soft); }

/* Final call to action */

.final {
  text-align: center;
  padding: 96px 0;
}

.final h2 { font-size: clamp(38px, 5vw, 60px); margin: 0 auto 16px; max-width: 13em; }
.final p { color: var(--forest-soft); font-size: 18px; margin: 0 0 30px; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--stroke);
  padding: 36px 0 48px;
  font-size: 15px;
  color: var(--forest-soft);
}

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

footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal pages ---------- */

.legal main .wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 14px;
}

.toc .eyebrow { display: block; margin-bottom: 14px; color: var(--forest-soft); font-size: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: block;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--forest-soft);
}
.toc a:hover { background: var(--glass); color: var(--forest); }

.legal article { max-width: 44em; }
.legal h1 { font-size: clamp(40px, 5vw, 58px); }
.legal .updated { color: var(--forest-soft); font-size: 15px; margin: 10px 0 34px; }

.legal h2 {
  font-size: 28px;
  margin: 48px 0 14px;
  scroll-margin-top: 96px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.legal h2 .number { color: var(--raspberry); font-size: 18px; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { color: #164f43; }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }

.summary {
  border-radius: 22px;
  padding: 20px 22px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  margin: 0 0 8px;
}

.summary p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .grid, .pillars, .steps { grid-template-columns: 1fr 1fr; }
  .legal main .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  /* On narrower screens the page starts with the text; the side list would push it off screen. */
  .toc { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links a:not(.button) { display: none; }
  .hero { padding: 44px 0 64px; }
  section { padding: 64px 0; }
  .grid, .pillars, .steps { grid-template-columns: 1fr; }
  .private { padding: 32px 22px; border-radius: 28px; }
  .phones { --device-w: min(236px, 62vw); --bezel: 9px; }
}
