/* Expiro landing: no framework, system font stack, mobile first. */
:root {
  --brand: #863bff;
  --accent: #6d28d9;
  --accent-dark: #5b21b6;
  --accent-soft: #f3ecff;
  --bg: #fcfcfd;
  --bg-alt: #f4f4f7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #565c66;
  --line: #dcdce3;
  --ok: #0f6b37;       --ok-bg: #e6f5ec;
  --warn: #7a4b00;     --warn-bg: #fff3d1;
  --bad: #a4201a;      --bad-bg: #fdeceb;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: #14161a; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: #353a42; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; color: #14161a; text-decoration: none; letter-spacing: -.02em; margin: 0; }
.wordmark:hover { color: #14161a; }
.wordmark-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); display: inline-block; }
.nav { order: 3; width: 100%; }
.nav ul { list-style: none; display: flex; gap: 4px 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 2px; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch { font-weight: 700; font-size: .85rem; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin-left: 12px; }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: 10px 16px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-align: center;
  font-family: inherit;
}
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-inverse { background: #fff; color: var(--accent-dark); }
.btn-inverse:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-outline-inverse { color: #fff; border-color: #fff; background: transparent; }
.btn-outline-inverse:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 1rem; }
.center-row { justify-content: center; }

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding: 8px 0 48px; }
.section-alt { background: var(--bg-alt); }
.page-head { padding-bottom: 24px; }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } }

/* Dashboard mock */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(60, 20, 120, .12); overflow: hidden; }
.mock-bar { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-tag { font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mock-card { border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mock-expired { background: var(--bad-bg); } .mock-soon { background: var(--warn-bg); } .mock-valid { background: var(--ok-bg); }
.mock-count { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.mock-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.mock-table th, .mock-table td { padding: 8px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.mock-table th { color: var(--muted); font-weight: 600; font-size: .75rem; }
@media (max-width: 599px) {
  .mock-table th:nth-child(3), .mock-table td:nth-child(3) { display: none; }
  .mock-table th, .mock-table td { padding: 8px 6px; }
}

/* Status badges: icon + word, never colour alone */
.badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 2px 9px 2px 3px; white-space: nowrap; }
.badge-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .72rem; line-height: 1; }
.badge-expired { color: var(--bad); background: var(--bad-bg); } .badge-expired .badge-icon { background: var(--bad); }
.badge-soon { color: var(--warn); background: var(--warn-bg); } .badge-soon .badge-icon { background: var(--warn); }
.badge-valid { color: var(--ok); background: var(--ok-bg); } .badge-valid .badge-icon { background: var(--ok); }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-accent { border: 2px solid var(--accent); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; margin: 24px 0 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px; }
.feature-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.plan-grid { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; vertical-align: middle; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }

.cta-band { background: var(--accent-dark); color: #fff; }
.cta-band h2, .cta-band .lead { color: #fff; }

/* FAQ */
.faq-list { display: grid; gap: 8px; margin-bottom: 1.5rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 16px 14px; margin: 0; color: #353a42; }
.faq-group { margin-top: 2rem; font-size: 1.3rem; }

/* Pricing */
.toggle { display: none; justify-content: center; gap: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 8px; }
.js .toggle { display: flex; }
.toggle-btn { font: inherit; font-weight: 600; border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; cursor: pointer; color: var(--text); }
.toggle-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.js .period[hidden] { display: none; }
.period + .period { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.js .period + .period { margin-top: 0; padding-top: 0; border-top: 0; }
.period-label { font-weight: 700; color: var(--muted); margin-bottom: .3em; }
.js .period-label { display: none; }
.price-list { margin: 0 0 1em; }
.price-list div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-list dt { color: var(--muted); font-size: .9rem; }
.price-list dd { margin: 0; }
.price { font-size: 1.5rem; font-weight: 800; margin: 0; }
.per { font-size: .9rem; font-weight: 500; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); min-width: 560px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--bg-alt); }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; }

/* Forms and notices */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #8b8f99; border-radius: 8px; background: #fff; color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 18px; margin: 0 0 1.2rem; border: 1px solid; }
.notice h2 { font-size: 1.1rem; margin-bottom: .3em; }
.notice ul { margin: 0; }
.notice p:last-child { margin: 0; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); color: #0a4a26; }
.notice-err { background: var(--bad-bg); border-color: var(--bad); color: #7a1511; }
.notice-warn { background: var(--warn-bg); border-color: #c98a00; color: #5c3900; }
.todo { background: #fff3d1; color: #5c3900; border: 1px dashed #c98a00; border-radius: 4px; padding: 0 6px; font-size: .9em; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 0 16px; margin-top: 0; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
