/* fonts.css is linked from the page, not imported here: an @import would make the browser
   fetch this file, parse it, and only then start on the fonts. */

/* ---------------------------------------------------------------------------
   Tokens. The two brand colours are read off the logo: #3D2C4B and #A07F54.
   Light is defined on bare :root so nothing has its only definition inside a
   media query. Dark is declared twice, once for the system preference, once
   for an explicit choice, so the toggle wins in both directions.
   --------------------------------------------------------------------------- */

:root {
  --bg: #ece8e1;
  --surface: #f7f5f1;
  --surface-2: #ffffff; /* Alb: a card on a raised band */
  /* A task's state, as the brand book pairs them: a pale ground with dark text from the same
     family (done, in review or in a pilot, planned); deep grounds with light text on dark. */
  --state-done-bg: #e4ece5;
  --state-review-bg: #f0e4cf;
  --state-plan: #5e4874;
  --state-plan-bg: #e7deef;
  --sunken: #ded8ce;
  --ink: #241b2e;
  --ink-2: #4e3a60;
  --ink-3: #5e4874;
  --rule: #ded8ce;
  --rule-strong: #cfc7ba;
  --accent: #3d2c4b;
  --btn-bg: #3d2c4b;
  --btn-fg: #ffffff;
  --gold: #7a5e3a; /* Bronz text: small bronze text on Nisip and Hârtie */
  --gold-rule: #a07f54;
  --ok: #3f6b4d;
  /* Salvie 700: green figures on a sunken Nisip adânc ground (the IT Park totals and verdict),
     where Salvie 600 is 4.33:1; this is 4.7:1 (the owner, 2026-11-10). */
  --ok-strong: #3c6549;
  --down: #8f3f38;
  --shade: rgba(36, 27, 46, 0.07);
  /* The header's sections: aubergine text, a darker sand under the pointer, the page you are
     on (and the way into the app) aubergine with sand text. */
  --nav-hover: #ded8ce;
  --nav-active: #3d2c4b;
  --nav-text: #3d2c4b;
  --nav-active-text: #ece8e1;
  /* The top bar: frosted glass over the page, Hârtie in the light and Mauve 6 in the dark, lighter than the
     strip and the page under it. --masthead-bg is the solid colour for browsers that cannot blur
     what is behind it; --masthead-glass the same colour, see-through. */
  --masthead-bg: #f7f5f1;
  --masthead-glass: rgba(247, 245, 241, 0.76);
  /* The contact form: a sand card on the raised band with white fields, the button in the header's
     aubergine, and each message on its own tint (sent, too many, not sent). */
  /* The contact form and the calendar's feed card: a light sand card with white fields on the
     Hârtie band (the owner, 2026-11-10; it was Nisip adânc). */
  --form-card: #ece8e1; /* Nisip */
  --form-field: #ffffff;
  --form-label: #241b2e;
  --form-hint: #4e3a60;
  --form-btn-bg: #3d2c4b;
  --form-btn-fg: #ece8e1;
  --form-ok-bg: #e4ece5;
  --form-warn: #7a5e3a;
  --form-warn-bg: #f0e4cf;
  --form-bad-bg: #f3e3e0;

  /* One corner for everything you press and for the boxes beside them: the header's chips and
     its way into the app, every button, the form's fields, the register and the cards. */
  --radius: 6px;
  /* One padding above a panel's title and below its last line, the page's first panel included:
     the distance from the notice strip to a page's title is the distance from one panel to the
     next one's title. */
  --panel-pad: clamp(32px, 4vw, 52px);

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  /* The notice strip above the page: the brand book's Prună 800 band, its text in Prună 200 and
     the flag in Aur; on dark, Mauve 3 with Nisip 300, darker than the Mauve 6
     header under it. The footer is Prună 900 in the light and Mauve 3 in the dark (the owner,
     2026-11-10). */
  --notice-bg: #3d2c4b;
  --notice-ink: #d8c9e6;
  --notice-flag: #c9a46b;
  --footer-bg: #2a2033;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #232225;
    --surface: #2b292d;
    --surface-2: #2b292d;
    --state-done-bg: #1b2a1e;
    --state-review-bg: #3f3020;
    --state-plan: #cfc7ba;
    --state-plan-bg: #323035;
    --sunken: #323035;
    --ink: #ece8e1;
    --ink-2: #cfc7ba;
    --ink-3: #b5b2bc;
    --rule: #3c393f;
    --rule-strong: #7c7a85;
    --accent: #bda6d4;
    --btn-bg: #c9b4dd;
    --btn-fg: #17161b;
    --gold: #c9a46b;
    --gold-rule: #96794f;
    --ok: #77a385;
    --ok-strong: #77a385;
    --down: #cd8880;
    --shade: rgba(0, 0, 0, 0.4);
    --nav-hover: #49474e;
    --nav-active: #c9b4dd;
    --nav-text: #ece8e1;
    --nav-active-text: #3d2c4b;
    --masthead-bg: #3c393f;
    --masthead-glass: rgba(60, 57, 63, 0.76);
    --results-bg: #2b292d;
    --offer-bg: #2b292d;
    --band-quiet: #1a191b;
    --masthead-line: #49474e;
    --form-card: #2b292d;
    --form-field: #49474e;
    --form-label: #ece8e1;
    --form-hint: #cfc7ba;
    --form-btn-bg: #c9b4dd;
    --form-btn-fg: #16161a;
    --form-ok-bg: #1e2b22;
    --form-warn: #c9a46b;
    --form-warn-bg: #3f3020;
    --form-bad-bg: #2e1d1b;
    --notice-bg: #232225;
    --notice-ink: #cfc7ba;
    --notice-flag: #c9a46b;
    --footer-bg: #232225;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  /* Dark is Radix Mauve (radix-ui.com/colors), the neutral nearest the brand: page Mauve 3,
     quiet bands Mauve 2, panels Mauve 4, sunken rows Mauve 5, the bar and lines Mauve 6, hover and
     fields Mauve 7, outlines Mauve 10, tertiary text Mauve 11. Liliac, Aur, Nisip, Salvie and
     Cărămidă keep their brand values (the owner, 2026-11-10). */
  --bg: #232225;
  --surface: #2b292d;
  --surface-2: #2b292d;
  --state-done-bg: #1b2a1e;
  --state-review-bg: #3f3020;
  --state-plan: #cfc7ba;
  --state-plan-bg: #323035;
  --sunken: #323035;
  --ink: #ece8e1;
  --ink-2: #cfc7ba;
  --ink-3: #b5b2bc;
  --rule: #3c393f;
  --rule-strong: #7c7a85;
  --accent: #bda6d4;
  --btn-bg: #c9b4dd;
  --btn-fg: #17161b;
  --gold: #c9a46b;
  --gold-rule: #96794f;
  --ok: #77a385;
  --ok-strong: #77a385;
  --down: #cd8880;
  --shade: rgba(0, 0, 0, 0.4);
  --nav-hover: #49474e;
  --nav-active: #c9b4dd;
  --nav-text: #ece8e1;
  --nav-active-text: #3d2c4b;
  --masthead-bg: #3c393f;
  --masthead-glass: rgba(60, 57, 63, 0.76);
  --results-bg: #2b292d;
  --offer-bg: #2b292d;
  --band-quiet: #1a191b;
  --masthead-line: #49474e;
  --form-card: #2b292d;
  --form-field: #49474e;
  --form-label: #ece8e1;
  --form-hint: #cfc7ba;
  --form-btn-bg: #c9b4dd;
  --form-btn-fg: #16161a;
  --form-ok-bg: #1e2b22;
  --form-warn: #c9a46b;
  --form-warn-bg: #3f3020;
  --form-bad-bg: #2e1d1b;
  --notice-bg: #232225;
  --notice-ink: #cfc7ba;
  --notice-flag: #c9a46b;
  --footer-bg: #232225;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  /* A jump to an anchor lands under the top bar, and the tools' tabs under it, not behind them.
     site.js keeps both heights. */
  scroll-padding-top: calc(var(--masthead-h, 68px) + var(--tabs-h, 0px) + 12px);
}

