/* Bold Breath site. Colors are the app's own (Palette.swift, fire). Dark only, like the app. */

:root {
  --page: #000000;
  --card: #120D0A;
  --ink: #F6EEE4;
  --ink-soft: #A99C8F;
  --line: #2A211B;
  --amber: #FFCD7B;          /* tint: the glow, lifted toward white */
  --amber-fill: #FFCD7B;
  --on-amber: #140C05;
  --glow: #FFB842;
  --ember: #E63808;
  --violet: #8C33EB;
  --wash-top: rgba(230, 56, 8, 0.16);
  --wash-mid: rgba(255, 184, 66, 0.06);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}


* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* An ember glow at the top of the page, the color of the organism's lit mass. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background: linear-gradient(to bottom, var(--wash-top), var(--wash-mid) 40%, transparent);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.site-nav { display: flex; gap: 22px; font-size: 16px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p.lede { font-size: 21px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 30px; max-width: 30em; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--amber-fill); color: var(--on-amber); font-weight: 600; text-decoration: none;
}
.pill.soon { cursor: default; }
.cta-note { color: var(--ink-soft); font-size: 15px; }

/* Phones — two iPhones in 3D, turned toward each other like a pair of
   Rotato renders. Pure CSS: the face (titanium rim, black bezel, screen,
   Dynamic Island) sits in front of a stack of thin slabs that read as the
   phone's depth once it turns. */
.phones { position: relative; height: 580px; perspective: 1700px; perspective-origin: 50% 35%; }
.phone {
  --w: 228px;                          /* the phone's width; everything scales from it */
  --pad: calc(var(--w) * 0.034);       /* bezel */
  --r: calc(var(--w) * 0.165);         /* corner radius */
  /* Turned, a phone's inner edge sits inside its box by ~8% of its width;
     pulling each in by this leaves 10px between the two. */
  --nudge: calc((var(--w) * 0.0816 - 10px) / 2);
  position: absolute; width: var(--w);
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(var(--ry));
}
/* Mirrored about the center line, same height, so they sit level. --nudge
   pulls each toward the middle: turned, a phone's inner edge sits inside
   its box, and this leaves about 10px of air between the two. */
.phone.back  { right: calc(50% - var(--nudge)); top: 24px; --ry: 24deg; }   /* faces right */
.phone.front { left: calc(50% - var(--nudge));  top: 24px; --ry: -24deg; }  /* faces left */
.phone .slab {
  position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(90deg, #24221f, #5f5a54 10%, #33302d 28%, #3b3835 72%, #67625b 90%, #24221f);
  transform: translateZ(calc(var(--i) * -2.5px));
}
.phone .face {
  position: relative; padding: var(--pad); border-radius: var(--r); background: #0a0a0a;
  box-shadow: inset 0 0 0 1.5px #6d6862, inset 0 0 0 3px #161514;
  transform: translateZ(0.5px);
}
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--r) - var(--pad)); }
.phone img { display: block; width: 100%; height: auto; }
/* iPhone 17: a 125 x 37pt island, 11pt down a 402pt-wide screen. */
.phone .island {
  position: absolute; top: 1.25%; left: 34.5%; width: 31%; aspect-ratio: 125 / 37;
  border-radius: 999px; background: #000;
}
/* A faint glare across the glass. */
.phone .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%);
}

/* Features */
.features { padding: 24px 0 72px; }
.features .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: 26px; padding: 26px; }
.card h2 { font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }

/* Closing band */
.closing { padding: 0 0 72px; }
.closing .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; }
/* The icon is the organism itself, rendered by the app's own engine. */
.closing img { width: 100%; max-width: 300px; height: auto; display: block; border-radius: 22.5%; margin: 0 auto; box-shadow: 0 0 80px rgba(230, 56, 8, 0.22); }
.closing h2 { font-size: 30px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.closing p { color: var(--ink-soft); margin: 0 0 10px; }

/* Text pages */
.doc { padding: 28px 0 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .meta { color: var(--ink-soft); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--card); border-radius: 26px; padding: 22px 26px; margin: 0 0 8px; }
.summary p { margin: 0; }
details { background: var(--card); border-radius: 20px; padding: 16px 22px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 2px; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 20px; }

@media (max-width: 820px) {
  .hero { padding: 24px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  /* The pair spans the column, edge to edge, like the art further down. */
  .phones { height: auto; aspect-ratio: 0.86; max-width: 420px; margin: 0 auto; width: 100%; container-type: inline-size; }
  .phone { --w: calc((100cqw - 10px) / 2); }
  .features .wrap { grid-template-columns: 1fr; }
  .closing .wrap { grid-template-columns: 1fr; }
  .closing img { max-width: 220px; }
  .site-nav { gap: 16px; font-size: 15px; }
}

/* Safety band */
.safety { padding: 0 0 72px; }
.safety .box { border: 1px solid var(--line); border-radius: 26px; padding: 24px 26px; }
.safety h2 { font-size: 20px; margin: 0 0 8px; }
.safety p { margin: 0; color: var(--ink-soft); }
.callout { border: 1px solid var(--line); border-radius: 20px; padding: 16px 22px; margin: 12px 0; }
