/* Salegor Type — site styles. Set in Salegor Pro; the "Type" in the lockup is Helvetica Now Light. */
@font-face { font-family: 'Salegor Pro'; src: url('fonts/SalegorPro-VF.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Salegor Pro'; src: url('fonts/SalegorPro-Italic-VF.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
/* Helvetica Now Display Light for "Type" in the lockup. It is a commercial Monotype font: once you have a web licence,
   put the file at assets/fonts/HelveticaNowDisplay-Light.woff2 and add
     , url('fonts/HelveticaNowDisplay-Light.woff2') format('woff2')
   after the local() sources below. Until then a visitor's installed copy is used, then Helvetica Neue Light. */
@font-face { font-family: 'Helvetica Now Display'; src: local('Helvetica Now Display Light'), local('HelveticaNowDisplay-Light');
  font-weight: 300; font-display: swap; }

:root {
  /* dark theme, as the posters: --ink = text, --paper = page, --accent = lime */
  --ink: #efede6; --paper: #0d0e0b; --line: #2a2b26; --mute: #8a8a80; --accent: #c6ff2e; --card: #151612; --on-accent: #0d0e0b;
  color-scheme: dark;
  --gut: clamp(16px, 4vw, 64px); --max: 1440px;
  --sans: 'Salegor Pro', system-ui, sans-serif;
  --helv: 'Helvetica Now Display', 'Helvetica Now Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 18px; line-height: 1.45;
  font-variant-numeric: proportional-nums; font-kerning: normal; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.label { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--mute); }

/* lockup: the Salegor wordmark (vector, from the brand files) + "Type" in Helvetica Now Light */
.lockup { height: 30px; width: auto; display: block; color: var(--ink); overflow: visible; }
.lockup .ink { fill: currentColor; } .lockup .accent { fill: var(--accent); }
.lockup-type { font-family: var(--helv); font-weight: 300; fill: currentColor; letter-spacing: -.01em; }
.lockup--foot { height: 44px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .top .wrap { height: 60px; } .lockup { height: 24px; } }

/* hero */
.hero { padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(76px, 17vw, 280px); font-weight: 700; line-height: .86; letter-spacing: 0; transition: font-weight .2s; }
.hero h1 em { font-weight: 700; font-style: normal; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: .02em .32em .1em; display: table; font-size: .42em; line-height: 1; margin-top: .62em; }
.hero-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gut); margin-top: clamp(32px, 5vw, 64px); align-items: end; }
.hero-lede { font-size: clamp(20px, 2.2vw, 30px); font-weight: 300; line-height: 1.25; max-width: 30ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats div { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.stats b { display: block; font-size: clamp(36px, 4.5vw, 64px); font-weight: 400; line-height: 1; }
.stats span { font-size: 14px; color: var(--mute); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* sections */
section { padding: clamp(56px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gut); margin-bottom: clamp(28px, 4vw, 56px); align-items: end; }
.sec-head h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 600; line-height: .95; }
.sec-head p { font-size: 18px; max-width: 56ch; color: var(--mute); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* tester */
.tester-row { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.controls label { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.controls output { color: var(--ink); min-width: 3ch; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 140px; height: 2px; background: var(--ink); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sample { outline: none; overflow-wrap: anywhere; line-height: 1.08; }
.sample:focus { box-shadow: inset 0 -2px 0 var(--accent); }

/* weights */
.wt { display: grid; grid-template-columns: 160px 1fr 60px; align-items: center; border-top: 1px solid var(--line); min-height: 92px; gap: 16px; padding-block: 6px; }
.wt:last-child { border-bottom: 1px solid var(--line); }
/* line box = the font's full ascender + descender (950 + 250), so g, y, p and j are never cut;
   long lines are clipped sideways only */
.wt .s { font-size: clamp(30px, 5.2vw, 76px); line-height: 1.24; white-space: nowrap; overflow-x: clip; overflow-y: visible; min-width: 0; }
.wt .n { text-align: right; }
@media (max-width: 640px) { .wt { grid-template-columns: 1fr 40px; min-height: 64px; } .wt .label:first-child { display: none; } .wt .s { font-size: 5.4vw; } }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 22px; min-height: 260px; }
.feat .demo { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; flex: 1; display: flex; align-items: center; }
.feat .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feat p { font-size: 15px; color: var(--mute); }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* characters */
.chars { display: grid; grid-template-columns: 1fr 340px; gap: var(--gut); align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.g { aspect-ratio: 1; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent;
  font: 400 26px var(--sans); color: var(--ink); cursor: pointer; }
.g:hover { background: var(--card); }
.g.on { background: var(--accent); color: var(--on-accent); }
.big { position: sticky; top: 100px; background: var(--card); color: var(--ink); border: 1px solid var(--line); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.big .ch { color: var(--ink); font-size: 200px; line-height: 1; text-align: center; font-weight: 400; }
@media (max-width: 960px) { .chars { grid-template-columns: 1fr; } .big { display: none; } }

/* in use */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* languages */
.langs { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; font-weight: 300; }
.langs b { font-weight: 600; }

/* buy */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.tier.hl { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tier.hl li::before { color: var(--on-accent); }
.tier.hl .btn { background: var(--paper); color: var(--ink); }
.tier.hl .btn:hover { background: var(--paper); color: var(--accent); }
.tier h3 { font-size: 26px; font-weight: 600; }
.tier .price { font-size: 56px; font-weight: 300; line-height: 1; }
.tier ul { list-style: none; font-size: 15px; display: grid; gap: 8px; flex: 1; }
.tier li::before { content: '—'; margin-right: 8px; color: var(--accent); }
.trial { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px dashed var(--mute); border-radius: 6px; padding: 22px 28px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }

/* footer */
footer { padding: 56px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
footer .meta { font-size: 14px; color: var(--mute); text-align: right; }

/* licence page */
.doc { max-width: 820px; padding: clamp(40px, 6vw, 88px) 0; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1; margin-bottom: 32px; }
.doc h2, .doc h3 { margin: 36px 0 12px; font-weight: 600; } .doc h2 { font-size: 28px; } .doc h3 { font-size: 22px; }
.doc p, .doc li { font-size: 17px; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; border-top: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { font-weight: 600; }
@media (max-width: 640px) { .doc table { display: block; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero h1 { transition: none; } }
