/* One stylesheet, served from this origin, no web fonts.
   A marketing site that waits on a font CDN is a marketing site that renders
   late for the visitor with the worst connection — and a third-party font
   request is a third party learning who reads this page. The system stack is
   what the reader's own device already has. */

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

:root {
  /* Blue into violet, sampled from the product mark rather than chosen beside
     it — the logo's own gradient runs #246ce4 to #7848e4 over a deep navy, and
     these are those hues pulled to where they pass contrast as text.

     `--accent-fill` exists separately from `--accent-strong` because a button
     and a link want opposite things in dark mode: a link has to be light enough
     to read on a dark page, and a button carrying white text has to stay dark
     enough for that text. One token cannot be both, and using one was a real
     defect — white on the old dark-mode button measured 1.82:1. */
  /* Brand: the navy and the gold of the BrightPoint Studio logo. Navy carries
     the bands (hero, page heads, footer); gold is the one call to action. Gold
     always carries navy text, never white — white on gold fails contrast. */
  --brand-navy: #0c1f3f;
  --brand-navy-2: #132b55;
  --brand-gold: #f6b40e;
  --brand-gold-hover: #ffc83d;
  --on-gold: #0c1f3f;
  --on-navy: #ffffff;
  --on-navy-2: #c9d4ea;
  --on-navy-line: #26406e;

  --accent: #2d5cb8;
  --accent-strong: #1d4594;
  --accent-fill: #0c1f3f;
  --accent-violet: #1d4594;
  --on-accent: #ffffff;
  --accent-wash: #eef3fc;

  --ink: #0c1f3f;
  --ink-2: #3b4d6e;
  --ink-3: #5d6c88;
  --page: #f5f7fb;
  --panel: #ffffff;
  --line: #dde3ee;

  --good: #1c6b4a;
  --warn: #8a5a12;

  /* The ground the product artwork was drawn on. Not a theme colour — it is a
     property of the file, and it is declared identically in both themes so the
     edges of the image disappear into its frame rather than sitting in a pale
     box on a dark page. Replace it if the artwork is ever redrawn. */
  --asset-ground: #f7f8f3;

  --radius: 10px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Lightened for a dark ground, and `--accent-fill` deliberately is not:
       it carries white text. */
    --accent: #8fb0ff;
    --accent-strong: #a9c2ff;
    --accent-fill: #f6b40e;
    --accent-violet: #a9c2ff;
    --on-accent: #0c1f3f;
    --accent-wash: #12244a;

    --brand-navy: #0c1f3f;
    --brand-navy-2: #132b55;

    --ink: #eef2fa;
    --ink-2: #b4c0d8;
    --ink-3: #8a98b4;
    --page: #08142a;
    --panel: #0f2042;
    --line: #22375f;

    --good: #6bbd92;
    --warn: #d8a85a;
  }
}

html {
  /* Anchored headings clear the sticky bar rather than hiding under it. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* The page never scrolls sideways. Wide things scroll inside their own box,
     which is what `.scroller` below is for. */
  overflow-x: hidden;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

section {
  padding-block: clamp(40px, 7vw, 88px);
}

section + section {
  border-top: 1px solid var(--line);
}

.skip {
  position: absolute;
  left: -9999px;
}

/* In the outline for screen readers, not on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--page);
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

/* --- Type --------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 650;
  /* Long compound words in a heading break rather than widen the page. */
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(30px, 5.4vw, 50px);
}

/* An index page's own title. It introduces a grid of cards rather than opening
   an argument, so it does not need hero weight — at full size it competes with
   the card headings it is meant to sit above. */
h1.compact {
  font-size: clamp(25px, 3.4vw, 34px);
}

h2 {
  font-size: clamp(24px, 3.6vw, 33px);
}

h3 {
  font-size: clamp(19px, 2.2vw, 22px);
}

.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-2);
  max-width: var(--measure);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.muted {
  color: var(--ink-3);
  font-size: 15px;
}

