/* Bark.AI tokens, mirrored from the product (Bark.AI public/app.css). Light first, dark second. */
:root {
  --paper: #f3f5f9; --card: #ffffff; --sunk: #e8ecf3;
  --ink: #0f1a2e; --ink-soft: #4d5a72; --rule: #d6dce8;
  --brand: #023272; --on-brand: #ffffff; --ball: #f5c542; --on-ball: #0f1a2e;
  --navy: #023272; --on-navy: #ffffff;
  --ok: #5e8c62; --watch: #c98a20; --urgent: #d4573e;
  --bubble-dog: #e6ebf3; --bubble-you: #023272; --bubble-you-ink: #ffffff;
  --focus: #023272;
  --display: "Bricolage Grotesque", Verdana, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1020; --card: #121b30; --sunk: #0e1628;
    --ink: #e6ebf5; --ink-soft: #98a3ba; --rule: #26314a;
    --brand: #b8c8f2; --on-brand: #0a1020; --ball: #f5c542; --on-ball: #0f1a2e;
    --ok: #7fb184; --watch: #e0a849; --urgent: #f0765c;
    --bubble-dog: #1b2640; --bubble-you: #f5c542; --bubble-you-ink: #0f1a2e;
    --focus: #f5c542;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
/* A little paper grain, so the page does not read as a flat screen colour. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::before { opacity: .05; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--card); padding: var(--space-2) var(--space-4); border-radius: 999px; z-index: 10; }
.skip:focus { left: var(--space-4); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

h1, h2 { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 50; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7.2vw, 5.75rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; }
h3 { font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 24, "SOFT" 30; font-size: 1.25rem; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.005em; }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-soft); max-width: 33em; margin-top: 22px; }
.muted { color: var(--ink-soft); }
.fine { margin: 14px 0 0; font-size: .875rem; color: var(--ink-soft); }
.note { font-family: var(--hand); font-weight: 600; color: var(--ink-soft); line-height: 1.05; margin: 0; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.wordmark { font: 800 1.5rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; }
.logo-mark { width: 50px; height: 31px; flex: none; color: var(--brand); }
.logo--sm .logo-mark { width: 36px; height: 23px; }
.logo--sm .wordmark { font-size: 1.125rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) { .nav { display: none; } .header-actions { margin-left: auto; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 0; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ball); color: var(--on-ball); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.link-quiet { color: var(--ink); font-weight: 500; font-size: .9375rem; }
.link-arrow { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }

/* Hero */
.hero { padding: 56px 0 96px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 120px; } .hero__grid { grid-template-columns: 1.3fr .7fr; gap: 40px; } }
.mark { position: relative; white-space: nowrap; }
.scribble { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; }
.scribble path { fill: none; stroke: var(--ball); stroke-width: 7px; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .scribble path { stroke-dashoffset: 0; } }
.hero__phone { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 330px; }
.hero__phone .device { transform: rotate(2.5deg); }
.note--hero { font-size: 1.55rem; margin-bottom: 10px; transform: rotate(-3deg); }
.arrow { display: none; }
@media (min-width: 1100px) {
  .note--hero { position: absolute; left: -190px; top: 70px; width: 170px; margin: 0; }
  .arrow { display: block; position: absolute; left: -96px; top: 150px; width: 92px; height: 70px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

/* Phone bezel, dark in both themes like the hardware */
.device { margin: 0; background: #0f1a2e; border-radius: 42px; padding: 9px; box-shadow: 0 30px 60px -38px rgba(15, 26, 46, .55); }
.device img { width: 100%; height: auto; border-radius: 34px; }

/* The three questions */
.questions { padding: 96px 0; border-top: 1px solid var(--rule); }
.questions__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .questions__grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }
.qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--rule); }
.qlist li:last-child { border-bottom: 1px solid var(--rule); }
.qlist li::before { content: counter(q); grid-row: span 2; font: italic 400 2.6rem/1 var(--serif); color: var(--brand); }
.qlist h3 { font-size: 1.45rem; }
.qlist p { color: var(--ink-soft); margin: 0; }

/* How it works */
.how { padding: 104px 0 96px; background: var(--sunk); }
.how__title { max-width: 18em; font-size: clamp(2.1rem, 5vw, 4rem); }
.how__title span { font-style: italic; color: var(--brand); }
.columns { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 760px) { .columns { grid-template-columns: repeat(3, 1fr); gap: 0; } .columns > div { padding: 0 28px; border-left: 1px solid var(--rule); } .columns > div:first-child { padding-left: 0; border-left: 0; } }
.columns h3 { font-style: italic; font-weight: 500; font-size: 1.35rem; }
.columns p { color: var(--ink-soft); margin: 0; }
.aside { font: 600 1.7rem/1.1 var(--hand); color: var(--brand); transform: rotate(-2deg); margin: 44px 0 0; text-align: right; }

/* The app */
.app { padding: 112px 0 120px; }
.app__intro { display: grid; gap: 12px; margin-bottom: 64px; }
@media (min-width: 900px) { .app__intro { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; } .app__intro .lead { margin: 0 0 6px; } }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 12px; scroll-padding: 0 20px; }
.shots .shot { scroll-snap-align: start; }
@media (min-width: 600px) { .shots { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; align-items: start; justify-items: center; overflow: visible; margin: 0; padding: 0; } .shot:nth-child(even) { margin-top: 64px; } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.shot { margin: 0; width: 100%; max-width: 290px; }
.shot figcaption { margin-top: 22px; }
.shot figcaption p { margin: 0; color: var(--ink-soft); font-size: .9688rem; }

/* The small things */
.small { padding: 104px 0; border-top: 1px solid var(--rule); }
.small__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .small__grid { grid-template-columns: .85fr 1.4fr; gap: 80px; align-items: start; } .small h2 { position: sticky; top: 32px; } }
.runins { margin: 0; }
.runins > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.runins > div:last-child { border-bottom: 1px solid var(--rule); }
.runins dt { display: inline; font-weight: 600; }
.runins dd { display: inline; margin: 0 0 0 4px; color: var(--ink-soft); }

