/* Variant C — new copy & navigation (index.html). Builds on style.css + variant-b.css */

/* Call-to-action rows: primary yellow button + secondary outlined button */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}

/* Secondary buttons look exactly like primary ones: all yellow */
.btn--ghost { background: var(--yellow); }

/* Large statement in the intro */
.statement {
  font-size: 26px;
  line-height: 36px;
  letter-spacing: -.3px;
  max-width: 760px;
}

/* Pricing facts */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 38px;
  margin: 8px 0 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 41px;
  line-height: 40px;
  text-transform: uppercase;
}

.facts dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  text-transform: none;
  margin-top: 4px;
}

/* Edition cards side by side */
.editions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.editions-grid figure { margin: 0; }
.editions-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editions-grid figcaption { margin-top: 12px; font-size: 13px; line-height: 21px; }
.editions-grid figcaption strong { display: block; font-weight: 400; }

/* Contact */
.address { font-style: normal; margin-top: 28px; font-size: 15px; line-height: 24px; }

/* Secondary nav group gets a little tighter: more items than before */
.site-nav .nav-group { gap: 18px; }
.site-nav .nav-group + .nav-group { margin-left: 22px; padding-left: 22px; }

@media (max-width: 1240px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 760px) {
  .statement { font-size: 21px; line-height: 30px; }
  .editions-grid { grid-template-columns: 1fr; }
  .facts dd { font-size: 34px; line-height: 34px; }
}

/* --------------------------------------------------------------------------
   Popups (Order / Contact)
   -------------------------------------------------------------------------- */
.modal {
  width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 48px 56px 56px;
  border: 0;
  background: var(--paper) url("../assets/img/paper.jpg") repeat;
  background-size: 1024px auto;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: auto;
}

.modal::backdrop { background: rgba(5, 5, 5, .72); backdrop-filter: blur(4px); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.modal-text h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 42px;
  font-weight: 400;
  text-transform: uppercase;
}

.modal-text .address { margin-top: 24px; }

.facts--compact { margin: 20px 0; padding: 18px 0; gap: 16px 24px; grid-template-columns: repeat(3, 1fr); }
.facts--compact dd { font-size: 34px; line-height: 34px; }
/* Headings of different lengths: keep the amounts on one baseline per row */
.facts--compact > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
.facts--compact dt { align-self: start; line-height: 17px; margin-bottom: 10px; }

.modal-form { max-width: none; }

.modal-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.modal-form .field { margin: 2px 0 0; padding: 8px 0 10px; font-size: 16px; letter-spacing: 0; text-transform: none; }
.modal-form textarea.field { resize: vertical; min-height: 64px; }
.modal-form select.field { appearance: none; -webkit-appearance: none; cursor: pointer; }

.modal-form .choice { border: 0; padding: 0; margin: 4px 0 16px; }
.modal-form .choice legend { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.modal-form .choice label,
.modal-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 22px;
}

.modal-form .check { margin: 4px 0 20px; }
.modal-form input[type="radio"], .modal-form input[type="checkbox"] { accent-color: var(--ink); margin-top: 4px; }
.modal-form .btn { margin-top: 4px; }