/* --- Header ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  /* White, not navy: the logo is navy and would vanish on its own colour. */
  background: color-mix(in srgb, #ffffff 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  /* Wraps rather than overflows on a narrow phone. */
  flex-wrap: wrap;
  padding-block: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  color: var(--brand-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark img {
  width: auto;
  height: 40px;
}

.wordmark span {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wordmark:hover {
  color: var(--brand-navy);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: wrap;
}

.masthead nav a {
  color: #3b4d6e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--brand-navy-2);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- Cards and grids ---------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
  /* Collapses to one column on its own — no breakpoint to forget. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 36px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

/* A card that is the top level under its page's h1 (the products index) is an
   h2 for the outline, sized as the h3 cards everywhere else. */
.card h2 {
  font-size: clamp(19px, 2.2vw, 22px);
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
}

.steps h3 {
  font-size: 18px;
}

.steps p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin-top: 4px;
}

/* --- Plans -------------------------------------------------------------- */

.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: 40px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--page);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.plan[data-featured="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--accent-wash);
}

.plan .price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan .interval {
  color: var(--ink-3);
  font-size: 14px;
}

.plan .allowance {
  font-weight: 600;
  font-size: 15px;
}

.plan p {
  color: var(--ink-2);
  font-size: 15px;
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

/* A price on a card. The card's job is to get somebody onto the product page,
   not to close a sale there — so the figure is orientation rather than the
   pitch, and it sits under the copy in a quieter voice. The plan cards on the
   pricing page itself are where a price is allowed to shout. */
.price-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-3);
  margin-top: 16px;
}

.price-note + .price-note {
  margin-top: 2px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  /* The mark's own gradient. Both stops clear 4.5:1 against the white label, so
     it is legible wherever the browser happens to sample it. */
  background: linear-gradient(
    100deg,
    var(--accent-fill),
    var(--accent-violet)
  );
  color: var(--on-accent);
}

/* --- Tables ------------------------------------------------------------- */

/* A wide table scrolls inside this, so the page itself never does. */
.scroller {
  overflow-x: auto;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--panel);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td[data-support] {
  white-space: nowrap;
}

.yes {
  color: var(--good);
  font-weight: 700;
}

.no {
  color: var(--ink-3);
}

/* --- Notices ------------------------------------------------------------ */

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: var(--measure);
}

.gap {
  border-left-color: var(--warn);
}

.gap strong {
  color: var(--warn);
}

/* --- Definition lists (contact, company facts) -------------------------- */

.facts {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(160px, 34%) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-3);
  font-size: 15px;
}

.facts dd {
  font-weight: 550;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* --- Contact forms ------------------------------------------------------ */

/* One <details> per reason for writing. They share a `name`, so the browser
   keeps one open at a time without a script. */
.topics {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: var(--measure);
}

.topics details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.topics details[open] {
  border-color: var(--accent);
}

.topics summary {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.topics summary::-webkit-details-marker {
  display: none;
}

.topic-title {
  font-weight: 650;
  color: var(--ink);
}

.topic-title::after {
  content: " +";
  color: var(--accent-strong);
}

details[open] .topic-title::after {
  content: " −";
}

.contact-form {
  padding: 4px 18px 20px;
}

.contact-form fieldset {
  border: 0;
  display: grid;
  gap: 16px;
}

.contact-form fieldset:disabled {
  opacity: 0.6;
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  gap: 16px;
  /* Side by side where there is room, stacked on a phone, no breakpoint. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.field label {
  font-weight: 550;
  font-size: 15px;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
}

.hint {
  color: var(--ink-3);
  font-size: 14px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

/* The honeypot: out of sight and out of the tab order, but still in the form
   so a bot filling every field fills this one too. */
.trap {
  position: absolute;
  left: -10000px;
  overflow: hidden;
  height: 1px;
}

/* What the application redirects back to. Hidden until the fragment names it. */
.notice {
  display: none;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-wash);
  max-width: var(--measure);
}

.notice:target,
.notice-standing {
  display: block;
}

.notice-good {
  border-color: var(--good);
}

.notice-warn {
  border-color: var(--warn);
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  border-top: 4px solid var(--brand-gold);
  background: var(--brand-navy);
  color: var(--on-navy-2);
  padding-block: 48px 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.footer h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-gold);
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--on-navy-2);
  text-decoration: none;
  font-size: 15px;
}

.footer a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

.colophon {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--on-navy-2);
  font-size: 14px;
}

