/* Know What I Own — shared stylesheet.
   Palette and motifs follow the app (and teamdrybox.com): paper + deep green ink + copper, folder-tab cards,
   dotted leader lines, a double rule under a total.
   Fonts are subsetted (Latin) OFL fonts self-hosted in ./fonts — no external requests. */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/zilla-slab-600.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/zilla-slab-700.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/public-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  /* Light (default) — contrast ratios checked against WCAG AA */
  --page: #F4F5EE;
  --card: #FFFFFF;
  --ink: #172C27;          /* 13.4:1 on page */
  --soft: #53675F;         /* 5.5:1 on page, 6.0:1 on card */
  --line: #D1D5CE;
  --dots: #AEB8B1;         /* decorative only */
  --tab: #E7EEE5;
  --tab-ink: #3F554D;      /* on tab */
  --brass: #B95F35;        /* decorative: rules, borders (never small text) */
  --brass-text: #AA5730;   /* 4.65:1 on page, 5.1:1 on card — small text and links */
  --btn-bg: #AA5730;
  --btn-bg-hover: #944C2A;
  --btn-tx: #FFFFFF;       /* 5.1:1 on btn-bg */
  --frame: #172C27;
  --shadow: 0 1px 0 rgba(23, 44, 39, .04), 0 14px 32px -16px rgba(23, 44, 39, .28);
  --focus: #AA5730;

  --serif: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 20px;
  --maxw: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0F1A17;
    --card: #17241F;
    --ink: #EEF1E8;        /* 15.6:1 on page */
    --soft: #A3B2A9;       /* 8.0:1 on page, 7.3:1 on card */
    --line: #2C3B35;
    --dots: #45574F;
    --tab: #1F332C;
    --tab-ink: #BFD8CF;
    --brass: #D9794B;
    --brass-text: #D9794B; /* 5.75:1 on page, 5.2:1 on card */
    --btn-bg: #D9794B;
    --btn-bg-hover: #F0A05F;
    --btn-tx: #0F1A17;     /* 5.75:1 on btn-bg */
    --frame: #060D0B;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 32px -16px rgba(0, 0, 0, .7);
    --focus: #D9794B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 clamp(16px, 0.4vw + 15px, 18px)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brass-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 7vw + 1rem, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--card); color: var(--ink);
  border: 2px solid var(--brass-text); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--page); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink);
  font: 700 1.2rem/1 var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav { display: flex; flex-wrap: wrap; list-style: none; gap: 0 2px; margin-left: -10px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none;
  font-size: .95rem; border-radius: 6px; }
