/* ReceiptClock — mobile-first static styles */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --muted: #5c6578;
  --line: #e2e6ee;
  --brand: #0d6e6e;
  --brand-dark: #0a5555;
  --brand-soft: #e6f4f4;
  --accent: #c45c26;
  --accent-soft: #fef3ec;
  --ok: #1a7a4c;
  --warn: #9a6b00;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(26, 31, 46, 0.06), 0 8px 24px rgba(26, 31, 46, 0.04);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 720px;
  --wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.logo span { color: var(--brand); }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); }
.nav .btn-nav {
  background: var(--brand);
  color: #fff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
}
.nav .btn-nav:hover { background: var(--brand-dark); }

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--brand-soft), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, var(--accent-soft), transparent 50%),
    var(--bg);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a84c1e; color: #fff; }
.btn-disabled, .btn[disabled], .btn.coming-soon {
  background: #c5cad4;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

/* Cards / sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.75em; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* Calculator */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.calc h2 { margin-bottom: 0.35em; }
.calc .hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.calc-form {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .calc-form { grid-template-columns: 1fr 1fr; }
  .calc-form .full { grid-column: 1 / -1; }
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
select, input[type="date"], input[type="text"], input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
select:focus, input:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}
.calc-result {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid #b8dede;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result .deadline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0.25em 0;
}
.calc-result .note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 32em; margin-inline: auto; }
.cta-band .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
}
.cta-band .price small { font-size: 1rem; font-weight: 500; opacity: 0.85; }
.cta-band .btn-coming {
  margin-top: 1rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  pointer-events: none;
  cursor: not-allowed;
}
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.cta-features li::before {
  content: "✓ ";
  font-weight: 700;
}

/* Guide article */
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.article-meta a { font-weight: 500; }
.source-box {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}
.source-box strong { display: block; margin-bottom: 0.25rem; }
.prose h2 { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: none; padding-top: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  background: var(--surface);
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: #eef1f6; font-weight: 600; }
.prose .faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.prose .faq summary {
  font-weight: 600;
  cursor: pointer;
}
.prose .faq details[open] summary { margin-bottom: 0.5rem; }
.callout {
  background: var(--accent-soft);
  border: 1px solid #f0d4c0;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 2rem 0;
}
.callout h3 { margin-top: 0; }
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5cad4;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.925rem;
}
.site-footer a { color: #e8ebf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8b93a5;
}
.footer-bottom p { margin: 0 0 0.5em; }

/* Misc */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.muted { color: var(--muted); }
.page-title-block { padding: 2rem 0 0.5rem; }

/* Live tracker CTA on dark band */
.cta-band .btn-on-dark {
  margin-top: 1rem;
  background: #fff;
  color: var(--brand-dark) !important;
  border: none;
}
.cta-band .btn-on-dark:hover { background: #f0f7f7; color: var(--brand-dark) !important; }
.cta-band a.btn { text-decoration: none; display: inline-block; }

.calc-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.calc-cta .btn { margin: 0.25rem; }

.signup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0 0.5rem;
}
.signup-form input[type="email"] {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.signup-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary {
  background: var(--surface);
  color: var(--brand) !important;
  border: 1px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-soft); }
.hint { font-size: 0.9rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.calc-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.calc-form input, .calc-form select, .calc-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 0.85rem;
}
