/* ==========================================================================
   Sprosimo — design system
   Bright, high-contrast, one container width on every page.

   Three files load in order and each has one job:
     styles.css  tokens, layout, components   (this file)
     motion.css  animation only
     theme.css   the Sprosimo character

   THE CONTAINER RULE
   ------------------
   Every page — marketing, legal, auth, dashboard, admin — is laid out inside
   the same --container width with the same --gutter. `.narrow` is deliberately
   an alias of `.wrap`, not a smaller box, so a page cannot accidentally opt
   into a different frame. Where prose genuinely needs a shorter measure, the
   text is capped INSIDE a full-width surface (see .legal) so the page frame
   still lines up with every other page.
   ========================================================================== */

:root {
  /* ---- surfaces ---- */
  --bg:      #ffffff;
  --bg-1:    #f7f8fc;
  --bg-2:    #eef1f8;
  --bg-3:    #e3e8f2;
  --line:    #e5e9f2;
  --line-2:  #cfd6e4;

  /* ---- ink ---- */
  --ink:     #10121f;
  --ink-2:   #4b5468;
  --ink-3:   #7b8497;

  /* ---- brand ----
     Sprosimo's own gradient. The mascot, the primary button and the logotype all
     use the same violet -> cyan run, which is what makes the character read as
     the brand rather than as a decoration bolted on top. */
  --violet:  #5b4bf5;
  --violet-d:#4a39e6;
  --violet-l:#7a5bf7;
  --cyan:    #00bfd8;
  --coral:   #ff5c8a;
  --amber:   #ff9f43;
  --mint:    #00c08b;

  --accent:   var(--violet);
  --accent-2: var(--violet-l);
  --accent-3: var(--cyan);
  --accent-4: var(--coral);
  --accent-dim: #5b4bf514;
  --brand-grad: linear-gradient(135deg, #7a5bf7 0%, #5b4bf5 48%, #00bfd8 100%);

  --ok:     #0f9d63;
  --ok-bg:  #ecfdf4;
  --ok-ln:  #a7ebcd;
  --warn:   #b45309;
  --warn-bg:#fffaeb;
  --warn-ln:#fde28a;
  --err:    #d92d3f;
  --err-bg: #fef2f3;
  --err-ln: #fbcdd2;

  /* ---- elevation ----
     A light ground has no glow to work with, so depth comes from layered
     shadows: a tight contact shadow plus a wide soft one. */
  --sh-1: 0 1px 2px #10121f0a, 0 1px 3px #10121f0f;
  --sh-2: 0 2px 4px #10121f08, 0 8px 18px -6px #10121f1a;
  --sh-3: 0 4px 8px #10121f08, 0 18px 36px -10px #10121f21;
  --sh-4: 0 10px 20px #10121f0a, 0 36px 68px -16px #10121f2b;
  --sh-brand: 0 4px 14px -2px #5b4bf555, 0 1px 3px #5b4bf526;

  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The one width. Change it here and every page moves together. */
  --container: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The decorative .glow spans are deliberately wider than the viewport on
     small screens -- that bleed is the point. `clip` contains them without
     creating a scroll container, so unlike `hidden` it does not force
     overflow-y to `auto` and does not break the sticky header. It also does not
     become a containing block, so the fixed body::before wash still anchors to
     the viewport. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.011em;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NO overflow-x here. Setting it forces overflow-y to compute to `auto`,
     which turns <body> into a scroll container -- and a sticky header then
     anchors to that scrollport instead of the viewport and scrolls away. */
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-d); }
::selection { background: #5b4bf526; color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 5px; }

/* ==========================================================================
   Layout — the single container
   ========================================================================== */
.wrap,
.narrow {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1 0 auto; padding: 48px 0 72px; position: relative; z-index: 1; }
header.site, footer.site { position: relative; z-index: 2; }
.section { padding: 72px 0; position: relative; z-index: 0; }

/* Section padding, main's bottom padding and the footer's top margin used to
   stack into ~270px of blank page above the footer. The footer margin is gone
   (main owns that gap now) and a trailing section drops most of its own bottom
   padding, so the space below the last block is the same on every page. */
main > .wrap > section.section:last-of-type { padding-bottom: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.rule { height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, #5b4bf544 50%, var(--line) 82%, transparent); }

/* Page-level colour wash. Fixed to the viewport rather than painted inside a
   section, so it can never be clipped into a hard-edged rectangle. */
body:before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 760px;
  background:
    radial-gradient(ellipse 900px 400px at 18% -140px, #5b4bf51f, transparent 70%),
    radial-gradient(ellipse 820px 380px at 84% -100px, #00bfd81c, transparent 70%),
    radial-gradient(ellipse 620px 300px at 52% -180px, #ff5c8a14, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Section-level colour, blurred and pushed behind the section's own content. */
/* On a white ground a coloured blur at the opacity a dark theme needs reads as
   a stain. These stay faint on purpose: they should tint the page, not paint
   it. Raising the opacity here is the fastest way to make the site look cheap. */
.glow { position: absolute; border-radius: 50%; pointer-events: none;
  z-index: -1; filter: blur(110px); opacity: .16; }
.glow-purple { background: #5b4bf5; }
.glow-cyan   { background: #00bfd8; }
.glow-rose   { background: #ff5c8a; }

/* ==========================================================================
   Header
   ========================================================================== */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: #ffffffd6;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
/* Three zones: brand left, links centred, actions right. */
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }

.brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  font-weight: 730; font-size: 19px; letter-spacing: -.032em; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.34,1.5,.64,1);
}
.brand:hover .mark { transform: translateY(-2px) rotate(-5deg); }
.brand .mark svg { width: 100%; height: 100%; display: block; }

nav.main {
  flex: 0 1 auto; margin: 0 auto;
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 100px; padding: 4px;
}
nav.main a {
  padding: 8px 16px; border-radius: 100px; white-space: nowrap;
  color: var(--ink-2); font-size: 14.5px; font-weight: 530;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
nav.main a:hover { background: #fff; color: var(--ink); }
nav.main a.active { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

header.site .actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
header.site .actions > a:not(.btn) { color: var(--ink-2); font-size: 14.5px; font-weight: 530; white-space: nowrap; }
header.site .actions > a:not(.btn):hover { color: var(--ink); }
header.site .actions form { display: flex; }

/* ==========================================================================
   Type
   ========================================================================== */
h1 { font-size: clamp(36px, 5.3vw, 60px); line-height: 1.05; letter-spacing: -.043em; font-weight: 760; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.13; letter-spacing: -.035em; font-weight: 730; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.022em; font-weight: 650; margin: 0 0 10px; }
h4 { font-size: 14px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.01em; }
p  { margin: 0 0 16px; color: var(--ink-2); }

.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); font-weight: 420; letter-spacing: -.015em; margin-bottom: 30px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny  { font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }

.grad {
  background: linear-gradient(100deg, #7a5bf7 0%, #5b4bf5 30%, #00bfd8 62%, #ff5c8a 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 16px;
}
.eyebrow:before { content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan)); }

code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; color: var(--violet-d);
}
/* Code blocks stay dark: a terminal reads as a terminal, and the contrast is
   a deliberate accent on an otherwise white page. */
pre {
  background: #12142a; border: 1px solid #23264a; border-radius: 14px;
  padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px;
  line-height: 1.7; color: #ccd3ee; margin: 0 0 16px; box-shadow: var(--sh-2);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 7px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 24px; font-weight: 460;
}
.pill b {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-grad); color: #fff;
  padding: 3px 11px; border-radius: 100px; font-size: 11.5px; font-weight: 660;
  letter-spacing: .05em; text-transform: uppercase;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--ink-3); display: flex; gap: 20px; flex-wrap: wrap; font-weight: 460; }
.hero-note span { display: flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; fill: var(--ok); flex: 0 0 auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 560; letter-spacing: -.011em;
  cursor: pointer; white-space: nowrap; box-shadow: var(--sh-1);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--bg-1); border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #6a54f6 0%, #5b4bf5 55%, #4f8ff0 100%);
  border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 #ffffff45, var(--sh-brand);
}
.btn-primary:hover {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #7a63f8 0%, #5140ee 55%, #3f84ef 100%);
  box-shadow: inset 0 1px 0 #ffffff55, 0 8px 24px -4px #5b4bf577;
}
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-1); }
.btn-danger { color: var(--err); border-color: var(--err-ln); background: #fff; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); border-color: #f5a3ab; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn svg { transition: transform .22s cubic-bezier(.34,1.4,.64,1); }
.btn:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Surfaces
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; margin-bottom: 18px;
  box-shadow: var(--sh-1);
}
.card.tight { padding: 20px; }
.card h3 { margin-top: 0; }
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }

