/*
Theme Name: Cadence Brutalist
Description: Marketing site theme for Cadence, ported from the brutalist static HTML build (cadence-brutalist-full.html).
Author: Maxim Frischmann
Version: 0.1.0
*/

:root {
  --ink: #f0eee8;
  --bg: #0a0a09;
  --bg-2: #131311;
  --accent: #ff3d00;
  --accent-2: #ffd400;
  --accent-ink: #0a0a09;
  --line: #f0eee8;
  --line-dim: #444138;
  --mono: "SF Mono", "IBM Plex Mono", "Courier New", monospace;
  --grotesk: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --maxw: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--grotesk); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin-inline: auto; }
h1, h2 { margin: 0; }

.ticker {
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem 0; overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--line);
}
.ticker span { display: inline-block; padding-right: 2.5rem; }

header { border-bottom: 2px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 20; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); }
.brand { font-family: var(--grotesk); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 0; font-family: var(--mono); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 1px solid var(--line-dim); }
.nav-links a {
  text-decoration: none; padding: .6rem 1.1rem; border-left: 1px solid var(--line-dim);
  display: flex; align-items: center; gap: .5rem; position: relative;
}
.nav-links a:first-child { border-left: none; }
.nav-links a .n { color: var(--accent); opacity: .8; font-weight: 700; }
.nav-links a:hover { background: var(--accent); color: var(--accent-ink); }
.nav-links a:hover .n { color: var(--accent-ink); opacity: 1; }

/* Mobile nav — hidden by default; the media query below is what makes it live. */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-dim); background: transparent;
  padding: 0; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 1.2rem; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 759px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    border: none; border-top: 2px solid var(--line);
    background: var(--bg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-left: none; border-top: 1px solid var(--line-dim); padding: 1rem clamp(1rem, 4vw, 2.5rem); }
  .nav-links a:first-child { border-top: none; }
  .nav .btn-primary { padding: .7rem 1rem; font-size: .78rem; }
}

.btn {
  font-family: var(--mono); font-weight: 700; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; padding: .9rem 1.6rem; border: 2px solid var(--line);
  display: inline-block; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--line); width: fit-content; }
.btn-row .btn { border: none; border-right: 2px solid var(--line); }
.btn-row .btn:last-child { border-right: none; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; border: 2px solid var(--line);
  padding: .3rem .65rem; margin-bottom: 1.6rem; transform: rotate(-1.2deg);
}
.tag.is-fill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: none; }

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 2px solid var(--line);
}
h1.display {
  font-family: var(--grotesk); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: .95; letter-spacing: -0.02em;
  margin: 0 0 1.6rem; max-width: 18ch;
}
h1.display .accent-word { font-family: var(--serif); font-weight: 600; text-transform: none; font-style: italic; color: var(--accent); }
.lede {
  font-family: var(--grotesk); font-size: 1.15rem; line-height: 1.55; color: var(--ink);
  max-width: 50ch; margin: 0 0 2rem; opacity: .88;
}
.hero-note { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 1.6rem; opacity: .65; }

