/* OwedJar site: the page's own stylesheet on top of the web-taste kit (system.css and friends).
   Holds the brand tokens (assets/brand/tokens.json, approved 2026-11-21), the self-hosted brand fonts
   (Space Grotesk for headings, Inter for text; no request to Google before consent), and only what the
   kit leaves to page CSS: the phone screens, the store badges, the consent bar and the article pages. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2"); }

/* brand tokens (tokens.json, light): paper ground, warm ink, accentStrong for every filled control so its
   label passes 4.5:1; the dark band uses the brand's dark ground */
:root {
  --p-bg: #faf5ec; --p-surface: #f2e9da; --p-ink: #2b2420; --p-muted: #574b3f;
  --p-accent: #9c5f15; --p-accent-ink: #ffffff; --p-action: #9c5f15; --p-action-ink: #ffffff;
  --p-inv-bg: #211a14; --p-inv-surface: #2b2219; --p-inv-ink: #f4ecde; --p-inv-muted: #c0b19c;
  --p-inv-accent: #f0b560; --p-inv-accent-ink: #201508; --p-inv-action: #f0b560; --p-inv-action-ink: #201508;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ground-bg: #efe4d1;
  --paid: #4c6b57;
}

/* the logo: the brand's jar icon beside the name */
.nav__logo img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.support-page .nav__actions { margin-left: auto; }

/* ------------------------------------------------------------ the app's real screens */
/* a phone: the real screen image in a thin rounded frame; no caption (house rule 1) */
.phone { display: block; width: 100%; max-width: 300px; aspect-ratio: 600 / 1300; border-radius: 32px; overflow: hidden;
  background: var(--p-bg); box-shadow: 0 0 0 1px rgb(43 36 32 / .14), 0 30px 60px -30px rgb(43 36 32 / .4); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* the hero window: one picture of three real screens side by side (the home screen alone on a phone) */
.hero--centred .hero__window > .ly-piece.phones { display: block; width: min(828px, calc(100% - 2 * var(--s-6))); }
.ly-piece.phones img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgb(43 36 32 / .18)); }
@media (max-width: 639px) { .hero--centred .hero__window > .ly-piece.phones { width: min(262px, calc(100% - 2 * var(--s-4))); left: 50%; transform: translateX(-50%); } }

/* a card's panel holding a cropped part of a screen, on the lit ground */
#how .panel { --p-h: 360px; background: var(--ground-bg); display: grid; place-items: start center; padding: var(--s-6) var(--s-6) 0; overflow: hidden; }
#how .panel img { width: 100%; max-width: 360px; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px rgb(43 36 32 / .1); }
@media (max-width: 639px) { #how .panel { --p-h: 200px; padding: var(--s-4) var(--s-4) 0; } }

/* a split's picture: one phone standing on the lit ground, cut by the frame's foot */
.shot { position: relative; background: var(--ground-bg); border-radius: var(--r-lg); overflow: hidden; display: grid; justify-items: center; padding-top: var(--s-7); }
.shot .phone { max-width: 320px; border-radius: 32px 32px 0 0; }
.ground-inverse .shot { background: var(--p-inv-surface); }
#jar .shot, #privacy .shot { height: 560px; }
#early .shot { height: 520px; }
#dates .shot { height: 400px; }
@media (max-width: 1023px) { #jar .shot, #privacy .shot, #early .shot { height: 440px; } #dates .shot { height: 440px; } }
@media (max-width: 639px) { #jar .shot, #privacy .shot, #early .shot { height: 520px; padding-top: var(--s-5); } #dates .shot { height: 360px; padding-top: var(--s-5); } .shot .phone { max-width: 260px; } }

/* plain lists in the splits, each row closed by a rule */
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); line-height: 1.5; }

/* the due dates: two years of rows on the dark band */
.dates { margin: 0; padding: 0; list-style: none; }
.dates li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.dates b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dates span { color: var(--muted); text-align: right; }
.dates-year { margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-text); }
.dates-note { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--t-small); }