.feature {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px -3px #5b4bf566;
}
.feature .ico svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; font-size: 15px; }

.grid { display: grid; gap: 22px; }
.g2, .grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.g3, .grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g4, .grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- stats ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); }
.stat .n { font-size: 28px; font-weight: 730; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; font-weight: 640; }

.band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2);
}
.band > div { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); transition: background .22s ease; }
.band > div:last-child { border-right: 0; }
.band > div:hover { background: var(--bg-1); }
.band .n { font-size: 38px; font-weight: 770; letter-spacing: -.042em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #7a5bf7, #5b4bf5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.band .k { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding-left: 58px; }
.step:before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 13px;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  box-shadow: 0 5px 14px -3px #5b4bf566;
}
.step .ico { display: none; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
label { display: block; font-size: 13.5px; font-weight: 620; color: var(--ink); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=color], select, textarea {
  width: 100%; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px;
  color: var(--ink); font: inherit; font-size: 15px; box-shadow: var(--sh-1);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px #5b4bf51f;
}
input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
input[type=file] { color: var(--ink-2); font-size: 14px; box-shadow: none; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px;
  background-size: 5px 5px; background-repeat: no-repeat; }
.field { margin-bottom: 18px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
.checkline { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0; }
.checkline input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--violet); }
.checkline label { font-weight: 420; font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 100px; border: 0; padding: 0; box-shadow: none; outline: none;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) var(--fill, 25%), var(--line-2) var(--fill, 25%), var(--line-2) 100%);
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--violet);
  box-shadow: 0 0 0 4px #5b4bf51f, var(--sh-2); cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 0 0 7px #5b4bf51f, var(--sh-2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); box-shadow: 0 0 0 4px #5b4bf51f; }
