/*
  Plainware site.
  The products are the pictures: every page leads with real screens of the extensions. The page itself stays
  plain (white, one sans for words, one serif for product names) so the screens and the four product inks carry
  it. The one brand gesture is borrowed from the extensions' own buttons: each screen has its product's ink
  printed behind it, a little out of register.
*/

/* ---------- tokens ---------- */
:root {
  --ink: #1F2A44;        /* text, and the extensions' ink blue */
  --paper: #F6F1E7;      /* the extensions' paper; used only on light surfaces that echo them */
  --bg: #FFFFFF;
  --band: #F2F4F8;       /* cool mist for quiet bands (promises, footer) */
  --raised: #FFFFFF;
  --text: var(--ink);
  --text-soft: #4A5570;  /* 7.4:1 on white */
  --rule: #DFE3EA;
  --rule-strong: var(--ink);
  --focus: #3A5BA0;
  --todo-bg: #FBE0A0;

  --vermilion: #E4572E;  /* PDF */
  --lagoon: #2A9D8F;     /* Focus */
  --rose: #D1495B;       /* Recorder */
  --cobalt: #3A5BA0;     /* Tabs */
  --accent: var(--vermilion); /* each page or product block sets its own */

  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-name: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.4vw, 56px);
  --max: 1200px;
  --off: 8px;            /* the ink offset behind screens and buttons */
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141B2E;
    --band: #1A2338;
    --raised: #1E2840;
    --text: #EEF0F5;
    --text-soft: #AEB6C8;
    --rule: #2C3753;
    --rule-strong: #EEF0F5;
    --focus: #F2A541;
    --todo-bg: #5C4A17;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.35; margin: 0 0 0.2em; font-weight: 650; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
code { font-family: var(--f-code); font-size: 0.86em; background: var(--band); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--bg); color: var(--text); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  box-shadow: 0 0 0 2px var(--text);
}
.skip:focus { top: 12px; }

.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 112px); }

/* ---------- masthead ---------- */
.masthead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px;
  padding: clamp(16px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text); text-decoration: none;
  font-family: var(--f-name); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1;
}
.wordmark .mark { flex: none; border-radius: 8px; }
.wordmark span { transform: translateY(-0.06em); }
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 2px 22px; margin: 0; padding: 0; list-style: none; }
.masthead nav a {
  display: inline-block; padding: 6px 0;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.2s ease;
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { background-size: 100% 3px; }
@media (max-width: 36rem) {
  .masthead nav ul { gap: 0 16px; }
  .masthead nav a { font-size: 0.94rem; }
}

/* ---------- screens: the one brand gesture ---------- */
.shot { position: relative; isolation: isolate; margin: 0 var(--off) var(--off) 0; }
.shot::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: var(--radius);
  transform: translate(var(--off), var(--off));
}
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(31, 42, 68, 0.16);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) { .shot img { box-shadow: 0 0 0 1px rgba(238, 240, 245, 0.18); } }

/* ---------- home: intro + shelf ---------- */
.intro { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 3.4vw, 44px); max-width: 64rem; }
.intro h1 { max-width: 20ch; }
.lede { font-size: clamp(1.13rem, 1.04rem + 0.4vw, 1.35rem); line-height: 1.5; max-width: 36em; color: var(--text-soft); }
.intro .lede { margin-bottom: 0; }

.shelf__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(28px, 3vw, 36px) clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.tile__link { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.tile__link .shot { margin-bottom: calc(var(--off) + 6px); transition: transform 0.15s ease; }
.tile__link .shot::before { transition: transform 0.15s ease; }
.tile__link:hover .shot { transform: translate(2px, 2px); }
.tile__link:hover .shot::before { transform: translate(calc(var(--off) - 2px), calc(var(--off) - 2px)); }
.tile__name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-name); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em;
}
.tile__link:hover .tile__name span, .tile__link:focus-visible .tile__name span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.tile__one { color: var(--text-soft); font-size: 1rem; line-height: 1.45; }

