/* SMEPoint LLC — the company site.
 *
 * Same layout language as carvect.com: a dark navy hero and closing band,
 * eyebrow-labelled serif headings, hairline card grids, and alternating
 * feature rows on a white and pale-blue ground. The identity is kept distinct
 * from the product site by a teal accent in place of Carvect's blue.
 *
 * Light only: `color-scheme: light`, and no dark media query. The navy hero
 * and closing are deliberate dark BANDS, not a theme that follows the system.
 * An earlier version flipped the whole page to near-black on a dark Mac and
 * read as closed; this one never does.
 *
 * No JavaScript, anywhere. The Caddy block sets `script-src 'none'` and
 * `style-src 'self'` with no 'unsafe-inline'; both are only honest while they
 * stay true, so there is no <script> and no style="" in these pages.
 */

:root {
  color-scheme: light;

  --ground: #ffffff;
  --ground-2: #f1f6fb;        /* the pale-blue alternate band */
  --surface: #ffffff;
  --paper: #ffffff;           /* text/rules on the accent */

  --deep: #071f34;            /* the dark bands: hero, closing */
  --deep-2: #0f3a5c;          /* the lit end of those bands */
  --on-deep: #eaf2f8;
  --on-deep-mute: #a7c0d1;
  --on-deep-faint: #809bb0;

  --ink: #0c2f4c;             /* headings, brand, nav */
  --text: #3b5262;            /* body */
  --mist: #5d7385;            /* secondary */
  --faint: #8698a6;

  /* status tones: account pills, notices, invoices */
  --good: #2f7d55;
  --warn: #8a6a1d;  --bad: #d1563f;
  --line: rgba(12, 47, 76, 0.12);
  --line-strong: rgba(12, 47, 76, 0.22);
  --line-dark: rgba(234, 242, 248, 0.16);

  --accent: #0d8f80;          /* teal: links, buttons, eyebrows, the brand */
  --accent-deep: #0b7366;
  --accent-lift: #4fd0bf;     /* the accent on the dark bands */
  --accent-soft: rgba(13, 143, 128, 0.09);
  --accent-line: rgba(13, 143, 128, 0.40);

  /* the companions, used on the card tones and the spectrum rule */
  --teal: #0d8f80;
  --sky: #2f86dd;
  --violet: #7563e0;
  --coral: #e0573f;
  --amber: #d98a12;
  --teal-soft: #e7f6f3;
  --sky-soft: #eaf3fd;
  --violet-soft: #f1effd;
  --coral-soft: #fdefec;
  --amber-soft: #fdf4e4;
  --spectrum: linear-gradient(
    90deg, var(--teal), var(--sky) 28%, var(--violet) 52%, var(--coral) 76%,
    var(--amber)
  );

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.07;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
h1 strong, h2 strong { font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-deep); }
strong { color: var(--ink); font-weight: 600; }

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

.lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--mist); max-width: 56ch; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mist); }

/* --- shell + section rhythm --------------------------------------------- */
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.shell.narrow { max-width: 820px; }