/* The footer always sits at the bottom of the window: on a short page the room left over goes
   between the content and the footer, never under the footer. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  /* A single long word, «Конфиденциальность» at h1 size, is wider than a 360px phone: let it
     break rather than push the page sideways. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.15rem);
  line-height: 1.16;
}

/* A word the page wants seen as good news, in the brand's Salvie (trecerea-de-la-1c/: "Gratis"). */
.free {
  color: var(--ok);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 1.22rem + 1.1vw, 2rem);
  line-height: 1.22;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* The hidden content attribute only maps to display:none for HTML elements, so an SVG carrying
   it stays on screen. The theme control holds two icons and hides one; without this rule both
   render, stacked, and the button grows to fit them. */
[hidden] {
  display: none !important;
}

.shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

body > main {
  flex: 1 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 60;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

/* The top bar stays at the top of the window and the page scrolls under it, seen through frosted
   glass. Sticky rather than fixed, so it keeps its own place at the top of the page and nothing
   under it starts hidden or jumps. The glass and the rule are drawn by ::before, which on a narrow
   screen draws up as far as the first row when the sections fold away (see the end of this part). */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Nothing in the bar ever makes the page scroll sideways. */
  overflow-x: clip;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* The bar's own rule, which a theme may set apart from --rule when its rule is the bar's colour. */
  border-bottom: 1px solid var(--masthead-line, var(--rule));
  background: var(--masthead-bg);
  transition: bottom 0.25s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .masthead::before {
    background: var(--masthead-glass);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
  }
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  flex-wrap: wrap;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  width: 40px;
  height: 30px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
}

