/* Ercura: the director's version, draft 2. White text on black, Montserrat, no animations. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  src: url(fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --ink: #fff;
  --paper: #000;
  --grey: #b0b0b0;
  --line: #3a3a3a;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* The draft bar: thin, separate, not part of the site (it goes when the site is published) */
.draftbar {
  background: #ffe8a3;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 20px;
  border-bottom: 1px solid #c9a93a;
  text-align: center;
}
.draftbar a { color: #000; font-weight: bold; }
.draftbar .sent { display: block; font-weight: bold; }

/* Header and menu */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.menu a { text-decoration: none; padding: 4px 0; display: inline-block; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: .8em; }
.intro { max-width: 46ch; font-size: 1.1rem; }

/* Opening screen */
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.3rem; max-width: 30ch; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 10px; }
.price { font-size: 1.6rem; font-weight: 600; margin: 0; white-space: nowrap; }
.price .vat { font-size: 1rem; font-weight: 500; color: var(--grey); }
.price small { font-size: .85rem; font-weight: 400; color: var(--grey); display: block; white-space: normal; }
.open { font-weight: 600; }
.hero figure { margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 14px 30px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--paper); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* What it is for */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.uses li { border-top: 1px solid var(--line); padding: 14px 0 18px; }
.uses strong { display: block; font-weight: 600; margin-bottom: 2px; }
.uses span { color: var(--grey); font-size: .95rem; }

/* Clips */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clips figure, .pics figure { margin: 0; }
.clips video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
figcaption { font-size: .9rem; color: var(--grey); margin-top: 8px; }
.note { font-size: .9rem; color: var(--grey); }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Measured support and its chart: plain SVG, no script */
.support { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.chart { margin: 0; }
.chart__svg { display: block; width: 100%; height: auto; }
.chart__svg text { font-family: "Montserrat", Arial, sans-serif; font-size: 13px; fill: var(--grey); }
.chart__svg .lab { fill: var(--ink); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.chart__svg .lab-fig { font-size: 16px; }
.chart__svg .grid { stroke: #2c2c2c; stroke-width: 1; }
.chart__svg .grid.base { stroke: #8a8a8a; }
.chart__svg .up { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.chart__svg .down { fill: none; stroke: #a8a8a8; stroke-width: 2; stroke-dasharray: 7 5; stroke-linejoin: round; }
.chart__svg .dot-up { fill: var(--ink); }
.chart__svg .dot-down { fill: var(--paper); stroke: #a8a8a8; stroke-width: 1.4; }
.chart__svg .pin { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.chart figcaption { margin-top: 12px; }

/* Facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 11rem 1fr; gap: 12px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

/* Why Ercura */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.why h3 { margin-bottom: .3em; }

/* Plain bands */
.band { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.row p { margin: 0; max-width: 46ch; }

/* Order and forms */
.orderhead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
ul.plain { margin: 0 0 1em; padding-left: 1.2em; }
ol.steps { margin: 0 0 1em; padding-left: 1.3em; }
ol.steps li { margin-bottom: .5em; }
form { max-width: 640px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--grey); }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #8a8a8a;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
input[type="number"] { max-width: 8rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 2px 0 0; flex: none; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 12px; height: 12px; background: var(--ink); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* About */
.story .lead { font-size: 1.25rem; }

/* Legal and notes pages */
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.placeholder { border: 2px dashed var(--ink); padding: 16px 20px; margin: 1.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 0 0 1.5em; }
th, td { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
th { font-weight: 600; }
.tablewrap { overflow-x: auto; }
code { font-size: .9em; overflow-wrap: anywhere; }

/* Bottom of every page */
footer { border-top: 1px solid var(--ink); padding: 28px 0 40px; font-size: .9rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0 0 12px; padding: 0; }
footer p { color: var(--grey); margin: 0; }

@media (max-width: 900px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero .wrap, .how, .orderhead { grid-template-columns: 1fr; gap: 28px; }
  .hero figure { max-width: 360px; }
  .clips { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 9rem 1fr; }
  .why { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .chart__svg text { font-size: 19px; }
  .chart__svg .lab { font-size: 20px; }
  .chart__svg .lab-fig { font-size: 22px; }
}
@media (max-width: 420px) {
  .uses { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .menu { gap: 2px 16px; }
}
