/* ------------------------------------------------------------------ the front page (staged)
 * Styles for src/samplepage.js, served at /sample. Namespaced s- so nothing here touches the
 * app or the market, which share app.css. The hero carries its own dark palette on purpose;
 * everything below it sits on the app's own tokens so it stays in step if those ever change.
 */
.s-body { margin: 0; background: var(--bg); color: var(--fg); }
.s-body a { text-decoration: none; }

/* local tokens for the marketing surface only */
.s-body {
  --s-ink: #0b1220;
  --s-dim: #5b6572;
  --s-hero-a: #0b1b3a;
  --s-hero-b: #12398a;
  --s-radius: 16px;
  --s-max: 1120px;
}

/* ---- sticky top bar ---- */
.s-nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: .5rem clamp(1rem, 4vw, 2.2rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.s-brand { justify-self: start; display: flex; align-items: center; }
.s-brand img { height: 52px; width: auto; display: block; }
.s-links { justify-self: center; display: flex; gap: 1.7rem; }
.s-links a { color: var(--fg); opacity: .8; font-weight: 500; }
.s-links a:hover { opacity: 1; color: var(--accent); }
.s-login { justify-self: end; }

/* ---- hero ---- */
.s-hero {
  position: relative; overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  background: radial-gradient(130% 120% at 15% 0%, var(--s-hero-b), var(--s-hero-a) 60%, #060c1c 100%);
  color: #fff;
}
.s-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--s-max); margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 2.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.s-hero-text { flex: 1 1 32rem; }

/* The rotating word to the right of the hero: Security morphs through the rest and back. */
.s-hero-rotate { flex: 0 1 22rem; min-width: 0; text-align: center; }
.s-rotate-lead { display: block; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.s-rotate-stack { position: relative; display: block; height: 4.6rem; }
.s-rotate-stack span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -.02em; font-size: clamp(2.4rem, 4vw, 3.6rem);
  background: linear-gradient(90deg, #8fb6ff, #fff); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 0; transform: translateY(26px);
  animation: sRotate 15s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: calc(var(--i) * -3s);
}
@keyframes sRotate {
  0%   { opacity: 0; transform: translateY(26px); }
  3%   { opacity: 1; transform: translateY(0); }
  17%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(-26px); }
  100% { opacity: 0; transform: translateY(-26px); }
}
@media (prefers-reduced-motion: reduce) {
  .s-rotate-stack span { animation: none; }
  .s-rotate-stack span:first-child { opacity: 1; transform: none; }
}
@media (max-width: 820px) { .s-hero-rotate { display: none; } }

/* The headline used to carry a hard <br>. That split it into two text nodes, which the
   translation pass sees as two unrelated phrases - and the two halves of this sentence do
   not stay in that order in Latvian, German or Russian. It is one sentence now, wrapped by
   `balance` instead, so every language gets to break it where its own words allow.

   THE CAP IS 22ch AND NOT 13ch, because the four headlines are no longer four translations
   of one 30-character English sentence: each language says its own thing now, and the German
   one is 49 characters. 13ch was the width that reproduced the old hard break in English and
   it drove the longer ones to four lines. The hero column caps it before this does at most
   sizes; this is the backstop for a narrow font. */
.s-h1 {
  margin: 0 0 1rem; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.04;
  max-width: 22ch; text-wrap: balance;
}
.s-sub { margin: 0 0 1.8rem; max-width: 34rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5; color: rgba(255,255,255,.86); }
.s-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1rem; }
.s-big { font-size: 1.02rem; padding: .7rem 1.5rem; border-radius: 10px; }
.s-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.s-ghost:hover { background: rgba(255,255,255,.12); }
.s-hero .s-fine { color: rgba(255,255,255,.62); }