/* The sections: links drawn like "Încearcă Demo" beside the controls, the same size, font
   and corners (--chip-* on .masthead). The page you are on is filled like it; the others are
   their text alone at normal weight, and a hover shades them in sand. No movement. On one row
   the last section sits as far from the language control as the theme control from the app
   button (.controls' gap). */

.masthead {
  --chip-h: 33.6px;
  --chip-px: 14.4px;
  --chip-radius: var(--radius);
  --chip-font: 14.4px;
}

.sections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  /* The bar's 20px gap less this is the controls' 8px. */
  margin-inline-end: -12px;
}

.sections__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--chip-h);
  padding: 0 var(--chip-px);
  border-radius: var(--chip-radius);
  color: var(--nav-text);
  font: 400 var(--chip-font) / 1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .sections__link:hover {
    background: var(--nav-hover);
  }
}

.sections__link[aria-current='page'] {
  background: var(--nav-active);
  color: var(--nav-active-text);
  font-weight: 500;
  cursor: default;
}

.sections__link:focus-visible {
  outline: 2px solid var(--nav-active);
  outline-offset: 2px;
}

.sections__link[aria-current='page']:focus-visible {
  outline-color: var(--nav-text);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* One round control each, showing the state you would get by pressing it: a sun while you are
   in the dark, RU while you are reading Romanian. A three-way segmented strip spent header width
   on two options nobody had chosen yet; cycling reaches every language in at most two presses.
   On a page with /ru/ and /en/ copies the language control is a link to the next one. */

.control {
  position: relative;
  display: grid;
  text-decoration: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
}

/* Hovering changes nothing on the control itself; it says instead what a press would do, in a
   label under it: the next language, offered in that language, or the next theme. site.js writes
   data-tip, and the package writes it on the /ru/ and /en/ copies' language link. */
.control[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  font: 400 0.8125rem/1.2 var(--sans);
  letter-spacing: normal;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .control[data-tip]:hover::after {
    opacity: 1;
    transform: none;
  }
}

.control[data-tip]:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* The way into the app, beside the controls: filled like the section you are on, in each theme. */
.masthead__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--chip-h);
  padding: 0 var(--chip-px);
  border-radius: var(--chip-radius);
  background: var(--nav-active);
  color: var(--nav-active-text);
  font: 500 var(--chip-font) / 1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-tap-highlight-color: transparent;
}

.masthead__app-short {
  display: none;
}

/* The narrowest phones get the short word, so the first row never wraps. */
@media (max-width: 359px) {
  .masthead__app-long {
    display: none;
  }

  .masthead__app-short {
    display: inline;
  }
}

.masthead__app:active {
  transform: scale(0.97);
}

