/* EasyStock website. Palette is taken from the app logo: deep teal and marigold. */
:root {
  --teal-deep: #0a4f4d;
  --teal: #0b7a75;
  --teal-ink: #083e3c;
  --tint: #def0ee;
  --paper: #eef3f2;
  --white: #fff;
  --ink: #162422;
  --ink-2: #4a5c59;
  --ink-3: #6f807d;
  --line: #d3dedb;
  --gold: #f5a100;
  --gold-ink: #2b1a00;
  --red: #c0392b;
  --green: #1b7f45;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: inherit; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw + .4rem, 4.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.6rem); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 48rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal-deep); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand img { border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #e6f3f1; text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.nav .btn { color: var(--gold-ink); }
.nav .btn:hover { color: var(--gold-ink); text-decoration: none; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: .6rem; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--teal-deep); padding: .5rem var(--pad) 1.2rem; border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 24px rgba(0,0,0,.25); }
  .nav.nav-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: .9rem; text-align: center; border-bottom: 0; padding: .85rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.5rem; border-radius: .7rem; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ffb629; color: var(--gold-ink); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-ink); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--tint); color: var(--teal-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.actions-left { margin-top: 1.5rem; }

/* ---------- Hero: ruled cash-book paper ---------- */
.hero {
  color: #fff;
  background-color: var(--teal-deep);
  background-image:
    linear-gradient(to right, transparent 26px, rgba(255,255,255,.13) 26px, rgba(255,255,255,.13) 27px, transparent 27px, transparent 31px, rgba(255,255,255,.13) 31px, rgba(255,255,255,.13) 32px, transparent 32px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.06) 35px, rgba(255,255,255,.06) 36px);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { max-width: 40rem; }
.hero .lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.3rem); line-height: 1.55; color: #d6ebe8; margin: 1.4rem 0 1.8rem; max-width: 36rem; }
.hero-note { margin: 1.3rem 0 0; font-size: .98rem; color: #b9d8d4; }
.hero-phone { margin: 0; justify-self: center; text-align: center; }
.hero-phone figcaption { margin: 1.1rem auto 0; max-width: 18rem; font-size: .92rem; color: #b9d8d4; line-height: 1.45; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 4rem; }
  .hero-phone { justify-self: end; }
}

.phone { width: min(100%, 17.5rem); padding: .55rem; border-radius: 2.4rem; background: #0b1917; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 1.5px #2c3f3c; }
.phone img { border-radius: 1.9rem; width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-phone .phone { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .hero-phone .phone { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: 2.5rem var(--section); }
.section-paper { background: var(--paper); }
.section-deep { background: var(--teal-deep); color: #fff; }
.section h2 { margin-bottom: 1.6rem; max-width: 36rem; }
.section-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; margin-top: -.6rem; }
.section-deep .section-lead { color: #c7e1de; }

/* compare */
.compare { display: grid; gap: 1.25rem; margin-top: .5rem; }
.compare-col { padding: 1.6rem 1.6rem 1.3rem; border: 1px solid var(--line); border-radius: 1rem; }
.compare-col h3 { margin-bottom: 1rem; color: var(--ink-2); }
.compare-us { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.compare-us h3 { color: #fff; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { position: relative; padding: .55rem 0 .55rem 2rem; border-top: 1px solid var(--line); }
.compare-us li { border-color: rgba(255,255,255,.18); }
.compare li::before { position: absolute; left: 0; top: .5rem; font-weight: 800; font-size: 1.1rem; }
.cross li::before { content: "\00D7"; color: var(--red); }
.tick li::before { content: "\2713"; color: var(--gold); }
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* day steps: this really is a sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.4rem 0 1.4rem 4.2rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1.15rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); max-width: 34rem; }
.steps-note { margin: 1.8rem 0 0; font-weight: 600; max-width: 40rem; }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
  .steps li, .steps li:last-child { padding: 4.4rem 0 0; border: 0; border-top: 3px double var(--ink-3); }
  .steps li::before { left: 0; top: 1rem; }
}

/* feature ledger: echoes the cashbox in the app (labels left, double rule, detail right) */
.ledger { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.ledger-head { background: var(--tint); padding: .7rem 1.2rem; font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; color: var(--teal-ink); border-top: 3px double var(--ink-3); }
.ledger-head:first-child { border-top: 0; }
.ledger-row { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.ledger-head + .ledger-row { border-top: 0; }
.ledger-row h3 { font-size: 1.08rem; }
.ledger-row p { margin: 0; color: var(--ink-2); }
@media (min-width: 44rem) {
  .ledger-row { grid-template-columns: 13rem 1fr; gap: 0; padding: 1rem 0; }
  .ledger-row h3 { padding: 0 1.2rem; align-self: start; }
  .ledger-row p { padding: 0 1.4rem; border-left: 4px double var(--ink-3); }
}
.more { margin: 1.4rem 0 0; font-weight: 650; }

/* screens strip */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: min(15rem, 70vw); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem 0 1.2rem; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
.screens figure { margin: 0; scroll-snap-align: start; }
.screens figcaption { margin-top: 1rem; font-size: .95rem; color: #c7e1de; line-height: 1.45; }
.screens figcaption strong { display: block; color: #fff; font-size: 1.02rem; }
.phone-sm { width: 100%; padding: .45rem; border-radius: 2rem; }
.phone-sm img { border-radius: 1.6rem; }
@media (min-width: 62rem) { .screens { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; } }

/* who it is for + roles */
.two-col { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.chips { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 550; font-size: .98rem; background: #fff; }
table.plain { width: 100%; border-collapse: collapse; margin-top: .2rem; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: .85rem .8rem .85rem 0; border-top: 1px solid var(--line); }
table.plain thead th { border-top: 0; border-bottom: 3px double var(--ink-3); font-family: var(--font-display); font-size: 1rem; color: var(--ink-2); }
table.plain tbody th { width: 7.5rem; font-weight: 700; }
table.plain td { color: var(--ink-2); }

/* price band */
.price-band { display: grid; gap: 1.6rem; align-items: center; }
.price-band h2 { margin-bottom: 1rem; }
@media (min-width: 56rem) { .price-band { grid-template-columns: 1fr auto; gap: 3rem; } }

/* FAQ: opens on tap */
.faq { border-top: 1px solid var(--line); margin-top: .6rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font-size: 1.6rem; line-height: 1; color: var(--teal); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 40rem; }

/* closing call to action */
.cta { background: var(--teal-deep); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-inner { display: grid; gap: 1.6rem; justify-items: start; }
@media (min-width: 52rem) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.2rem; background: var(--paper); border-bottom: 3px double var(--ink-3); }
.page-head h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.2rem); }
.lead-dark { margin: 1rem 0 0; font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; }
.page-head + .section-tight { padding-top: 3rem; }

.doc-list article { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.doc-list article:first-child { border-top: 0; padding-top: 0; }
.doc-list h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.doc-list p { color: var(--ink-2); max-width: 40rem; }
.doc-list ul { margin: .4rem 0 0; padding-left: 1.2rem; max-width: 40rem; }
.doc-list li { margin: .3rem 0; padding-left: .2rem; }

.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); max-width: 42rem; }
.prose ul { padding-left: 1.2rem; }

.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.price-table th, .price-table td { padding: 1rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--tint); color: var(--teal-ink); font-family: var(--font-display); font-weight: 750; border-bottom: 3px double var(--ink-3); }
.price-table tbody th { font-weight: 700; }
.price-table .num { text-align: right; }
.price-table .trial th, .price-table .trial td { background: #fff7e0; }
.fine { margin-top: .9rem; font-size: .92rem; color: var(--ink-3); }
h2.after { margin-top: 3rem; font-size: 1.6rem; }
.plain-steps { padding-left: 1.3rem; max-width: 40rem; color: var(--ink-2); }
.plain-steps li { margin: .6rem 0; padding-left: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: #c7e1de; padding-top: 3.2rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-blurb { margin: 1rem 0 0; max-width: 22rem; font-size: .98rem; }
.footer-h { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .5rem 0; }
.site-footer a { color: #c7e1de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.footer-base { margin-top: 2.6rem; padding-block: 1.3rem 1.8rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; }

@media (max-width: 30rem) { .price-table th, .price-table td { padding: .85rem .45rem; font-size: 1rem; } }