/* ---- trust band (under the hero) ---- */
.s-trust { background: var(--panel); border-bottom: 1px solid var(--line); }
.s-trust-inner { max-width: var(--s-max); margin: 0 auto; padding: 1.4rem clamp(1rem, 4vw, 2.2rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem; }
.s-trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.s-trust-item h4 { margin: 0 0 .15rem; font-size: .98rem; letter-spacing: -.01em; }
.s-trust-item p { margin: 0; font-size: .85rem; color: var(--s-dim); line-height: 1.45; }

/* ---- security (its own dark band) ---- */
.s-security { background: linear-gradient(135deg, #0b1426 0%, #122247 55%, #0d1a39 100%); color: #fff; }
.s-security-inner { max-width: var(--s-max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.2rem); }
.s-security .s-eyebrow { color: #86b4ff; }
.s-security .s-h2 { color: #fff; }
.s-security .s-lead { color: rgba(255,255,255,.82); }
.s-sec-points { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.6rem; }
.s-sec-point { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--s-radius); padding: 1.3rem 1.25rem; }
.s-sec-point h3 { margin: .8rem 0 .4rem; font-size: 1.08rem; color: #fff; letter-spacing: -.01em; }
.s-sec-point p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.55; }
/*
 * THE SAME SEVEN HUES, LIFTED FOR THE DARK PANEL. The security section is white-on-navy, and
 * a 600-level colour chosen to be legible on white disappears against it. These are the
 * 300/400 levels of the same hues, each measured over the panel rather than over white:
 * red 5.19, emerald 8.12, slate 5.36. The hue, and therefore the meaning, is unchanged -
 * the pin is still red here and still red up in the trust strip.
 */
.s-security .s-ico-wrap { background: color-mix(in srgb, var(--ico) 16%, transparent); }
.s-security .s-ico-wrap[data-ico="shield"],
.s-security .s-ico-wrap[data-ico="bank"]  { --ico: #6ee7b7; }
.s-security .s-ico-wrap[data-ico="pin"]   { --ico: #f87171; }
.s-security .s-ico-wrap[data-ico="eye"]   { --ico: #94a3b8; }
/*
 * The four marks added with the security points, measured over the same navy panel:
 * emerald 8.12 (the key, which belongs with the shield), amber 10.4, violet 7.1, sky 7.8.
 */
.s-security .s-ico-wrap[data-ico="nokey"]   { --ico: #6ee7b7; }
.s-security .s-ico-wrap[data-ico="notrack"] { --ico: #fcd34d; }
.s-security .s-ico-wrap[data-ico="trash"]   { --ico: #c4b5fd; }
.s-security .s-ico-wrap[data-ico="timer"]   { --ico: #7dd3fc; }

/*
 * ---- the questions ----
 *
 * Plain headings and paragraphs rather than <details>: every answer here exists to be read
 * by a crawler and quoted back by an assistant, and text folded away behind a disclosure is
 * text a search engine is entitled to discount. Two columns on a wide screen, one on a
 * phone; nothing is hidden at any width.
 */
.s-faq { display: grid; gap: 1.1rem 2.2rem; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }
.s-faq-item { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.s-faq-item h3 { margin: 0 0 .45rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.s-faq-item p { margin: 0; color: var(--s-dim); line-height: 1.6; }

/* ---- generic section ---- */
.s-section { max-width: var(--s-max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.2rem); }
.s-tint { max-width: none; background: var(--panel); border-block: 1px solid var(--line); }
.s-tint > * { max-width: var(--s-max); margin-inline: auto; }
.s-eyebrow { margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--accent); }
.s-h2 { margin: 0 0 1.4rem; font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.08; }
.s-lead { margin: -.6rem 0 2rem; max-width: 40rem; font-size: 1.1rem; line-height: 1.55; color: var(--s-dim); }
.s-center { text-align: center; }
.s-fine { font-size: .86rem; color: var(--s-dim); }

/* ---- features ---- */
.s-feat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.s-feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--s-radius);
  padding: 1.5rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.s-feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 10px 30px rgba(12,18,32,.08); }
/*
 * THE ICONS CARRY THEIR OWN COLOUR, one variable, set from the icon's name.
 *
 * Every one of them was var(--accent) - sixteen identical blue marks on sixteen grey-tinted
 * squares, which is the same as having no icons at all: nothing on the page could be found
 * by its colour. Each now takes the colour its subject already has in people's heads, which
 * is the only kind of colour coding that needs no key - a red heart, a gold bulb, a green
 * padlock, a red map pin.
 *
 * GROUPED, NOT ALL DIFFERENT. Seven hues over sixteen icons, so related things share one:
 * money is green wherever it appears, location is red in both sections. Sixteen distinct
 * colours would be noise and would say that sixteen unrelated things are going on.
 *
 * `--ico` is the single knob. The tint behind each icon is mixed from the same variable, so
 * a colour is stated once and the square follows the mark. Changing one icon's colour is
 * changing one line here; nothing in samplepage.js knows about colour at all, it only
 * writes data-ico with the name it already had.
 *
 * CONTRAST IS CHECKED, not guessed: WCAG 1.4.11 wants 3:1 for a graphic, and these are
 * 26px marks drawn at 1.6 stroke width - thin, so it matters. Every value below clears 3:1
 * against its own tint over white (--panel is #ffffff). The gold is the one that had to be
 * hunted: the obvious #d97706 measures 2.81 and fails, and the amber-700 that passes reads
 * brown rather than yellow. #c2740b is 3.16 and still gold.
 */
.s-ico-wrap { --ico: var(--accent); display: inline-flex; padding: .6rem; border-radius: 12px;
  background: color-mix(in srgb, var(--ico) 12%, transparent); color: var(--ico); }
.s-ico { width: 26px; height: 26px; }

/* Red - the heart, and the map pin. Both are red everywhere a person has ever seen them. */
.s-ico-wrap[data-ico="heart"],
.s-ico-wrap[data-ico="pin"]    { --ico: #dc2626; }
/* Gold - an idea, and a price tag. */
.s-ico-wrap[data-ico="bulb"],
.s-ico-wrap[data-ico="tag"]    { --ico: #c2740b; }
/* Green - what is locked, and what holds money. The padlock reads "secure" from the browser
   address bar; the bank reads "money" from the note in your hand. */
.s-ico-wrap[data-ico="lock"],
.s-ico-wrap[data-ico="bank"],
.s-ico-wrap[data-ico="shield"] { --ico: #059669; }
/* Teal - things that move: a download arrow, a language being turned into another. */
.s-ico-wrap[data-ico="down"],
.s-ico-wrap[data-ico="lang"]   { --ico: #0d9488; }
/* Blue - the world, and the measurement of it. */
.s-ico-wrap[data-ico="globe"],
.s-ico-wrap[data-ico="chart"]  { --ico: #2563eb; }
/* Indigo - the envelope, and the one-place-for-everything grid. */
.s-ico-wrap[data-ico="mail"],
.s-ico-wrap[data-ico="grid"]   { --ico: #4f46e5; }
/* Violet - the photographer's own marks on their own work. */
.s-ico-wrap[data-ico="mark"],
.s-ico-wrap[data-ico="layers"] { --ico: #7c3aed; }
/* Slate - the struck-through eye. Hidden is the one idea here that should NOT be colourful;
   a bright "private" would be the loudest thing in a section about not being seen. */
.s-ico-wrap[data-ico="eye"]    { --ico: #475569; }
.s-feature h3 { margin: .9rem 0 .4rem; font-size: 1.12rem; letter-spacing: -.01em; }
.s-feature p { margin: 0; color: var(--s-dim); line-height: 1.55; }

/* ---- prices: heading, lead and table all centred ---- */
#prices .s-eyebrow, #prices .s-h2 { text-align: center; }
#prices .s-lead { text-align: center; margin-left: auto; margin-right: auto; }
.s-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .5rem auto 1rem;
  border: 1px solid var(--line); border-radius: var(--s-radius); }
.s-table { table-layout: fixed; width: 100%; border-collapse: collapse; min-width: 1040px;
  background: var(--bg); }
.s-table th, .s-table td { padding: .6rem .5rem; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--line); }
.s-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--line); }
/* first column: the feature names, wider and stuck to the left as the table scrolls sideways */
.s-th-feat, .s-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1;
  text-align: left; background: var(--bg); width: 16rem; }
.s-table tbody th[scope="row"] { font-weight: 500; color: var(--fg); padding-left: .85rem; }
.s-col-name { display: block; font-weight: 700; font-size: .95rem; }
.s-col-price { display: block; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-top: .15rem; }
.s-col-price .s-eur { font-size: .72rem; vertical-align: super; font-weight: 700; margin-right: .05em; }
.s-col-price .s-unit { font-size: .72rem; font-weight: 600; color: var(--s-dim); }
.s-col-sub { display: block; font-size: .72rem; color: var(--s-dim); margin-top: .1rem; }
.s-tbadge { display: inline-block; background: var(--accent); color: #fff; font-size: .58rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .4rem;
  border-radius: 999px; margin-bottom: .35rem; }
.s-check { width: 20px; height: 20px; color: var(--ok); vertical-align: middle; }
.s-val { font-weight: 600; }
.s-col-feat { background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* ---- payment band (under the market) ---- */
.s-pay { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); border-block: 1px solid var(--line); }
.s-pay-inner { max-width: var(--s-max); margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 2.2rem);
  display: flex; align-items: center; gap: 1rem; justify-content: center; }
.s-pay-text { margin: 0; font-size: 1.05rem; line-height: 1.5; max-width: 48rem; }
.s-pay-text b { color: var(--accent); }

/* ---- footer ---- */
.s-foot { background: var(--s-ink); color: #cdd4df; margin-top: 2rem; }
.s-foot-inner { max-width: var(--s-max); margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2.2rem) 1.5rem;
  display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
/* The logo is a colour lockup made for light backgrounds, so on the dark footer it sits on a
   small light chip rather than being filtered to a white blob. */
.s-foot-brand img { height: 30px; width: auto; display: block; background: #fff;
  padding: .45rem .6rem; border-radius: 9px; }
.s-foot-brand .s-fine { color: #8b94a3; margin-top: .5rem; }
/* Four columns in one row (Account wider for its note); the grid keeps them side by side
   however long the Account paragraph gets, instead of letting it wrap the whole row. */
.s-foot-cols { flex: 1 1 34rem; display: grid; grid-template-columns: 1fr 1.6fr 1.1fr 1.1fr; gap: 1.6rem; }
@media (max-width: 720px) { .s-foot-cols { grid-template-columns: repeat(2, 1fr); } }
.s-foot-cols h4 { margin: 0 0 .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8b94a3; }
.s-foot-cols a { display: block; color: #cdd4df; margin-bottom: .45rem; }
.s-foot-cols a:hover { color: #fff; }
.s-foot-cols .s-fine { color: #8b94a3; }
/* A link inside a footer paragraph stays inline rather than breaking the sentence. */
.s-foot-cols .s-fine a { display: inline; color: #cdd4df; text-decoration: underline; margin: 0; }
.s-foot-cols .s-fine a:hover { color: #fff; }
.s-foot-legal { max-width: var(--s-max); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2.2rem) 2rem;
  border-top: 1px solid rgba(255,255,255,.08); color: #8b94a3; }

@media (max-width: 640px) {
  .s-links { display: none; }
  .s-hero-scrim { background: linear-gradient(180deg, rgba(6,12,28,.78), rgba(6,12,28,.92)); }
}

/* ---- the four flags, in the front page nav ---- */
/* .langbar and .lang are app.css's, which this page already loads; only the placement is new.
   The front page needs them for the same reason the Global Market does: on the apex there is
   no account to remember a language on.

   THE FLAGS AND THE LOGIN BUTTON SHARE ONE GRID CELL, and they have to. .s-nav is a three
   column grid - brand, centred links, login - so adding the flags as a fourth child handed
   them the third cell and wrapped the login button onto a second row, which is exactly what
   it looked like. Wrapping the two in .s-nav-right keeps the grid at three columns and keeps
   the links optically centred. */
.s-nav-right { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.s-nav .langbar { margin: 0; }
.s-nav .lang { border-color: transparent; }
/* The flags are NOT hidden on a narrow screen, however tight it gets. app.css already
   shrinks them below 620px, and hiding them would leave a phone with no way to change
   language at all - which on a market where most of the traffic is a phone is not a tidy-up,
   it is removing the feature. */
@media (max-width: 760px) { .s-nav-right { gap: .4rem; } }
