/* ===== Design tokens =====
   Ink Navy   #12283C  — text, headers
   Marigold   #E0862E  — primary accent / CTA
   Deep Teal  #0F6E5D  — active/safe signal
   Amber      #B7791F  — expiring signal
   Red        #B4232A  — expired signal
   Sage Ivory #F3F6F1  — background
   Slate      #4B5563  — secondary text
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #F3F6F1;
    color: #12283C;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.5;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; margin: 0 0 .4em; line-height: 1.15; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header { background: #FFFFFF; border-bottom: 1px solid #E3E8E2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 10px;
    background: #12283C; color: #F3F6F1;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 700; font-size: 15px;
}
.brand-text { font-weight: 700; font-size: 18px; color: #12283C; display: flex; flex-direction: column; }
.brand-text small { font-weight: 500; font-size: 11px; color: #6B7A72; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 500; }
.site-nav a { text-decoration: none; color: #3A4A44; }
.site-nav a.active { color: #12283C; font-weight: 600; }
.btn-primary-sm, .btn-ghost {
    padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.btn-primary-sm { background: #E0862E; color: #fff !important; }
.btn-ghost { border: 1px solid #C9D3C6; }

/* ---- Buttons (generic) ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 9px; font-weight: 600; font-size: 15.5px;
    text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.btn-marigold { background: #E0862E; color: #fff; }
.btn-marigold:hover { background: #C97321; }
.btn-outline { background: transparent; border: 1.5px solid #12283C; color: #12283C; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Landing hero ---- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow-tag {
    display: inline-block; font-size: 13px; font-weight: 600; color: #0F6E5D;
    background: #E4F1EC; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; max-width: 11ch; }
.hero p.lede { font-size: 18px; color: #4B5563; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero demo card: a live "days remaining" number, since that IS the product */
.demo-card {
    background: #12283C; border-radius: 18px; padding: 32px;
    color: #F3F6F1; position: relative; overflow: hidden;
}
.demo-card .demo-label { font-size: 13px; color: #9FB3AA; margin-bottom: 6px; }
.demo-card .demo-business { font-size: 19px; font-weight: 600; margin-bottom: 22px; }
.demo-countdown { display: flex; align-items: baseline; gap: 10px; }
.demo-countdown .num { font-family: 'Fraunces', serif; font-size: 76px; font-weight: 700; color: #E0862E; }
.demo-countdown .unit { font-size: 16px; color: #C7D3CD; }
.demo-bar { height: 6px; background: #24405A; border-radius: 4px; margin-top: 22px; overflow: hidden; }
.demo-bar span { display: block; height: 100%; background: #E0862E; width: 72%; }
.demo-foot { margin-top: 16px; font-size: 13px; color: #9FB3AA; }

/* ---- How it works ---- */
.how { padding: 40px 0 72px; }
.how h2 { font-size: 28px; margin-bottom: 32px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step { background: #fff; border: 1px solid #E3E8E2; border-radius: 14px; padding: 24px; }
.how-step .step-index { font-family: 'Fraunces', serif; font-size: 15px; color: #0F6E5D; font-weight: 700; margin-bottom: 10px; }
.how-step h3 { font-size: 17px; margin-bottom: 6px; }
.how-step p { color: #4B5563; font-size: 14.5px; margin: 0; }

/* ---- CTA band ---- */
.cta-band { background: #12283C; color: #fff; padding: 56px 0; text-align: left; }
.cta-band h2 { color: #fff; font-size: 30px; max-width: 16ch; }
.cta-band p { color: #C7D3CD; max-width: 50ch; margin-bottom: 26px; }

/* ---- Auth forms ---- */
.auth-wrap { max-width: 420px; margin: 64px auto; padding: 0 24px; }
.auth-card { background: #fff; border: 1px solid #E3E8E2; border-radius: 16px; padding: 36px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: #6B7A72; font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #33403A; }
.field input, .field select {
    width: 100%; padding: 11px 13px; border: 1.5px solid #D8DED5; border-radius: 8px;
    font-size: 15px; font-family: inherit; background: #FAFCF9;
}
.field input:focus, .field select:focus { outline: none; border-color: #0F6E5D; }
.form-note { font-size: 13.5px; color: #6B7A72; margin-top: 18px; text-align: center; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #FBE4E2; color: #8A1F24; }
.alert-success { background: #E4F1EC; color: #0F6E5D; }

/* ---- Dashboard ---- */
.dash-head { display: flex; justify-content: space-between; align-items: center; padding: 44px 0 20px; }
.dash-head h1 { font-size: 27px; margin: 0; }
.dash-head p { color: #6B7A72; margin: 4px 0 0; font-size: 14.5px; }
.license-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 60px; }
.license-card {
    background: #fff; border: 1px solid #E3E8E2; border-radius: 14px;
    padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.license-card .lic-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.license-card .lic-meta { font-size: 13.5px; color: #6B7A72; }
.license-card .lic-count { text-align: right; }
.license-card .lic-count .big { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; }
.license-card .lic-count .small { font-size: 12.5px; color: #6B7A72; }
.badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; margin-bottom: 8px;
}
.badge-active { background: #E4F1EC; color: #0F6E5D; }
.badge-expiring { background: #FCEFD7; color: #B7791F; }
.badge-expired { background: #FBE4E2; color: #B4232A; }
.empty-state {
    text-align: center; padding: 60px 24px; background: #fff;
    border: 1.5px dashed #D8DED5; border-radius: 16px; color: #6B7A72;
}
.empty-state h3 { color: #12283C; }
.limit-note {
    background: #FCEFD7; color: #8A5E13; padding: 14px 18px; border-radius: 10px;
    font-size: 14px; margin-bottom: 22px;
}

/* ---- Checklist page ---- */
.checklist-hero { padding: 56px 0 20px; max-width: 640px; }
.checklist-item {
    background: #fff; border: 1px solid #E3E8E2; border-radius: 12px;
    padding: 18px 20px; display: flex; gap: 16px; margin-bottom: 12px;
}
.checklist-item .idx { font-family: 'Fraunces', serif; font-weight: 700; color: #0F6E5D; font-size: 16px; min-width: 24px; }
.checklist-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.checklist-item p { margin: 0; color: #6B7A72; font-size: 14px; }
.tip-box {
    background: #E4F1EC; border-radius: 14px; padding: 22px 24px; margin: 28px 0 60px;
}
.tip-box h4 { color: #0F6E5D; margin-bottom: 12px; }
.tip-box ul { margin: 0; padding-left: 20px; color: #294B41; font-size: 14.5px; }
.tip-box li { margin-bottom: 8px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid #E3E8E2; margin-top: 40px; padding: 24px 0; font-size: 13.5px; color: #6B7A72; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links a { margin-left: 16px; text-decoration: none; color: #6B7A72; }
.footer-fine { padding-top: 10px; font-size: 12px; color: #9AA69F; }

/* ---- Responsive ---- */
@media (max-width: 780px) {
    .hero-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .license-card { grid-template-columns: 1fr; text-align: left; }
    .license-card .lic-count { text-align: left; }
    .header-inner { height: auto; padding: 14px 24px; flex-wrap: wrap; gap: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