.masthead__app:focus-visible {
  outline: 2px solid var(--nav-text);
  outline-offset: 2px;
}

.control svg {
  width: 17px;
  height: 17px;
}

/* The theme control, after Skiper UI's second theme toggle (skiper4): one drawing that is a sun
   in the light and a moon in the dark. A cut slides across the disc to make the crescent while the
   rays turn away. In automatic mode it is half of each: the sun's left half, its right half folded
   away, and a crescent coming in on the right. It follows data-theme-mode, which the page's first
   script sets, so it is right before site.js runs. */

[data-theme-btn] {
  transition: transform 0.3s;
}

[data-theme-btn]:active {
  transform: scale(0.95);
}

.control .sunmoon {
  width: 22px;
  height: 22px;
}

.sunmoon__cut,
.sunmoon__disc,
.sunmoon__rays,
.sunmoon__half,
.sunmoon__moon {
  transform-origin: 16px 16px;
  transition:
    transform 0.35s ease-in-out,
    opacity 0.35s ease-in-out;
}

.sunmoon__half {
  transform-origin: 0 0;
}

.sunmoon__moon {
  transform-origin: 17.5px 16px;
  transform: translateX(-3px) scale(0.5);
  opacity: 0;
}

:root[data-theme='dark']:not([data-theme-mode='auto']) .sunmoon__cut {
  transform: translate(-12px, 10px);
}

:root[data-theme='dark']:not([data-theme-mode='auto']) .sunmoon__disc {
  transform: scale(1.25);
}

:root[data-theme='dark']:not([data-theme-mode='auto']) .sunmoon__rays {
  transform: rotate(-100deg) scale(0.5);
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme-mode='auto']) .sunmoon__cut {
    transform: translate(-12px, 10px);
  }

  :root:not([data-theme='light']):not([data-theme-mode='auto']) .sunmoon__disc {
    transform: scale(1.25);
  }

  :root:not([data-theme='light']):not([data-theme-mode='auto']) .sunmoon__rays {
    transform: rotate(-100deg) scale(0.5);
    opacity: 0;
  }
}

/* Automatic: the sun up to just left of the middle, the crescent from just right of it. */
:root[data-theme-mode='auto'] .sunmoon__half {
  transform: scaleX(0.453);
}

:root[data-theme-mode='auto'] .sunmoon__moon {
  transform: none;
  opacity: 1;
}

/* Switching theme sweeps the new one across the page as a diagonal, after Skiper UI's theme
   transition (skiper26, polygon, from the top left, no blur). The dark theme comes in from the top
   left corner, the light one from the bottom right. The old page stays still underneath. Only
   where the browser has view transitions and the visitor has not asked for less motion; site.js
   checks both, and everywhere else the theme changes at once, as before. */

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    animation: none;
    z-index: -1;
  }

  ::view-transition-new(root) {
    animation: reveal-light 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  :root[data-theme='dark']::view-transition-new(root) {
    animation-name: reveal-dark;
  }
}

@keyframes reveal-dark {
  from {
    clip-path: polygon(50% -71%, -50% 71%, -50% 71%, 50% -71%);
  }
  to {
    clip-path: polygon(50% -71%, -50% 71%, 50% 171%, 171% 50%);
  }
}

@keyframes reveal-light {
  from {
    clip-path: polygon(171% 50%, 50% 171%, 50% 171%, 171% 50%);
  }
  to {
    clip-path: polygon(171% 50%, 50% 171%, -50% 71%, 50% -71%);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme-btn],
  .sunmoon__cut,
  .sunmoon__disc,
  .sunmoon__rays,
  .sunmoon__half,
  .sunmoon__moon,
  .masthead::before,
  .masthead .sections {
    transition: none;
  }
}

/* Where the bar has no room for one row, the sections move to their own row instead of
   disappearing: they are pages, and a phone visitor has to be able to reach them. The row wraps
   rather than scrolls, so no item sits off the edge where nobody knows to look for it. How wide one
   row has to be depends on the language: Russian's labels are the longest. */
