/* Counterspot — shared styles.
   One accent (Counterspot's electric blue), warm-biased neutrals, and a mono face that carries
   filenames and column names, because the product is fundamentally about files. */

:root {
  color-scheme: light;
  --ground: #f5f3f0;
  --surface: #ffffff;
  --surface-2: #efebe6;
  --ink: #17141f;
  --muted: #6b6577;
  --line: #ded8d0;
  --accent: #3D63FF;
  --accent-ink: #2A49D6;
  --accent-soft: #E8EDFF;
  --shadow: 0 1px 2px rgba(23, 20, 31, .06), 0 8px 24px rgba(23, 20, 31, .06);
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(44px, 6vw, 80px); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 5.6vw, 58px); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; line-height: 1.12; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; overflow-wrap: break-word; }
a { color: var(--accent-ink); }
strong { font-weight: 600; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }
.note { font-size: 13px; color: var(--muted); }
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 64ch; margin-bottom: 28px; }

/* ---------- chrome ---------- */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; margin-right: auto; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.mark svg { display: block; }
nav.site { display: flex; align-items: center; gap: 18px; }
nav.site a { font-size: 14px; color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a[aria-current="page"] { font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
footer.site a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  font: 600 15px/1 var(--body); border-radius: 999px; padding: 15px 24px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--accent); color: #ffffff; border-color: color-mix(in srgb, var(--accent) 70%, #000); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn-quiet:hover { background: var(--surface-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- section bands ----------
   The page alternates ground and a raised band so sections read as separate
   stops rather than one long scroll. Full-bleed via a wrapper, not 100vw,
   which would reintroduce sideways scroll wherever a scrollbar is showing. */
.band { background: var(--ground); }
.band.tint { background: var(--surface); border-block: 1px solid var(--line); }
/* On a tinted band the cards need their own contrast back. */
.band.tint .card, .band.tint .rows, .band.tint .files,
.band.tint .plan, .band.tint .illus, .band.tint .table-scroll { background: var(--ground); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--accent); color: #ffffff;
  padding-block: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  font-size: 14px; font-weight: 600;
}
.announce .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.announce a { color: #ffffff; display: inline-flex; align-items: center; gap: 6px; }
.announce .ic { width: 15px; height: 15px; }

/* ---------- blocks ---------- */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 11px; align-content: start; }
.card p { color: var(--muted); font-size: 15px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 34px; }
.stat { display: grid; gap: 8px; justify-items: start; }
/* Sized to sit with the number rather than label it from a distance; the stroke
   thins out as it scales, so it is nudged back up. */
.stat > .ic { width: 36px; height: 36px; stroke-width: 1.45; color: var(--accent-ink); }
.stat .n { font: 800 clamp(26px, 3vw, 34px)/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); }

/* file manifest */
/* Sized by its contents, not stretched to match the card beside it — a file
   list with empty space under the last row looks like a loading failure. */
