/* Life OS · shared styles. Grayscale + one blue. No gradients. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e5e5ea;
  --accent: #007aff;
  --accent-2: #0062cc;
  --on-accent: #ffffff;
  --header: rgba(255, 255, 255, 0.78);
  --header-solid: #ffffff;
  --radius: 18px;
  --radius-s: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0e0e10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #38383a;
    --line-soft: #2c2c2e;
    --accent: #0a84ff;
    --accent-2: #409cff;
    --on-accent: #ffffff;
    --header: rgba(0, 0, 0, 0.76);
    --header-solid: #000000;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- layout ---------- */

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

.wrap--narrow { max-width: 760px; }

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-alt); }
.section + .section--alt,
.section--alt + .section { border-top: 1px solid var(--line-soft); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-solid);
  border-bottom: 1px solid var(--line-soft);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 500; }

.nav-cta {
  margin-left: 4px;
  font-size: 14px;
  padding: 7px 15px;
  min-height: 0;
}

/* mobile menu, no framework */
.menu { margin-left: auto; display: none; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  color: var(--text);
  border-radius: 10px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .ic-close,
.menu[open] > summary .ic-open { display: none; }
.menu[open] > summary .ic-close { display: block; }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 22px 26px;
}
.menu-panel a {
  display: block;
  padding: 13px 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft);
}
.menu-panel a:hover { text-decoration: none; color: var(--accent); }
.menu-panel a[aria-current="page"] { color: var(--accent); }
.menu-panel .btn { margin-top: 20px; width: 100%; }

@media (max-width: 860px) {
  .nav, a.btn.nav-cta { display: none; }
  .menu { display: block; }
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--text);
}

.h-hero {
  font-size: clamp(40px, 7.4vw, 74px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.h-page {
  font-size: clamp(34px, 5.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.032em;
}

h2, .h2 {
  font-size: clamp(27px, 3.8vw, 40px);
  letter-spacing: -0.03em;
}

h3, .h3 {
  font-size: 21px;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: var(--text-2);
  max-width: 46ch;
}

.body-2 { color: var(--text-2); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}

.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
}

.measure { max-width: 62ch; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

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

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
}
.arrow-link svg { width: 8px; height: 12px; flex: none; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 10vw, 118px) 0 clamp(40px, 6vw, 64px); }
.hero .lede { margin-top: 22px; max-width: 52ch; }
.hero .btn-row { margin-top: 32px; }
.hero .small { margin-top: 20px; }

.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-head .lede { margin-top: 20px; }

/* ---------- cards and grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--text-2); }

a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--line); }
a.card:hover h3 { color: var(--accent); }
a.card .arrow-link { margin-top: 14px; font-size: 16px; }

.icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  color: var(--accent);
}

/* stat tiles */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}
.stat {
  padding: 24px 22px;
  background: var(--card);
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.stat-value {
  display: block;
  margin: 6px 0 8px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-note { font-size: 13px; line-height: 1.4; color: var(--text-3); }

/* feature rows */
.feature {
  padding: clamp(34px, 5vw, 56px) 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.feature:first-of-type { border-top: 0; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--text-2); }
.feature .eyebrow { margin-bottom: 12px; }

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

/* connection rows */
.link-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.link-row .from,
.link-row .to { font-size: 16px; line-height: 1.4; }
.link-row .from { color: var(--text-2); }
.link-row .to { color: var(--text); font-weight: 500; }
.link-row .via {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.link-row .via svg { width: 20px; height: 20px; }
.link-row .tag {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  order: -1;
}

@media (max-width: 620px) {
  .link-row { grid-template-columns: 1fr; gap: 12px; }
  .link-row .via { justify-content: flex-start; }
  .link-row .via svg { transform: rotate(90deg); }
}

/* weight lists */
.weights { list-style: none; margin: 0; padding: 0; }
.weights li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--text-2);
}
.weights li:last-child { border-bottom: 0; }
.weights b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* pricing */
.plan {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.plan--lead { border-color: var(--accent); }
.plan .price {
  display: block;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 14px 0 4px;
}
.plan .per { font-size: 15px; color: var(--text-3); }
.plan ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.plan li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.45;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--text-2);
  font-size: 16px;
}

/* faq */
.qa { border-top: 1px solid var(--line-soft); padding: 30px 0; }
.qa:first-of-type { border-top: 0; }
.qa h3 { margin-bottom: 12px; }
.qa p { color: var(--text-2); }

/* legal */
.legal { padding: 0 0 clamp(56px, 8vw, 96px); }
.legal h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 48px 0 16px;
}
.legal h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.legal p, .legal li { color: var(--text-2); font-size: 16.5px; }
.legal ul { padding-left: 20px; margin: 0 0 18px; }
.legal li { margin-bottom: 9px; }
.legal .stamp {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 18px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 16px;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
}
.legal th {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  width: 34%;
}

@media (max-width: 620px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
  .legal td { border: 0; padding: 4px 0 0; }
  .legal td:first-child {
    color: var(--text);
    font-weight: 600;
    padding-top: 18px;
  }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 52px 0 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid li { font-size: 14px; color: var(--text-2); }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 78ch;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .card { padding: 22px; }
  .stat { padding: 20px 18px; }
}