@media (max-width: 1160px) {
  .masthead__bar {
    row-gap: 6px;
  }

  /* Rows of sections across the header, under the mark and the controls, the first word of each
     row in line with the mark. */
  .sections {
    order: 3;
    margin-inline-end: 0;
    width: calc(100% + var(--chip-px));
    margin-inline-start: calc(-1 * var(--chip-px));
  }
}

@media (max-width: 1290px) {
  :root[lang='ru'] .masthead__bar {
    row-gap: 6px;
  }

  :root[lang='ru'] .sections {
    order: 3;
    margin-inline-end: 0;
    width: calc(100% + var(--chip-px));
    margin-inline-start: calc(-1 * var(--chip-px));
  }
}

/* Scrolling down folds the rows of sections away and the glass draws up to the first row;
   scrolling up brings them back. site.js measures how far (--masthead-fold) and decides when,
   only while the sections are on a row of their own. The bar keeps its height in the page, so
   nothing under it moves. */
.masthead .sections {
  transition:
    opacity 0.2s ease,
    transform 0.25s ease,
    visibility 0s linear 0s;
}

.masthead[data-folded]::before {
  bottom: var(--masthead-fold, 0px);
}

/* What shows through where the rows were is the page, and it takes the clicks. */
.masthead[data-folded] {
  pointer-events: none;
}

.masthead[data-folded] .brand,
.masthead[data-folded] .controls {
  pointer-events: auto;
}

.masthead[data-folded] .sections {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}

/* On a phone the first row holds the mark, the two controls and the way into the app, so the
   name beside the mark gives way to it, and the gaps close up a little. */
@media (max-width: 520px) {
  .masthead__bar {
    column-gap: 12px;
  }

  .brand__name {
    display: none;
  }

  .controls {
    gap: 6px;
  }
}

/* ---------------------------------------------------------------------------
   Notice and hero
   --------------------------------------------------------------------------- */

.notice {
  background: var(--notice-bg);
}

.notice__bar {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-block: 11px;
  font-size: 0.875rem;
  color: var(--notice-ink);
}

.notice__flag {
  flex: none;
  color: var(--notice-flag);
  font-weight: 500;
}


.hero {
  padding-block: var(--panel-pad);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero__lead {
  margin-top: 22px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero__soon {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 1rem/1 var(--sans);
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.btn--plain {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--plain:hover {
  filter: none;
  border-color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Two rows, one question. This is the whole argument against the incumbent, and it belongs
   above the fold rather than three sections down. */
.contrast {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
}

.contrast__q {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  padding-block: 16px 12px;
}

.contrast dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 0.9375rem;
}

/* The rows are wrapped in divs so each label keeps its description, but the grid has to be the
   dl's: one shared label column, or the two descriptions start at different places and the
   comparison stops reading as a comparison. */
.contrast dl > div {
  display: contents;
}

.contrast dt {
  color: var(--ink-3);
  white-space: nowrap;
}

.contrast dd {
  margin: 0;
  color: var(--ink-2);
}

.contrast .ours dt {
  color: var(--gold);
  font-weight: 500;
}

.contrast .ours dd {
  color: var(--ink);
}

@media (max-width: 460px) {
  .contrast dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .contrast dd {
    margin-bottom: 14px;
  }
}

/* The same two rows, for the rest of the working day: below the hero, two to a line. */
.contrasts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 8px 48px;
}

.contrasts .contrast {
  margin-top: 0;
  padding-bottom: 18px;
}

/* ---------------------------------------------------------------------------
   The rule set panel: the one loud object on the page.
   --------------------------------------------------------------------------- */

.ruleset {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px var(--shade);
  overflow: hidden;
}

.ruleset__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--rule);
}

.ruleset__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
}

.ruleset__state {
  font-size: 0.8125rem;
  color: var(--gold);
  white-space: nowrap;
}

.ruleset table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ruleset th {
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-3);
  padding: 10px 20px 7px;
  border-bottom: 1px solid var(--rule);
}

