/* style.css — LADS Resource Calculator
 *
 * Visual system extracted from mivvii.com (the live MIVVII store):
 *   - Font: Inter (clean sans-serif, used site-wide)
 *   - Palette: minimal black-on-white, generous whitespace
 *   - Buttons: 14px radius, solid near-black
 *   - Inputs: 4px radius; cards: ~12px radius, hairline border
 *   - Accent: in-stock green / warn orange for status cues
 * Mobile-first: base styles target phones; a min-width query refines larger screens.
 *
 * NOTE: This is MIVVII's OWN brand visual — no LADS official assets/colors used.
 */

/* Inter via Google Fonts (matches mivvii.com's Inter usage) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* --- MIVVII brand tokens --- */
  --bg: #ffffff;
  --surface: #f5f5f5;          /* light grey scheme from store */
  --fg: rgba(0, 0, 0, 0.81);   /* body text */
  --fg-heading: #000000;       /* headings */
  --fg-muted: rgba(0, 0, 0, 0.5);
  --border: rgba(0, 0, 0, 0.08);
  --primary: rgba(0, 0, 0, 0.88);
  --primary-hover: #000000;
  --accent-good: #3ed660;      /* in-stock green */
  --accent-warn: #ee9441;      /* low-stock orange */

  --radius-card: 12px;
  --radius-btn: 14px;
  --radius-input: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 24px 16px 48px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 440px;
  margin: 0 auto;
}

/* --- Top bar: persistent brand + funnel link --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;     /* wide tracking reads as a premium wordmark */
  text-transform: uppercase;
  color: var(--fg-heading);
  text-decoration: none;
  padding-right: 0.32em;       /* compensate trailing letter-spacing */
}
.brand:hover { color: var(--fg); }

/* Always-on Shop link — subtle pill, present even before any calculation */
.shop-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-heading);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.shop-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Header --- */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-heading);
  margin: 0 0 4px;
}
.sub {
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.hint {
  margin: -6px 0 14px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* --- Form fields --- */
label {
  display: block;
  margin: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 10px 0;
}
label.check input { width: 18px; height: 18px; accent-color: var(--primary); }

input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  font-family: inherit;
  color: var(--fg-heading);
  background: var(--bg);
  transition: border-color 0.15s ease;
}
input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- Primary button --- */
button#calcBtn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.05s ease;
}
button#calcBtn:hover { background: var(--primary-hover); }
button#calcBtn:active { transform: scale(0.985); }

/* --- Result --- */
.result { margin-top: 24px; background: var(--surface); border: none; }
.result h2 { color: var(--fg-muted); }
.perday {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg-heading);
  margin: 0 0 18px;
}

.scenario {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.scenario:last-child { margin-bottom: 0; }
.scenario.best { border-left: 3px solid var(--accent-good); }
.scenario.worst { border-left: 3px solid var(--accent-warn); }
.scenario.average { border-left: 3px solid var(--primary); }

.scen-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 600;
}
.scen-note { color: rgba(0, 0, 0, 0.35); font-weight: 400; }
.scen-days {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg-heading);
  letter-spacing: -0.01em;
  margin: 3px 0;
}
.scen-gap { font-size: 0.85rem; color: var(--fg-muted); }

/* --- Funnel card (shown with results) --- */
.funnel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);   /* hairline divider from the data above */
  text-align: center;
}
.funnel-head {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-heading);
}
.funnel-sub {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.funnel-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg-heading);
  padding: 11px 24px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  transition: background 0.15s ease, color 0.15s ease;
}
.funnel-btn:hover {       /* outline -> fill on hover keeps it elegant, not salesy */
  background: var(--primary);
  color: #fff;
}

/* --- Brand footer --- */
.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}
.site-footer a {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.site-footer a:hover { border-bottom-color: var(--fg); }
.site-footer span { margin-left: 4px; }

/* --- SEO FAQ block: low-key supporting text under the tool --- */
.seo-faq {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.seo-faq h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 12px;
}
.seo-faq h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-heading);
  margin: 20px 0 4px;
}
.seo-faq p { margin: 0 0 4px; }
.seo-faq strong { color: var(--fg); }
.seo-faq a { color: var(--fg); }
.seo-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.38);
}

/* --- Larger screens: center & widen slightly, the layout stays simple --- */
@media (min-width: 600px) {
  body { padding-top: 48px; }
  .wrap { max-width: 480px; }
  h1 { font-size: 2rem; }
}