.files { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; }
.files ul { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.files .foot { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.files .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.files .bar .name { font: 500 12px/1 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.files ul { list-style: none; margin: 0; padding: 8px 0; }
.files li {
  display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
  padding: 6px 14px; font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere;
}
.files li .sz { color: var(--muted); font-size: 12px; white-space: nowrap; }
.files li.meta { color: var(--accent-ink); }

/* definition rows, used for limits and FAQ */
.rows { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row dt { font-weight: 600; font-size: 15px; }
.row dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  /* Column, so the feature list absorbs the slack and every card's button lines up. */
  display: flex; flex-direction: column; gap: 16px;
}
.plan ul { flex: 1 1 auto; align-content: start; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.plan .who { font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price .amount { font: 800 38px/1 var(--display); letter-spacing: -.03em; }
.price .per { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: 15px; align-items: start; }
.plan li svg { margin-top: 4px; }
.plan li .off { color: var(--muted); }
.ribbon {
  align-self: start; justify-self: start; font: 500 11px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft);
  border-radius: 999px; padding: 6px 10px;
}

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 10px; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.compare td.yes { color: var(--accent-ink); }
table.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

/* ---------- access ---------- */
.access { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.mailbox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail { font: 500 15px/1 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; user-select: all; }
.copied { font-size: 13px; color: var(--accent-ink); }

/* ---------- icons ---------- */
/* The sprite is inlined in every page; keep it out of flow without display:none. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1em; height: 1em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
/* A tinted tile behind an icon. This is the page's main visual anchor: one per
   card, step or section, never more — icons stop reading as signal when every
   line has one. */
.ic-badge {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); flex: 0 0 auto;
}
.ic-badge .ic { width: 21px; height: 21px; }
.ic-badge.plain { background: var(--surface-2); color: var(--ink); }
.card > .ic-badge { margin-bottom: 2px; }

/* label + icon pairs inside definition rows */
.row dt { display: flex; align-items: flex-start; gap: 9px; }
.row dt .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-ink); }
.rows.quiet .row dt .ic { color: var(--muted); }

/* inline icon sitting in a line of text or a heading */
.ic-inline { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .3em; color: var(--accent-ink); }

/* ---------- field chips (what's in the spreadsheet, in marketer words) ---------- */
/* An even grid rather than a ragged wrap — these are a set of fields, and they
   should look like one. */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.chip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 9px 10px;
}
.chip .ic { width: 15px; height: 15px; color: var(--accent-ink); }
/* The technical column name sits under the plain-English label, for whoever
   inherits the file — it shouldn't be the first thing a marketer reads. */
.chip .col { flex: 1 0 100%; margin: -4px 0 0 22px; font: 400 11px/1.3 var(--mono); color: var(--muted); }

/* ---------- illustration frames ---------- */
.illus {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: grid; place-items: center; overflow: hidden;
}
.illus svg { width: 100%; height: auto; max-width: 560px; display: block; }
/* Illustrations paint from the same tokens as the page, so they follow the theme. */
.illus text { font-family: var(--body); }
.illus text.m { font-family: var(--mono); }
.illus figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; max-width: 52ch; }
.illus.wide svg { max-width: 640px; }

/* ---------- steps with numbered badges ---------- */
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head .num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent); color: #ffffff; font: 700 13px/1 var(--body); font-variant-numeric: tabular-nums;
}

/* ---------- file manifest, with a type icon per row ---------- */
.files li .ic { width: 15px; height: 15px; color: var(--muted); margin-right: 2px; }
.files li > span:first-of-type { display: flex; align-items: center; gap: 8px; min-width: 0; }
.files li.meta .ic { color: var(--accent-ink); }

/* ---------- comparison table ---------- */
table.compare td .ic { width: 17px; height: 17px; vertical-align: -.2em; margin-right: 6px; }

