/*  Inspired Software, LLC — site styles
    A depth palette: the page gets darker and bluer the further you descend,
    the way water does. Dark is the default; light is a full peer, not an
    afterthought.
    ------------------------------------------------------------------ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- tokens ---------- */
:root {
  /* depth ramp — surface light down to the abyss */
  --abyss:      #03080F;
  --deep:       #061626;
  --mid:        #0A2135;
  --shelf:      #0E2C44;
  --surface:    #10334D;

  --ink:        #E8F3F9;
  --ink-dim:    #9FBACD;
  --ink-faint:  #6F8CA1;

  /* bioluminescence — the accents in the app icon */
  --cyan:       #38D9EC;
  --cyan-deep:  #12A8C4;
  --coral:      #FF6FA8;
  --kelp:       #63E6B0;
  --sun:        #F6DC9B;

  --line:       rgba(120, 195, 225, 0.15);
  --line-soft:  rgba(120, 195, 225, 0.08);
  --card:       rgba(255, 255, 255, 0.035);
  --card-hi:    rgba(255, 255, 255, 0.06);

  --accent:     var(--cyan);
  --accent-ink: #032027;
  --shadow:     0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);

  /* type */
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* rhythm */
  --measure: 68ch;
  --page: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  color-scheme: dark light;
}

:root[data-theme="light"], html.light {
  --abyss:      #FFFFFF;
  --deep:       #F4F8FB;
  --mid:        #EAF1F6;
  --shelf:      #E1EBF2;
  --surface:    #FFFFFF;

  --ink:        #081A26;
  --ink-dim:    #3F5A6D;
  --ink-faint:  #6B8395;

  --cyan:       #067A92;
  --cyan-deep:  #045A6D;
  --coral:      #C42A6B;
  --kelp:       #0B7A55;
  --sun:        #9A6C11;

  --line:       rgba(8, 40, 60, 0.14);
  --line-soft:  rgba(8, 40, 60, 0.07);
  --card:       rgba(6, 40, 60, 0.028);
  --card-hi:    rgba(6, 40, 60, 0.05);

  --accent-ink: #FFFFFF;
  --shadow:     0 1px 2px rgba(10,40,60,.06), 0 12px 28px -14px rgba(10,40,60,.22);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --abyss:#FFFFFF; --deep:#F4F8FB; --mid:#EAF1F6; --shelf:#E1EBF2; --surface:#FFFFFF;
    --ink:#081A26; --ink-dim:#3F5A6D; --ink-faint:#6B8395;
    --cyan:#067A92; --cyan-deep:#045A6D; --coral:#C42A6B; --kelp:#0B7A55; --sun:#9A6C11;
    --line:rgba(8,40,60,.14); --line-soft:rgba(8,40,60,.07);
    --card:rgba(6,40,60,.028); --card-hi:rgba(6,40,60,.05);
    --accent-ink:#FFFFFF;
    --shadow:0 1px 2px rgba(10,40,60,.06), 0 12px 28px -14px rgba(10,40,60,.22);
  }
}

/* ---------- base ---------- */
body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--abyss);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

::selection { background: var(--cyan); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: .75rem 1.1rem; background: var(--cyan); color: var(--accent-ink);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- layout primitives ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--page)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

section { position: relative; }
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band-tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.band-deep { background: var(--deep); }
.band-mid  { background: var(--mid); }

/* hairline between bands, drawn only where two bands meet */
.band + .band, .band + .band-tight, .band-tight + .band {
  border-top: 1px solid var(--line-soft);
}

/* ---------- type scale ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow-plain::before { display: none; }

h1, .h1 {
  font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.25rem);
  line-height: 1.03; letter-spacing: -0.033em; font-weight: 700;
}
h2, .h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.12; letter-spacing: -0.025em; font-weight: 680;
}
h3, .h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.28; letter-spacing: -0.014em; font-weight: 650;
}
h4, .h4 { font-size: 1rem; font-weight: 650; letter-spacing: -0.008em; }

.lede {
  font-size: clamp(1.075rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55; color: var(--ink-dim); max-width: var(--measure);
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--ink); font-weight: 650; }
.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.small { font-size: .875rem; }
.xs { font-size: .8125rem; }
.center { text-align: center; margin-inline: auto; }

.gradient-text {
  background: linear-gradient(100deg, var(--ink) 20%, var(--cyan) 78%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 620; font-size: .9375rem; letter-spacing: -0.008em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--btn-bg); color: var(--accent-ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), filter .18s, background-color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--accent-ink); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--card-hi); border-color: var(--cyan); color: var(--ink); filter: none; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.2vw, 1.75rem);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--cyan); background: var(--card-hi); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-dim); font-size: .9375rem; }

.card-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(150deg, color-mix(in oklab, var(--cyan) 26%, transparent), transparent);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }

/* stat row — separators are drawn per cell rather than as grid-gap showing a
   container background, so a partial last row leaves no orphan grey box. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
         border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 1.25rem 1.15rem; box-shadow: inset 1px 1px 0 var(--line-soft); }
.stat-num {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .8125rem; color: var(--ink-dim); margin-top: .45rem; line-height: 1.35; }

/* feature row: text beside a figure, alternating */
.split {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.split + .split { margin-top: clamp(3rem, 7vw, 5.5rem); }
.split-flip > :first-child { order: 2; }
@media (max-width: 760px) { .split-flip > :first-child { order: 0; } }

.figure {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--shelf), var(--deep));
  padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow);
  overflow: hidden;
}
.figure svg { width: 100%; height: auto; }
.figure figcaption { font-size: .8125rem; color: var(--ink-faint); margin-top: .9rem; }

