/* Major Daft Apps — site styles.
   Fonts are served from this site (SIL Open Font License 1.1); nothing loads from third parties. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-normal.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: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-italic.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: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-normal.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;
}

/* Tokens. Dark is the house style; light ("paper") follows the visitor's system setting. */
:root {
  --bg: #0e0c0a;
  --bg-raised: #16130f;
  --ink: #f4ede3;
  --ink-soft: #b9ab9b;
  --line: #3b3229;
  --line-strong: #f4ede3;
  --accent: #fa992a;
  --accent-ink: #1a0d00;
  --accent-text: #ffad4d;
  --code-bg: #1f1a15;
  --grid: rgba(244, 237, 227, .045);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 6px 6px 0 var(--accent);
  --focus: #fa992a;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2ece2;
    --bg-raised: #fbf7f0;
    --ink: #15110d;
    --ink-soft: #574b3f;
    --line: #15110d;
    --line-strong: #15110d;
    --accent: #fa992a;
    --accent-ink: #1a0d00;
    --accent-text: #9a4a00;
    --code-bg: #e7ded1;
    --grid: rgba(21, 17, 13, .06);
    --focus: #15110d;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code, kbd {
  font-family: var(--mono); font-size: .86em;
  background: var(--code-bg); padding: .12em .4em; border: 1px solid var(--line);
}
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.label {
  font: 500 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-family: var(--mono); }
.skip:focus { left: 8px; }