@media (max-width: 900px) {
  .modal { padding: 40px 24px 40px; }
  .modal-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-text h2 { font-size: 40px; line-height: 34px; }
  .facts--compact { grid-template-columns: 1fr 1fr; }
  /* An odd last item gets the full width instead of a narrow lonely column */
  .facts--compact > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Hero: back to the original design behaviour — fixed design height,
   machine image at design size. Overrides the screen-height hero of variant B.
   -------------------------------------------------------------------------- */
@media (min-width: 761px) {
  .hero { height: auto; min-height: 1217px; }
  .hero-machine {
    top: -99px;
    left: 50%;
    width: 1750px;
    height: auto;
    margin-left: -906px;
    transform: none;
  }
  .hero-inner { padding-top: 215px; }
  .hero-logo { margin-bottom: 46px; }
  .hero h1 { margin-bottom: 32px; }
  .hero-phase { margin-bottom: 51px; }
  .hero-usps { bottom: 82px; }
  .scroll-hint { bottom: 82px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero { min-height: 1000px; }
  .hero-machine { width: 1400px; margin-left: -640px; top: 0; }
}

/* Edition cards: keep the text inside the white panel (panel ends 114px before the container edge) */
@media (min-width: 761px) {
  .edition .grid > div:nth-child(2) { padding-right: 154px; }
}


/* Hero tagline replaces "the future of analog" + "Phase 1" */
.hero-sub--yellow { color: #bdbdbd; margin-bottom: 44px; text-transform: uppercase; letter-spacing: 1.4px; font-size: 14px; }

/* Hero: two stacked buttons instead of "join us" */
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Contact popup: small topic switch under the explanation */
.topic-switch { margin-top: 28px; font-size: 13px; line-height: 21px; color: #6b6b6b; }
.topic-switch select {
  margin-left: 6px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

/* Popups: one column, one flow — heading, one line, form, button */
.modal { width: min(620px, calc(100vw - 48px)); padding: 44px 48px 48px; }
.modal-grid { grid-template-columns: 1fr; gap: 20px; }
.modal-text h2 { font-size: 44px; line-height: 38px; margin-bottom: 14px; }
.modal-text p { margin-bottom: 0; }
.modal-text .address { margin-top: 16px; }
.facts--compact { margin: 18px 0 14px; }
.modal-form label { margin-bottom: 12px; }
.topic-switch { margin-top: 20px; }
@media (max-width: 760px) { .modal { padding: 36px 20px 36px; } }

/* --------------------------------------------------------------------------
   Form controls in site style (no system look)
   -------------------------------------------------------------------------- */
.modal-form .field,
.topic-switch select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: none;
}

.modal-form .field:focus-visible,
.topic-switch select:focus-visible {
  outline: none;
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

/* select: our own small arrow (ink chevron) */
.modal-form select.field,
.topic-switch select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23282828' stroke-width='1.3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.topic-switch select { background-position: right 0 center; padding-right: 20px; }

/* textarea: no system resize grip */
.modal-form textarea.field { resize: none; }

/* placeholder */
.modal-form .field::placeholder { color: #9a9a9a; }

/* checkbox: square with ink border, yellow when checked */
.modal-form input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}

.modal-form input[type="checkbox"]:checked {
  background: var(--yellow) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'><path d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23282828' stroke-width='1.6'/></svg>") no-repeat center;
}

.modal-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* submit button: identical to the site button (already .btn); kill the native focus ring */
.modal-form .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* close button hover */
.modal-close:hover { color: #000; }
.modal-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* autofill: keep the paper background instead of the browser's blue/yellow */
.modal-form .field:-webkit-autofill,
.modal-form .field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-out;
}

/* --------------------------------------------------------------------------
   Custom dropdown (js/select.js)
   -------------------------------------------------------------------------- */
.sel { position: relative; }
.sel-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.sel-button {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 8px 28px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23282828' stroke-width='1.3'/></svg>") no-repeat right 2px center;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.sel.is-open .sel-button { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 7l5-5 5 5' fill='none' stroke='%23282828' stroke-width='1.3'/></svg>"); }
.sel-button:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--ink); }

.sel-list {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #f4f4f2;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.sel.is-open .sel-list { display: block; }

.sel-option {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.sel-option.is-active,
.sel-option:hover { background: var(--yellow); }
.sel-option.is-selected { font-weight: 400; }

/* inline variant (topic switch under the explanation) */
.sel--inline { display: inline-block; margin-left: 6px; vertical-align: baseline; }
.sel--inline .sel-button {
  width: auto;
  margin: 0;
  padding: 2px 18px 2px 0;
  font-size: 13px;
  line-height: 21px;
  background-position: right 0 center;
  background-size: 10px 7px;
}
.sel--inline .sel-list { left: auto; right: auto; min-width: 240px; }

/* the old select styling no longer applies to the hidden native select */
.topic-switch select { border: 0; }

/* Stable popup when switching topic: anchored to the top instead of centred,
   and a fixed-height text block so the form always starts at the same spot */
.modal { margin: 56px auto; max-height: calc(100vh - 112px); }
#dialog-contact .modal-text { min-height: 278px; }
#dialog-contact .topic-text { min-height: 224px; }
.topic-address { margin-top: 20px; font-size: 13px; line-height: 21px; color: #6b6b6b; }
@media (max-width: 760px) {
  .modal { margin: 24px auto; max-height: calc(100vh - 48px); }
  #dialog-contact .modal-text, #dialog-contact .topic-text { min-height: 0; }
}

/* Doc's quote: one line large, full note collapsed */
.quote--doc .quote-lead {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 41px;
  line-height: 42px;
  text-transform: uppercase;
  max-width: 760px;
  margin-bottom: 14px;
}
.quote--doc .cite { margin-bottom: 18px; }
.quote-more summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.quote-more summary::-webkit-details-marker { display: none; }
.quote-more[open] summary { margin-bottom: 20px; }
.quote-more p { font-style: italic; }
.quote-photo { margin: 28px 0 0; }
@media (max-width: 760px) { .quote--doc .quote-lead { font-size: 30px; line-height: 32px; } }

/* WebP versions of the CSS backgrounds (variant C) */
.hero { background-image: url("../assets/img/hero-bg.webp"); }
body, .modal { background-image: url("../assets/img/paper.webp"); }

/* Active section in the navigation */
.site-nav a.is-active { color: var(--white); }

/* honeypot field for bots: invisible to people */
.modal-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Keep me informed strip (above the footer) */
.subscribe-strip { padding: 48px 0 40px; }
.subscribe-strip + footer.site-footer { padding-top: 0; }
.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.subscribe-grid p { margin: 0; }
.subscribe-grid .eyebrow { margin-bottom: 10px; }
.subscribe-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; align-items: end; max-width: none; }
.subscribe-form .field { margin: 0; }
.subscribe-form .btn { margin-bottom: 4px; }
.subscribe-form .form-note { grid-column: 1 / -1; margin: 10px 0 0; min-height: 0; }
.subscribe-form .form-note:empty { display: none; }
@media (max-width: 760px) {
  .subscribe-grid, .subscribe-form { grid-template-columns: 1fr; gap: 20px; }
}

/* small expectation line under a form button */
.form-hint { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: #6b6b6b; }

/* footer sits close under the strip */
.site-footer { padding-bottom: 40px; }
.site-footer .container { justify-content: flex-start; }

/* newsletter-only topic: fewer fields */
.modal[data-topic="informed"] .not-informed { display: none; }

/* --------------------------------------------------------------------------
   FAQ page (faq.html)
   -------------------------------------------------------------------------- */
.page-faq { padding-top: var(--header-h); }
body:has(.page-faq) .site-header { background: rgba(5, 5, 5, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.faq { padding-top: 96px; }
.faq-head { max-width: 760px; margin-bottom: 48px; }
.faq-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 400;
  text-transform: uppercase;
}

/* layer 1: categories */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.faq-tab {
  padding: 9px 16px;
  border: 0;
  border-radius: 30px;
  background: #d9d9d6;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.faq-tab:hover { background: #cdcdc9; }
.faq-tab.is-active { background: var(--yellow); }
.faq-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* layer 2: questions */
.faq-panels { max-width: 860px; }
.faq-cat {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 44px;
  font-weight: 400;
  text-transform: uppercase;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  margin-top: -2px;
  font-size: 30px;
  font-weight: 300;
  line-height: 28px;
  text-align: right;
  color: var(--ink);
}
.faq-item[open] summary::after { content: "\2212"; } /* minus sign */
.faq-item summary:hover { color: #000; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.faq-answer { padding: 0 54px 22px 0; }
.faq-answer p { max-width: 720px; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

.faq-more { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
.faq-more > p:first-child { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 44px; text-transform: uppercase; margin-bottom: 18px; }

@media (max-width: 760px) {
  .faq { padding-top: 56px; }
  .faq-tabs { gap: 8px; margin-bottom: 32px; }
  .faq-tab { padding: 8px 12px; }
  .faq-item summary { font-size: 16px; line-height: 26px; padding: 14px 0; }
  .faq-answer { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Mobile hero: the machine sits behind the text (as on desktop) and fades
   into the dark texture instead of ending in a hard edge above it.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
  .hero picture { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hero-machine {
    position: absolute;
    top: 2%;
    left: 50%;
    right: auto;
    width: auto;
    height: 80%;
    max-width: none;
    margin: 0;
    transform: translateX(-50%);
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-inner { position: relative; z-index: 1; padding-top: 36vh; }
  .hero-logo { width: 64px; margin-bottom: 18px; }
  .hero-logo-mark { width: 64px; height: 64px; }
  .hero-logo-word { width: 64px; height: 8px; }
  .hero h1 { font-size: 58px; line-height: 50px; margin-bottom: 18px; }
  .hero-sub--yellow { margin-bottom: 26px; }
  .hero-usps { position: relative; bottom: auto; margin-top: 40px; z-index: 1; }
}