/* Hardware: deep navy in both themes, like a product shot */
.hardware { padding: 112px 0 104px; background: #0b1631; color: #e6ebf5; }
.hardware .lead, .hardware p { color: #aab6cf; }
.hardware h2, .hardware h3 { color: #ffffff; }
.hardware a { color: var(--ball); }
.hardware__head { max-width: 760px; }
.stamp { display: inline-block; margin: 0 0 24px; padding: 6px 12px 5px; border: 2px solid var(--ball); border-radius: 6px; color: var(--ball) !important; font: 700 .8125rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-4deg); }
.hardware__shot { margin: 56px 0 0; }
.hardware__shot img { width: 100%; height: auto; border-radius: 12px; }
.pieces { margin-top: 24px; }
.piece { margin: 0; display: grid; gap: 22px; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.piece img { width: 100%; height: auto; border-radius: 10px; }
.piece h3 { font-size: 1.9rem; font-weight: 500; font-variation-settings: "opsz" 72, "SOFT" 50; }
.piece p { margin: 0; max-width: 34em; }
@media (min-width: 860px) {
  .piece { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .piece:nth-child(even) img { order: 2; }
}
.finishes { margin: 56px 0 0; }
.finishes__imgs { display: grid; gap: 14px; }
@media (min-width: 760px) { .finishes__imgs { grid-template-columns: 1fr 1fr; } }
.finishes img { width: 100%; height: auto; border-radius: 10px; }
.finishes figcaption { margin-top: 20px; max-width: 40em; }
.finishes figcaption p { margin: 0; }
.closeups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; }
@media (min-width: 900px) { .closeups { grid-template-columns: repeat(3, 1fr); } }
.closeups figure { margin: 0; }
.closeups img { width: 100%; height: auto; border-radius: 8px; }
.closeups figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.45; color: #aab6cf; }
.hardware__note { margin: 48px 0 0; font-size: .9375rem; max-width: 46em; }

/* Alerts */
.alerts { padding: 112px 0; }
.alerts__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .alerts__grid { grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; } }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; font: 600 .875rem/1 var(--body); color: var(--ink); }
.tag svg { width: 15px; height: 15px; flex: none; }
.tag--normal svg { color: var(--ok); }
.tag--watch svg { color: var(--watch); }
.tag--urgent svg { color: var(--urgent); }
.bubble { max-width: 30em; padding: 11px 16px; border-radius: 20px; border-bottom-left-radius: 6px; font: 400 1rem/1.45 var(--body); margin: 0; }
.bubble--in { background: var(--bubble-dog); color: var(--ink); }
.ledger .bubble { justify-self: start; }
.tag--urgent + div .bubble { box-shadow: inset 0 0 0 1.5px var(--urgent); }
.alert-copy { font: 600 1rem/1.45 var(--body); color: var(--ink); margin: 12px 0 0; }

/* Promises, set like a letter */
.promises { padding: 40px 0 112px; }
.letter { max-width: 700px; margin: 0 auto; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 44px 26px; box-shadow: 6px 8px 0 var(--sunk); }
@media (min-width: 720px) { .letter { padding: 60px 68px; box-shadow: 8px 10px 0 var(--sunk); transform: rotate(-.5deg); } }
.letter h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.letter__intro { color: var(--ink-soft); margin: 14px 0 28px; }
.letter ol { margin: 0; padding-left: 1.3em; }
.letter li { margin-bottom: 14px; color: var(--ink-soft); }
.letter li::marker { font-family: var(--serif); color: var(--brand); }
.letter strong { color: var(--ink); font-weight: 600; }
.letter__sign { font: 600 2rem/1 var(--hand); color: var(--brand); margin: 30px 0 0; }

/* FAQ */
.faq-section { padding: 104px 0; border-top: 1px solid var(--rule); }
.faq__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: .8fr 1.4fr; gap: 80px; align-items: start; } .faq__head { position: sticky; top: 32px; } }
.faq-more { color: var(--ink-soft); margin-top: 18px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 500 1.3rem/1.3 var(--serif); font-variation-settings: "opsz" 36; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.75rem/1 var(--body); color: var(--brand); flex: none; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 22px; max-width: 38em; }

/* Closing */
.closing { padding: 112px 0 64px; background: var(--sunk); }
.closing__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .closing__grid { grid-template-columns: 1.3fr .7fr; gap: 64px; } }
.closing h2 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
.first-text { justify-self: start; transform: rotate(2deg); }
.first-text .bubble { box-shadow: 0 18px 40px -26px rgba(15, 26, 46, .5); }
.note--first { font-size: 1.45rem; margin: 12px 0 0 14px; transform: rotate(-3deg); }
.disclaimer { margin: 80px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--ink-soft); max-width: 62em; }

.site-footer { padding: 32px 0 48px; color: var(--ink-soft); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Used by the 404 page */
.section { padding: 64px 0; }
.thread { display: flex; flex-direction: column; gap: 10px; }
