/* Budova shared sheet: tokens, base type, controls, header, footer stamp, legal and support pages.
   The site is a drawing sheet: concrete paper, navy ink, survey-yellow fills. */
:root {
  color-scheme: light;
  --paper: #ECEEEA;
  --sheet: #F7F8F5;
  --ink: #0A2342;
  --muted: #4A5566;
  --signal: #FFC524;
  --navy-2: #0F2E55;
  --line: #C3C9C2;
  --grid: #DDE1DB;
  --on-navy: #ECEEEA;
  --on-navy-muted: #B9C6D8;
  --on-navy-line: rgba(236, 238, 234, .32);
  --link: #1B4F9C;
  /* The app's own canvas: every product recording is set on this slate. */
  --plate: #0F172A;
  --plate-line: rgba(226, 232, 240, .06);
  --on-plate: #EEF1F5;
  --on-plate-muted: #B4BFCF;
  --on-plate-line: rgba(238, 241, 245, .4);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: 40px;
  --col-gap: 24px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  --r-control: 6px;
  --r-plate: 4px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
@media (max-width: 959px) { :root { --gutter: 24px; } }
@media (max-width: 599px) { :root { --gutter: 16px; --col-gap: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (max-width: 599px) { body { font-size: 17px; } }
main { flex: 1 0 auto; display: block; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band-navy :focus-visible, .site-footer :focus-visible, .article-cta :focus-visible { outline-color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.site-container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
@media (max-width: 959px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Display type */
.display, .h2 {
  font-family: var(--font-display);
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.h2 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.h1-inner {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.lede { font-size: 22px; line-height: 1.5; color: var(--ink); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 599px) { .lede { font-size: 19px; } }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link */
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1.3 var(--font-text); text-decoration: none;
  border-radius: var(--r-control);
}
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; min-width: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r-control);
  font: 600 16px/1.3 var(--font-text); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--lg { min-height: 52px; }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--signal); color: var(--ink); }
.btn--signal { background: var(--signal); color: var(--ink); border-color: var(--ink); }
.btn--signal:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: var(--paper); }
/* On the slate: an outline in the light ink, filled on hover. */
.btn--ghost { background: transparent; color: var(--on-plate); border-color: var(--on-plate-line); }
.btn--ghost:hover { background: var(--on-plate); color: var(--ink); border-color: var(--on-plate); }
.btn--signal:focus-visible, .btn--ghost:focus-visible { outline-color: var(--signal); }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.tlink:hover { text-decoration-thickness: 3px; }

/* Category: plain ink text in the meta column. Yellow stays for answers and actions. */
.tag { color: var(--ink); font: 600 14px/1.4 var(--font-text); white-space: nowrap; }

/* Section header pattern */
.sec { border-top: 2px solid var(--ink); padding-top: 80px; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-bottom: var(--s8); }
.sec-head .h2 { grid-column: 1 / 8; }
.sec-note { grid-column: 9 / 13; align-self: end; margin: 0; }
.sec-note p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.sec-note .tlink { margin-top: 8px; }
@media (max-width: 959px) {
  .sec { padding-top: 56px; }
  .sec-head { display: block; margin-bottom: var(--s7); }
  .sec-note { margin-top: var(--s4); }
}

/* Header */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.site-header { position: relative; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; }
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; }
  .site-header.is-stuck { border-bottom-color: var(--ink); }
}
.site-header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-block: var(--s3); }
.site-brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 48px;
  color: var(--ink); text-decoration: none; border-radius: var(--r-control);
}
/* The owner's logo artwork (assets/logo_white.png) set as a horizontal lockup, trimmed so it sits on the container edge. */
.site-brand img { display: block; width: auto; height: 46px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 15px/1.3 var(--font-text);
}
.site-nav a span { padding-block: 4px; }
.site-nav a:hover span, .site-nav a[aria-current="page"] span { box-shadow: inset 0 -3px 0 var(--signal); }
.site-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-web { min-height: 48px; padding: 0 16px; font-size: 15px; }
.nav-web svg { width: 18px; height: 18px; }

