/* Lowtide Carbon. System fonts only: the privacy policy promises no third-party fonts. */
:root {
  --ink: #0f2a33;        /* harbour: text, logo tile, mission band */
  --muted: #4f6870;      /* mudflat: secondary text */
  --sea: #0e7c86;        /* channel: links, actions, the tide line */
  --sea-dark: #0a5c63;
  --foam: #6cc7cc;       /* tide line on dark */
  --salt: #eef4f3;       /* cool wash for hero and footer */
  --buoy: #e39b2d;       /* used only for the low-tide marker */
  --line: #d6e0e1;
  --bg: #ffffff;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea-dark); text-underline-offset: .15em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.brand .word b { font-weight: 400; color: var(--muted); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.2rem; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav a.nav-cta { color: var(--sea-dark); font-weight: 600; }

/* Hero */
.hero { background: var(--salt); padding: 4.5rem 0 0; overflow: hidden; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 700; margin: 0 0 1.25rem; max-width: 15ch;
}
.nowrap { white-space: nowrap; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }
.hero p.lead strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  padding: .75rem 1.2rem; border-radius: 6px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid var(--ink);
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }

/* The tide: the one bold element on the page */
.tide { margin: 3.5rem auto 0; padding-bottom: 2.25rem; }
.tide svg { display: block; width: 100%; height: clamp(130px, 22vw, 210px); overflow: visible; }
.tide .fill { fill: var(--sea); opacity: .09; }
.tide .line { fill: none; stroke: var(--sea); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tide .base { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tide .day { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .6; }
.tide .low-stem { stroke: var(--buoy); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Zero-length round-capped strokes stay circular under preserveAspectRatio="none". */
.tide .low-ring { stroke: var(--salt); stroke-width: 18; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tide .low { stroke: var(--buoy); stroke-width: 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tide-axis { display: grid; grid-template-columns: 1fr 1fr; font-size: .85rem; color: var(--muted); padding-top: .4rem; }
.tide-axis span:last-child { padding-left: .5rem; }
.tide figcaption { margin-top: 1rem; font-size: .95rem; color: var(--ink); max-width: 44rem; }
.tide figcaption .dot { display: inline-block; width: .65em; height: .65em; border-radius: 50%; background: var(--buoy); margin-right: .3em; vertical-align: .05em; }
.tide figcaption .aside { color: var(--muted); }

/* Generic sections */
section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1.25rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 2rem 0 .5rem; }
section > .wrap > p { max-width: 44rem; }

/* Mission */
section.mission { background: var(--ink); color: #dbe7e8; border-bottom: 0; padding: 5rem 0; }
.mission .statement {
  color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em;
  max-width: 17ch; margin-bottom: 1.5rem;
}
.mission-body { font-size: 1.15rem; max-width: 40rem; margin: 0 0 3.5rem; }
.pledges { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.pledges > div { border-top: 2px solid var(--foam); padding-top: 1rem; }
.pledges h3 { color: #fff; margin: 0 0 .5rem; }
.pledges p { margin: 0; font-size: .98rem; }
.pledges code { background: rgba(255,255,255,.1); padding: .05em .35em; border-radius: 4px; color: #fff; }

/* Product */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.feature { border-left: 3px solid var(--sea); padding-left: 1rem; }
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--muted); }
.example-title { margin-top: 3rem; }

pre {
  background: var(--ink); color: #e6f2f3; padding: 1.25rem 1.4rem; border-radius: 8px;
  overflow-x: auto; font-size: .88rem; line-height: 1.55; margin: 0 0 1rem;
}
code { font-family: var(--mono); font-size: .92em; }

/* Pricing */
table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.5rem 0 1rem; }
th, td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom-color: var(--ink); }
td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.note { color: var(--muted); font-size: .92rem; }

/* Footer */
footer.site { background: var(--salt); padding: 1.75rem 0; font-size: .9rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
footer.site a { color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.foot-brand .mark { width: 20px; height: 20px; }

/* Legal pages */
.legal h1 { font-family: var(--display); font-size: 2rem; letter-spacing: -.02em; margin: 2.5rem 0 .5rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; letter-spacing: 0; }
.legal section { border: 0; padding: 0; }
.legal { padding-bottom: 3rem; }
.summary { background: var(--salt); border-radius: 8px; padding: 1rem 1.2rem; margin: 1rem 0 2rem; }

@media (max-width: 560px) {
  .hero { padding-top: 3rem; }
  nav a:not(.nav-cta) { font-size: .9rem; }
  .foot-brand { margin-left: 0; }
  th, td { padding: .7rem .4rem; }
}

nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal .lead-note { color: var(--muted); max-width: 44rem; }
.legal p, .legal ul { max-width: 44rem; }