.ruleset td {
  padding: 9px 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

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

.ruleset td:first-child {
  color: var(--ink);
}

.ruleset .rate,
.ruleset th.rate {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.ruleset .since,
.ruleset th.since {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  white-space: nowrap;
}

.ruleset__foot {
  padding: 14px 20px 17px;
  border-top: 1px solid var(--rule);
  background: var(--sunken);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.ruleset__foot a {
  display: inline-block;
  margin-top: 9px;
}

@media (max-width: 420px) {
  .ruleset th.since,
  .ruleset .since {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */

/* Bands are told apart by a step in tone (Nisip, then Hârtie for the quiet ones), not by a rule,
   as the brand book asks. */
.band {
  padding-block: var(--panel-pad);
}

.band--quiet {
  /* On dark, a quiet band is the darker step (--band-quiet), so its panels stand out. */
  --band-bg: var(--band-quiet, var(--surface));
  background: var(--band-bg);
}

/* Inside a raised band, what would be raised (cards, the register, the calendar's feeds) steps
   once more, to Alb, or to Mauve 4 on dark, where the quiet band itself is the darker Mauve 2. What must
   match the band itself uses --band-bg. */
.band--quiet > * {
  --surface: var(--surface-2);
}

.band__head {
  margin-bottom: 26px;
}

/* Two parts of one band, each with its title (trecerea-de-la-1c/: the demo, then the steps). */
.band__part + .band__part {
  margin-top: var(--panel-pad);
}

.band__head p {
  margin-top: 14px;
  color: var(--ink-2);
}

.prose {
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 18px;
}

.aside {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--gold-rule);
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.aside p + p {
  margin-top: 10px;
}

.after-table {
  margin-top: 26px;
}

/* A change, and the date it binds. The date column is this page's one
   structural device: a fiscal fact without its effective date is not usable. */
.changes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.changes th {
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-3);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--rule-strong);
}

.changes th:last-child,
.changes td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 16px;
}

.changes td {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

.changes td:last-child {
  color: var(--gold);
}

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

/* Transparency: a claim, and the thing that backs it. */
.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.claims li {
  background: var(--bg);
  padding: 20px 0;
}

.band--quiet .claims li {
  background: var(--band-bg);
}

.claims h3 {
  margin-bottom: 6px;
}

.claims p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.claims a {
  font-size: 0.9375rem;
  display: inline-block;
  margin-top: 8px;
}

/* The privacy page puts several paragraphs under one heading. */
.claims p + p {
  margin-top: 10px;
}

.updated {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* The home page's "ultima editare" line, in italics (the owner, 2026-11-10). */
.updated--edit {
  font-style: italic;
}

/* Contact */
.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin: 26px 0 0;
}

.reach dt {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.reach dd {
  margin: 0 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.reach dd a {
  text-decoration: none;
  color: var(--ink);
}

.reach dd a:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

/* The footer is Prună 900 in the light and Mauve 3 in the dark, dark in both, so its mark is always the light one: the logo
   for a dark ground, and no data-logo for site.js to swap. A logo and a line under it, three
   columns of pages, then the owner and how to reach us; on a phone the columns stack. */
.foot {
  --foot-bg: var(--footer-bg);
  --foot-ink: #e7eeef;
  --foot-hover: #f4f0f7;
  --foot-title: #c9a46b; /* Aur, as "în verificare" reads on dark grounds */
  --foot-rule: rgba(231, 238, 239, 0.16);
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding-block: 56px 30px;
  font-size: 1rem;
}

.foot a {
  color: var(--foot-ink);
  text-decoration: none;
}

.foot a:hover,
.foot a[aria-current='page'] {
  color: var(--foot-hover);
}

.foot a:focus-visible {
  outline: 2px solid var(--foot-title);
  outline-offset: 3px;
  border-radius: 2px;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
}

.foot__about {
  max-width: 300px;
}

.foot a.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--foot-ink);
}

.foot__tagline {
  margin: 14px 0 0;
  line-height: 1.6;
}

.foot__title {
  margin: 0 0 14px;
  color: var(--foot-title);
  font-size: 0.875rem;
  font-weight: 600;
}

.foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__col li + li {
  margin-top: 10px;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--foot-rule);
  font-size: 0.875rem;
}

/* The owner's name links to the company but keeps the colour of the line it sits in. */
.foot a.foot__owner {
  color: inherit;
}

@media (max-width: 880px) {
  .foot__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot__about {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .foot {
    padding-block: 40px 26px;
  }

  .foot__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .foot__bottom {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------------
   Status page
   --------------------------------------------------------------------------- */

.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}

.checks li:last-child {
  border-bottom: 0;
}

.checks__name {
  font-weight: 500;
}

.checks__host {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.checks__state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}

[data-state='up'] .dot {
  background: var(--ok);
}

[data-state='down'] .dot {
  background: var(--down);
}

[data-state='up'] .checks__state {
  color: var(--ok);
}

[data-state='down'] .checks__state {
  color: var(--down);
}

@media (prefers-reduced-motion: no-preference) {
  [data-state='checking'] .dot {
    animation: pulse 1.4s ease-in-out infinite;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* ---------------------------------------------------------------------------
   Pages
   --------------------------------------------------------------------------- */

.hero--page {
  padding-block: var(--panel-pad);
}

/* A page title that fills the line before it wraps, rather than balancing into two short halves
   (intrebari/, the owner, 2026-11-10). */
.title--full {
  text-wrap: wrap;
}

.lead-in {
  color: var(--ink);
  font-size: 1.0625rem;
}

.band--cta {
  padding-block: clamp(32px, 4vw, 48px);
}

/* Buttons after a raised band belong to it: no second padding above them. */
.band--quiet + .band--cta {
  padding-top: 0;
}

.band--cta .hero__actions {
  margin-top: 0;
}

/* The four ways into the site from the home page. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold-rule);
  border-radius: var(--radius);
}

.card h2 {
  font-size: 1.25rem;
}

.card p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  flex: 1;
}

.card a {
  font-size: 0.9375rem;
}

/* The founding offer, a band of its own above the cards: the notice strip's colours, so it reads
   as the same promise the strip makes, the title in Aur beside the terms (the owner, 2026-11-10). */
.band--offer {
  background: var(--offer-bg, var(--notice-bg));
  color: var(--notice-ink);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 40px;
}

.offer__title {
  font-size: 1.5rem;
  color: var(--notice-flag);
}

/* The terms in Nisip, sand on the plum band and on the dark one alike (the owner, 2026-11-10). */
.offer__body p {
  font-size: 1rem;
  color: #ded8ce;
}

/* The free months in Salvie, the brand's "done" green as the dark theme has it (#77A385), on
   both themes: the light theme's #3F6B4D would vanish into the plum band (the owner, 2026-11-10). */
.offer__free {
  color: #77a385;
  font-weight: 600;
}

.offer__body p + p {
  margin-top: 8px;
}

@media (min-width: 860px) {
  .offer {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    align-items: baseline;
  }
}

/* Moving from 1C, as numbered steps. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.steps li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 6px;
}

/* What partners get, and what we ask. */
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px 48px;
}

.pair h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.pair p {
  color: var(--ink-2);
}

.claims h2 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  letter-spacing: 0;
  margin-bottom: 6px;
}

@media (min-width: 900px) {
  .claims {
    grid-template-columns: 1fr 1fr;
  }

  .claims li {
    padding: 22px 28px 22px 0;
  }

  /* The right column starts at the rule between the two, so it is the one that needs room. */
  .claims li:nth-child(even) {
    padding: 22px 0 22px 28px;
  }
}

/* Where a thing stands, said once per line: done, in part, before the first pilot, planned.
   Colour repeats the word and never replaces it. Doubled classes, so the colour outranks the
   grey that .claims p and .qa p give every paragraph. */
.state {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
}

.state.state--done {
  color: var(--ok);
  background: var(--state-done-bg);
}

.state.state--partial,
.state.state--pilot {
  color: var(--gold);
  background: var(--state-review-bg);
}

.state.state--planned {
  color: var(--state-plan);
  background: var(--state-plan-bg);
}

/* The vendor questions: numbered, the question as the heading, our answer under it. */
.qa {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: question;
}

.qa li {
  counter-increment: question;
  position: relative;
  padding: 26px 0 26px 52px;
  border-top: 1px solid var(--rule);
}

.qa li:last-child {
  border-bottom: 1px solid var(--rule);
}

.qa li::before {
  content: counter(question);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
}

.qa h2 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

.qa p {
  color: var(--ink-2);
}

.qa p + p {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .qa li {
    padding-left: 36px;
  }
}

/* What works today on the home page: what is built in up to three columns, and what is in
   progress as a strip under it. */
.today {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

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

.today__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.today__list li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  break-inside: avoid;
}

.today__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(4px + 0.62em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.today__list--wip li::before {
  background: none;
  border: 1.5px solid var(--gold);
}

.today__wip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunken);
}

.today__wip h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.today__list--wip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 28px;
}

@media (min-width: 700px) {
  .today__wip {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.today__built .today__list {
  columns: 3 260px;
  column-gap: 36px;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: 64px;
    align-items: start;
  }

  .contact .reach {
    flex-direction: column;
    margin-top: 6px;
  }
}

/* The form sits on a card on the raised Hârtie band, below the title panel's Nisip: the card
   light sand (Mauve 4 on dark, its fields Mauve 7), as the calendar's feed card is, the fields white and the button aubergine, every corner
   rounded like the header's buttons (--radius). The card's padding is taken back by a margin as large, so
   nothing inside moves; on a phone the card runs to the screen's edges, its padding the page's
   gutter (.shell). */
.form {
  --form-pad: clamp(18px, 4vw, 56px);
  display: grid;
  gap: 16px;
  max-width: calc(720px + 2 * var(--form-pad));
  margin: -24px calc(-1 * var(--form-pad));
  padding: 24px var(--form-pad);
  background: var(--form-card);
}

@media (min-width: 960px) {
  .form {
    --form-pad: 24px;
    border-radius: var(--radius);
  }
}

.form h2 {
  margin-bottom: 4px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--form-label);
}

/* The border stays, in the field's own colour, so the field keeps its size and a wrong answer
   has a line to turn red. */
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--form-field);
  border: 1px solid var(--form-field);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--form-btn-bg);
  outline-offset: 1px;
}

