:root {
  color-scheme: light;
  --ink:        #0f1623;
  --muted:      #5b6880;
  --line:       #e2e8f2;
  --panel:      #f5f7ff;
  --brand:      #5b6cf9;
  --brand-dark: #3b4de8;
  --green:      #22c55e;
  --orange:     #f97316;
  --red:        #ef4444;
  --white:      #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand,
nav,
footer p:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand { font-weight: 800; color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-size: 1.1rem;
}

nav { font-size: 0.94rem; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,420px);
  align-items: center;
  gap: clamp(32px,7vw,92px);
  padding: clamp(56px,8vw,96px) clamp(20px,5vw,72px);
  background:
    linear-gradient(125deg, rgba(91,108,249,0.09), rgba(34,197,94,0.06)),
    var(--panel);
}

.hero-copy { max-width: 720px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }

h1 {
  margin: 0;
  font-size: clamp(3rem,8vw,6.8rem);
}

h2 { margin: 0 0 12px; font-size: 1.35rem; }

.lead {
  margin: 24px 0 0;
  font-size: clamp(1.05rem,2vw,1.28rem);
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
  font-size: 0.97rem;
  transition: opacity 0.15s;
}
.button:hover { opacity: 0.82; text-decoration: none; }
.button.primary {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
.button svg { flex-shrink: 0; }

/* ── App Store Badge ── */
.appstore-badge {
  display: inline-block;
  height: 44px;
}
.appstore-badge img { height: 100%; display: block; }

/* ── Phone mock ── */
.phone-mock {
  width: min(100%, 360px);
  margin: auto;
  padding: 20px 16px 24px;
  border: 9px solid #1a1f2e;
  border-radius: 36px;
  background: #f8f9ff;
  box-shadow: 0 28px 80px rgba(15,22,35,0.22);
}

.phone-bar {
  width: 80px;
  height: 5px;
  margin: 0 auto 20px;
  border-radius: 99px;
  background: #ced4e0;
}

/* Timer card inside phone */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-header span { font-size: 1.1rem; font-weight: 800; }
.app-header button {
  width: 28px; height: 28px;
  border: none; border-radius: 7px;
  background: var(--brand); color: white;
  font-size: 1.2rem; cursor: default;
  display: grid; place-items: center;
}

.timer-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(15,22,35,0.06);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.card-name { font-weight: 700; font-size: 0.88rem; }
.card-close { color: #ced4e0; font-size: 1rem; }

.timer-ring-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ring-svg { flex-shrink: 0; }

.timer-time {
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.card-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.card-btn {
  flex: 1;
  height: 32px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: default;
}
.card-btn.green  { background: var(--green);  color: white; }
.card-btn.outline { background: var(--line); color: var(--ink); }

.sw-time {
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin: 6px 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sw-lap { font-size: 0.72rem; color: var(--muted); text-align: center; margin-bottom: 8px; }

/* ── Feature grid ── */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  padding: 56px clamp(20px,5vw,72px);
}

.section-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.section-grid .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section-grid p { color: var(--muted); margin: 0; }

/* ── Documents ── */
.document {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}
.document h1 { font-size: clamp(2.4rem,7vw,4.5rem); margin-bottom: 16px; }
.document h2 { margin-top: 36px; }
.document p, .document li { color: var(--muted); }

/* ── Footer ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px,4vw,56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .section-grid { grid-template-columns: 1fr; }
}