section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
section.paper { background: var(--ground-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow.plain::after { display: none; }

section > .shell > h2 + .lede, .section-head .lede { margin-top: 0.8rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; position: fixed; z-index: 30;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem;
  border: 1px solid var(--line);
}

/* --- header / nav ------------------------------------------------------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .bar { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.brand {
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
/* SMEPoint is one word: no gap between SME and Point. The mark keeps its
   space from the wordmark via the mark's own right margin instead of a flex
   gap, which would otherwise fall between SME and Point too. */
.brand span { color: var(--accent); }
.brand-mark { height: 30px; width: auto; flex: 0 0 auto; object-fit: contain; display: block; margin-right: 0.5rem; }
.top nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.top nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--accent); }
.top nav a.btn { color: var(--paper); }
@media (max-width: 940px) {
  .top .bar { gap: 1rem; }
  .top nav { min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 1.1rem; padding-block: 0.4rem; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 4px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--paper);
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); color: var(--paper); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn.small { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
.cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* --- hero + dark bands -------------------------------------------------- */
.hero { background: var(--deep); color: var(--on-deep); }
.hero .frame {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 960px) {
  .hero .frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.hero .copy > * { max-width: 36rem; }
.hero h1 { color: #ffffff; margin-bottom: 1.3rem; }
.hero .lede { color: var(--on-deep-mute); }
.hero .eyebrow { color: var(--accent-lift); }
.hero .eyebrow::after { background: var(--line-dark); }
.hero .note { margin-top: 1.3rem; font-size: 0.84rem; color: var(--on-deep-faint); }
.hero .btn.ghost { color: #ffffff; border-color: rgba(255,255,255,0.42); background: rgba(7,31,52,0.35); }
.hero .btn.ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.12); color: #ffffff; }

/* The hero picture. A bounded, clamped height with object-fit cover crops the
   photograph into a band at every width, rather than letting `height:auto`
   track the viewport width into a wall. No max-height — that only caps the
   wall instead of replacing it. */
.hero-figure { margin: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  height: clamp(240px, 40vh, 440px);
  object-fit: cover;
  object-position: 28% center;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  background: var(--deep-2);
}
.hero-figure figcaption {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-deep-faint);
}

.closing {
  background:
    radial-gradient(70% 150% at 50% 108%, var(--accent-line), transparent 62%),
    linear-gradient(180deg, var(--deep-2), var(--deep));
  color: var(--on-deep);
  text-align: center;
}
.closing h2 { color: #ffffff; margin-bottom: 1rem; }
.closing .lede { color: var(--on-deep-mute); margin-inline: auto; }
.closing .eyebrow { color: var(--accent-lift); justify-content: center; }
.closing .eyebrow::after, .closing .eyebrow::before { display: none; }
.closing .cta { justify-content: center; }
.closing .note { margin-top: 1.5rem; font-size: 0.84rem; color: var(--on-deep-faint); }
.closing .btn.ghost { color: #ffffff; border-color: rgba(255,255,255,0.42); background: rgba(7,31,52,0.35); }
.closing .btn.ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.12); color: #ffffff; }

/* --- card grids (hairline) --------------------------------------------- */
.section-head .lede { max-width: 60ch; }

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.4rem;
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); padding: 1.9rem 1.7rem 2rem; display: flex; flex-direction: column; }
.card .n {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card > p { color: var(--mist); font-size: 0.95rem; margin: 0 0 1.2rem; }
.card[class*="tone-"] { box-shadow: inset 0 3px 0 var(--tone); }
.card[class*="tone-"] .n { color: var(--tone); }
.tone-teal { --tone: var(--teal); }
.tone-sky { --tone: var(--sky); }
.tone-violet { --tone: var(--violet); }
.tone-coral { --tone: var(--coral); }
.tone-amber { --tone: var(--amber); }

.card .facts { margin: 0 0 1.3rem; }
.card .facts div { display: flex; gap: 0.6rem; padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.card .facts div:first-child { border-top: none; }
.card .facts dt {
  flex: 0 0 5.6rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tone, var(--accent)); padding-top: 0.15rem;
}
.card .facts dd { margin: 0; color: var(--ink); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.product-logo { display: block; height: auto; margin: 0 0 1rem; }
.card .product-logo { display: block; width: 148px; height: auto; margin: 0 0 1rem; }

/* --- feature rows (alternating text / shot) ----------------------------- */
.features .shell { display: grid; gap: clamp(3.6rem, 7vw, 5.5rem); }
.feature { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.9rem; }
.feature-copy > p { color: var(--mist); max-width: 52ch; margin: 0 0 1.4rem; }
.feature .product-logo { display: block; width: 150px; height: auto; margin: 0 0 1.1rem; }
/* Product lockup: the product mark + its name (colour-split), used as the
   heading wherever a product is described. SMEPoint is one word. */
.product-lockup { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0 0.6rem; }
.product-lockup .product-mark { height: 46px; width: auto; flex: 0 0 auto; object-fit: contain; display: block; }
.product-lockup .product-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.product-lockup .product-name span { color: var(--accent); }
.feature-more { margin: 1.5rem 0 0; font-weight: 600; font-size: 0.92rem; }
.feature-more a { color: var(--accent); text-decoration: none; }
.feature-more a::after { content: " \2192"; }
.feature-more a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .feature.flip .wide-shot { order: 2; }
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding: 0 0 0 1.5rem; margin-bottom: 0.8rem;
  font-size: 0.94rem; line-height: 1.55; color: var(--mist);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45rem;
  width: 5px; height: 9px;
  border-right: 1.7px solid var(--accent); border-bottom: 1.7px solid var(--accent);
  transform: rotate(42deg);
}

.wide-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(12, 47, 76, 0.12);
}
.wide-shot img { display: block; width: 100%; height: auto; }
.wide-shot figcaption {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
  padding: 0.7rem 0.9rem; border-top: 1px solid var(--line);
}

/* --- facts list (plain, for licensing etc.) ----------------------------- */
.facts { margin: 1.6rem 0; }
.facts.rows > div {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.facts.rows > div:first-child { border-top: 1px solid var(--line); }
.facts.rows dt {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep); flex: 0 0 11rem; padding-top: 0.15rem;
}
.facts.rows dd { margin: 0; flex: 1 1 16rem; color: var(--ink); }
/* On the buy card, keep the fact table (and its rules) to the text column
   width above, not the full card width. */
.product-card .facts.rows { max-width: 62ch; }

/* --- downloads grid ----------------------------------------------------- */
.downloads { display: grid; gap: 1.2rem; margin: 2.2rem 0 1rem; }
@media (min-width: 640px) { .downloads { grid-template-columns: 1fr 1fr; } }
.dl {
  --tone: var(--accent);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tone);
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  padding: 1.5rem 1.6rem 1.7rem;
}
.dl:nth-of-type(2n) { --tone: var(--sky); }
.dl .os {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tone); margin: 0 0 0.3rem;
}
.dl h3 { margin: 0 0 0.4rem; }
.dl .product-lockup { gap: 0.45rem; margin: 0 0 0.55rem; }
.dl .product-lockup .product-mark { height: 26px; }
.dl .product-lockup .product-name { font-size: 1rem; }
.dl p { font-size: 0.92rem; color: var(--mist); margin-bottom: 1.2rem; }