.section { border-bottom: 2px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
h2.section-title {
  font-family: var(--grotesk); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch;
}
.section-lede { font-family: var(--grotesk); opacity: .75; max-width: 42ch; font-size: 1rem; }

.steps { display: grid; grid-template-columns: 1fr; border: 2px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.8rem; border-top: 2px solid var(--line); }
@media (min-width: 760px) { .step { border-top: none; border-left: 2px solid var(--line); } .step:first-child { border-left: none; } }
.step .idx { font-family: var(--mono); font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 1.4rem; display: block; }
.step h3 { font-family: var(--grotesk); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; margin: 0 0 .6rem; }
.step p { font-size: .95rem; opacity: .78; margin: 0; }

/* No 2-column tier: there are 9 cards, and 9 only tiles evenly into 1 or 3
   columns. A 2-column layout leaves a lone 9th card on its own in the last
   row, so its top divider has no partner on the right — it reads as a stray
   extra border around the card above it (reported 2026-08-06, screen-recorded
   at tablet width: "EPK & Press" looked boxed-off from its neighbours). Rather
   than special-case the orphaned cell, skip straight from 1 column to 3. */
/* Always single column, deliberately — no breakpoint, no multi-column grid.
   Every attempt at a multi-column layout for this section broke something
   different (2026-08-06 through 2026-08-10: border math on an uneven card
   count, a row stretching to match an opened sibling's height, a stretched
   "orphan" card reading as an unintentional width, and finally an absolute-
   positioned open panel colliding with the row underneath it). A single
   column removes the entire category: no row is ever shared between cards,
   so nothing a card does when it opens can ever touch another card. */
.feature-grid { display: grid; grid-template-columns: 1fr; border: 2px solid var(--line); }
.fcard { border-top: 2px solid var(--line); }
.feature-grid > .fcard:first-child { border-top: none; }

.fcard summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem;
}
.fcard summary::-webkit-details-marker { display: none; }
.fcard summary::marker { content: ""; }
.fcard summary::after {
  content: "+"; position: absolute; top: 1.6rem; right: 1.6rem;
  font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--ink); opacity: .6;
}
.fcard[open] summary::after { content: "\2013"; }
.fcard summary:focus { outline: none; }
.fcard summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fcard .badge {
  font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); border: 1px solid var(--accent); padding: .15rem .5rem;
  width: fit-content;
}
.fcard h3 { font-family: var(--grotesk); font-weight: 900; text-transform: uppercase; font-size: 1.05rem; margin: 0; padding-right: 2rem; }
.fcard p { font-size: .92rem; opacity: .78; margin: .8rem 1.8rem 1.8rem; }
.fcard:hover summary { background: var(--bg-2); }

.price-grid { display: grid; grid-template-columns: 1fr; border: 2px solid var(--line); }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.tier { padding: 2.2rem; border-top: 2px solid var(--line); }
@media (min-width: 760px) { .tier { border-top: none; } .tier:last-child { border-left: 2px solid var(--line); } }
.tier.is-feature { background: var(--bg-2); }
.tier .name { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 .8rem; font-weight: 700; }
.tier .amt { font-family: var(--grotesk); font-weight: 900; font-size: 3rem; margin: 0 0 .3rem; line-height: 1; }
.tier .amt small { font-size: 1rem; font-weight: 400; opacity: .6; }
.tier .tagline { opacity: .75; font-size: .95rem; margin: 0 0 1.6rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .6rem; border-top: 1px solid var(--line-dim); padding-top: 1.2rem; }
.tier li { font-size: .92rem; opacity: .85; padding-left: 1.3rem; position: relative; }
.tier li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.price-note { text-align: center; font-family: var(--mono); font-size: .85rem; opacity: .65; margin-top: 2rem; }
.price-note a { color: var(--accent); }

.included-wrap { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.included-label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 1.2rem; }
.included-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem 1.6rem; text-align: left; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.included-list li { font-size: .92rem; opacity: .85; padding-left: 1.3rem; position: relative; }
.included-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.included-list-soon { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dim); }
.included-list-soon li { display: flex; flex-direction: column; gap: .4rem; opacity: .78; }
.included-list-soon .badge {
  font-family: var(--mono); font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); border: 1px solid var(--accent); padding: .12rem .45rem;
  width: fit-content;
}

.cta { background: var(--bg-2); }
.cta .section-head { display: block; }
.contact-form { max-width: 480px; margin-top: 2rem; display: grid; gap: 1rem; }
.contact-form label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .9rem 1rem; border: 2px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-family: var(--grotesk);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink); opacity: .35; }

footer { padding: 1.6rem clamp(1rem, 4vw, 2.5rem); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .78rem; }
.footer-row a { text-decoration: none; opacity: .7; }
.footer-row a:hover { opacity: 1; }
.footer-links { display: flex; gap: 1.2rem; }

/* Legal pages (Imprint / Privacy) */
main.legal-page { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); max-width: var(--maxw); margin-inline: auto; }
main.legal-page h1 { font-family: var(--grotesk); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 2rem; }
.legal { font-size: .92rem; max-width: 640px; opacity: .88; }
.legal p { margin: 0 0 1.3rem; }
.legal a { color: var(--accent); }
.legal strong { font-family: var(--mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; display: block; margin-bottom: .3rem; opacity: .7; }
.notice {
  display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--accent); border: 1px solid var(--accent); padding: .35rem .7rem; margin-bottom: 2rem;
}