input[type=range]::-moz-range-track { height: 8px; border-radius: 100px; background: var(--bg-3); }

/* ==========================================================================
   Alerts, tables, badges
   ========================================================================== */
.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; font-size: 14.5px; border: 1px solid; }
.alert-error   { background: var(--err-bg);  border-color: var(--err-ln);  color: #9f1220; }
.alert-success { background: var(--ok-bg);   border-color: var(--ok-ln);   color: #05603a; }
.alert-warn    { background: var(--warn-bg); border-color: var(--warn-ln); color: #93370d; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert a { color: inherit; text-decoration: underline; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-1); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; white-space: nowrap; }
td { color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-1); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 660; letter-spacing: .03em; text-transform: uppercase; border: 1px solid transparent; }
.badge-ok   { background: var(--ok-bg);   color: #047857; border-color: var(--ok-ln); }
.badge-warn { background: var(--warn-bg); color: #b45309; border-color: var(--warn-ln); }
.badge-err  { background: var(--err-bg);  color: #b91c1c; border-color: var(--err-ln); }
.badge-mute { background: var(--bg-2);    color: var(--ink-3); border-color: var(--line); }
.badge-accent { background: #eeecff; color: var(--violet-d); border-color: #d5d0ff; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 44px 0; align-items: start; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
}
.plan.popular {
  border-color: #c9c2ff;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 42%);
  box-shadow: 0 0 0 1px #c9c2ff, var(--sh-3);
}
.plan .tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--brand-grad); color: #fff;
  font-size: 11px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px;
  box-shadow: 0 5px 14px -3px #5b4bf588;
}
.plan .picon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px -3px #5b4bf566;
}
.plan .picon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .price { font-size: 46px; font-weight: 770; letter-spacing: -.045em; margin: 14px 0 2px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price .cur { font-size: 20px; font-weight: 620; color: var(--ink-3); vertical-align: super; margin-right: 4px; }
.plan .price .per { font-size: 15px; font-weight: 460; color: var(--ink-3); letter-spacing: 0; }
.plan .blurb { font-size: 14px; color: var(--ink-3); min-height: 42px; margin: 10px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0; }
.plan li { position: relative; padding: 8px 0 8px 28px; font-size: 14.5px; color: var(--ink-2); }
.plan li:before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1px solid var(--ok-ln);
  background: var(--ok-bg) no-repeat center / 11px 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.7 6.4 5 8.7l4.3-5' fill='none' stroke='%230f9d63' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan .cta { margin-top: auto; padding-top: 10px; }

/* ==========================================================================
   Buyer type
   Business or personal. Used at registration and again at checkout, where it
   decides VAT treatment and which consumer rights apply -- so the control is
   deliberately a pair of explainable cards rather than a bare dropdown.
   ========================================================================== */
.buyer-opt {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0;
  padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: #fff; font-weight: 400; box-shadow: var(--sh-1);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.buyer-opt:hover { border-color: var(--ink-3); box-shadow: var(--sh-2); }
.buyer-opt input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--violet); }
.buyer-opt strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.buyer-opt em { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.buyer-opt.selected { border-color: var(--violet); background: #f7f6ff; box-shadow: 0 0 0 1px var(--violet); }

/* A .row-2 whose other half has been hidden. Set alongside `hidden` on the
   field itself -- never leave a hidden input `required`, or the form refuses to
   submit and the browser cannot show the user which control is at fault. */
.row-2.solo { grid-template-columns: 1fr; }

/* ==========================================================================
   FAQ
   ========================================================================== */
details.faq { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; box-shadow: var(--sh-1); }
details.faq[open] { border-color: var(--line-2); }
details.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 580; font-size: 15.5px;
  list-style: none; display: flex; align-items: center; gap: 13px; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:before {
  content: "+"; color: var(--violet); font-weight: 400; font-size: 22px; line-height: 1; flex: 0 0 auto;
}
details.faq[open] summary:before { content: "\2212"; }
details.faq .body { padding: 0 22px 20px 48px; color: var(--ink-2); font-size: 15px; }
details.faq .body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Widget
   This is what a customer's visitors actually see, so it is drawn as the chat
   widget it is: a panel sitting above a launcher bubble. The previous version
   wore macOS traffic lights and a URL bar, which made the live demo read as a
   screenshot of a website rather than a screenshot of the product.

   Every colour comes from --wa / --wa-2 / --wa-ring, which is exactly how
   public/widget.js takes accentColor from the customer's settings. Swapping a
   theme swatch changes those three values and nothing else -- that equivalence
   is the whole point of the demo, so do not hard-code an accent below.
   ========================================================================== */
.widget-demo {
  --wa: #5b4bf5;
  --wa-2: #7a5bf7;
  --wa-ring: #5b4bf526;
  position: relative;
  width: 100%; max-width: 412px; margin-left: auto;
  padding-bottom: 78px;   /* room for the launcher below the panel */
}

.widget-themes { display: flex; align-items: center; gap: 9px; justify-content: flex-end; margin-bottom: 14px; }
.widget-themes .lbl { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.widget-themes button {
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: var(--sw);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform .16s ease, box-shadow .16s ease;
}
.widget-themes button:hover { transform: scale(1.14); }
.widget-themes button[aria-pressed="true"] { transform: scale(1.14); box-shadow: 0 0 0 2px var(--sw); }

.widget {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--sh-4);
}
.widget-hd {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  background: linear-gradient(135deg, var(--wa-2), var(--wa)); color: #fff;
  transition: background .3s ease;
}
.widget-hd .av { width: 30px; height: 30px; flex: 0 0 auto; }
.widget-hd .av svg { width: 100%; height: 100%; display: block; }
.widget-hd .t { flex: 1 1 auto; min-width: 0; }
.widget-hd .t b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.012em; }
.widget-hd .t span { display: block; font-size: 11.5px; opacity: .84; display: flex; align-items: center; gap: 6px; }
.widget-hd .t span i { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; display: block; flex: 0 0 auto; }
.widget-x {
  background: none; border: 0; color: #fff; font: inherit; font-size: 20px; line-height: 1;
  opacity: .75; padding: 0 2px; cursor: default;
}

.widget-body { padding: 16px; background: var(--bg-1); min-height: 296px; max-height: 380px; overflow-y: auto; }
.widget-ft { padding: 12px 13px 10px; border-top: 1px solid var(--line); background: #fff; }
.widget-row { display: flex; gap: 8px; }
.widget-row input { font-size: 14px; padding: 10px 13px; border-radius: 10px; }
.widget-row input:focus { border-color: var(--wa); box-shadow: 0 0 0 4px var(--wa-ring); }
.widget-send {
  background: var(--wa); border: 0; color: #fff; border-radius: 10px;
  padding: 0 17px; font: inherit; font-size: 14px; font-weight: 590; cursor: pointer;
  transition: background .3s ease, filter .16s ease;
}
.widget-send:hover { filter: brightness(1.08); }
.widget-send:disabled { opacity: .55; cursor: default; }
.widget-brand { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 9px; }

/* The launcher, in the corner it occupies on a real site. */
.widget-launcher {
  position: absolute; right: 4px; bottom: 0;
  width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0;
  background: linear-gradient(135deg, var(--wa-2), var(--wa));
  box-shadow: 0 12px 28px -8px var(--wa), 0 2px 6px #10121f26;
  display: flex; align-items: center; justify-content: center; cursor: default;
  transition: background .3s ease, box-shadow .3s ease;
}
.widget-launcher svg { width: 30px; height: 30px; }
.widget-hint {
  position: absolute; right: 74px; bottom: 16px;
  font-size: 12.5px; color: var(--ink-3); white-space: nowrap;
}

/* ---------- messages (shared by the demo and the in-app preview) ---------- */
.msg { margin-bottom: 14px; display: flex; align-items: flex-end; gap: 9px; }
.msg.u { justify-content: flex-end; }
.msg .b { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.msg.a .b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); box-shadow: var(--sh-1); }
.msg.u .b { background: linear-gradient(135deg, var(--wa-2, #7a5bf7), var(--wa, #5b4bf5)); color: #fff; border-bottom-right-radius: 5px; }
.msg .cites { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.msg .cites b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 5px; }
.msg .cites span { display: block; font-size: 12.5px; color: var(--wa, var(--violet)); }
.msg .flag { margin-top: 10px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: #93370d; border: 1px solid var(--warn-ln); }

.suggest { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.suggest button {
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 100px; padding: 7px 13px; font: inherit; font-size: 12.5px; cursor: pointer;
  box-shadow: var(--sh-1);
}
.suggest button:hover { border-color: var(--wa, var(--violet)); color: var(--wa, var(--violet)); }

.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-right: 4px; animation: bl 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bl { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

/* ==========================================================================
   Logos
   ========================================================================== */
/* Its own component rather than a .section: the content here is one line of
   text and a row of names, and wrapping 68px of content in 92px of padding top
   and bottom is what made this strip read as a hole in the page. */
.strip { padding: 36px 0 44px; }
.strip-label {
  text-align: center; margin: 0 0 24px;
  font-size: 12px; font-weight: 640; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3);
}
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 44px; }
.logos div { display: flex; align-items: center; gap: 9px; font-weight: 640; font-size: 16px; letter-spacing: -.02em; color: var(--ink-3); }
.logos svg { width: 17px; height: 17px; fill: currentColor; opacity: .7; flex: 0 0 auto; }

/* ==========================================================================
   App + admin shell
   ========================================================================== */
.app-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.app-nav a { padding: 12px 16px; color: var(--ink-3); font-size: 14.5px; font-weight: 530; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.app-nav a:hover { color: var(--ink-2); }
.app-nav a.active { color: var(--violet); border-bottom-color: var(--violet); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 32px; margin: 0 0 6px; }
.page-title { font-size: clamp(30px, 3.4vw, 40px); }

.meter { height: 8px; background: var(--bg-3); border-radius: 100px; overflow: hidden; margin: 12px 0; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: 100px; transition: width .3s ease; }
.meter.over > span { background: linear-gradient(90deg, #ff5c8a, #d92d3f); }

.empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); }
.empty h3 { margin-bottom: 8px; }
.empty .sprosimo { margin-bottom: 14px; }

/* Centred single-column pages. The container around them is identical to every
   other page — only the card inside is narrower, which is what a sign-in form
   is supposed to look like. */
.form-page { max-width: 520px; margin: 0 auto; }
.form-page.wide { max-width: 690px; }
.form-page h1 { font-size: 34px; text-align: center; margin-bottom: 10px; }
.form-page > .lede { text-align: center; font-size: 16px; margin-bottom: 28px; }

/* ==========================================================================
   Long-form legal
   The surface fills the full container so the page frame matches every other
   page; the measure is capped inside it so the prose stays readable.
   ========================================================================== */
.legal {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 48px 56px; box-shadow: var(--sh-1);
}
.legal > * { max-width: 760px; }
.legal h2 { font-size: 23px; margin-top: 44px; }
.legal h3 { font-size: 17px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 12px; }
.legal table { font-size: 14px; }
.legal .table-wrap, .legal .grid, .legal .card, .legal .panel { max-width: none; }
.legal a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c9c2ff; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site { border-top: 1px solid var(--line); background: var(--bg-1); padding: 56px 0 34px; margin-top: 0; }
footer.site .cols { display: grid; gap: 36px 28px; margin-bottom: 44px; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr; }
footer.site .cols > div:first-child { max-width: 300px; }
footer.site .brand { margin-bottom: 16px; }
footer.site h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 16px; font-weight: 660; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: var(--ink-2); font-size: 14.5px; }
footer.site a:hover { color: var(--violet); }
footer.site li a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s ease, transform .15s ease; }
footer.site li a:hover { transform: translateX(2px); }
footer.site li svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: .5; flex: 0 0 auto; }
footer.site .legalbar { border-top: 1px solid var(--line); padding-top: 26px; font-size: 13px; color: var(--ink-3); line-height: 1.9; }

.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; position: relative; flex: 0 0 auto; }
.dot-live:after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }

/* ==========================================================================
   Print / dispute evidence
   ========================================================================== */
.evidence { background: #fff; color: #000; font-family: Georgia, "Times New Roman", serif; font-size: 12pt; max-width: 190mm; margin: 0 auto; padding: 15mm; }
.evidence h1 { font-size: 16pt; color: #000; letter-spacing: 0; }
.evidence h2 { font-size: 13pt; color: #000; margin-top: 18pt; letter-spacing: 0; }
.evidence p { color: #000; }
.evidence table { font-size: 10pt; background: none; box-shadow: none; }
.evidence th, .evidence td { border: 1px solid #999; padding: 3pt 5pt; background: none; color: #000; text-transform: none; letter-spacing: 0; }
@media print { .no-print { display: none !important; } body:before { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .widget-demo { margin-left: 0; margin-right: auto; }
  .row-2 { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  nav.main { display: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr 1fr; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; max-width: 460px; }
  .legal { padding: 36px 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .glow { max-width: 90vw; }
  header.site .wrap { height: 62px; gap: 12px; }
  .brand { font-size: 17px; }
  .hero { padding: 36px 0 44px; }
  main { padding: 32px 0 60px; }
  .card, .feature, .plan { padding: 22px; }
  .legal { padding: 26px 20px; border-radius: var(--r-lg); }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .band > div:last-child { border-bottom: 0; }
}
