/* anzen site: the app's v2 look (docs/DESIGN.md). Paper, not glass; ink text; one brand colour; Figtree. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --canvas: #eee7d9;
  --card: #faf7f1;
  --card-raised: #fffcf7;
  --well: #e6dfd1;
  --sheet: #f1f0ee;
  --ink: #1e1b16;
  --ink-2: #6f685d;
  --ink-3: #a69e91;
  --hairline: rgba(30, 27, 22, 0.08);
  --brand: #27304a;
  --on-brand: #f7f2e8;
  --brand-soft: #dcdde3;
  --porch: #d98a2b;
  --porch-soft: #f3e1cb;
  --emergency: #b23a2a;
  --calm: #4f7a5a;
  --shadow: rgba(30, 27, 22, 0.06);
  --bezel: #1e1b16;

  --gutter: 20px;
  --radius: 28px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #15130f;
    --card: #211d18;
    --card-raised: #2a251f;
    --well: #1c1914;
    --sheet: #1a1815;
    --ink: #f2ece1;
    --ink-2: #a39b8e;
    --ink-3: #6e675c;
    --hairline: rgba(250, 247, 241, 0.1);
    --brand: #c9d0e6;
    --on-brand: #1b2030;
    --brand-soft: #2a2f40;
    --porch: #e9a04a;
    --porch-soft: #3a2c1b;
    --emergency: #e0705f;
    --calm: #86b394;
    --shadow: rgba(0, 0, 0, 0.4);
    --bezel: #0b0a08;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  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;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

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

.secondary {
  color: var(--ink-2);
}

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 14px;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 22px;
  height: auto;
  color: var(--brand);
}

.brand span {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}

.pill:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.pill-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.pill-secondary {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.pill svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.store-note {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 12px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

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

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

.nav-links a:not(.pill) {
  text-decoration: none;
  color: var(--ink-2);
}

.nav-links a:not(.pill):hover {
  color: var(--ink);
}

.nav .pill {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

@media (max-width: 760px) {
  .nav-links a:not(.pill) {
    display: none;
  }
}

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

.hero {
  position: relative;
  padding: 56px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 34em;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-phones {
  position: relative;
  height: 640px;
}

.glow {
  position: absolute;
  inset: auto -10% -6% -10%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 70%, var(--porch-soft) 0%, transparent 65%);
  pointer-events: none;
}

.hero-phones .phone {
  position: absolute;
  width: 290px;
}

.hero-phones .phone.back {
  left: 4%;
  top: 40px;
  transform: rotate(-5deg);
  opacity: 0.96;
}

.hero-phones .phone.front {
  right: 4%;
  top: 0;
  transform: rotate(3deg);
}

.live-tag {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px var(--shadow);
  font-size: 14px;
  max-width: 240px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--porch);
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--porch) 22%, transparent);
}

@media (max-width: 900px) {
  .hero {
    padding-top: 28px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-phones {
    height: 520px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-phones .phone {
    width: 230px;
  }
  .live-tag {
    top: auto;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 9px;
  background: var(--bezel);
  box-shadow:
    0 30px 60px -10px rgba(30, 27, 22, 0.28),
    0 12px 30px var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  background: var(--canvas);
}

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

section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}

.section-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }
}

/* The call: steps beside the in-call screen */

.call-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px 22px 74px;
  position: relative;
  box-shadow: 0 12px 30px var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--well);
  font-weight: 500;
  font-size: 15px;
}

.steps h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-2);
}

.quote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .call-grid {
    grid-template-columns: 1fr;
  }
  .call-grid .phone {
    width: 260px;
    margin: 0 auto;
    order: -1;
  }
}

/* Voices */

.voices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.voice {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 20px;
}

.voice b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.voice span {
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 1100px) {
  .voices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .voices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tools */

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 30px var(--shadow);
  display: flex;
  flex-direction: column;
}

.tool svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  stroke-width: 1.5;
}

.tool h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tool p {
  margin-top: 8px;
  color: var(--ink-2);
}

.tool .shot {
  margin: 22px auto 0;
  width: 78%;
  border-radius: 30px 30px 0 0;
  padding: 7px 7px 0;
  background: var(--bezel);
  overflow: hidden;
  height: 220px;
  margin-bottom: -26px;
}

.tool .shot img {
  border-radius: 24px 24px 0 0;
  width: 100%;
}

.tool.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}

.tool.wide .shot {
  width: 100%;
  height: 300px;
  margin: 0 0 -26px;
  align-self: end;
}

/* A screen cut mid-way: framed on the sides and bottom, open at the top. */
.tool .shot.shot-cut {
  border-radius: 0 0 30px 30px;
  padding: 0 7px 7px;
  margin: -26px 0 0;
  align-self: start;
  height: auto;
}

.tool .shot.shot-cut img {
  border-radius: 0 0 24px 24px;
}

@media (max-width: 960px) {
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tools {
    grid-template-columns: 1fr;
  }
  .tool.wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .tool.wide .shot {
    width: 78%;
    margin: 22px auto -26px;
    height: 240px;
  }
}

/* Gallery: a quiet strip of real screens */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 22px;
  overflow-x: auto;
  padding: 10px var(--gutter) 40px;
  margin: 0 calc(-1 * var(--gutter));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  text-align: center;
}

/* Promises */

.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.promise {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
}

.promise h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.promise p {
  margin-top: 8px;
  color: var(--ink-2);
}

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

/* 999 note */

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.notice b {
  color: var(--emergency);
  font-weight: 600;
}

/* Download band */

.download {
  text-align: center;
}

.download .panel {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 44px;
  padding: 72px 24px 76px;
}

.download .panel .glow {
  inset: auto -20% -40% -20%;
  height: 90%;
}

.download .panel > * {
  position: relative;
}

.download img.icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 12px 30px var(--shadow);
}

.download h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.download p {
  margin: 16px auto 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 19px;
}

.download .actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* Footer */

footer {
  padding: 40px 0 56px;
  color: var(--ink-2);
  font-size: 15px;
}

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

footer nav {
  display: flex;
  gap: 24px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* Prose pages (privacy) */

.prose {
  max-width: 700px;
  padding: 56px 0 80px;
}

.prose h1 {
  font-size: clamp(38px, 5vw, 56px);
}

.prose .updated {
  margin-top: 12px;
  color: var(--ink-2);
}

.prose h2 {
  margin-top: 44px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--ink-2);
}

.prose li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

/* Reveal on scroll (off for reduced motion) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
