/* Tidesight's website: chart paper and deep water, as in the dashboard. Fonts are the dashboard's own (fonts/). */
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-latin-italic.woff2") format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f2ea; --paper-2: #ece8dc; --card: #fcfbf8; --ink: #11161c; --ink-2: #4c5058; --muted: #7d8088;
  --line: rgba(17, 22, 28, .1); --line-2: rgba(17, 22, 28, .18);
  --deep: #0f2236; --deep-2: #17324d; --deep-3: #0a1828; --deep-ink: #e9eef3; --deep-muted: #93a8bd; --foam: #9fd1ff;
  --sea: #2a78d6; --sea-2: #1f5fae; --coral: #eb6834; --kelp: #1baf7a;
  --radius: 14px; --shadow: 0 1px 0 rgba(17, 22, 28, .04), 0 24px 60px -30px rgba(14, 42, 71, .45);
  --display: Fraunces, Georgia, "Times New Roman", serif; --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0d1621; --paper-2: #111d2b; --card: #132131; --ink: #eef2f6; --ink-2: #b8c2cd; --muted: #8592a0;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16); --sea: #5aa2f0; --sea-2: #7db6f4;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 60px -30px rgba(0, 0, 0, .8); color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
code { font: .9em var(--mono); }
h1, h2, h3 { margin: 0; }
h2 { font: 600 clamp(30px, 4.2vw, 46px)/1.08 var(--display); letter-spacing: -.015em; max-width: 22ch; }
h2 em, h1 em { font-style: italic; color: var(--sea); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 12px; font: 600 16px var(--sans);
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--sea) 80%, transparent); }
.btn-primary:hover { background: var(--sea-2); transform: translateY(-1px); }
.btn-ghost { color: var(--deep-ink); border-color: rgba(233, 238, 243, .28); }
.btn-ghost:hover { background: rgba(233, 238, 243, .08); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }

/* The GitHub button: the mark, a label, and the stars once GitHub tells them. */
.gh-btn { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; border: 1px solid var(--gh-line, rgba(233, 238, 243, .28));
  color: var(--gh-ink, var(--deep-ink)); text-decoration: none; font: 600 14.5px var(--sans); overflow: hidden; transition: background .2s ease; }
.gh-btn:hover { background: rgba(233, 238, 243, .08); }
.gh-btn svg { width: 18px; height: 18px; margin: 0 8px 0 13px; flex: none; }
.gh-label { padding-right: 13px; }
.gh-count { align-self: stretch; display: inline-flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--gh-line, rgba(233, 238, 243, .28));
  font-variant-numeric: tabular-nums; background: rgba(233, 238, 243, .06); }
