/* FinCircle — marketing site.
   Palette transcribed from lib/config/app_colors.dart so the site and the app
   are the same product: blue carries the brand, green means money in, coral
   means money out. */

:root {
  --brand: #0B6BD6;
  --brand-dark: #084E9F;
  --brand-light: #5CA6EE;
  --teal: #12B5A5;
  --green: #36D788;
  --money-in: #12A05F;
  --money-out: #E5484D;
  --warning: #F5A524;
  --info: #7B5CFF;

  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #737C8B;
  --bg: #FFFFFF;
  --bg-alt: #F6F7FB;
  --card: #FFFFFF;
  --line: #E4E7EC;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(11, 107, 214, .18);

  --brand-sweep: linear-gradient(135deg, #0B6BD6 0%, #12B5A5 100%);
  --deep-sweep: linear-gradient(160deg, #0A3F86 0%, #0B6BD6 55%, #10A69C 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEFF5;
    --ink-soft: #A6B0C0;
    --ink-faint: #8A94A6;
    --bg: #0E1117;
    --bg-alt: #141922;
    --card: #171C26;
    --line: #262D3A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-sweep);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(11, 107, 214, .75);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
}
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: #101828;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.btn-store small { display: block; font-size: .68rem; opacity: .78; line-height: 1.2; }
.btn-store strong { display: block; font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.btn-store:hover { text-decoration: none; transform: translateY(-1px); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(18, 181, 165, .16), transparent 68%),
    radial-gradient(760px 420px at 8% 4%, rgba(11, 107, 214, .16), transparent 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: .84rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.pill b {
  background: var(--brand-sweep);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 span {
  background: var(--brand-sweep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }

.hero-note { font-size: .88rem; color: var(--ink-faint); }
.hero-note b { color: var(--ink-soft); font-weight: 600; }

/* --------------------------------------------------- hero app screenshot */

/* A real screenshot of the shipping app, frame and all — so what the page
   promises and what the app looks like cannot drift apart. */
.shot { margin: 0; }
.shot img {
  width: min(330px, 100%);
  height: auto;
  margin-inline: auto;
  border-radius: 38px;
  box-shadow: 0 40px 80px -30px rgba(10, 63, 134, .55),
              0 4px 14px rgba(16, 24, 40, .12);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.mini-row .dot {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: .95rem;
  background: rgba(11,107,214,.1);
}
.mini-row .t { flex: 1; min-width: 0; }
.mini-row .t b { display: block; font-size: .84rem; font-weight: 620; }
.mini-row .t span { font-size: .72rem; color: var(--ink-faint); }
.mini-row .v { font-size: .86rem; font-weight: 700; }
.v.in { color: var(--money-in); }
.v.out { color: var(--money-out); }
.v.neutral { color: var(--ink-faint); }

/* ----------------------------------------------------------------- sections */

section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  background: var(--brand-sweep);
  color: #fff;
}
.icon.green { background: linear-gradient(135deg, #12B5A5, #36D788); }
.icon.warm  { background: linear-gradient(135deg, #F5A524, #E5484D); }
.icon.violet{ background: linear-gradient(135deg, #7B5CFF, #0B6BD6); }

/* principle band */
.principle {
  background: var(--deep-sweep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
}
.principle h2 { color: #fff; }
.principle p { color: rgba(255,255,255,.86); }
.principle .grid { margin-top: 28px; }
.principle .chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 16px 18px;
}
.principle .chip b { display: block; margin-bottom: 4px; }
.principle .chip span { font-size: .88rem; color: rgba(255,255,255,.8); }

/* split / feature rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.rev > div:first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > div:first-child { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: .97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-sweep);
  box-shadow: inset 0 0 0 2px var(--card);
}

/* steps */
.step { counter-increment: step; }
.step .n {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 750;
  background: rgba(11,107,214,.1);
  color: var(--brand);
  margin-bottom: 14px;
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin-inline: auto; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 30px; }
.plan.featured { border-color: transparent; outline: 2px solid var(--brand); }
.plan .tag {
  position: absolute; top: -13px; right: 24px;
  background: var(--brand-sweep); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 2.5rem; font-weight: 780; letter-spacing: -.03em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .95rem; color: var(--ink-soft); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--money-in); font-weight: 700;
}
.plan li.no::before { content: "—"; color: var(--ink-faint); }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 620;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; }
.contact-card b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.contact-card a, .contact-card span { font-size: 1rem; color: var(--ink); }

/* cta band */
.cta-band {
  background: var(--deep-sweep);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 64px);
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

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

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 34px;
  font-size: .92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--brand); }
.foot-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: .87rem;
}

/* --------------------------------------------------------------- documents */

.doc-head {
  background:
    radial-gradient(700px 340px at 80% -20%, rgba(18,181,165,.16), transparent 70%),
    radial-gradient(600px 320px at 5% 0%, rgba(11,107,214,.16), transparent 70%);
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px);
}
.doc-head .updated { color: var(--ink-faint); font-size: .92rem; }

.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 52px; align-items: start; padding-bottom: 90px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } }

.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  font-size: .9rem;
}
@media (max-width: 900px) { .toc { position: static; } }
.toc b { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--ink-soft); }

.doc { max-width: 74ch; }
.doc h2 {
  font-size: 1.35rem;
  margin-top: 42px;
  padding-top: 6px;
  scroll-margin-top: 96px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.02rem; margin-top: 26px; }
.doc p, .doc li { color: var(--ink-soft); font-size: .98rem; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

.callout {
  border-left: 3px solid var(--brand);
  background: var(--bg-alt);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; font-size: .94rem; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
td { color: var(--ink-soft); }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px; position: fixed; z-index: 99;
  background: var(--card); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--brand);
}