@media (max-width: 900px) {
  .plans, .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  nav.site { gap: 14px; }
}
@media (max-width: 720px) {
  /* Six nav items don't fit beside the brand on a phone. Drop them to their own
     line and let that line scroll sideways on its own rather than the page. */
  .top-in { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .brand { margin-right: 0; flex: 1 0 100%; }
  nav.site {
    flex: 1 0 100%; gap: 16px; overflow-x: auto; scrollbar-width: none;
    margin-inline: -20px; padding-inline: 20px; padding-bottom: 2px;
  }
  nav.site::-webkit-scrollbar { display: none; }
  nav.site a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Plan feature ticks read as confirmations, so they take the accent; the one
   greyed-out line keeps its muted colour. */
.plan li .ic { color: var(--accent-ink); }
.plan li .off ~ .ic, .plan li:has(.off) .ic { color: var(--muted); }

/* ---------- accordion ----------
   Native <details>, so it works with no script and the browser handles
   keyboard and find-in-page for us. */
.faq { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 20px 22px; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 19px; height: 19px; color: var(--accent-ink); }
/* One glyph doing two jobs: the X sits at 45deg while closed, which reads as a
   plus, and returns to an X when the answer is open. */
.faq summary .sign { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transform: rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary .sign { transform: rotate(0deg); }
.faq details[open] summary { padding-bottom: 8px; }
.faq .answer { padding: 0 22px 22px 53px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 560px) { .faq .answer { padding-left: 22px; } }

/* ---------- product screenshots ----------
   Real captures of the extension. They are light-mode PNGs, so the frame keeps
   its own pale ground in both themes; otherwise they glare out of a dark page
   like a lightbox. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
/* The three captures are different shapes, so the frames are a fixed height and
   the image sits inside them. Otherwise the captions stagger. */
.shot { display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.shot .frame {
  background: #f1eee9; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: grid; place-items: center; overflow: hidden; min-height: 300px;
}
.shot img {
  display: block; width: auto; max-width: 100%; max-height: 268px; height: auto;
  border-radius: 8px; box-shadow: 0 1px 3px rgba(23,20,31,.14), 0 10px 26px rgba(23,20,31,.10);
}
.shot figcaption { font-size: 14px; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* a single screenshot beside a block of copy */
.shot-wide .frame { padding: 20px; }
.shot-wide img { max-width: 460px; margin-inline: auto; }

/* ---------- numbered steps ----------
   Shared: used by the home page's how-it-works and by contact's what-happens-next. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: grid; gap: 8px; align-content: start; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- the contact address, which is the point of that page ---------- */
.mail-card { justify-items: start; }
.mail-card .mail { font-size: clamp(18px, 2.4vw, 24px); padding: 16px 20px; border-radius: 12px; }
.mail-card .mailbox { gap: 14px; }

/* a single screenshot standing in for an illustration */
.illus.shot-solo { background: #f1eee9; padding: 24px; }
.illus.shot-solo img {
  display: block; width: auto; max-width: min(100%, 460px); height: auto; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(23,20,31,.14), 0 12px 30px rgba(23,20,31,.12);
}
.illus.shot-solo figcaption { color: #6b6577; }

/* ---------- pricing: five tiers ---------- */
.plans-label { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px; }
.plans.two { grid-template-columns: repeat(2, 1fr); }
.plan .status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-top: -6px; }
.plan .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: 0 0 auto; }
.plan .status.live { color: var(--accent-ink); }
.plan .status.live::before { background: var(--accent); border-color: var(--accent); }
.soon { display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 7px; margin-left: 4px; vertical-align: .1em; white-space: nowrap; }
.soon-cell .soon { margin-left: 0; }
.founding { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 16px; padding: 16px 20px; margin-top: 8px; }
.founding .ic { width: 22px; height: 22px; color: var(--accent-ink); flex: 0 0 auto; margin-top: 2px; }
.founding p { margin: 0; font-size: 15px; }
.plans-foot { margin-top: 18px; }
@media (max-width: 900px) { .plans.two { grid-template-columns: 1fr; } }
/* Notes run one or two lines; reserve two so every card's button sits at the same height. */
.plan .note { min-height: 3.2em; margin: 0; }

/* ---------- forms (sign-in and account pages) ---------- */
.wrap.narrow { max-width: 560px; }
/* Account flows (sign in, connect, account) are short messages, not marketing headlines. */
.wrap.narrow .head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.access h2 { overflow-wrap: anywhere; }
.form { display: grid; gap: 10px; }
.form label { font-weight: 600; font-size: 14px; }
.form input {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-error { color: #B42318; font-size: 14px; }
.sent-note { color: var(--ink); }
.signin-or { text-align: center; color: var(--muted); font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; justify-self: start; }

/* ---------- account pages: checkout, connect, account ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; margin-bottom: 18px; }
.panel h2 { font-size: 22px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .btn[aria-pressed="true"] { background: var(--accent-soft); font-weight: 600; }
.price-now { font: 800 clamp(34px, 5vw, 48px)/1 var(--display); }
.keyline { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.account-email { overflow-wrap: anywhere; }
.who { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; overflow-wrap: anywhere; margin: 0; }
.btn-google { background: #ffffff; color: #1f1f1f; border: 1px solid #747775; font-weight: 500; }
.btn-google:hover { background: #f6f8fe; }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.dl { display: grid; gap: 10px; margin-top: 4px; }
.dl code { font-family: var(--mono); background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 2px 6px; }
.dl .howto { font-size: 15px; }
.howto { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.confirm { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.badge { font: 600 12px/1 var(--mono); background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 5px 9px; }
.alert { border-radius: 14px; padding: 12px 16px; background: #fff4e5; border: 1px solid #f0c98a; color: var(--ink); }
.btn-danger { background: transparent; color: #b42318; border-color: #b42318; }
