/* Chirp Timer — chirptimer.com
   Ink & mint "field guide" palette drawn from the app icon,
   chirp tick colors drawn from the app's chirp picker. */

:root {
  --ink: #263849;
  --ink-soft: #46596c;
  --paper: #eef6f4;
  --paper-raised: #ffffff;
  --line: #cfe0dc;
  --accent: #0a84ff;
  --chirp-red: #ff453a;
  --chirp-orange: #ff9f0a;
  --chirp-yellow: #ffd60a;
  --chirp-green: #30d158;
  --chirp-blue: #0a84ff;
  --shadow: 0 18px 40px -18px rgba(38, 56, 73, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f1ef;
    --ink-soft: #a7b8b4;
    --paper: #17222c;
    --paper-raised: #1f2d3a;
    --line: #33475a;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    Quicksand, Comfortaa, Manjari, "Arial Rounded MT", "Arial Rounded MT Bold",
    Calibri, source-sans-pro, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 8px;
}

header.site img { width: 44px; height: auto; }

header.site .name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 24px;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 7fr 5fr; padding: 72px 0 40px; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  animation: rise 0.7s ease both;
}

.hero h1 .tick-word { white-space: nowrap; }

.hero p.pitch {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  animation: rise 0.7s 0.12s ease both;
}

.hero .cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: rise 0.7s 0.24s ease both;
}

.hero .cta img.badge { height: 54px; width: auto; display: block; }

.hero .cta .free {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.phone {
  justify-self: center;
  animation: rise 0.9s 0.2s ease both;
}

.phone img {
  width: min(290px, 70vw);
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

/* the signature motif: a timer track with colored chirp ticks */
.track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  margin: 40px 0 8px;
  overflow: visible;
}

.track .fill {
  position: absolute;
  inset: 0;
  width: 62%;
  border-radius: 7px;
  background: linear-gradient(90deg,
    var(--chirp-green), var(--chirp-blue));
  opacity: 0.85;
  animation: fill 2.4s ease both;
}

.track .tick {
  position: absolute;
  top: -8px;
  width: 6px;
  height: 30px;
  border-radius: 3px;
}

@keyframes fill { from { width: 0; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p.pitch, .hero .cta, .phone, .track .fill { animation: none; }
}

/* features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

.feature {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
}

.feature .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.feature h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature p { color: var(--ink-soft); font-size: 1rem; }

/* support */
.support {
  text-align: center;
  padding: 40px 0 72px;
}

.support img { width: 64px; height: auto; margin-bottom: 12px; }

.support h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

.support p { color: var(--ink-soft); margin-top: 8px; }

.support a { color: var(--accent); font-weight: 600; text-decoration: none; }
.support a:hover { text-decoration: underline; }

/* legal pages */
main.legal { padding: 24px 0 72px; max-width: 760px; }

main.legal h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 4px;
}

main.legal .date { color: var(--ink-soft); margin-bottom: 28px; }

main.legal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

main.legal p, main.legal li { color: var(--ink-soft); margin-bottom: 12px; }

main.legal ul { padding-left: 22px; margin-bottom: 12px; }

main.legal a { color: var(--accent); }

main.legal .summary {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 5px solid var(--chirp-green);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 8px;
}

main.legal .summary p:last-child, main.legal .summary li:last-child { margin-bottom: 0; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer.site nav { display: flex; gap: 20px; }

footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* 404 */
.lost {
  text-align: center;
  padding: 96px 0 120px;
}
.lost h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.lost p { color: var(--ink-soft); margin: 12px 0 24px; }
.lost a { color: var(--accent); font-weight: 600; text-decoration: none; }