.panel {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  padding: 1.5rem 1.6rem; margin: 1.4rem 0;
}
.panel h3 { margin: 0 0 0.5rem; }
.panel p { margin: 0; }

/* --- footer (light) ----------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 3.4rem;
  color: var(--faint);
  font-size: 0.875rem;
  background: var(--ground-2);
}
.foot .row { display: flex; gap: 1.4rem 2.4rem; flex-wrap: wrap; align-items: baseline; }
.foot strong { color: var(--ink); }
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--accent-deep); }
.foot .foot-brand { flex: 1 1 18rem; }
.foot .foot-brand p { margin: 0 0 0.6rem; max-width: 40ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.3rem; }

/* ===================================================================== */
/* Store-only additions: auth forms, licence key, orders table, buy box. */
/* ===================================================================== */
.navform { display: inline; margin: 0; }
.navform button {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink); background: none; border: 0;
  cursor: pointer; padding: 0;
}
.navform button:hover { color: var(--accent); }

.auth { display: flex; flex-direction: column; gap: 1rem; max-width: 26rem; margin: 1.6rem 0; }
.auth label {
  display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist);
}
.auth input {
  font-family: var(--body); font-size: 1rem; text-transform: none; letter-spacing: 0;
  padding: 0.7rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--ink);
}
.auth input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth .btn { align-self: flex-start; }
.error {
  color: #b23c26; background: #fdecea; border: 1px solid #f3c7c0;
  border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.92rem; margin: 0 0 1rem;
}

.price { font-family: var(--display); margin: 0.2rem 0 0.9rem; }
.price .amount { font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.price .once {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mist); margin-left: 0.4rem;
}