.promises {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px);
  background: var(--band); border-radius: 14px;
}
.promises__list {
  margin: 0; display: grid; gap: 18px clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.promises__list dt { font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.promises__list dd { margin: 0; color: var(--text-soft); font-size: 0.98rem; line-height: 1.5; }

/* ---------- home: spotlights ---------- */
.spot {
  display: grid; gap: clamp(22px, 3vw, 56px); align-items: center;
  padding: clamp(32px, 4.5vw, 64px) 0;
  border-top: 1px solid var(--rule);
}
.block > h2 + .spot { border-top: 0; padding-top: clamp(12px, 2vw, 24px); }
@media (min-width: 56rem) {
  .spot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .spot--flip .spot__text { order: 2; }
}
.spot__one { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1rem; }
.spot__pro { color: var(--text-soft); font-size: 0.98rem; }
.spot__pro .tag { margin: 0 0.3em 0 0; }
.spot__shot { margin: 0; }
.spot__shot figcaption, .gallery figcaption { margin-top: 6px; font-size: 0.9rem; color: var(--text-soft); }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.85rem; height: 0.45rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- product hero + gallery ---------- */
.hero { display: grid; gap: clamp(28px, 4vw, 64px); padding: clamp(32px, 5vw, 72px) 0 clamp(16px, 3vw, 32px); align-items: center; }
.hero__text > :last-child { margin-bottom: 0; }
@media (min-width: 60rem) {
  .hero--product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero--guide { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
}
.hero--product h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.hero--plain { max-width: 52rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 1.9rem; }
.fineprint { font-size: 0.9375rem; color: var(--text-soft); }
.link-strong { font-weight: 600; }

.gallery { padding-top: clamp(24px, 3vw, 40px); }
.gallery__list {
  list-style: none; margin: 0; padding: 4px 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 30%);
  gap: clamp(18px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
@media (max-width: 40rem) { .gallery__list { grid-auto-columns: 80%; } }
.gallery__list li { scroll-snap-align: start; }
.gallery figure { margin: 0; }

.lockup {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-name); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.lockup a { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.lockup a:hover span, h3.lockup a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.lockup--small { font-size: 1.1rem; margin-bottom: 1rem; }
h3.lockup { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-bottom: 0.6rem; }
.product-icon { flex: none; border-radius: 22%; }
@media (prefers-color-scheme: dark) { .product-icon { box-shadow: 0 0 0 1.5px var(--rule); } }

/* ---------- buttons ---------- */
.install { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: 1.8rem 0 1.1rem; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 50px; padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  font: 600 1rem/1.2 var(--f-text);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--accent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--accent); }
a.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--accent); }
.btn--quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text), 5px 5px 0 var(--accent); }
a.btn--quiet:hover { box-shadow: inset 0 0 0 2px var(--text), 3px 3px 0 var(--accent); }
.btn--pending {
  background: transparent; color: var(--text);
  box-shadow: none; border: 2px dashed var(--text-soft);
  cursor: default;
}
.btn--pending small { font-weight: 400; font-size: 0.8125rem; color: var(--text-soft); }

/* ---------- sections ---------- */
.block { padding-top: clamp(56px, 7vw, 104px); }
.block > h2 { max-width: 24ch; }
.sub { color: var(--text-soft); margin-top: -0.2rem; }
.two-col { display: grid; gap: clamp(32px, 4.5vw, 72px); }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; } }

.rules__list, .pairs {
  display: grid; gap: clamp(22px, 3vw, 36px) clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
}
.rules__list dt, .pairs dt { font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.rules__list dd, .pairs dd { margin: 0; color: var(--text-soft); }
.block .rules__list--compact { margin: 1.5rem 0 2rem; }
.pairs { margin: 1rem 0 1.5rem; }

.plain-list { padding-left: 1.15em; margin: 0; }
.plain-list li { margin: 0.55em 0; padding-left: 0.2em; }
.plain-list li::marker { color: var(--accent); content: "■  "; font-size: 0.7em; }

.tools { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 18px; }
.tools p { margin: 0; color: var(--text-soft); }

.tag {
  display: inline-block; vertical-align: 0.12em; margin-left: 0.35em;
  padding: 0.24em 0.5em 0.22em; border-radius: 5px;
  font: 600 0.75rem/1 var(--f-text); letter-spacing: 0.01em;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text), 2px 2px 0 var(--accent);
}

