/* Countie website: same visual language as the app. System fonts only (no
   web fonts, no third-party requests). */

:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5d5d63;
  --line: rgba(0, 0, 0, 0.08);
  --coral-light: #ff7a6e;
  --coral-deep: #e5484d;
  --coral-tint: #d04246;
  --graphite: #12141a;
  --radius: 28px;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a8;
    --line: rgba(255, 255, 255, 0.1);
    --coral-tint: #ff8a7e;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--coral-tint); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 20px/1 var(--rounded); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 { font: 800 clamp(40px, 7vw, 68px)/1.04 var(--rounded); letter-spacing: -0.02em; margin: 0 0 16px; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

.store-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 14px 24px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none;
}
.store-button:hover { opacity: 0.9; }
.store-note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Widget showcase (drawn in CSS, mirrors the app's widgets) */
.showcase {
  display: grid; grid-template-columns: 170px 364px; gap: 20px;
  justify-content: center; margin: 48px auto 16px;
}
.widget {
  height: 170px; border-radius: 26px; padding: 16px; color: #fff;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
}
.widget::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent 50%),
              linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3));
}
.widget > * { position: relative; z-index: 1; }
.widget .emoji { font-size: 26px; line-height: 1; }
.widget .count { margin-top: auto; font: 800 54px/0.95 var(--rounded); letter-spacing: -0.02em; }
.widget .unit { font: 600 13px/1.2 var(--rounded); }
.widget .title { font: 700 15px/1.25 var(--body); margin-top: 4px; }
.w-coral { background: linear-gradient(135deg, #ff7a6e, #e5484d); }
.w-sky { background: linear-gradient(135deg, #5aa9ff, #2563eb); }
.w-medium .count { font-size: 64px; }

.lock {
  grid-column: 1 / -1; justify-self: center; margin-top: 8px;
  display: flex; align-items: center; gap: 14px;
  width: min(100%, 554px); padding: 16px; border-radius: 26px;
  background: #e5484d; color: #fff;
}
.lock .tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #ff7a6e, #e5484d); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.lock .text { flex: 1; min-width: 0; }
.lock .text strong { display: block; font-size: 17px; }
.lock .text span { font-size: 15px; opacity: 0.9; }
.lock .timer { font: 800 34px/1 var(--rounded); font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .w-medium { grid-column: 1 / -1; }
  .widget { height: auto; min-height: 150px; }
  .w-medium .count, .widget .count { font-size: 46px; }
  .lock .timer { font-size: 26px; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature h2 { font: 700 21px/1.25 var(--rounded); margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ff7a6e, #e5484d); color: #fff; font-size: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Text pages */
.page { padding: 24px 0 64px; max-width: 720px; }
.page h1 { font: 800 clamp(34px, 6vw, 48px)/1.1 var(--rounded); margin: 16px 0 8px; letter-spacing: -0.01em; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.page h2 { font: 700 22px/1.3 var(--rounded); margin: 36px 0 8px; }
.page p, .page li { color: var(--text); }
.page .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; font-size: 18px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .widget, .lock { transition: transform 0.25s ease; }
  .widget:hover { transform: translateY(-2px); }
}
