/* TimeMe.AI — Site mockup CSS v1
 * M5 (2026-05-15) — production-ready mockup chrome
 * Brand chrome: navy #343D7A primary + accent #407BFF + Arial typography
 * Mobile-first; 768px desktop breakpoint.
 */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --navy:        #343D7A;
  --navy-deep:   #232A5A;
  --navy-soft:   #4A549A;
  --accent:      #407BFF;
  --accent-deep: #2E5BCC;
  --accent-soft: #E8EFFF;

  --text:        #0F172A;
  --text-muted:  #475569;
  --text-light:  #64748B;
  --text-on-dark:#FFFFFF;
  --text-on-dark-muted: #C7CDE8;

  --bg:          #FFFFFF;
  --bg-soft:     #F8FAFC;
  --bg-muted:    #F1F5F9;
  --bg-dark:     #343D7A;

  --border:      #E2E8F0;
  --border-soft: #F1F5F9;

  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Typography */
  --font:        Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --font-mono:   "SF Mono", Menlo, Consolas, monospace;

  /* Spacing scale (4pt) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Type ramp — mobile-first */
  --t-display: 36px;
  --t-h1:      32px;
  --t-h2:      26px;
  --t-h3:      20px;
  --t-lead:    18px;
  --t-body:    16px;
  --t-small:   14px;
  --t-micro:   12px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 6px 18px rgba(64, 123, 255, 0.30);

  /* Container */
  --container: 1180px;
}

@media (min-width: 768px) {
  :root {
    --t-display: 56px;
    --t-h1:      44px;
    --t-h2:      34px;
    --t-h3:      24px;
    --t-lead:    22px;
    --t-body:    17px;
  }
}

/* ---------- 2. Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 700; }
.display { font-size: var(--t-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 var(--s-4); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text-muted); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

/* ---------- 3. Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--s-6); } }

.section { padding: var(--s-8) 0; }
@media (min-width: 768px) { .section { padding: var(--s-10) 0; } }

.section-tight { padding: var(--s-7) 0; }
.section--soft { background: var(--bg-soft); }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark .lead { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-3); }
.mt-3 { margin-top: var(--s-4); }
.mt-4 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-7); }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); text-decoration: none; }
.brand-ai {
  background: var(--accent);
  color: #FFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  margin-left: 4px;
  position: relative;
  top: -2px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: var(--s-2) 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta-mobile { display: inline-flex; }
@media (min-width: 1024px) { .nav-cta-mobile { display: none; } }

.dropdown { position: relative; }
.dropdown > button {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: var(--s-2) 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dropdown > button::after {
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -4px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: var(--s-3) 0;
  min-width: 200px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: var(--s-3) var(--s-4);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #FFF;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-deep); color: #FFF; box-shadow: 0 8px 24px rgba(64,123,255,0.40); }
.btn--secondary {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: #FFF; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--accent); border-color: var(--accent); }
.btn--on-dark {
  background: #FFF;
  color: var(--navy);
}
.btn--on-dark:hover { background: var(--bg-soft); color: var(--navy); }
.btn--lg { font-size: 17px; padding: 18px 28px; }
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--block { display: flex; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 6. Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.pill--free::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pill--on-dark { background: rgba(255,255,255,0.15); color: #FFF; }
.pill--on-dark.pill--free::before { background: #FFF; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

/* ---------- 7. Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .card { padding: var(--s-6); } }

.card h3 { margin-bottom: var(--s-3); }
.card-link {
  display: inline-block;
  margin-top: var(--s-3);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.card-link::after { content: " →"; }

/* Numbered ONLY card */
.only-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}
.only-num {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.only-card h3 { font-size: 22px; margin-bottom: var(--s-3); line-height: 1.25; }

/* Audience card */
.audience-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.audience-card .micro { color: var(--accent); }
.audience-card h3 { margin: 0; font-size: 20px; }
.audience-card p { color: var(--text-muted); margin: 0; }
.audience-card .card-link { margin-top: auto; }

/* Pain card */
.pain-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: var(--bg);
}
.pain-card .pain-quote {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s-3);
  line-height: 1.4;
}
.pain-card .pain-fix {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}
.pain-card .pain-fix strong { color: var(--navy); }