/* Header: a ruled bar, wordmark left, numbered nav right. */
.site-header { border-bottom: 2px solid var(--line-strong); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: stretch; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 12px; padding-right: 20px; margin-right: auto;
  color: var(--ink); text-decoration: none; font: 700 .95rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand .logo-dark { display: block; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: light) {
  .brand .logo-dark { display: none; }
  .brand .logo-light { display: block; }
}
.nav { display: flex; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 44px;
  border-left: 2px solid var(--line-strong); color: var(--ink); text-decoration: none;
  font: 500 .85rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
  transition: background-color .15s ease, color .15s ease;
}
.nav a span { color: var(--ink-soft); }
.nav a:hover { background: var(--ink); color: var(--bg); }
.nav a:hover span { color: inherit; }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav a[aria-current="page"] span { color: inherit; }
@media (max-width: 760px) {
  .brand span { display: none; }
  .nav a { padding: 0 12px; font-size: .78rem; }
  .nav a span { display: none; }
  .nav a[href="/"] { display: none; }
}

/* Buttons: hard edges and an offset block that moves on press. */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font: 600 .92rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--line-strong); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn[aria-disabled="true"] { cursor: default; background: transparent; color: var(--ink-soft); border-style: dashed; border-color: var(--ink-soft); }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* Hero */
.hero {
  position: relative; border-bottom: 2px solid var(--line-strong);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: end; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero .kicker { margin-bottom: 28px; }
.display { font-size: clamp(2.9rem, 8.2vw, 6.6rem); font-weight: 900; letter-spacing: -.045em; line-height: .93; margin-bottom: 30px; }
/* Emphasis as a solid marker block: readable in both modes (orange text on paper is too faint). */
.display em { font-style: italic; font-weight: 800; background: var(--accent); color: var(--accent-ink); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 34px; }
.cursor { display: inline-block; width: .5em; height: .85em; background: var(--accent); vertical-align: -.06em; margin-left: .08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.figure { margin: 0; }
.figure .frame { border: 2px solid var(--line-strong); background: var(--bg-raised); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 18px; }
.hero .figure { max-width: 340px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero .figure { justify-self: start; max-width: 300px; }
}

/* Numbered sections with a rule and a mono heading strip. */
.section { border-bottom: 2px solid var(--line-strong); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.section-head h2 { font: 600 .85rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 span { color: var(--accent-text); margin-right: 10px; }
.section-body { padding: clamp(40px, 6vw, 72px) 0; }
.big { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 850; letter-spacing: -.035em; line-height: 1; }

/* Feature app on the home page */
.app-feature { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.app-feature img { width: 120px; height: 120px; }
.app-feature p { color: var(--ink-soft); max-width: 40rem; margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 760px) { .app-feature { grid-template-columns: 1fr; } .app-feature img { width: 88px; height: 88px; } }

/* Ruled list: numbered rows instead of icon cards. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows .n { font: 500 .9rem/1.6 var(--mono); color: var(--accent-text); }
.rows h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; }
.rows p, .rows ul { color: var(--ink-soft); margin: 0; }
.rows ul { padding-left: 1.1em; }
.rows ul li { margin: 0 0 .45em; }
.rows ul li::marker { content: "→  "; color: var(--accent-text); font-family: var(--mono); }
@media (max-width: 760px) {
  .rows > li { grid-template-columns: 1fr; gap: 8px; }
}

/* Spec sheet */
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; padding-right: 24px; font: 500 .8rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
/* The section heading strip already draws the top rule. */
.section-body:has(> .rows, > .spec) { padding-top: 0; }

/* Screenshot strip */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 28px; overflow-x: auto; padding: 4px 10px 26px 0; scroll-snap-type: x mandatory; }
.shots .figure { scroll-snap-align: start; }
.shots .frame { box-shadow: 5px 5px 0 var(--line); }
.shots .figure:hover .frame { box-shadow: 5px 5px 0 var(--accent); }

/* Contact block */
.contact-line { font-size: clamp(1.5rem, 4.4vw, 3.4rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; }
.contact-line a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 10px; }
.contact-line a:hover { color: var(--accent-text); }

/* Long-form pages (privacy, support) */
.page-head { border-bottom: 2px solid var(--line-strong); }
.page-head .wrap { padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900; letter-spacing: -.045em; line-height: .95; margin: 22px 0 22px; }
.page-head .lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 42rem; margin: 0; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font: 500 .82rem/1.35 var(--mono); }
.toc a:hover { color: var(--ink); }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding-top: 36px; } .toc { display: none; } }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 2.6em 0 .7em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { font-weight: 700; }
.summary { border: 2px solid var(--line-strong); box-shadow: var(--shadow); background: var(--bg-raised); padding: 26px 28px; margin: 0 0 48px; }
.summary .label { margin-bottom: 12px; display: block; }
.summary ul { margin: 0; padding-left: 1.1em; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose th { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--bg-raised); }
.prose td:nth-child(2) { font-family: var(--mono); font-size: .85rem; white-space: nowrap; }

/* Support: search + accordion */
.search { position: relative; margin-top: 34px; max-width: 42rem; }
.search input {
  width: 100%; min-height: 60px; padding: 0 18px 0 54px; border: 2px solid var(--line-strong); border-radius: 0;
  background: var(--bg-raised); color: var(--ink); font: 500 1rem/1 var(--mono); box-shadow: var(--shadow);
}
.search input::placeholder { color: var(--ink-soft); }
.search input:focus { outline: none; box-shadow: 6px 6px 0 var(--ink); }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.no-results { display: none; margin-top: 24px; color: var(--ink-soft); font-family: var(--mono); }
.faq-group h2 { font: 600 .85rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; scroll-margin-top: 90px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 span { color: var(--accent-text); margin-right: 10px; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--line-strong);
  font: 600 1.1rem/1 var(--mono); transition: background-color .15s ease, color .15s ease;
}
details.faq summary:hover::after { background: var(--ink); color: var(--bg); }
details.faq[open] summary::after { content: "−"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
details.faq > div { padding: 0 52px 22px 0; color: var(--ink-soft); }
details.faq ol, details.faq ul { margin: 0; padding-left: 1.2em; }
details.faq li { margin: .3em 0; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 2px solid var(--line-strong); margin-top: 18px; }
.help-cards > div { padding: 24px; border-right: 1px solid var(--line); }
.help-cards > div:last-child { border-right: 0; }
.help-cards h3 { font-size: 1.2rem; margin-bottom: 10px; }
.help-cards p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .help-cards > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* 404 */
.notfound { font: 700 clamp(6rem, 24vw, 16rem)/.85 var(--mono); letter-spacing: -.06em; color: var(--accent); }

/* Footer: oversized wordmark and a link grid. */
.site-footer { padding: 56px 0 40px; }
.footer-mark { font-size: clamp(2.6rem, 10vw, 8rem); font-weight: 900; letter-spacing: -.05em; line-height: .85; margin-bottom: 44px; }
.footer-mark span { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 10px 0 0; }
.footer-grid li { margin: 4px 0; }
.footer-grid a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-grid a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-grid p { color: var(--ink-soft); margin: 10px 0 0; font-size: .95rem; }
.footer-social { display: flex; gap: 8px; margin: 6px 0 0 -12px !important; }
.footer-social li { margin: 0; }
.footer-grid .footer-social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-grid .footer-social a:hover { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