/* checklist */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-top: .6rem; color: var(--ink-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px color-mix(in oklab, var(--cyan) 18%, transparent);
}

/* pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .78125rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-dim); background: var(--card);
  letter-spacing: .01em;
}
.pill-accent { color: var(--cyan); border-color: color-mix(in oklab, var(--cyan) 40%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* callout */
.note {
  border-left: 3px solid var(--cyan); background: var(--card);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9375rem; color: var(--ink-dim);
}
.note strong { color: var(--ink); }
.note-warn { border-left-color: var(--sun); }
.note-warn strong { color: var(--sun); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--abyss) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 650; letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
  font-size: .9375rem; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-name { white-space: nowrap; }
.brand-name b { font-weight: 650; }
.brand-name span { color: var(--ink-faint); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .45rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 550;
  color: var(--ink-dim); text-decoration: none; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--card-hi); }
.nav-links a[aria-current="page"] { color: var(--ink); }
/* `.nav-links a` outranks `.btn` on specificity, so the CTA needs its own
   rule or it renders cyan-on-cyan. */
.nav-links a.btn { color: var(--accent-ink); }
.nav-links a.btn:hover { color: var(--accent-ink); background: var(--btn-bg); }
.nav-cta { margin-left: .5rem; }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border-radius: 9px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-dim); cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--cyan); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun-icon { display: none; }
:root[data-theme="light"] .theme-toggle .sun-icon,
html.light .theme-toggle .sun-icon { display: block; }
:root[data-theme="light"] .theme-toggle .moon-icon,
html.light .theme-toggle .moon-icon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun-icon { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon-icon { display: none; }
}

.menu-btn { display: none; }

@media (max-width: 840px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .75rem var(--gutter) 1.5rem;
    background: var(--deep); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .nav-links[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .75rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin: .9rem 0 0; align-self: flex-start; }
  .menu-btn {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border-radius: 9px; border: 1px solid var(--line); background: transparent;
    color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 17px; height: 17px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--abyss); }
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 9vw, 6rem);
}

/* light shafts + depth wash, purely decorative */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 45% at 50% -8%, color-mix(in oklab, var(--sun) 16%, transparent), transparent 68%),
    radial-gradient(48% 40% at 78% 8%,  color-mix(in oklab, var(--cyan) 20%, transparent), transparent 70%),
    radial-gradient(55% 50% at 14% 22%, color-mix(in oklab, var(--coral) 11%, transparent), transparent 72%);
  filter: blur(6px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--abyss) 96%);
}
:root[data-theme="light"] .hero-bg::before, html.light .hero-bg::before { opacity: .5; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-bg::before { opacity: .5; }
}

/* Blurred, or the hard polygon edges read as dark bands rather than light. */
.shafts { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; filter: blur(22px); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .shafts { opacity: .22; } }
:root[data-theme="light"] .shafts, html.light .shafts { opacity: .22; }

/* ---------- product hero art ---------- */
.app-art {
  position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1;
}
.app-art img {
  width: 100%; border-radius: 23%; /* squircle-ish */
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85), 0 0 0 1px var(--line);
}
.app-art::after {
  content: ""; position: absolute; inset: 12% 8% -8% 8%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--cyan) 42%, transparent), transparent 70%);
  filter: blur(46px);
}

/* platform strip — the site shows the platforms here rather than restating
   them in prose on every page. */
.platforms {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 118px), 1fr));
}
.platform {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  padding: 1.1rem .6rem 1rem; text-align: center;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--card);
}
.platform svg { width: 26px; height: 26px; color: var(--cyan); }
.platform b { font-size: .8125rem; font-weight: 620; color: var(--ink); letter-spacing: -0.01em; }
.platform span { font-size: .75rem; color: var(--ink-faint); line-height: 1.3; }
.platform-soon { border-style: dashed; background: transparent; }
.platform-soon svg, .platform-soon b { color: var(--ink-faint); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep); border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; font-size: .875rem;
}
.footer-grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .footer-grid > div:first-child { grid-column: auto; flex: 1.4; } }
/* h2 rather than h4: these are top-level within the footer landmark, and an h4
   here would skip a level in every page's heading outline. */
.footer-grid h2 { font-size: .75rem; line-height: 1.4; letter-spacing: .1em;
                  text-transform: uppercase; color: var(--ink-faint);
                  margin-bottom: .85rem; font-weight: 650; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: .5rem; }
.footer-grid a { color: var(--ink-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font-size: .8125rem;
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-dim);
}
.social a:hover { color: var(--cyan); border-color: var(--cyan); }
.social svg { width: 16px; height: 16px; }

/* ---------- page header (interior pages) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 180%;
  background: radial-gradient(45% 50% at 50% 0%, color-mix(in oklab, var(--cyan) 14%, transparent), transparent 70%);
  pointer-events: none;
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 650; color: var(--ink); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-dim); }

/* ---------- disclosure (FAQ) ---------- */
details.faq {
  border-bottom: 1px solid var(--line-soft); padding: .35rem 0;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 620; color: var(--ink); font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.45rem;
  width: .5rem; height: .5rem; border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint); transform: rotate(45deg);
  transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq summary:hover { color: var(--cyan); }
details.faq .faq-body { padding: 0 1rem 1.25rem 0; color: var(--ink-dim); max-width: var(--measure); }
details.faq .faq-body > * + * { margin-top: .8rem; }

/* ---------- misc ---------- */
hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: clamp(2rem, 5vw, 3.5rem); }
code { font-family: var(--mono); font-size: .875em; background: var(--card-hi);
       padding: .15em .4em; border-radius: 5px; color: var(--ink); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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