/* =========================================================
   TaskStreak — shared site styles
   Brand: warm orange, clean & modern, light UI
   ========================================================= */

:root {
  --orange: #ff7300;
  --orange-deep: #f54419;
  --ink: #14151a;
  --ink-soft: #3a3d46;
  --muted: #6b7180;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-warm: #fff6ef;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(20, 21, 26, .05);
  --shadow-md: 0 12px 40px rgba(20, 21, 26, .10);
  --shadow-warm: 0 24px 60px rgba(245, 68, 25, .28);
  --grad: linear-gradient(135deg, #ff8a00 0%, #f54419 100%);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(245, 68, 25, .35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--orange-deep); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(245, 68, 25, .3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(245, 68, 25, .4); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: #d9d9e2; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(255, 138, 0, .16), transparent 60%),
    radial-gradient(50% 50% at 8% 20%, rgba(245, 68, 25, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  color: var(--orange-deep); background: var(--bg-warm); border: 1px solid #ffe0cc;
  padding: 7px 14px; border-radius: 999px; letter-spacing: .01em;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.03em;
  font-weight: 850; margin: 20px 0 18px;
}
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- Phone frame ---------- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone {
  border-radius: 40px; padding: 10px; background: #101114;
  box-shadow: var(--shadow-warm); border: 1px solid #26262c;
}
.phone img { border-radius: 30px; width: 236px; height: auto; display: block; }
.phone.lift { transform: translateY(-26px) rotate(-3deg); }
.phone.lift-r { transform: translateY(-8px) rotate(3deg); }
.hero .phones .phone.main { transform: scale(1.02); z-index: 2; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.025em; font-weight: 820; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 17.5px; margin-top: 14px; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-warm); color: var(--orange-deep);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 18.5px; letter-spacing: -.01em; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.shot { text-align: center; }
.shot .phone { display: inline-block; padding: 9px; }
.shot .phone img { width: 100%; max-width: 250px; }
.shot h3 { margin-top: 22px; font-size: 19px; letter-spacing: -.01em; }
.shot p { color: var(--muted); font-size: 15px; margin-top: 6px; padding: 0 8px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 850; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-band { padding: 92px 0; }
.cta-card {
  background: var(--grad); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center;
  color: #fff; box-shadow: var(--shadow-warm); position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; font-weight: 840; }
.cta-card p { opacity: .95; font-size: 18px; margin: 14px auto 30px; max-width: 520px; }
.cta-card .btn-ghost { background: #fff; color: var(--orange-deep); }

/* ---------- Footer ---------- */
.footer { background: #0f1013; color: #c7c9d1; padding: 60px 0 34px; }
.footer a { color: #c7c9d1; }
.footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .brand { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; opacity: .7; }
.footer-col a { display: block; font-size: 15px; margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #24252b; margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: #8a8d97; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 56px 0 30px; background: var(--bg-warm); border-bottom: 1px solid #ffe4d3; }
.doc-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; font-weight: 840; }
.doc-hero .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc { max-width: 780px; margin: 0 auto; padding: 50px 24px 90px; }
.doc h2 { font-size: 23px; letter-spacing: -.015em; margin: 38px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc .callout {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.toc a { display: inline-block; margin: 4px 14px 4px 0; font-weight: 600; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; padding-bottom: 18px; }

.contact-card {
  text-align: center; background: var(--bg-warm); border: 1px solid #ffe0cc;
  border-radius: var(--radius-lg); padding: 44px 30px; margin: 46px auto 0; max-width: 640px;
}
.contact-card h3 { font-size: 24px; letter-spacing: -.02em; }
.contact-card p { color: var(--muted); margin: 10px 0 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .phones { margin-top: 46px; }
  .features, .showcase-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 34px; }
  .nav-links { display: none; }
  .nav-links.compact { display: flex; gap: 18px; }
  .nav-links.compact a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .phone.lift, .phone.lift-r { transform: none; }
  .phones { flex-direction: column; align-items: center; }
  .cta-card { padding: 44px 24px; }
}
