:root {
  /* Dark theme (default, Reckon's signature look) */
  --bg: #0a0b0d;
  --bg-alt: #0d0f12;
  --bg-card: #16181c;
  --bg-card-2: #1c1f24;
  --line: #2a2e34;
  --text: #f4f6f8;
  --text-dim: #cbd2d8;            /* secondary: kept light on dark, never dim grey */
  --green: #3ddc84;               /* since / ago (text accent) */
  --blue: #34b8ff;                /* until / due (text accent + links) */
  --accent: #ffd23f;             /* now / eyebrow */
  --grad: linear-gradient(100deg, #3ddc84 0%, #34b8ff 100%);   /* bright: buttons, glow */
  --grad-text: linear-gradient(100deg, #3ddc84 0%, #34b8ff 100%); /* gradient text */
  --radius: 16px;
  --maxw: 960px;
}

/* Light theme: follows the visitor's system setting, mirrors the app's two themes.
   Accents are deepened so green/blue/amber stay readable on white. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-alt: #eef0f3;
    --bg-card: #ffffff;
    --bg-card-2: #f1f3f6;
    --line: #d9dde2;
    --text: #15181c;
    --text-dim: #4a5560;
    --green: #0f9b50;            /* deepened for contrast on white */
    --blue: #1077c7;
    --accent: #a86a00;          /* deep amber: yellow is invisible on white */
    --grad-text: linear-gradient(100deg, #0f9b50 0%, #1077c7 100%);
    /* --grad stays bright: it fills the button (dark text on it) and the icon glow */
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 14px;
}
.site-header__logo { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.site-header__logo img { width: 36px; height: 36px; border-radius: 9px; }
.site-header__logo:hover { text-decoration: none; }
.site-header .spacer { flex: 1; }
.site-header a.nav { color: var(--text-dim); font-size: 0.95rem; }

/* Hero */
.hero { text-align: center; padding: 72px 24px 56px; }
.hero__icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 60px rgba(52,184,255,0.25); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.1; margin: 28px 0 14px; letter-spacing: -0.02em;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.2rem; color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  background: var(--grad); color: #07210f; box-shadow: 0 6px 24px rgba(52,184,255,0.25);
}
.btn:hover { text-decoration: none; opacity: 0.93; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }

/* Section */
section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; margin: 0 0 18px; }
.center { text-align: center; }
.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature h3 .since { color: var(--green); }
.feature h3 .until { color: var(--blue); }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.98rem; }

/* Screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 24px 20px; scroll-snap-type: x mandatory; }
.shots img {
  width: 230px; flex: 0 0 auto; border-radius: 22px; border: 1px solid var(--line);
  scroll-snap-align: center; background: #000;
}

/* Support / contact */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; max-width: 560px; margin: 0 auto;
}
label { display: block; font-size: 0.9rem; font-weight: 500; margin: 16px 0 6px; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card-2); color: var(--text); font: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
.card .btn { margin-top: 20px; border: 0; cursor: pointer; }
.hide { display: none; }
.muted { color: var(--text-dim); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.site-footer small { color: var(--text-dim); }
.site-footer a { color: var(--text-dim); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p { color: var(--text-dim); }
