/* Calcis Pond Lime Calculator — styles
 * Self-contained, scoped under .calc so it won't fight host-page CSS when
 * embedded directly. Uses CSS variables for easy brand theming.            */
:root {
  --c-bg: #ffffff;
  --c-ink: #141b45;         /* NWS navy */
  --c-muted: #5d6480;
  --c-line: #e4e6ef;
  --c-soft: #f5f6fb;
  --c-brand: #1c4220;       /* NWS forest green */
  --c-brand-dk: #143018;
  --c-accent: #141b45;      /* NWS navy */
  --c-warn: #8f5a2a;        /* NWS earth brown */
  --c-cream: #f2e5b3;       /* NWS cream */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,27,69,.06), 0 8px 24px rgba(20,27,69,.06);
}

.calc, .calc * { box-sizing: border-box; }
.calc {
  max-width: 940px;
  margin: 0 auto;
  padding: 8px;
  color: var(--c-ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.calc__head { text-align: center; margin: 8px 0 18px; }
.calc__head h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 4px; letter-spacing: -.01em; }
.calc__sub { color: var(--c-muted); margin: 0; }

.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { grid-column: span 1; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.result { grid-column: 1 / -1; }
@media (max-width: 720px) { .calc__grid { grid-template-columns: 1fr; } }

.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card__head h2 { font-size: 18px; margin: 0; flex: 1; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }

/* Units toggle / presets */
.units, .presets { display: inline-flex; gap: 4px; background: var(--c-soft); padding: 3px; border-radius: 10px; }
.unit, .preset { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--c-muted); }
.unit.is-active, .preset.is-active { background: #fff; color: var(--c-ink); box-shadow: var(--shadow); font-weight: 600; }
.presets { margin-top: 8px; flex-wrap: wrap; }

/* Fields */
.field { margin: 12px 0; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
input[type=text], input[type=number], input[type=email], select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--c-line); border-radius: 10px;
  font-size: 16px; color: var(--c-ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(31,122,92,.15); }
.suffix { position: relative; display: flex; align-items: center; }
.suffix .u { position: absolute; right: 12px; color: var(--c-muted); font-size: 13px; pointer-events: none; }
.suffix input { padding-right: 52px; }

.opt, .muted { color: var(--c-muted); font-weight: 400; }
small.muted { display: block; margin-top: 5px; font-size: 12px; }
.hint { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-soft); color: var(--c-muted); font-size: 11px; cursor: help; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 400; margin-top: 8px; color: var(--c-muted); }
.tiny-link { color: var(--c-accent); margin-left: auto; text-decoration: none; }

/* MyPond button (replaces the old checkbox) */
.mypond-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px; border: 1.5px dashed var(--c-accent); background: linear-gradient(180deg,#fbf7e6,#f4e9bf);
  border-radius: 12px; cursor: pointer; transition: transform .08s, box-shadow .15s;
}
.mypond-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.mypond-btn svg { width: 30px; height: 30px; fill: var(--c-accent); flex: none; }
.mypond-btn strong { display: block; font-size: 15px; color: var(--c-accent); }
.mypond-btn em { font-style: normal; font-size: 12.5px; color: var(--c-muted); }
.map-status { margin: 8px 0 0; font-size: 13px; color: var(--c-brand); font-weight: 600; }

.or { text-align: center; margin: 14px 0 6px; position: relative; color: var(--c-muted); font-size: 12px; }
.or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--c-line); }
.or span { background: #fff; padding: 0 10px; position: relative; }

/* Advanced section */
.adv { margin-top: 6px; border-top: 1px solid var(--c-line); padding-top: 8px; }
.adv > summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary::before { content: "▸"; color: var(--c-muted); transition: transform .15s; }
.adv[open] > summary::before { transform: rotate(90deg); }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--c-brand); color: #fff; padding: 2px 7px; border-radius: 999px; }
.adv__note { font-size: 12.5px; color: var(--c-muted); background: var(--c-soft); padding: 8px 10px; border-radius: 8px; margin: 10px 0; }

/* Result */
.result { background: linear-gradient(180deg,#f6fbf9,#ffffff); }
.result__hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.result__big { display: flex; align-items: baseline; gap: 10px; }
.result__big span { font-size: clamp(40px, 8vw, 60px); font-weight: 800; line-height: 1; color: var(--c-brand); letter-spacing: -.02em; }
.result__big small { font-size: 14px; color: var(--c-muted); max-width: 130px; }
.result__sub { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--c-muted); }
.result__sub b { color: var(--c-ink); font-size: 16px; }
.buy-btn { margin-left: auto; background: var(--c-brand); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 12px; font-weight: 700; border: 0; cursor: pointer; transition: background .15s, transform .08s; }
.buy-btn:hover { background: var(--c-brand-dk); transform: translateY(-1px); }

.result__body { margin-top: 16px; border-top: 1px solid var(--c-line); padding-top: 14px; }
.stats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.stats li { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 12px; }
.stats span { display: block; font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .03em; }
.stats b { font-size: 18px; }

.why, .retreat { margin-top: 10px; }
.why > summary { cursor: pointer; font-size: 13px; color: var(--c-accent); font-weight: 600; }
.why__table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.why__table td { padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
.why__table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.why__total td { font-weight: 700; border-bottom: 0; }
.why__foot { font-size: 11.5px; color: var(--c-muted); margin: 6px 0 0; }
.retreat { font-size: 13px; background: #fff7ef; border: 1px solid #f0dcc6; color: #7a4a1e; padding: 10px 12px; border-radius: 10px; }
.tote { margin-top: 10px; font-size: 13px; background: var(--c-soft); border: 1px solid var(--c-line); color: var(--c-ink); padding: 10px 12px; border-radius: 10px; }
.tote a, .retreat a { color: var(--c-accent); font-weight: 600; }
.disclaimer { font-size: 11.5px; color: var(--c-muted); margin: 14px 0 0; }

/* Lead capture */
.lead { max-width: 940px; margin: 14px auto 0; }
.lead__toggle { width: 100%; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; color: var(--c-ink); }
.lead__form { margin-top: 12px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }

.brand { text-align: center; font-size: 12px; color: var(--c-muted); margin: 16px 0 4px; }
.brand a { color: var(--c-brand); text-decoration: none; }