@media (max-width: 959px) {
  .site-header-row { flex-wrap: wrap; column-gap: 10px; row-gap: 0; min-height: 0; padding-block: 12px 0; }
  .site-brand img { height: 36px; }
  .site-actions { margin-left: auto; gap: 8px; }
  .nav-web { padding: 0 12px; font-size: 14px; }
  .site-nav {
    order: 3; flex: 0 0 auto; width: calc(100% + 2 * var(--gutter));
    margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 calc(var(--gutter) - 8px);
    overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0 8px; }
  /* Set by the header script only when the strip is wider than the screen: the fade says it scrolls. */
  .site-nav.is-scrollable { mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .site-nav.is-scrollable.at-end { mask-image: none; -webkit-mask-image: none; }
  .site-header { border-bottom: 0; }
}
@media (max-width: 419px) { .site-nav a { font-size: 14px; padding: 0 7px; } .site-nav { padding: 0 calc(var(--gutter) - 7px); } }
@media (max-width: 359px) { .nav-web svg { display: none; } }

/* Language menu */
.language-menu { position: relative; flex-shrink: 0; }
.language-menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink); border-radius: var(--r-control);
  font: 600 14px/1 var(--font-text); color: var(--ink);
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary { background: var(--ink); color: var(--paper); }
.language-menu .language-options {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 180px; padding: 6px;
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r-control);
}
.language-menu .language-options a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font: 500 15px/1.3 var(--font-text);
  border-left: 3px solid transparent;
}
.language-menu .language-options a:hover { background: var(--paper); }
.language-menu .language-options a[aria-current="page"] { border-left-color: var(--signal); font-weight: 600; }