.licence-key { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.6rem 0 1rem; }
.licence-key .klabel {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mist);
}
.licence-key code {
  font-size: 1.1rem; color: var(--ink); background: var(--ground-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.7rem;
  letter-spacing: 0.06em; user-select: all; display: inline-block;
}
.tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep); background: var(--teal-soft);
  border-radius: 999px; padding: 0.2rem 0.55rem; vertical-align: middle; margin-left: 0.4rem;
}
.orders { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.orders th, .orders td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
.orders th {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mist);
}
.product-card .card-actions { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

/* Admin console: stacked forms, toolbars, checkboxes. */
.stack { display: flex; flex-direction: column; gap: 0.7rem; align-items: stretch; max-width: 32rem; margin-top: 0.4rem; }
.stack label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--ink); }
.stack label.check { flex-direction: row; align-items: center; gap: 0.5rem; }
.stack input, .stack textarea, .stack select,
.row input, .row select { font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #fff); color: var(--ink); }
.stack button { align-self: flex-start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.licence-key .key-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.copy-key { cursor: pointer; white-space: nowrap; }
.copy-key.copied { color: var(--pine, #1b5e3f); border-color: currentColor; }


/* ===========================================================================
   Account page (parity with the Carvect account page): profile, licence,
   computers, offline activation, orders and invoices. Reuses .panel, .grid,
   .row, .lede, .mono already defined above.
   ========================================================================== */

/* A label/value spec list. Stacked on a phone, two columns past 720px. */
.specs { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.specs div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem 1.5rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .specs div { grid-template-columns: 190px minmax(0, 1fr); }
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-wrap: balance;
}
.specs dd { margin: 0; }

/* Status pills. The word is the signal; colour is the second. */
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.pill.ok { color: var(--good); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--bad); }
.pill.muted { color: var(--faint); }

/* A short banner/notice. */
.notice {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.notice.bad { border-color: var(--bad); background: rgba(209, 86, 63, 0.12); }
.notice.good { border-color: var(--good); background: rgba(47, 125, 85, 0.10); }
.notice.warn { border-color: var(--warn); background: rgba(138, 106, 29, 0.12); }

/* A licence key: monospace, boxed, travels with its Copy button. */
.keyline {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 1rem;
  background: var(--ground);
  border: 1px dashed var(--line-strong);
  word-break: break-all;
}
.keyrow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.keyrow .keyline { flex: 1 1 16rem; }
.keyrow .copy-key { flex: 0 0 auto; }
@media print { .keyrow .copy-key { display: none; } }

/* The masked key: dots with an eye to reveal, pure-CSS checkbox toggle. */
.keyfield { display: flex; align-items: center; gap: 0.6rem; position: relative; }
.keyfield .key-dots, .keyfield .key-plain { flex: 1 1 auto; min-width: 0; }
.keyfield .key-dots { letter-spacing: 0.18em; color: var(--mist); }
.keyfield .key-plain { display: none; }
.key-toggle {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.key-toggle:checked ~ .key-plain { display: inline; }
.key-toggle:checked ~ .key-dots { display: none; }
.key-eye {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin: -0.4rem -0.4rem -0.4rem 0;
  border-radius: 4px;
  color: var(--mist);
  cursor: pointer;
}
.key-eye:hover { color: var(--accent); background: var(--accent-soft); }
.key-toggle:focus-visible ~ .key-eye { outline: 2px solid var(--accent); outline-offset: 2px; }
.key-eye .eye-shut { display: none; }
.key-toggle:checked ~ .key-eye .eye-open { display: none; }
.key-toggle:checked ~ .key-eye .eye-shut { display: block; }
/* Visually-hidden label for the eye toggle (not previously in store.css). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Profile panel actions: collapsible name/password forms. */
#profile { margin-top: 1.4rem; }
#profile .notice { margin: 0 0 1rem; }
.profile-actions { display: grid; gap: 0.2rem; margin-top: 0.6rem; }
.profile-actions details { border-bottom: 1px solid var(--line); }
.profile-actions summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-weight: 600;
  color: var(--accent);
  list-style-position: inside;
}
.profile-actions summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-actions details[open] summary { color: var(--text); }
.profile-actions details form { margin: 0.4rem 0 1.2rem; }
.profile-action {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1rem; padding-top: 1rem;
}
.profile-action .muted { font-size: 0.85rem; }

/* Download rows inside the account panel. */
.dl-row {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.dl-row .what { flex: 1; min-width: 220px; }
.dl-row .what b { font-weight: 600; }
.dl-row .what span { display: block; color: var(--faint); font-size: 0.82rem; }

/* The licence file blob (offline activation result). */
.licence-file {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--line-strong);
  background: var(--ground);
  border-radius: 2px;
  resize: vertical;
}

/* Right-aligned numeric cells. */
td.num, th.num, .num { font-variant-numeric: tabular-nums; }

/* A printable invoice: the browser's own Print is the PDF. */
.invoice .panel { max-width: 46rem; }
@media print {
  header.top, footer.foot, .site-head, .site-foot, .no-print { display: none !important; }
  body { background: #fff; }
  .invoice .panel { border: 0; padding: 0; max-width: none; }
  main { padding: 0; }
}
