/* Task Timer Pro — site styles */

:root {
  color-scheme: light dark;

  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-card:       #ffffff;
  --text:          #1d1d1f;
  --text-muted:    #6e6e73;
  --border:        rgba(0, 0, 0, 0.10);
  --accent:        #448fff;
  --accent-hover:  #2f74e0;
  --accent-soft:   rgba(68, 143, 255, 0.12);
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  --nav-bg:        rgba(255, 255, 255, 0.72);
  --radius:        18px;
  --maxw:          1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #000000;
    --bg-alt:       #101012;
    --bg-card:      #17171a;
    --text:         #f5f5f7;
    --text-muted:   #98989d;
    --border:       rgba(255, 255, 255, 0.12);
    --accent:       #6aa6ff;
    --accent-hover: #85b8ff;
    --accent-soft:  rgba(106, 166, 255, 0.16);
    --shadow:       0 1px 3px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.6);
    --nav-bg:       rgba(0, 0, 0, 0.66);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img, .brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 14px; color: var(--text-muted); text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 72px;
  background:
    radial-gradient(760px 340px at 50% -60px, var(--accent-soft), transparent 70%);
}
.app-icon {
  width: 116px; height: 116px; margin: 0 auto 26px;
  border-radius: 26px; box-shadow: var(--shadow);
}
h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
}
.tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-muted);
  max-width: 620px; margin: 0 auto 34px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
}
.appstore-badge { height: 54px; width: auto; }
.appstore-badge:hover { opacity: .85; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 980px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.req { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.02em; font-weight: 700;
  margin: 0 0 14px; text-align: center;
}
.section-sub {
  text-align: center; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 48px;
}

/* ---------- Features ---------- */
.features {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Screenshot ---------- */
.shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--bg-card);
  max-width: 420px;
  margin: 0 auto;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
  background:
    repeating-linear-gradient(45deg, var(--bg-alt) 0 12px, transparent 12px 24px);
}

/* ---------- Prose (support / privacy) ---------- */
.page-head { max-width: 720px; padding: 64px 24px 8px; text-align: left; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 44px); margin-bottom: 10px; }
.page-head p { color: var(--text-muted); margin: 0; }
.prose { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.prose h2 { text-align: left; font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; font-weight: 600; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .muted { color: var(--text-muted); font-size: 14px; }
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-muted); font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--text-muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-muted); font-size: 14px;
}
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
}
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding: 60px 0 52px; }
  section { padding: 56px 0; }
  .nav-links { gap: 16px; }
}
