/* WithyWork. Tokens are normative and live in Docs/Brand_System.md.
   A raw hex in a rule is a bug. */

:root {
  /* Surfaces & ink.  Ported from thatsoundshot-site, unchanged */
  --bg:          #FAF6EE;
  --surface:     #FFFFFF;
  --surface-2:   #F1ECE0;
  --ink:         #2A2D34;
  --ink-muted:   #5C6570;   /* darkened from #6B7280 for AA on cream */
  --border:      #E5DFD0;

  /* Accents, WithyWork.  Willow, bark, straw, slate, clay */
  --c-willow:    #4E8C6A;
  --c-bark:      #8A6A4F;
  --c-straw:     #C89A3C;
  --c-slate:     #4A6B87;
  --c-clay:      #B5563F;
  --c-rust:      #C2410C;   /* Facets. Matches the app's own accent. */

  --f-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm:  8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(42,45,52,.04), 0 2px 6px rgba(42,45,52,.04);
  --shadow:    0 4px 16px rgba(42,45,52,.06), 0 2px 6px rgba(42,45,52,.04);

  --container: 1100px;
  --focus-ring: 0 0 0 3px rgba(78,140,106,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; max-width: 68ch; }
a  { color: var(--c-slate); text-underline-offset: .18em; }
a:hover { color: var(--c-willow); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--surface);
  padding: 12px 18px; border-radius: var(--radius-sm); z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header { padding: 22px 0; border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--ink-muted); font-weight: 600; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero p { font-size: 1.1875rem; color: var(--ink-muted); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section > .wrap > h2 { margin-bottom: 1.2rem; }

/* App cards */
.shelf { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.app-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 26px 24px 22px; text-decoration: none; color: inherit;
  border-top: 4px solid var(--accent, var(--c-willow));
  transition: box-shadow .18s ease, transform .18s ease;
}
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card h3 { margin-bottom: .15em; }
.app-card p { color: var(--ink-muted); margin-bottom: 1em; font-size: .9375rem; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-muted);
  background: var(--surface-2); border-radius: 999px; padding: 4px 10px;
}
.price { font-size: .875rem; font-weight: 600; color: var(--accent, var(--c-willow)); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Value props */
.props { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.props h3 { font-size: 1.0625rem; margin-bottom: .35em; }
.props p { color: var(--ink-muted); font-size: .9375rem; margin: 0; }

/* Prose pages */
.prose { padding: 56px 0 72px; }
.prose h2 { margin-top: 2em; font-size: 1.375rem; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose .lede { font-size: 1.1875rem; color: var(--ink-muted); }
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--c-willow);
  border-radius: var(--radius); padding: 20px 22px; margin: 0 0 2em;
}
.callout p:last-child { margin-bottom: 0; }
.meta { font-size: .875rem; color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; margin-top: 24px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer p { color: var(--ink-muted); font-size: .875rem; margin: 0; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--ink-muted); font-size: .875rem; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
}

/* ---------- Support form ---------- */
.support-form { max-width: 560px; margin: 0 0 1em; }
.support-field { margin-bottom: 20px; }
.support-field label {
  display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--ink);
}
.req { color: var(--c-clay); }
.support-field input,
.support-field select,
.support-field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 13px; line-height: 1.5;
}
.support-field textarea { min-height: 150px; resize: vertical; }
.support-field select { appearance: none; background-image: none; cursor: pointer; }
.support-field input:hover,
.support-field select:hover,
.support-field textarea:hover { border-color: var(--ink-muted); }
.support-field.is-invalid input,
.support-field.is-invalid select,
.support-field.is-invalid textarea { border-color: var(--c-clay); }
.field-error { display: block; color: var(--c-clay); font-size: .8125rem; margin-top: 5px; min-height: 1em; }

/* Honeypot. Off-screen rather than display:none, which some bots detect. */
.support-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 22px; cursor: pointer; text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.btn-primary { background: var(--c-willow); color: var(--surface); }
.btn-primary:hover { background: #457a5c; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.support-status { font-size: .9375rem; margin: 14px 0 0; min-height: 1.4em; }
.support-status.is-ok { color: var(--c-willow); font-weight: 600; }
.support-status.is-err { color: var(--c-clay); font-weight: 600; }

/* ---------- Facets homepage ---------- */
.hero-app { padding: 64px 0 8px; text-align: center; }
.hero-app h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero-app .lede { font-size: 1.1875rem; color: var(--ink-muted); max-width: 60ch; margin: 0 auto 1.2em; }
.hero-shot { margin: 32px auto 0; max-width: 1000px; }
.hero-shot img { width: 100%; height: auto; display: block; }
.eyebrow {
  font-family: var(--f-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-rust);
  margin: 0 0 .6em;
}
.hero-app .eyebrow { text-align: center; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .split.flip .split-text { order: 2; }
  .split.flip .split-shot { order: 1; }
}
.split-shot img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.split-text h2 { margin-bottom: .5em; }
.split-text p { color: var(--ink-muted); }
.split-text p strong { color: var(--ink); font-weight: 600; }

.story {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--c-rust);
  border-radius: var(--radius); padding: 26px 28px; max-width: 68ch;
}
.story p:last-child { margin-bottom: 0; }

.pricing { text-align: center; }
.pricing .price-big {
  font-family: var(--f-display); font-size: 2.4rem; font-weight: 800;
  color: var(--ink); margin: 0 0 .1em; letter-spacing: -.02em;
}
.pricing p { margin-left: auto; margin-right: auto; }
.soon {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; max-width: 68ch;
}
.soon h3 { margin-bottom: .3em; }
.soon p { margin: 0; color: var(--ink-muted); font-size: .9375rem; }

/* ---------- Coming soon ---------- */
.soon-badge {
  display: inline-block; font-family: var(--f-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-rust); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; margin: 0 0 18px;
}
.notify {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; max-width: 60ch;
  margin: 24px auto 0; text-align: left;
}
.notify p { margin: 0 0 .5em; }
.notify p:last-child { margin: 0; }
