@font-face {
  font-family: Inter;
  src: url('./inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #0c1933;
  --ink: #101d36;
  --muted: #526076;
  --background: #f8fafb;
  --line: #d6dfe8;
  --green: #187a56;
  --mint: #8ee1b5;
  --soft: #eaf5ef;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  background: var(--background);
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.04em; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.125rem); }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 2px solid #267f61; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1112px); margin-inline: auto; }
.narrow { max-width: 690px; margin-inline: auto; }
.section { padding-block: clamp(52px, 7vw, 104px); }
.center { text-align: center; }
.center p { margin: 14px auto 24px; }
.mono, code { font-family: var(--mono); overflow-wrap: anywhere; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #111; font-weight: 600; text-decoration: none; white-space: nowrap; }
.logo-suffix { color: var(--green); }
.mark { flex: none; display: block; width: 14px; height: 25px; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.3vw, 28px); font-size: .875rem; }
nav a, .nav-button { text-decoration: none; color: var(--muted); }
nav a:hover, nav [aria-current='page'] { color: var(--ink); text-decoration: underline; }
.nav-button { border: 0; padding: 0; background: none; }
.nav-button:hover { color: var(--ink); text-decoration: underline; }
footer { border-top: 1px solid var(--line); font-size: .875rem; }
footer .bar { min-height: 98px; flex-wrap: wrap; padding-block: 18px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bisplot-credit { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.bisplot-credit:hover { text-decoration: underline; }
.bisplot-credit img { width: auto; height: 19px; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 17px; min-height: 44px; border-radius: 6px; border: 1px solid transparent; font-size: .875rem; font-weight: 600; text-align: center; line-height: 1.35; text-decoration: none; }
.button:hover:not(:disabled) { filter: brightness(.93); text-decoration: none; }
.primary, nav .primary, nav .primary:hover { background: #142647; color: white; }
.green { background: var(--green); color: white; }
.ghost { border-color: #51617a; color: white; background: transparent; }
.outline { border-color: #bcc9d6; color: var(--ink); background: white; }
.nav-cta { min-height: 36px; padding: 7px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero {
  color: #f2f5fb;
  background-color: var(--navy);
  background-image: linear-gradient(#f7fbff0b 1px, transparent 1px), linear-gradient(90deg, #f7fbff0b 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 64px); padding-block: clamp(62px, 8vw, 112px); }
.eyebrow { color: var(--green); font: .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .17em; margin-bottom: 18px; }
.hero .eyebrow, .example strong, .example-label span { color: var(--mint); }
.hero .lead { font-size: 1.125rem; color: #b4c0d2; max-width: 490px; margin-top: 22px; }
.example { background: #ffffff08; border: 1px solid #ffffff2c; border-radius: 12px; padding: clamp(16px, 2.7vw, 25px); min-width: 0; }
.example-label { color: #b4c0d2; font-size: .8rem; }
.example-url { font-family: var(--mono); font-size: clamp(.875rem, 2.3vw, 1.5rem); margin: 14px 0 18px; color: #fff; overflow-wrap: anywhere; }
.example-url span { color: #b4c0d2; }
.example-destination { border-top: 1px solid #ffffff24; padding-top: 14px; }
.example-destination .mono { color: #f2f5fb; font-size: .875rem; margin: 4px 0 8px; }
.link-button { background: none; border: 0; padding: 2px 0; color: var(--mint); font-size: .8rem; text-decoration: underline; text-underline-offset: .2em; }
.hero :focus-visible { outline-color: var(--mint); }

.principles {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 7vw, 84px);
}
.principles-intro h2 { max-width: 14ch; font-size: clamp(2rem, 3.8vw, 3rem); }
.principles-intro p { max-width: 36ch; margin-top: 16px; }
.benefits article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.benefits article:last-child { border-bottom: 1px solid var(--line); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
}
.feature-icon svg { width: 23px; height: 23px; }
.benefits h3 { margin: 0 0 5px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.benefits p { font-size: .9rem; }
.soft { background: #eef2f6; border-block: 1px solid var(--line); }
.split, .demo-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.split p, .demo-page p, .narrow > p { margin-block: 14px; }
.domains { margin: 0; }
.domains div { padding-block: 12px; }
.domains div + div { border-top: 1px solid var(--line); }
.domains dd { color: var(--muted); margin: 4px 0 0; }

.flow-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 20px; }
.flow-header a { color: var(--green); font-size: .9rem; font-weight: 600; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 24px 0 0; padding: 0; list-style: none; }
.flow-step { position: relative; min-width: 0; }
.flow-figure { position: relative; }
.flow-drawing {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 112;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #334a5f;
}
.flow-tint { fill: var(--soft); stroke: var(--green); }
.flow-paper { fill: white; }
.flow-accent { stroke: var(--green); }
.flow-copy h3 { margin: 14px 0 6px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.flow-copy p { font-size: .9rem; }
.flow-arrow {
  position: absolute;
  top: 50%;
  left: calc(100% + 3px);
  width: 24px;
  text-align: center;
  color: var(--green);
  transform: translateY(-50%);
}
@media (max-width: 740px) {
  .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow-step { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); align-items: center; gap: 12px; }
  .flow-figure { position: static; }
  .flow-copy h3 { margin-top: 0; }
  .flow-arrow { top: 100%; left: calc(max(90px, 30%) / 2 - 12px); transform: rotate(90deg); }
}
@media (max-width: 375px) {
  .flow-copy p { font-size: .84rem; }
}

.customers {
  padding-block: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.customers h2 { font-size: 1.125rem; letter-spacing: -.025em; }
.customer-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.customer-logos li { display: grid; min-height: 64px; place-items: center; }
.customer-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 134px);
  max-height: 55px;
  filter: brightness(0) invert(.35);
}
.customer-logos .kopernik-logo {
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .72;
}
@media (max-width: 740px) {
  .customer-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

.pricing-head { margin-bottom: 36px; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #eef2f6; }
.toggle button { border: 0; padding: 6px 16px; border-radius: 5px; background: transparent; color: var(--muted); }
.toggle [aria-pressed='true'] { color: var(--ink); background: white; box-shadow: 0 1px 3px #0c193320; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan, .demo-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 28px); }
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan.featured { border-color: var(--green); box-shadow: 0 8px 25px #0c193309; }
.plan h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.plan-domain { font-size: .8rem; margin-top: 8px; }
.price { margin: 22px 0 0; color: var(--ink); font-size: clamp(1.85rem, 3.5vw, 2.55rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.price-note, .fine { font-size: .825rem; }
.plan-intro { margin-top: 16px; }
.plan ul { padding: 0; margin: 16px 0 26px; list-style: none; font-size: .875rem; }
.plan li { position: relative; padding-left: 20px; margin: 7px 0; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.plan button { width: 100%; margin-top: auto; }
.pricing-notes { margin-top: 35px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }
details button { margin-top: 14px; }

form > label:not(.check) { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input:not([type='checkbox']) { width: 100%; min-height: 44px; border: 1px solid #aebccd; border-radius: 6px; padding: 9px 12px; color: var(--ink); background: white; }
.demo-notice {
  padding: 12px 14px;
  border-inline-start: 3px solid var(--green);
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
}
.demo-notice strong { font-weight: 600; }
.demo-card .button { margin-top: 8px; }
.demo-card p { margin: 12px 0 0; }
.demo-result { background: var(--soft); margin-top: 18px; padding: 14px; border-radius: 6px; }
.demo-result p { margin: 0 0 5px; font-size: .8rem; }
.demo-result output { display: block; }
.status:empty { display: none; }

dialog { width: min(480px, calc(100% - 26px)); max-height: calc(100% - 26px); padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0c19339e; }
dialog h2 { padding-right: 26px; }
dialog p { margin: 9px 0; }
dialog h2 + p { font-weight: 600; color: var(--ink); }
dialog #signup { margin-top: 14px; }
.close { position: absolute; right: 9px; top: 8px; }
.close button { background: none; border: 0; border-radius: 6px; width: 36px; height: 36px; color: var(--muted); font-size: 1.55rem; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .825rem; margin: 11px 0; }
.check input { margin: 3px 0 0; accent-color: var(--green); width: 15px; height: 15px; flex: none; }
.check small { color: var(--muted); font-size: inherit; }
#signup .button { width: 100%; }
.ping { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ping p { margin: 0; }

@media (min-width: 741px) {
  .plans { column-gap: 16px; row-gap: 0; }
  .plan {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    align-items: start;
  }
  .plan button { align-self: stretch; margin-top: 0; }
}

@media (max-width: 740px) {
  .hero-grid, .split, .demo-page, .plans, .principles { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 48px; }
  .nav-cta { display: none; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 28px); }
  .bar { gap: 9px; }
  nav { gap: 10px; }
}

/* Informativa privacy */
.legal { max-width: 780px; margin-inline: auto; }
.legal-head { margin-bottom: 28px; }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-block: 8px; }
.legal-meta { font-size: .875rem; }
.legal section { margin-top: 44px; scroll-margin-top: 24px; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.03em; margin-bottom: 14px; }
.legal h3 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-block: 12px; }
.legal ul, .legal ol { padding-left: 1.25em; margin: 12px 0; }
.legal li { margin-block: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.summary, .toc { margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.summary { background: var(--soft); border-color: #cfe7da; }
.summary h2, .toc h2 { font-size: 1.05rem; margin-bottom: 8px; }
.toc ol { columns: 2 260px; column-gap: 32px; margin-bottom: 0; }
.toc a { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: white; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .875rem; }
.legal th, .legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { font-weight: 600; color: var(--ink); background: var(--soft); }
.legal tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.legal td { color: var(--muted); }
.legal tr:last-child > * { border-bottom: 0; }
.legal-end { margin-top: 44px; font-size: .875rem; }
@media print {
  header, footer, .toc, .legal-end, .skip { display: none; }
  .legal { max-width: none; }
  .table-scroll { overflow: visible; border: 0; }
  .legal table { min-width: 0; }
}
.lang-switch { display: inline-flex; margin-bottom: 20px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.lang-switch button { padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .875rem; font-weight: 500; }
.lang-switch button[aria-pressed='true'] { background: var(--navy); color: white; }
@media print { .lang-switch { display: none; } }
.lang-link { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.lang-link:hover { border-color: var(--muted); text-decoration: none; }
