/* Continuum — shared styles */

:root {
  --bg: #eef0ef;
  --surface: #f1f1f0;
  --surface-2: #e9e9e8;
  --fg: #141414;
  --fg-2: #4a4a4a;
  --fg-3: #8c8c8c;
  --border: #e6e6e5;
  --border-strong: #d4d4d3;
  --accent: #9ec5e8;
  --accent-ink: #0a2826;

  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;

  --container: 1180px;
  --container-narrow: 760px;
  --radius: 4px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

img, svg { display: block; max-width: 100%; }

/* ---------------- Layout ---------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

section { padding: 96px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.active { color: var(--fg); }
.nav .disabled {
  font-size: 14px;
  color: var(--fg-3);
  letter-spacing: -0.005em;
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 720px) {
  .site-header .inner { padding: 14px 20px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .nav .nav-secondary { display: none; }
}

/* ---------------- Type ---------------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
h3 { font-size: clamp(20px, 2vw, 22px); line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; }

p { margin: 0; color: var(--fg-2); }
p.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--fg-3);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}
.section-head .label { padding-top: 6px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: #000; border-color: #000; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--fg); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 0;
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--fg); }

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

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

.hero {
  padding: 120px 0 96px;
  border-top: 0;
}
.hero .container { position: relative; }
.hero h1 { max-width: 18ch; margin-bottom: 28px; }
.hero p.lead { margin-bottom: 36px; }
.hero .meta {
  margin-top: 56px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
}

/* ---------------- Baseline / wave motif ---------------- */

.baseline {
  width: 100%;
  height: 64px;
  color: var(--border-strong);
}
.baseline path { stroke: currentColor; stroke-width: 1; fill: none; }
.baseline .accent { color: var(--accent); }

/* ---------------- Feature grid ---------------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid > .cell {
  background: var(--bg);
  padding: 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cell h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.cell p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.cell .idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------------- Two-up ---------------- */

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-up.tight { gap: 48px; }
@media (max-width: 880px) {
  .two-up { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------- Device / phone mockup ---------------- */

.phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #0c0c0a;
  border-radius: 44px;
  padding: 10px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 30px 60px -30px rgba(20, 18, 14, 0.25),
              0 8px 20px -10px rgba(20, 18, 14, 0.12);
}
.phone .screen {
  width: 100%;
  height: 100%;
  background: #faf8f3;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone .notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0c0c0a;
  border-radius: 14px;
  z-index: 2;
}
.phone .screen-inner {
  padding: 60px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.screen-inner .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.screen-inner .day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8780;
}
.screen-inner .date {
  font-family: var(--mono);
  font-size: 10px;
  color: #8a8780;
  letter-spacing: 0.06em;
}
.screen-inner .greeting {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #1a1a17;
  margin-top: 4px;
}
.screen-inner .stat-card {
  border: 1px solid #e6e2d8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.screen-inner .stat-card .stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8780;
}
.screen-inner .stat-card .stat-value {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-top: 6px;
  color: #1a1a17;
}
.screen-inner .stat-card .stat-sub {
  font-size: 10px;
  color: #8a8780;
  margin-top: 4px;
  letter-spacing: -0.005em;
}
.screen-inner .baseline-mini {
  height: 38px;
  margin-top: 8px;
  color: #c8c4b7;
}
.screen-inner .baseline-mini .accent { color: var(--accent); }
.screen-inner .pill-row {
  display: flex;
  gap: 6px;
}
.screen-inner .pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #5a5853;
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid #e6e2d8;
  text-transform: uppercase;
}
.screen-inner .pill.active {
  background: #0c0c0a;
  color: #faf8f3;
  border-color: #0c0c0a;
}

/* ---------------- Breathing orb ---------------- */

.orb-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.orb {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%,
    color-mix(in srgb, var(--accent) 55%, #ffffff) 0%,
    var(--accent) 52%,
    color-mix(in srgb, var(--accent) 72%, #0c0c0a) 100%);
  box-shadow:
    0 0 34px -4px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 0 20px color-mix(in srgb, var(--accent) 5%, transparent);
  animation: breathe 9s ease-in-out infinite;
}
.orb-phase {
  font-size: 15px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #1a1a17;
  text-align: center;
}
.orb-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8780;
  text-align: center;
  margin-top: 4px;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.78); }
  44%, 56% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; transform: scale(0.92); }
}

/* ---------------- Tag / pill ---------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--bg);
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------------- Notes (privacy etc) ---------------- */

.note {
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------------- Tables / definition lists ---------------- */

.dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px 56px;
  align-items: baseline;
}
.dl dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
}
.dl dd {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
}
@media (max-width: 720px) {
  .dl { grid-template-columns: 1fr; gap: 4px 0; }
  .dl dd { margin-bottom: 12px; }
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  background: var(--bg);
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer .soon {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer .soon .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.site-footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 18px 0;
  font-weight: 400;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: var(--fg-2);
  font-size: 14px;
}
.site-footer a:hover { color: var(--fg); text-decoration: none; }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .bottom .left { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .site-footer .top { grid-template-columns: 1fr; }
}

/* ---------------- Long-form / legal ---------------- */

.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: 22px;
  margin-top: 56px;
  margin-bottom: 14px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-size: 16px;
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 500;
}
.prose p {
  color: var(--fg-2);
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 15px;
}
.prose ul {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 18px;
  margin: 0 0 16px 0;
}
.prose ul li { margin-bottom: 6px; }
.prose .toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 56px;
  font-size: 14px;
}
.prose .toc h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 12px 0;
  font-weight: 400;
}
.prose .toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  color: var(--fg-2);
}
.prose .toc a { color: var(--fg-2); }
.prose .toc a:hover { color: var(--fg); text-decoration: none; }

.page-header {
  padding: 88px 0 48px;
  border-top: 0;
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  max-width: 22ch;
  margin-bottom: 18px;
}
.page-header p.lead { max-width: 60ch; }

/* ---------------- Form ---------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.form input,
.form textarea,
.form select {
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  width: 100%;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) {
  .form .row { grid-template-columns: 1fr; }
}

/* ---------------- Misc ---------------- */

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin: 64px 0;
}

.muted { color: var(--fg-3); }

/* ---------------- FAQ ---------------- */

details.faq {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--border); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  color: var(--fg);
  letter-spacing: -0.015em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .toggle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-3);
  transition: transform 200ms ease;
}
details.faq[open] summary .toggle { transform: rotate(45deg); color: var(--fg); }
details.faq .answer {
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 64ch;
}

.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    color-mix(in srgb, var(--fg) 4%, transparent) 14px 15px
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------- Continuum line (hero / page motif) ---------------- */

.hero .eyebrow { margin-bottom: 24px; }

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(48px, 7vw, 76px);
  color: var(--border-strong);
}
.hero-wave path { fill: none; stroke-linecap: round; }
.hero-wave path.track { stroke: currentColor; stroke-width: 1.25; }
.hero-wave path.accent {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: continuum-draw 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes continuum-draw { to { stroke-dashoffset: 0; } }

/* Products: the line trails off — still being drawn */
.hero-wave.unfinished {
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 94%);
          mask-image: linear-gradient(90deg, #000 50%, transparent 94%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave path.accent { animation: none; stroke-dashoffset: 0; }
}

/* ---------------- Focus ---------------- */

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