/* A field left wrong once the visitor has been in it, as the browser judges it. */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--down);
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__privacy {
  font-size: 0.8125rem;
  color: var(--form-hint);
}

.form__privacy a {
  color: inherit;
}

/* The messages, each on its tint with its line in the matching colour: sent in green, too many
   in brown, not sent in red, and fields to fill in as red text on the card. */
.form__note {
  padding: 11px 15px;
  border-left: 2px solid var(--down);
  border-radius: var(--radius);
  background: var(--form-bad-bg);
  color: var(--ink);
  font-size: 0.9375rem;
}

.form__note a {
  color: inherit;
}

.form__note--ok {
  border-left-color: var(--ok);
  background: var(--form-ok-bg);
}

.form__note#limitat {
  border-left-color: var(--form-warn);
  background: var(--form-warn-bg);
}

.form__note#incomplet {
  background: transparent;
  color: var(--down);
}

/* Without JavaScript the handler redirects to /contact/#trimis and the like; this shows the one
   named in the address. Stronger than [hidden] on purpose. */
.form__note:target {
  display: block !important;
}

.form .btn {
  border-radius: var(--radius);
  background: var(--form-btn-bg);
  color: var(--form-btn-fg);
}

.form .btn:focus-visible {
  outline: 2px solid var(--form-btn-bg);
  outline-offset: 2px;
}

.btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------------------------------------------------------------------------
   Small screens
   --------------------------------------------------------------------------- */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .notice__bar {
    flex-direction: column;
    gap: 2px;
  }

  .changes th:last-child,
  .changes td:last-child {
    padding-left: 10px;
  }
}

/* The guide: a table of contents under the title, then numbered steps that read down the page,
   long enough to be sentences, which the grid of .steps is not meant for. */
.toc {
  margin-top: 22px;
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 6px;
  color: var(--ink-3);
}

.guide h2 {
  scroll-margin-top: 16px;
}

.guide .shell > p:not(.state) {
  margin-top: 12px;
  color: var(--ink-2);
}

.howto {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: howto;
}

.howto li {
  counter-increment: howto;
  position: relative;
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.howto li:last-child {
  border-bottom: 1px solid var(--rule);
}

.howto li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold);
}

.band--cta .aside {
  margin: 0 0 22px;
}