.footer-brand {
  color: var(--on-navy);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-brand + p {
  max-width: 34ch;
  font-size: 15px;
}

/* The identification the law requires of a business website (Romanian Law
   365/2002, art. 5). Small and plain, in the footer of every page. */
.legal-id {
  margin-top: 16px;
  color: var(--on-navy-2);
  font-size: 13px;
  line-height: 1.6;
}

/* The product hero: copy on the left, the mark beside it rather than stacked
   on top. A tall portrait logo above the heading pushes the whole pitch down
   the page and leaves the right half of a wide screen empty. */
.product-hero {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
}

.product-logo {
  /* The artwork carries its own pale ground, so it needs a plate rather than
     nothing — otherwise it is a light rectangle floating on a dark page. Lifted
     on a shadow instead of ringed by a border, which is what makes it read as a
     mark on a card rather than an image somebody pasted in. */
  background: var(--asset-ground);
  border-radius: 18px;
  /* No padding, and the image is clipped to the same radius. A plate with a
     margin around the artwork shows a seam wherever the card's colour and the
     file's own ground are not identical to the pixel — which, on a photographic
     JPEG, they never are. The card is the image. */
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 27, 48, 0.08),
    0 18px 40px -20px rgba(15, 27, 48, 0.45);
  /* Never wider than the file itself, so it cannot upscale into softness. */
  max-width: 320px;
  justify-self: center;
  margin: 0;
}

.product-logo img {
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  /* Ahead of the copy on a phone, where a mark is a fast way to know what you
     are looking at — and small enough that it does not become the whole first
     screen. */
  .product-hero .product-logo {
    order: -1;
    max-width: 190px;
    justify-self: start;
  }
}

/* --- Hero --------------------------------------------------------------- */

/* Navy bands: the home and product heroes, and the head of every other page.
   Everything inside is re-coloured for a dark ground in one place, so a
   template only has to add the class. */
.hero,
.page-head {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(246, 180, 14, 0.16), transparent 60%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  color: var(--on-navy);
  border-bottom: 4px solid var(--brand-gold);
}

.hero + section,
.page-head + section {
  border-top: 0;
}

.hero .lede,
.page-head .lede,
.hero .muted,
.page-head .muted {
  color: var(--on-navy-2);
}

.hero .eyebrow,
.page-head .eyebrow,
.hero .eyebrow a,
.page-head .eyebrow a {
  color: var(--brand-gold);
}

.hero a:not(.btn),
.page-head a:not(.btn) {
  color: var(--on-navy);
}

.hero .btn-primary,
.page-head .btn-primary {
  background: var(--brand-gold);
  color: var(--on-gold);
}

.hero .btn-primary:hover,
.page-head .btn-primary:hover {
  background: var(--brand-gold-hover);
  color: var(--on-gold);
}

.hero .btn-ghost,
.page-head .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--on-navy);
}

.hero .btn-ghost:hover,
.page-head .btn-ghost:hover {
  border-color: var(--brand-gold);
  color: var(--on-navy);
}

.hero .channels li {
  border-color: var(--on-navy-line);
  color: var(--on-navy-2);
}

.hero h1 .highlight {
  color: var(--brand-gold);
}

.hero {
  padding-block: clamp(56px, 9vw, 112px);
}

.page-head {
  padding-block: clamp(40px, 6vw, 72px);
}

.hero .lede {
  margin-top: 20px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  list-style: none;
}

.channels li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--panel);
}

.channels li[data-live="false"]::after {
  content: " · pending approval";
  color: var(--ink-3);
  font-size: 12px;
}

@media print {
  .masthead,
  .footer {
    display: none;
  }
}

/* --- Brand touches ------------------------------------------------------ */

/* The cards sit white on the off-white page, lifted rather than outlined, with
   the gold showing on the edge of the one under the pointer. */
.card {
  box-shadow: 0 1px 2px rgba(12, 31, 63, 0.06);
  border-top: 3px solid var(--brand-navy);
}

.card:hover {
  border-top-color: var(--brand-gold);
}

@media (prefers-color-scheme: dark) {
  /* The masthead stays white in both themes, because the logo is navy. */
  .card {
    border-top-color: var(--accent);
  }
}
