/* TimeToChangeBatteries.com - placeholder brand style until a logo/colors are provided */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e6f4f2;
  --accent: #f59e0b;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e2e6ea;
  --bg: #f6f8f9;
  --card: #ffffff;
  --ok: #15803d;
  --ok-soft: #e8f6ec;
  --warn: #b45309;
  --warn-soft: #fff6e5;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --info-soft: #eaf2fd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-size: .85em; background: #f1f3f5; padding: 1px 4px; border-radius: 4px; word-break: break-all; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small, small { font-size: .875rem; }
.fine { font-size: .8rem; color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.upper { text-transform: uppercase; }
.warn { color: var(--warn); }
.danger { color: var(--bad) !important; }

/* header / nav */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
.brand b { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.site-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column;
              align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav form { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { text-align: center; border: 0; }
}

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }
.btn-success { background: var(--ok); border-color: var(--ok); }
.btn-success:hover { background: #166534; border-color: #166534; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }
.btn-paypal { background: #ffc439; border-color: #ffc439; color: #111; }
.btn-paypal:hover { background: #f2b21b; border-color: #f2b21b; color: #111; }
.btn-small { padding: 6px 12px; font-size: .875rem; }
.btn-large { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

/* cards, alerts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; margin: 16px auto; }
.card.highlight { border-color: var(--brand); background: var(--brand-soft); }
.narrow-wide { max-width: 760px; margin-left: auto; margin-right: auto; }
.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: var(--ok-soft); border-color: #bfe5c9; color: #14532d; }
.alert-error { background: var(--bad-soft); border-color: #f5c2c2; color: #7f1d1d; }
.alert-warn { background: var(--warn-soft); border-color: #f7d9a6; color: #7c2d12; }
.alert-info { background: var(--info-soft); border-color: #c9dcf7; color: #1e3a5f; }
.alert .btn { margin-left: 8px; }

/* forms */
.form label { display: block; margin-bottom: 14px; font-weight: 500; }
.form label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=time], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #cfd6dd; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--brand); }
input[type=file] { display: block; margin-top: 6px; max-width: 100%; }
.form label.check, label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { margin-top: 4px; width: auto; }
.code-input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; max-width: 220px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.inline-form input, .inline-form select { flex: 1 1 200px; width: auto; margin-top: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row label { margin-bottom: 0; }
.form-row input, .form-row select { min-width: 120px; }
.w-sm { max-width: 90px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 8px; padding: 16px 0 0; }
legend { font-weight: 700; color: var(--brand-dark); padding-right: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.schedule { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.every { display: flex; gap: 8px; }
.every input { max-width: 90px; }
.checks { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.switch { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.photo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo-current img { max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.pw-hint.ok { color: var(--ok); }
.pw-hint.bad { color: var(--warn); }
@media (max-width: 640px) { .two, .schedule { grid-template-columns: 1fr; gap: 0; } }

/* page head */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.meter span { display: block; height: 100%; background: var(--brand); max-width: 100%; }

/* reminders */
.reminder-list { list-style: none; margin: 0 0 16px; padding: 0; }
.reminder { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius);
            padding: 14px 16px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: center; box-shadow: var(--shadow); }
.reminder.due { border-left-color: var(--accent); background: #fffdf7; }
.reminder.inactive { border-left-color: #c3cad1; opacity: .75; }
.reminder h3 { margin: 0 0 2px; }
.reminder h3 a { text-decoration: none; color: var(--ink); }
.reminder .meta { color: var(--muted); font-size: .875rem; margin: 0 0 4px; }
.reminder .status { margin: 0; font-size: .9rem; }
.rem-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.rem-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
              min-width: 150px; padding: 6px 0; z-index: 5; }
.more .menu a, .more .menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; text-decoration: none; color: var(--ink); }
.more .menu a:hover, .more .menu button:hover { background: var(--bg); }
@media (max-width: 640px) { .reminder { flex-direction: column; align-items: stretch; } .rem-actions { justify-content: flex-start; } }
.empty { text-align: center; padding: 40px 20px; }

/* badges */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f4; color: var(--muted); text-transform: capitalize; }
.badge-ok, .badge-active, .badge-done, .badge-sent, .badge-delivered, .badge-trial { background: var(--ok-soft); color: var(--ok); }
.badge-due, .badge-grace, .badge-pending, .badge-queued, .badge-snoozed { background: var(--warn-soft); color: var(--warn); }
.badge-missed, .badge-failed, .badge-bounced, .badge-paused, .badge-disabled, .badge-refunded { background: var(--bad-soft); color: var(--bad); }
.badge-info, .badge-cancelled, .badge-skipped, .badge-reset { background: var(--info-soft); color: #1e3a5f; }
.badge-muted, .badge-expired { background: #eef1f4; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table input, .table select { margin-top: 0; padding: 6px 8px; }
.table.num td:not(:first-child) { font-variant-numeric: tabular-nums; }
pre.msg { white-space: pre-wrap; font-size: .8rem; background: var(--bg); padding: 8px; border-radius: 6px; max-width: 520px; }

/* details lists */
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--brand); font-weight: 700; margin-bottom: 4px; }
.action-box { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff;
        cursor: pointer; text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip.on, .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.chip input { margin: 0; }

/* dialog */
.dialog { border: 0; border-radius: 12px; padding: 20px; width: min(420px, calc(100% - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.dialog::backdrop { background: rgba(15, 23, 42, .4); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 20px; }
.grid-2 { margin-bottom: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.plan-summary { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.pack { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.price { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.danger-zone { border-color: #f5c2c2; }
.pick-list { list-style: none; padding: 0; margin: 0 0 12px; }
.pick-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.admin-nav a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .label { display: block; color: var(--muted); font-size: .8rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; }
.stat-bad .value, .stat-bad .value a { color: var(--bad); }
.pager { display: flex; gap: 16px; justify-content: center; }

/* marketing */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: 2.6rem; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: #3e4c59; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.hero-card { display: flex; justify-content: center; }
.phone { width: 260px; background: #111827; border-radius: 32px; padding: 28px 14px; box-shadow: 0 20px 50px rgba(15,118,110,.25); }
.sms { background: #e5e7eb; color: #111; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: .85rem; margin-bottom: 10px; }
.sms-2 { opacity: .8; }
.sms-me { background: var(--ok); color: #fff; margin-left: auto; width: max-content; border-radius: 16px 16px 4px 16px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .icon { font-size: 1.6rem; }
.topic-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.topic-grid li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; gap: 12px; }
.topic-grid span { color: var(--muted); white-space: nowrap; }
.cta-band { text-align: center; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 36px 16px; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card ul, .bullets { padding-left: 20px; }
.price-card li, .bullets li { margin-bottom: 6px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.prose { max-width: 760px; margin: 0 auto; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; }
  .features { grid-template-columns: 1fr 1fr; } .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .features, .topic-grid { grid-template-columns: 1fr; } }
