/* Local Minutes website. Plain CSS, no scripts, no web fonts. */

:root {
  color-scheme: light dark;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #e6efec;
  --text: #06302f;
  --muted: #3d5f5c;
  --line: #b5cfca;
  --accent: #0b7f72;
  --accent-text: #ffffff;
  --accent-soft: #ddf1ed;
  --focus: #0b7f72;
  --radius: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071f1e;
    --surface: #0b2e2c;
    --surface-2: #0f3634;
    --text: #f4f8f6;
    --muted: #9fd9ce;
    --line: #1e4644;
    --accent: #3dd6bc;
    --accent-text: #06302f;
    --accent-soft: #123c39;
    --focus: #3dd6bc;
  }
}

:root[data-theme="dark"] {
  --bg: #071f1e;
  --surface: #0b2e2c;
  --surface-2: #0f3634;
  --text: #f4f8f6;
  --muted: #9fd9ce;
  --line: #1e4644;
  --accent: #3dd6bc;
  --accent-text: #06302f;
  --accent-soft: #123c39;
  --focus: #3dd6bc;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: var(--muted); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Illustration */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -20px rgba(0, 0, 0, 0.25);
}
.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.mock-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.mock-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.mock-row:first-of-type { border-top: 0; }
.mock-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-who { font-weight: 600; display: block; font-size: 13px; color: var(--accent); }
.mock-wave { display: block; margin-top: 16px; width: 100%; height: auto; }
.wave-bar { fill: var(--accent); opacity: 0.85; }
.wave-bar-muted { fill: var(--line); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section.tight { padding-top: 40px; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}

.grid-2, .grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.grid-2 > *, .grid-3 > *, .plans > * { min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tight-top { margin-top: 32px; }
figure { margin: 0; }
.small-price { margin-top: -6px; }

ul.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
ul.check li {
  position: relative;
  padding-left: 28px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.plan { display: flex; flex-direction: column; }
.plan .price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
}
.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 22px;
  border-radius: 20px;
}
.plan ul.check { margin: 18px 0 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 12px; }
.price-table th, .price-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 600; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 400;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
details[open] summary::after { content: "–"; }
details p, details ul, details ol { margin: 12px 0 0; color: var(--muted); }
details ul, details ol { padding-left: 22px; }
details li { margin-bottom: 6px; }

/* Prose pages (privacy, terms, support) */
.prose { padding: 48px 0 64px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .notice {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}
.prose .notice p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0 24px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: grid;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

/* Breakpoints */
@media (min-width: 720px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .prose h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