/* pricing: the three figures (counter-rolls), then what is free and what Pro adds */
#pricing .stats { margin-top: var(--s-7); }
.plans { margin-top: var(--s-7); row-gap: var(--s-6); }
.plans h3 { margin: 0 0 var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); }
.plans .checks li::before { background-color: var(--paid); }
.fine { margin: var(--s-6) 0 0; color: var(--muted); font-size: var(--t-small); max-width: 72ch; }

/* store badges: official artwork, untouched, same visible height; neither store is live yet, so both are
   unlinked "Coming soon" badges (Store-Badges runbook section 2-3) */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); align-items: flex-start; margin-top: var(--s-6); }
.store-badge { display: inline-block; line-height: 0; position: relative; }
a.store-badge { transition: transform .15s ease; }
a.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; height: 52px; width: auto; }
.store-badge--play img { height: 77px; margin: -13px; }
.store-badge--soon { margin-bottom: 22px; cursor: default; }
.store-badge--soon .soon-label { position: absolute; left: 0; right: 0; top: calc(100% + 6px); text-align: left; font: 500 13px/1.2 var(--font-text); color: var(--muted); line-height: 1.2; }

/* the early-access form */
.form select { width: 100%; height: 48px; padding: 0 14px; font: 400 16px/1 var(--font-text); color: var(--ink); background: var(--p-bg); border: 1px solid var(--line-strong, rgb(43 36 32 / .3)); border-radius: var(--r-sm); }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the sources list under the FAQ */
.sources-h { margin-top: var(--s-7); }
.sources { margin: 0; padding: 0; list-style: none; font-size: var(--t-small); }
.sources li { break-inside: avoid; padding: 0 0 var(--s-2); line-height: 1.5; }
@media (max-width: 639px) { #faq .sources { grid-column: auto / span 6; } }
.sources a { overflow-wrap: anywhere; }

/* footer extras */
.footer__tm { margin: var(--s-3) 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 110ch; }
.consent-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.consent-open[hidden] { display: none; }

/* the analytics choice: Decline and Accept share one style and one size (equal weight) */
.consent { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 600px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; background: var(--p-bg); color: var(--p-ink); border-radius: 16px; box-shadow: 0 0 0 1px rgb(43 36 32 / .14), 0 20px 40px -20px rgb(0 0 0 / .45); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.45; }
.consent__btns { display: flex; gap: 8px; }
.consent .btn--secondary { min-width: 104px; justify-content: center; }

/* article pages (guides, privacy, terms): one readable column under the fixed header */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc article { max-width: 72ch; }
.doc h1 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); }
.doc h2 { font: 500 var(--t-lead)/1.3 var(--font-text); margin: var(--s-8) 0 var(--s-3); }
.doc h3 { font: 500 17px/1.35 var(--font-text); margin: var(--s-6) 0 var(--s-2); }
.doc p, .doc li { line-height: 1.65; }
.doc li + li { margin-top: var(--s-2); }
.doc .meta { color: var(--muted); font-size: var(--t-small); }
.doc .note { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--p-surface); }
.doc .note p { margin: 0; }
.doc a { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s-4) 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.doc th { font-weight: 500; color: var(--muted); font-size: 13px; }
.doc td b { font-weight: 500; }
.doc .fn { font-size: 12px; line-height: 0; }
.doc .fn a { text-decoration: none; }
.doc figure { margin: var(--s-6) 0; }
@media (max-width: 639px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
}
.doc-footer { padding: var(--s-8) 0 var(--s-7); }
.doc-footer .footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.doc-footer a { color: inherit; }

/* the close: the brand face's tall capitals need a little more line than the kit's .86 */
.close__word { line-height: 1.04; }
@media (max-width: 359px) { .nav__actions .btn { padding-inline: 12px; font-size: 15px; } .nav__logo img { width: 24px; height: 24px; } }
/* the close never shrinks under its own words, and on a desktop too the footer grows past one screen (as the kit
   already does from 640 to 1279), so the name never covers the links */
footer.closing > .wrap { grid-template-rows: minmax(min-content, 1fr) auto; }
@media (min-width: 1280px) {
  footer.closing { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  footer.closing > .wrap { flex: 1 0 auto; height: auto; }
}