/* ---------- 8. Hero ---------- */
.hero {
  padding: var(--s-8) 0 var(--s-9);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
@media (min-width: 768px) { .hero { padding: var(--s-9) 0 var(--s-10); } }

.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: var(--s-5); justify-content: center; }
.hero .pill { margin-bottom: var(--s-4); }

.hero--dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
}
.hero--dark h1 { color: var(--text-on-dark); }
.hero--dark .lead { color: var(--text-on-dark-muted); }

.hero-illustration {
  margin-top: var(--s-7);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 9. Section header ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- 10. Feature row / how-it-works ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.step { position: relative; padding-top: var(--s-6); text-align: left; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 20px; margin: var(--s-7) 0 var(--s-3); }

/* ---------- 11. Tables ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.compare th, table.compare td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.02em;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare tr.highlight td { background: var(--accent-soft); font-weight: 600; }
table.compare tr.highlight td:first-child { color: var(--navy); }

/* ---------- 12. FAQ accordion ---------- */
.faq-jump {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.faq-jump strong { color: var(--navy); margin-right: var(--s-3); }
.faq-jump a {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.faq-jump a:hover { background: var(--accent); color: #FFF; border-color: var(--accent); }

.faq-section { margin-bottom: var(--s-8); }
.faq-section h2 {
  font-size: 24px;
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--navy);
  margin-bottom: var(--s-5);
}

details.faq {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-3);
  transition: border-color 0.15s ease;
}
details.faq[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
details.faq summary {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body {
  margin-top: var(--s-4);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
details.faq .faq-body p:last-child { margin-bottom: 0; }
details.faq .faq-body strong { color: var(--text); }

/* ---------- 13. Pricing block ---------- */
.price-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: var(--s-7);
  text-align: center;
  margin-bottom: var(--s-7);
}
.price-callout .display { color: #FFF; margin-bottom: var(--s-3); }
.price-callout .lead { color: rgba(255,255,255,0.9); }
.price-strip {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
}
.price-strip strong { color: var(--navy); }

/* ---------- 14. App store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: #000;
  color: #FFF;
  padding: 12px 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  min-width: 180px;
}
.store-btn:hover { background: #1a1a1a; color: #FFF; text-decoration: none; transform: translateY(-1px); }
.store-btn-icon { font-size: 28px; line-height: 1; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn-text small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.store-btn-text span { font-size: 18px; font-weight: 700; }

/* ---------- 15. Bullet lists ---------- */
ul.bullets, ol.bullets { list-style: none; padding: 0; margin: 0; }
ul.bullets li {
  position: relative;
  padding-left: var(--s-6);
  margin-bottom: var(--s-3);
}
ul.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}
ol.bullets { counter-reset: ol-step; }
ol.bullets li {
  counter-increment: ol-step;
  position: relative;
  padding-left: var(--s-7);
  margin-bottom: var(--s-3);
}
ol.bullets li::before {
  content: counter(ol-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #FFF;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); }
}
.footer-col h4 {
  color: #FFF;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  font-weight: 800;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s-3); }
.footer-col a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover { color: #FFF; text-decoration: underline; }
.footer-elevator {
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: var(--s-4);
  max-width: 320px;
}
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 13px;
}

/* ---------- 17. Misc ---------- */
.divider { height: 1px; background: var(--border); margin: var(--s-7) 0; border: 0; }
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: var(--s-5) 0;
}
.callout strong { color: var(--navy); }

/* Anchor offset for sticky header */
:target { scroll-margin-top: 80px; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---------- Store badges (official-style App Store / Google Play) ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: transform .15s ease, filter .15s ease;
}
.store-badge:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; }
.store-badge:focus-visible { outline: 2px solid var(--accent, #407BFF); outline-offset: 3px; border-radius: 9px; }
.store-badge svg { display: block; height: 48px; width: auto; }
/* footer / compact instances render at 40px via the svg height attribute */
