/* FloatChart marketing site.
   Palette and type descend from the product itself — petrol accent, cool neutrals —
   so the site and the app feel like one thing. No external fonts or CDNs: everything
   is self-hosted, which keeps the page fast and the CSP as tight as the app's. */

:root {
  --accent: #0F6E6B;
  --accent-soft: #E3F0EF;
  --accent-ink: #0B4F4D;
  /* brand wordmark ink — the navy from the logo, kept apart from the UI ink */
  --brand-ink: #1E2D4E;
  --brand-ink-2: #566A8C;
  --ground: #F6F9F9;
  --panel: #FFFFFF;
  --panel-2: #EEF4F4;
  --ink: #0E1E1D;
  --ink-2: #405957;
  --ink-3: #6E8583;
  --line: #DCE7E6;
  --line-2: #C2D5D3;
  --shadow: 0 1px 2px rgba(14, 30, 29, .05), 0 8px 24px -12px rgba(14, 30, 29, .18);
  --shadow-lg: 0 2px 6px rgba(14, 30, 29, .06), 0 24px 48px -20px rgba(14, 30, 29, .28);
  --radius: 14px;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3FBDB7;
    --accent-soft: #10302F;
    --accent-ink: #8FE0DC;
    /* navy on a near-black ground reads as a smudge — take the page ink instead */
    --brand-ink: #E9F2F1;
    --brand-ink-2: #93A8A6;
    --ground: #0A1413;
    --panel: #121E1D;
    --panel-2: #162524;
    --ink: #E9F2F1;
    --ink-2: #A8BFBD;
    --ink-3: #7B9694;
    --line: #1E2E2D;
    --line-2: #2A3D3C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --accent: #3FBDB7;
  --accent-soft: #10302F;
  --accent-ink: #8FE0DC;
  --brand-ink: #E9F2F1;
  --brand-ink-2: #93A8A6;
  --ground: #0A1413;
  --panel: #121E1D;
  --panel-2: #162524;
  --ink: #E9F2F1;
  --ink-2: #A8BFBD;
  --ink-3: #7B9694;
  --line: #1E2E2D;
  --line-2: #2A3D3C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.021em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 760; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.09rem; font-weight: 680; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 84px; }
.eyebrow {
  font-size: 12px; font-weight: 720; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { display: block; }
/* the wordmark's contrast is weight, not colour: "float" solid, "chart" light */
.brand .wm { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--brand-ink); }
.brand .wm i { font-style: normal; font-weight: 400; color: var(--brand-ink-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 560; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 10px; font-size: 14.5px; font-weight: 640;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.btn-primary:hover { box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #06201F; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-primary { color: #fff; } }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 15px; font-size: 13.5px; color: var(--ink-3); }

/* the board that draws itself — the whole pitch, stated visually */
.demo {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; position: relative; overflow: hidden;
}
.demo-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.demo svg { width: 100%; height: auto; display: block; }
.dtile rect, .dtile path { fill: var(--panel-2); stroke: color-mix(in srgb, var(--ink-3) 45%, transparent); stroke-width: 1.4; }
.dtile.acc rect { fill: color-mix(in srgb, var(--accent) 15%, var(--panel)); stroke: var(--accent); }
.dtile text { fill: var(--ink-2); font: 600 8.5px ui-sans-serif, system-ui, sans-serif; }
.dlane { fill: color-mix(in srgb, var(--accent) 5%, transparent); stroke: var(--line); stroke-width: 1; }
.dlane-lbl { fill: var(--ink-3); font: 700 6.5px ui-sans-serif, system-ui, sans-serif; letter-spacing: .09em; }
.dedge { fill: none; stroke: color-mix(in srgb, var(--ink-3) 75%, transparent); stroke-width: 1.6; }
.dband { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke: none; }
.dband-lbl { fill: var(--accent); font: 700 6px ui-sans-serif, system-ui, sans-serif; letter-spacing: .09em; }

.draw { opacity: 0; animation: pop .5s ease forwards; }
.grow { stroke-dasharray: 200; stroke-dashoffset: 200; animation: dash .55s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(5px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
.d1 { animation-delay: .15s } .d2 { animation-delay: .45s } .d3 { animation-delay: .75s }
.d4 { animation-delay: 1.05s } .d5 { animation-delay: 1.35s } .d6 { animation-delay: 1.65s }
.d7 { animation-delay: 1.95s } .d8 { animation-delay: 2.25s }
@media (prefers-reduced-motion: reduce) { .draw, .grow { opacity: 1; stroke-dashoffset: 0; } }

/* ---------- generic section ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { max-width: 66ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; }
.alt { background: var(--panel); border-block: 1px solid var(--line); }

/* ---------- contrast strip ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.vs-card.bad { background: var(--panel-2); }
.vs-card h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.vs-card p { color: var(--ink-2); font-size: 15.5px; }
.vs-card.good { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot.g { background: var(--accent); } .dot.b { background: var(--ink-3); }

/* ---------- features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 26px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.feat .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 15px;
}
.feat .ico svg { display: block; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 15px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding-top: 44px; }
.step::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--panel); font-size: 14px; font-weight: 720;
}
:root[data-theme="dark"] .step::before, :root:not([data-theme="light"]) .step::before { color: #06201F; }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- pricing ---------- */
/* was an inline style="margin-top:22px", which the site's own CSP refused —
   style-src is 'self' here with no 'unsafe-inline', deliberately */
.billing-row { margin-top: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); }
.toggle button {
  border: 0; background: none; cursor: pointer; padding: 8px 15px; border-radius: 8px;
  font: 620 14px ui-sans-serif, system-ui, sans-serif; color: var(--ink-2);
}
.toggle button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.save { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-left: 9px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 34px; }
.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; height: 100%;
}
.tier.feature {
  border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative;
}
.tier.feature::before {
  content: "Most popular"; position: absolute; top: -11px; left: 26px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 720;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
}
:root[data-theme="dark"] .tier.feature::before, :root:not([data-theme="light"]) .tier.feature::before { color: #06201F; }
.tier h3 { font-size: 1.22rem; }
.tier .desc { color: var(--ink-3); font-size: 14px; margin-top: 6px; min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 4px; font-variant-numeric: tabular-nums; }
.price .amt { font-size: 2.7rem; font-weight: 740; letter-spacing: -.03em; }
.price .per { color: var(--ink-3); font-size: 14px; font-weight: 560; }
.billed { color: var(--ink-3); font-size: 13px; min-height: 20px; }
.tier .btn { margin: 22px 0 20px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.tier li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.tier li b { color: var(--ink); font-weight: 660; }
.tier .grp { font-size: 12px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.price-note { margin-top: 26px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 19px 40px 19px 0; font-weight: 640; font-size: 16.5px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; max-width: 68ch; }

/* ---------- cta + footer ---------- */
.cta-band { text-align: center; padding: clamp(52px, 8vw, 92px) 0; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-3); font-size: 13.5px; }
.foot-in { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .sp { margin-left: auto; }

.themebtn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.themebtn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .feats, .steps, .tiers, .vs { grid-template-columns: 1fr; }
  .tier.feature { order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-cta .btn-ghost { display: none; }
}