.gh-count::before { content: "★"; margin-right: 5px; color: #f2c14e; }
.gh-btn-light { --gh-ink: #fff; --gh-line: rgba(255, 255, 255, .35); height: 50px; border-radius: 12px; font-size: 16px; }

/* ---- navigation ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--deep) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--deep-ink); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: italic 600 23px/1 var(--display); letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; color: var(--deep-ink); }
.links { display: flex; gap: 24px; margin-left: 8px; }
.links a { color: var(--deep-muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---- hero ---- */
.hero { position: relative; background: radial-gradient(1100px 520px at 85% -10%, #1d4b72 0%, transparent 60%),
  radial-gradient(900px 600px at -10% 100%, #14395a 0%, transparent 60%), var(--deep); color: var(--deep-ink); padding: 92px 0 0; overflow: hidden; isolation: isolate; }
.tides { position: absolute; inset: 0; width: 100%; height: 560px; color: rgba(159, 209, 255, .13); z-index: -1; }
.tides path { animation: drift 26s ease-in-out infinite alternate; }
.tides .t2 { animation-duration: 33s; animation-delay: -7s; }
.tides .t3 { animation-duration: 41s; animation-delay: -13s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-140px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 860px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(159, 209, 255, .08); border: 1px solid rgba(159, 209, 255, .18); color: var(--foam); font-size: 13.5px; letter-spacing: .02em; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kelp); box-shadow: 0 0 0 4px rgba(27, 175, 122, .2); }
.hero h1 { font: 600 clamp(44px, 7.2vw, 88px)/.98 var(--display); letter-spacing: -.025em; max-width: 13ch; }
.hero h1 em { color: var(--foam); font-weight: 500; }
.lead { margin: 26px 0 0; max-width: 62ch; color: #c6d4e2; font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.fine { margin: 16px 0 0; color: var(--deep-muted); font-size: 14px; }
.hero-shot { margin-top: 64px; }
.frame { margin: 0; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0;
  box-shadow: 0 -10px 80px -20px rgba(106, 183, 255, .35), 0 40px 120px -40px rgba(0, 0, 0, .8); transform: perspective(1800px) rotateX(4deg);
  transform-origin: 50% 100%; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #e9e6dc; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3cfc2; }
.frame-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: rgba(255, 255, 255, .7); color: #6d6a62; font: 12.5px var(--mono); }
@media (prefers-color-scheme: dark) { .frame-bar { background: #1c2733; border-color: rgba(255, 255, 255, .06); } .frame-bar i { background: #33404e; }
  .frame-bar span { background: rgba(255, 255, 255, .06); color: #94a3b2; } }

/* ---- facts ---- */
.facts { background: var(--deep-3); color: var(--deep-ink); border-top: 1px solid rgba(255, 255, 255, .06); }
.facts-row { list-style: none; margin-block: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid rgba(159, 209, 255, .18); }
.facts b { font: 600 34px/1 var(--display); color: #fff; }
.facts span { color: var(--deep-muted); font-size: 14px; line-height: 1.4; }

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-block: 110px 90px; border-top: 1px solid var(--line-2); }
.pillars article { padding: 34px 34px 10px 0; }
.pillars article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.pillars .num { margin: 0 0 18px; font: 500 13px var(--mono); color: var(--coral); }
.pillars h3 { font: italic 600 30px/1.1 var(--display); margin-bottom: 14px; }
.pillars p { margin: 0 0 18px; color: var(--ink-2); }

/* ---- features ---- */
.features { padding: 40px 0 110px; }
.features .grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; transition: transform .2s ease, box-shadow .2s ease; }
.features article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.features svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--sea) 12%, transparent);
  fill: none; stroke: var(--sea); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin: 16px 0 6px; font: 600 17px/1.3 var(--sans); }
.features p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---- tour ---- */
.tour { padding: 100px 0; background: linear-gradient(var(--paper-2), var(--paper)); border-block: 1px solid var(--line); }
.tour-box { margin-top: 44px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.tour-tabs button { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 11px 14px; border: 0; border-radius: 10px; background: none;
  color: var(--ink-2); font: 500 16px var(--sans); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tour-tabs button span { font: 12px var(--mono); color: var(--muted); }
.tour-tabs button:hover { background: var(--line); color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--deep); color: #fff; }
.tour-tabs button[aria-selected="true"] span { color: var(--foam); }
.tour-panels figure { margin: 0; }
.tour-panels img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); animation: rise .45s ease both; }
.tour-panels figcaption { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour .center { margin-top: 40px; }

/* ---- how ---- */
.how { padding: 110px 0; }
.flow { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; }
.flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: flow; }
.flow li::before { content: "0" counter(flow); display: block; font: 12px var(--mono); color: var(--coral); margin-bottom: 14px; }
.flow li + li::after { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 1px dashed var(--line-2); }
.flow b { display: block; font: italic 600 24px/1.1 var(--display); margin-bottom: 8px; }
.flow span { color: var(--ink-2); font-size: 15px; line-height: 1.55; display: block; }
.note-line { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; }
.hosts { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.hosts h3 { font: italic 600 26px/1.15 var(--display); margin-bottom: 12px; }
.hosts p { margin: 0; color: var(--ink-2); }

/* ---- get started ---- */
.start { padding: 110px 0; background: var(--deep); color: var(--deep-ink); }
.start h2 em { color: var(--foam); }
.start .eyebrow { color: #ff9a6b; }
.steps { list-style: none; margin: 54px 0 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 34px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(159, 209, 255, .12); }
.step.wide { grid-template-columns: minmax(0, 1fr); }
.step.wide .step-text { max-width: 860px; }
.step-text h3 { font: italic 600 30px/1.1 var(--display); color: #fff; margin-bottom: 12px; display: flex; align-items: baseline; gap: 14px; }
.step-text h3::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--foam); color: var(--deep); font: normal 600 16px var(--sans); transform: translateY(-4px); }
.step-text p { margin: 0 0 14px; color: #c3d1df; }
.step-text .small { font-size: 14.5px; color: var(--deep-muted); }
.step-text a { color: var(--foam); }
.step-text code { color: #fff; }
.step-shot { margin: 0; }
.step-shot img { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.code { margin: 6px 0 14px; border-radius: 12px; background: var(--deep-3); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07); font: 12px var(--sans); color: var(--deep-muted); }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 13px/1.7 var(--mono); color: #d6e4f0; }
.code code { font: inherit; color: inherit; }
.copy { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: transparent;
  color: var(--deep-ink); font: 600 12px var(--sans); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .08); }

/* ---- privacy and security ---- */
.trust { padding: 110px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.trust h2 { font-size: clamp(28px, 3.4vw, 38px); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--kelp) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231baf7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* ---- FAQ ---- */
.faq { padding: 20px 0 110px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 18.5px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 26px var(--sans); color: var(--sea); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ---- final call ---- */
.cta-band { background: linear-gradient(120deg, #0f2a44 0%, #1d5a86 60%, #2a78d6 130%); color: #fff; }
.cta-band-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 64px 0; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); max-width: none; }
.cta-band p { margin: 10px 0 0; color: #c9dbee; }
.cta-band .cta-row { margin: 0; }

/* ---- footer ---- */
.foot { background: var(--deep-3); color: var(--deep-muted); padding: 64px 0 34px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.foot .brand { color: var(--deep-ink); }
.foot p { margin: 14px 0 0; max-width: 30ch; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot h3 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--deep-ink); margin-bottom: 6px; }
.foot a { color: var(--deep-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

/* ---- smaller screens ---- */
@media (max-width: 1080px) {
  .links { display: none; }
  .features .grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li + li::after { display: none; }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .gh-label { display: none; }
  .gh-btn svg { margin-right: 13px; }
  .gh-btn-light .gh-label { display: inline; }
  .hero { padding-top: 60px; }
  .hero-shot { margin-top: 44px; }
  .frame { transform: none; }
  .frame-bar span { display: none; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; margin-block: 70px 60px; }
  .pillars article, .pillars article + article { padding: 26px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .features .grid { grid-template-columns: 1fr; }
  .tour-box { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tour-tabs button { flex: none; }
  .flow, .hosts, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 22px; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tides path, .tour-panels img { animation: none; }
  .btn, .features article { transition: none; }
}