/* ---------- Pro prices ---------- */
.pro-teaser { display: grid; gap: clamp(26px, 3.5vw, 56px); align-items: start; }
@media (min-width: 60rem) { .pro-teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.pro-teaser p { max-width: 34em; }
.tickets { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.ticket {
  position: relative;
  padding: 22px 24px;
  background: var(--raised);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--text), 7px 7px 0 var(--accent);
  display: flex; flex-direction: column;
}
.ticket__where { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 0.3rem; }
.ticket__price { margin: 0 0 0.9rem; display: flex; align-items: baseline; gap: 10px; }
.ticket__amount { font-weight: 800; font-size: clamp(2.8rem, 2.3rem + 2vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; }
.ticket__once { color: var(--text-soft); }
.ticket__how { font-size: 0.9375rem; color: var(--text-soft); padding-top: 0.85rem; border-top: 1px solid var(--rule); margin: 0; }
.ticket .btn { margin-top: 1.2rem; align-self: flex-start; }
.tickets + .fineprint { margin-top: 1.7rem; }
.block--tight { padding-top: clamp(16px, 2.5vw, 32px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { padding-left: 0; }
thead th { font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid var(--rule-strong); }
tbody th { font-weight: 500; }
.compare { max-width: 880px; }
.compare td { width: 26%; }
@media (max-width: 30rem) {
  .compare th, .compare td { padding: 0.6rem 0.45rem; }
  .compare td { width: 24%; }
}
.compare__terms tr:first-child th, .compare__terms tr:first-child td { border-top: 2px solid var(--rule-strong); }
.compare__terms th { font-weight: 600; }
.ic { width: 22px; height: 22px; vertical-align: -0.3em; color: var(--text); }
.ic--dash { color: var(--text-soft); }
.budget { max-width: 26rem; font-variant-numeric: tabular-nums; }

.perms { margin: 1.4rem 0 0; display: grid; gap: 18px; }
.perms dt { margin-bottom: 0.25rem; }
.perms dd { margin: 0; color: var(--text-soft); }
.two-col--wide h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 2px solid var(--rule-strong); margin-top: 1.4rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 1.05rem 0;
  font-weight: 650; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.35; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 0.35em;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2.5px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.2rem 1.2rem 0; max-width: 44rem; color: var(--text-soft); }
.faq__a p { margin: 0; }

/* ---------- steps (only for real sequences) ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.3rem 0 1.6rem; padding: 0; display: grid; gap: 16px; max-width: 44rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before {
  content: counter(step);
  font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent);
}
.steps p { margin: 0; }
.stages { padding-left: 1.4em; }
.stages li { margin: 0.7em 0; padding-left: 0.3em; }
.stages li::marker { font-weight: 700; color: var(--accent); }

/* ---------- prose pages (policies, guides) ---------- */
.prose { max-width: 44rem; padding-top: clamp(32px, 5vw, 72px); }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); margin-top: 2.1em; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.25em; }
.prose li { margin: 0.45em 0; }
.prose--guide { padding-top: 0; }
.prose--guide > h2:first-child { margin-top: 1.2em; }
.big-line { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; }
.details { margin: 1rem 0 0; display: grid; gap: 12px; }
.details div { display: grid; gap: 2px 24px; }
@media (min-width: 40rem) { .details div { grid-template-columns: 10rem minmax(0, 1fr); } }
.details dt { font-weight: 600; }
.details dd { margin: 0; }

.answer {
  background: var(--raised);
  padding: 22px 24px 20px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--text), 7px 7px 0 var(--accent);
}
.answer h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.4rem; }
.answer p { margin: 0; font-size: 1rem; }

.guide-links { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 24px 56px; max-width: 920px; }
@media (min-width: 46rem) { .guide-links { grid-template-columns: 1fr 1fr; } }
.guide-links a { font-weight: 650; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.guide-links p { margin: 0.35rem 0 0; color: var(--text-soft); font-size: 0.9688rem; }

.closing .install { margin-bottom: 1.4rem; }
.closing__lockup { margin-bottom: 1rem; }

mark.todo-owner {
  background: var(--todo-bg); color: var(--text);
  padding: 0.05em 0.35em; border-radius: 3px;
  outline: 1.5px dashed currentColor; outline-offset: 1px;
  font-size: 0.92em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- colophon ---------- */
.colophon { background: var(--band); font-size: 0.9375rem; }
.colophon__inner { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 80px) var(--gutter) 40px; }
.colophon a { color: var(--text); text-decoration-color: var(--rule); }
.colophon a:hover { text-decoration-color: var(--accent); }
.colophon__grid { display: grid; gap: 36px; }
@media (min-width: 52rem) { .colophon__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.colophon__brand p { color: var(--text-soft); max-width: 26em; margin-top: 0.9rem; }
.wordmark--small { font-size: 1.25rem; }
.colophon__nav { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.colophon h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--text-soft); margin: 0 0 0.6rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0.4rem 0; }
.colophon__small { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--text-soft); font-size: 0.875rem; }
.colophon__small p { margin: 0 0 0.5em; max-width: 60em; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .masthead nav, .skip, .install, .colophon__nav, .shot::before { display: none; }
  .colophon { background: none; }
}