/* Footer: the drawing stamp */
.site-footer {
  margin-top: auto;
  background: var(--navy-2); color: var(--on-navy);
  border-top: 2px solid var(--signal);
  padding: 64px 0 32px;
  font-family: var(--font-text);
}
.site-footer a { color: var(--on-navy); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.footer-brand { grid-column: 1 / 5; }
.footer-brand p { margin: 0; max-width: 32ch; color: var(--on-navy-muted); font-size: 15px; line-height: 1.6; }
.footer-links { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-heading { margin: 0 0 4px; color: var(--on-navy-muted); font: 600 14px/1.4 var(--font-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a {
  display: inline-flex; align-items: center; min-height: 48px; min-width: 48px;
  font: 500 15px/1.3 var(--font-text); text-decoration: none;
  max-width: 100%; hyphens: auto; overflow-wrap: break-word;
}
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }

.stamp {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 56px 0 0; width: 100%;
  border-top: 1px solid var(--on-navy-line); border-left: 1px solid var(--on-navy-line);
}
.stamp a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.stamp .st-dev a { display: inline-flex; align-items: center; min-height: 48px; margin-block: -12px; }
.stamp > div {
  min-width: 0; min-height: 56px; padding: 10px 12px;
  border-right: 1px solid var(--on-navy-line); border-bottom: 1px solid var(--on-navy-line);
}
.stamp dt { margin: 0 0 2px; color: var(--on-navy-muted); font: 500 13px/1.3 var(--font-text); letter-spacing: .01em; }
.stamp dd { margin: 0; color: var(--on-navy); font: 600 15px/1.35 var(--font-text); overflow-wrap: anywhere; }
.stamp .st-name { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.stamp .st-name dd { line-height: 0; }
.stamp-logo { display: block; width: auto; height: 76px; }
.stamp .st-dev, .stamp .st-sheet, .stamp .st-lang { grid-column: span 2; }
.stamp .st-scale { grid-column: span 2; }
.stamp .st-copy { grid-column: 1 / -1; min-height: 0; }
.stamp .st-copy dd { color: var(--on-navy-muted); font: 500 13px/1.45 var(--font-text); }
.stamp-langs { display: flex; flex-wrap: nowrap; gap: 0; margin: -6px 0 -10px -12px; }
.stamp-langs a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 6px;
  font: 600 14px/1 var(--font-text); text-decoration: none;
}
.stamp-langs a span { padding-block: 3px; }
.stamp-langs a { text-decoration: none; }
.stamp-langs a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.stamp-langs a[aria-current="page"] span { box-shadow: inset 0 -3px 0 var(--signal); }

@media (max-width: 959px) {
  .footer-brand, .footer-links { grid-column: 1 / -1; }
  .stamp { width: 100%; }
}
@media (max-width: 599px) {
  .site-footer { padding: 48px 0 24px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .footer-links .footer-col:first-child { grid-column: 1 / -1; }
  .footer-links .footer-col:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .stamp { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .stamp > div { padding: 8px 10px; }
  .stamp .st-name { grid-column: span 2; grid-row: auto; gap: 10px; }
  .stamp-logo { height: 60px; }
  .stamp .st-dev, .stamp .st-sheet { grid-column: span 1; }
  .stamp .st-lang, .stamp .st-scale { grid-column: span 2; }
  .stamp-langs { flex-wrap: wrap; }
}

/* Inner page head (legal, support) */
.page-main { padding-block: 64px 96px; }
.page-head { margin-bottom: 56px; }
.page-head .lede { max-width: 46ch; }
.page-head .updated { margin: 16px 0 0; color: var(--muted); font: 500 15px/1.45 var(--font-text); }
.page-head .lede { margin: 20px 0 0; }
@media (max-width: 599px) { .page-main { padding-block: 40px 64px; } .page-head { margin-bottom: 40px; } }

/* Legal and support */
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.legal-toc { grid-column: 1 / 4; position: sticky; top: 96px; background: var(--sheet); border: 1.5px solid var(--ink); padding: 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font: 600 16px/1.3 var(--font-text); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.legal-toc li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--ink); text-decoration: none; font: 500 15px/1.35 var(--font-text); border-top: 1px solid var(--line); }
.legal-toc li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-body { grid-column: 4 / 12; max-width: 68ch; }
.legal-body > p:first-child { font-size: 20px; line-height: 1.55; }
.legal-body p { margin: 0 0 20px; text-wrap: pretty; }
.legal-body a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body h2 {
  display: flex; gap: 14px; align-items: baseline;
  margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
  font: 700 24px/1.25 var(--font-text); text-wrap: balance; scroll-margin-top: 96px;
}
.legal-body .clause-no { flex-shrink: 0; min-width: 2.2em; font: 700 24px/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.legal-body ul { list-style: none; margin: 0 0 24px; padding: 0; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--ink); }
.legal-body .important li { font-weight: 500; }
.legal-sign { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--ink); font: 600 18px/1.4 var(--font-text); }
.price-fact { margin: 8px 0 28px; padding: 24px; background: var(--sheet); border: 2px solid var(--ink); }
.price-fact .pf-name { margin: 0; font: 600 18px/1.3 var(--font-text); }
.price-fact .pf-price { margin: 6px 0 4px; font: 700 40px/1.05 var(--font-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.price-fact .pf-note { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 959px) {
  .legal-toc { grid-column: 1 / -1; position: static; max-height: none; margin-bottom: 40px; padding: 4px 16px; }
  .legal-toc summary::after { content: "+"; font: 500 24px/1 var(--font-text); }
  .legal-toc[open] summary::after { content: "\00D7"; }
  .legal-toc ol { margin-bottom: 12px; }
  .legal-body { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .legal-toc summary { pointer-events: none; }
  .legal-toc { padding-bottom: 12px; scrollbar-width: thin; }
  .legal-toc li a { padding: 4px 0; font-size: 14px; }
}
@media (max-width: 599px) {
  .legal-body > p:first-child { font-size: 18px; }
  .legal-body h2, .legal-body .clause-no { font-size: 20px; }
  .price-fact .pf-price { font-size: 32px; }
}

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: start; }
.support-text { grid-column: 1 / 9; }
.support-text p { margin: 0; font-size: 20px; line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.contact-row .contact-note { margin: 0; color: var(--muted); font-size: 16px; }
.contact-email {
  display: inline-flex; align-items: center; min-height: 48px; max-width: 100%;
  color: var(--ink); font: 500 24px/1.25 var(--font-display); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.contact-email:hover { text-decoration-thickness: 3px; }
.faq { margin-top: 72px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0;
  font: 600 18px/1.35 var(--font-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform 150ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 68ch; color: var(--ink); text-wrap: pretty; }
@media (max-width: 959px) {
  .support-text { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .contact-email { font-size: 19px; }
  .faq { margin-top: 56px; }
  .support-text p { font-size: 18px; }
}

/* Hyphenate only long words, so headings break like a typesetter would and short words stay whole. */
.h1-inner, .h2, .blog-main h1, .hero-title, .cta-title, .band-title, .feat-title, .article-card h2, .article-card h3, .article-body h2, .step h3, .mat-name { hyphenate-limit-chars: 12 5 5; }