.nav a:hover { color: var(--brass-text); text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { color: var(--brass-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Small mono label */
.eyebrow, .tab, .mono { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { font-size: .78rem; color: var(--brass-text); margin: 0 0 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--btn-bg); color: var(--btn-tx); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.app-status { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--brass); border-radius: 12px; background: var(--card); color: var(--ink); }
.app-status .dot { width: 9px; height: 9px; margin-top: .45em; border-radius: 50%; background: var(--brass); flex: none; }
.app-status strong, .app-status small { display: block; }
.app-status strong { font: 600 1rem/1.25 var(--sans); }
.app-status small { margin-top: 2px; color: var(--soft); font-size: .78rem; line-height: 1.3; }
.btn-ghost { color: var(--brass-text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--soft); font-size: 1.08rem; margin: 14px 0 0; }
.alt { background: var(--card); background: color-mix(in srgb, var(--card) 55%, var(--page)); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 80px) clamp(48px, 8vw, 88px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1vw + 1rem, 1.35rem); color: var(--soft); max-width: 34rem; margin-bottom: 28px; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: .9rem; color: var(--soft); margin: 18px 0 0; max-width: 34rem; }
.hero-art { display: flex; justify-content: center; }

.phone { margin: 0; width: min(100%, 290px); border: 8px solid var(--frame); border-radius: 40px; background: var(--frame);
  box-shadow: var(--shadow); overflow: hidden; }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.phone.small { width: min(100%, 260px); }

/* Folder-tab cards (echo of the app's room cards) */
.folder { position: relative; margin-top: 30px; background: var(--card); border: 1px solid var(--line);
  border-radius: 0 12px 12px 12px; padding: 24px 22px 22px; box-shadow: var(--shadow); }
.folder > .tab { position: absolute; left: -1px; top: -28px; height: 28px; display: inline-flex; align-items: center; padding: 0 14px;
  background: var(--tab); color: var(--tab-ink); font-size: .7rem; border-radius: 9px 12px 0 0; }
.folder h3 { margin-bottom: 8px; }
.folder p:last-child { margin-bottom: 0; }
.folder p { color: var(--soft); font-size: .98rem; }
.cards { display: grid; gap: 8px 24px; grid-template-columns: 1fr; list-style: none; }
.cards > li { display: block; }

/* Leader lines and double rule */
.ledger { list-style: none; margin: 4px 0 0; }
.leader { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.leader .dots { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--dots); transform: translateY(-4px); }
.leader .val { font-family: var(--mono); font-weight: 500; font-size: .9em; color: var(--brass-text); white-space: nowrap; }
.leader .name { font-weight: 600; color: var(--ink); }
.leader .sub { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; color: var(--soft); text-transform: uppercase; white-space: nowrap; }
.total { margin-top: 8px; padding: 10px 0 8px; border-bottom: 5px double var(--brass); }
.total .name { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.total .val { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.sample { font-size: .8rem; color: var(--soft); margin: 14px 0 0 !important; }

/* Steps */
.steps { display: grid; gap: 28px; list-style: none; }
.steps li { position: relative; padding-top: 52px; }
.step-number { position: absolute; top: 0; left: 0; height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center; background: var(--tab); color: var(--tab-ink); border-radius: 9px 12px 0 0;
  font: 500 .8rem/1 var(--mono); letter-spacing: .08em; }
.steps li::after { content: ""; position: absolute; top: 35px; left: 0; right: 0; border-top: 2px solid var(--brass); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--soft); margin: 0; }

/* Two-column feature split */
.split { display: grid; gap: 40px; align-items: center; }
.split .art { display: flex; justify-content: center; }
.checklist { list-style: none; margin: 18px 0 0; }
.checklist li { position: relative; padding: 5px 0 5px 28px; }
.checklist li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 10px; height: 6px; border-left: 3px solid var(--brass);
  border-bottom: 3px solid var(--brass); transform: rotate(-45deg); }

/* Privacy trio */
.trio { display: grid; gap: 8px 24px; list-style: none; }
.split .trio { grid-template-columns: 1fr; }

/* Compare table-ish */
.plans { display: grid; gap: 8px 24px; margin-top: 8px; }
.plans h3 { font-size: 1.15rem; }
.plans ul { list-style: none; margin: 12px 0 0; }
.plans li { padding: 7px 0 7px 26px; position: relative; border-top: 1px dotted var(--dots); }
.plans li:first-child { border-top: 0; }
.plans li::before { content: ""; position: absolute; left: 3px; top: 1em; width: 9px; height: 5px; border-left: 3px solid var(--brass);
  border-bottom: 3px solid var(--brass); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { 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 4px; font: 600 1.08rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  font: 500 1.3rem/1 var(--mono); color: var(--brass-text); border: 1px solid var(--line); border-radius: 50%; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brass-text); }
.faq .answer { padding: 0 4px 20px; color: var(--soft); max-width: 40rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; list-style: none; gap: 0 4px; margin-left: -10px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.site-footer p { color: var(--soft); margin: 0 0 .5em; font-size: .9rem; max-width: 40rem; }

/* Prose pages (support, privacy, 404) */
.page-head { padding-block: clamp(36px, 6vw, 64px) 8px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); }
.page-head .sub { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--brass-text); margin: 0 0 10px; }
.prose { max-width: 44rem; padding-block: 24px clamp(48px, 8vw, 88px); }
.prose h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem); margin: 2.2em 0 .5em; padding-bottom: .3em; border-bottom: 2px solid var(--brass); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .4em; }
.prose p { color: var(--ink); }
.prose .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 0 0 1.5em; box-shadow: var(--shadow); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .contact { margin-top: 2.5em; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: 0 10px 10px 0; }
.prose .contact h2 { border: 0; margin: 0 0 .4em; padding: 0; }
.prose .contact p:last-child { margin-bottom: 0; }
.prose .updated { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--soft); font-size: .9rem; }
.qa { padding: 20px 0; border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa h3 { margin: 0 0 .4em; }
.qa p:last-child { margin-bottom: 0; }

/* < 700px: the landing page was ~12 screens tall on a phone. Card lists become a swipe row
   (next card peeks in to show there is more), secondary phone mockups are dropped, and the
   remaining mockup and cards are tightened. Tablet and desktop layouts are unchanged. */
@media (max-width: 699.98px) {
  .cards, .split .trio {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 22px;
    scrollbar-width: thin; align-items: flex-start;
  }
  .cards > li, .split .trio > li { flex: 0 0 min(82%, 20rem); scroll-snap-align: start; }
  .cards .folder, .trio .folder { margin-top: 30px; padding: 18px 16px 16px; }
  .cards .folder p, .trio .folder p { font-size: .93rem; line-height: 1.55; }
  .cards .folder h3, .trio .folder h3 { font-size: 1.2rem; }
  .split { grid-template-columns: minmax(0, 1fr); }  /* let the swipe row scroll instead of widening the page */
  .split > * { min-width: 0; }
  .split .art { display: none; }
  .hero-grid { gap: 28px; }
  .phone { width: min(100%, 230px); border-width: 6px; border-radius: 34px; }
  .phone img { border-radius: 28px; }
  .section-head { margin-bottom: 20px; }
  .steps { gap: 20px; }
  .steps li { padding-top: 46px; }
}

/* >= 700px */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
/* >= 960px */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-art { justify-content: flex-end; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip .art { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .app-status, .folder, .plan, .qa, .faq details { border: 1px solid CanvasText; }
  .btn-primary { background: ButtonFace; color: ButtonText; }
  .btn-ghost, .app-status { color: ButtonText; }
  .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid Highlight; }
}
@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
