/* ClosetPace site styles. One file, no build step. */
:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ede3;
  --surface: #ffffff;
  --text: #1f2a2a;
  --muted: #5a6464;
  --line: #e4dccf;
  --brand: #0f5c4d;
  --brand-ink: #ffffff;
  --brand-soft: #dcefe8;
  --accent: #b5532c;
  --accent-soft: #f8e6dc;
  --ok: #1d7a4f;
  --warn: #9a5b00;
  --focus: #2a6fdb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 42, .06), 0 8px 24px rgba(31, 42, 42, .06);
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --bg-alt: #181e1c;
    --surface: #1c2321;
    --text: #ebe7e0;
    --muted: #a8b0ad;
    --line: #2d3633;
    --brand: #5cc7ad;
    --brand-ink: #0c1f1a;
    --brand-soft: #1d3830;
    --accent: #f0956b;
    --accent-soft: #3a2519;
    --ok: #6fd3a0;
    --warn: #f2b35c;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
code { font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { color: var(--brand-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px; padding: 12px 22px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 12px; }
.soon { font-size: .92rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .6em; width: 6px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Product mock (pure HTML, illustrative) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; max-width: 420px; margin: 0 auto; width: 100%; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 600; }
.mock-head span { display: inline-flex; align-items: center; gap: 8px; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: var(--accent-soft); color: var(--accent); }
.bar { height: 10px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; width: 33%; background: var(--brand); border-radius: 999px; }
.mock small { color: var(--muted); display: block; }
.mock-log { list-style: none; padding: 0; margin: 14px 0 0; font-size: .88rem; border-top: 1px solid var(--line); }
.mock-log li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.mock-log b { font-weight: 600; color: var(--ok); }
.mock-caption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }

/* Safety numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 32px auto 0; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; margin: 12px 0 4px; }
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 6px; height: 10px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .btn { text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.us td { background: var(--brand-soft); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Waitlist */
.waitlist { background: var(--brand); color: var(--brand-ink); border-radius: 22px; padding: 40px 28px; text-align: center; }
.waitlist h2 { color: var(--brand-ink); }
.waitlist p { opacity: .92; }
.waitlist form { display: flex; gap: 10px; max-width: 480px; margin: 20px auto 0; flex-wrap: wrap; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 0; font: inherit; background: #fff; color: #1f2a2a; }
.waitlist .btn { background: var(--brand-ink); color: var(--brand); }
.form-status { min-height: 1.6em; margin-top: 12px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prose (legal, guides) */
.prose { padding: 48px 0 72px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose .meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-box { background: var(--brand-soft); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
.cta-box h3 { margin-top: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.guide-list a { text-decoration: none; color: inherit; display: block; }
.guide-list a:hover h3 { color: var(--brand); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { color: var(--text); font-size: .95rem; margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* When the store listing is live, config.js sets data-live on <html>. */
html[data-live] [data-soon] { display: none; }
html:not([data-live]) [data-live-only] { display: none; }
.waitlist a { color: var(--brand-ink); }
.waitlist .fine { font-size: .85rem; opacity: .85; margin: 14px 0 0; }
.table-wide table { min-width: 880px; }
.table-hint { display: none; font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .table-hint { display: block; } }
