/* Cashure site – plain CSS, no build step, no external requests. */

:root {
  --bg: #1b2029;
  --bg-alt: #212733;
  --surface: #262d3b;
  --border: #353e50;
  --text: #eef1f6;
  --muted: #a3adbf;
  --accent: #4f83d1;
  --accent-text: #ffffff;
  --teal: #3db5a6;
  --purple: #8b72cc;
  --pink: #c9779f;
  --amber: #d99a3d;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-alt: #eaeff6;
    --surface: #ffffff;
    --border: #d5dce8;
    --text: #1b2029;
    --muted: #566174;
    --accent: #3a6fbd;
    --pink: #b9608a;
    --amber: #c4862a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header / footer */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.bar { min-height: 68px; }

/* Wordmark: the logo's three-ring "C" followed by "ashure" in the chart colours */
.wm-c { display: inline-block; width: .8em; height: .8em; margin-right: -.1em; overflow: visible; flex: none; }
.wm-c path { fill: none; stroke-width: 11; }
.wm-c .c1 { stroke: var(--accent); }
.wm-c .c2 { stroke: var(--teal); }
.wm-c .c3 { stroke: var(--purple); }
.wm-rest {
  background: linear-gradient(90deg, var(--teal) 0%, var(--purple) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal);
}
.brand.wordmark { gap: 0; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a:focus-visible { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); padding: 12px 0; font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-block; padding: .7em 1.3em; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.disabled { opacity: .6; cursor: default; filter: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5em 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 .5em; }
.hero-rest { margin-top: 28px; }
.hero-text h1 { margin: 0; }
.hero-brand {
  margin: 0 0 .15em; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(3rem, 7vw + 1rem, 5.5rem);
  color: var(--text);
}
.hero-brand .wm-c { margin-right: -.12em; }
.hero-art {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 47% 38%, color-mix(in srgb, var(--accent) 22%, var(--bg)), var(--bg) 70%);
  border: 1px solid var(--border);
}
.band.b1 { fill: var(--pink); }
.band.b2 { fill: var(--accent); }
.band.b3 { fill: var(--teal); }
.band.b4 { fill: var(--purple); }
.band.b5 { fill: var(--amber); }
.fan path { fill: none; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.5; }
.fan path.median { stroke: var(--text); stroke-opacity: 1; stroke-width: 2.5; stroke-dasharray: 10 8; }
.history { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.halo { fill: var(--accent); fill-opacity: .3; }
.dot { fill: var(--text); }
.hero-shot { margin: 48px auto 0; max-width: 1100px; text-align: center; }
.hero-shot img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.hero-shot figcaption { margin-top: 12px; }

/* Screenshots inside cards */
.card img {
  width: 100%; height: auto; margin-bottom: 18px;
  border-radius: 8px; border: 1px solid var(--border);
}

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; }
.center .section-lead { margin-inline: auto; }

.cards { display: grid; gap: 20px; margin: 36px 0 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card:nth-child(6n+1) { border-top: 3px solid var(--accent); }
.card:nth-child(6n+2) { border-top: 3px solid var(--teal); }
.card:nth-child(6n+3) { border-top: 3px solid var(--purple); }
.card:nth-child(6n+4) { border-top: 3px solid var(--pink); }
.card:nth-child(6n+5) { border-top: 3px solid var(--amber); }
.card:nth-child(6n)   { border-top: 3px solid var(--accent); }
.also { margin: 0; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps p { color: var(--muted); }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 12px;
}

.two-col { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.two-col p { color: var(--muted); }

.get { background: var(--bg); border-top: 1px solid var(--border); }
.get-icon { margin: 0 auto 16px; border-radius: 22px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Screenshot rows: text beside a large screenshot, alternating sides on wide screens */
.cards.rows { grid-template-columns: 1fr; }
.cards.rows .card { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.cards.rows .card img { margin-bottom: 0; }
.card-text h3 { font-size: 1.3rem; }
@media (min-width: 880px) {
  .cards.rows .card { grid-template-columns: 1fr 2fr; }
  .cards.rows .card:nth-child(even) { grid-template-columns: 2fr 1fr; }
  .cards.rows .card:nth-child(even) .card-text { order: 2; }
}

/* Click a screenshot to see it full size (see lightbox.js; without scripts the link opens the image itself) */
a.zoom { display: block; cursor: zoom-in; border-radius: 8px; }
.lightbox {
  padding: 0; border: 0; background: transparent; overflow: visible;
  max-width: none; max-height: none;
}
.lightbox::backdrop { background: rgb(0 0 0 / .82); }
.lightbox img {
  display: block; width: auto; height: auto; max-width: 96vw; max-height: 94vh;
  border-radius: 8px; box-shadow: 0 24px 80px rgb(0 0 0 / .6); background: var(--bg);
}
.lightbox-close {
  position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 700 28px/1 var(--font); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.lightbox-close:hover { border-color: var(--accent); }
body:has(dialog[open]) { overflow: hidden; }
