/* ==========================================================================
   Tasks: To Do List & Reminders — marketing site stylesheet
   ========================================================================== */

:root {
  --color-primary: #6c4fe0;
  --color-primary-dark: #5538c4;
  --color-primary-light: #8f78ea;
  --color-accent: #ffb020;
  --color-accent-dark: #e89a0f;
  --color-ink: #1b1530;
  --color-ink-soft: #4a4360;
  --color-muted: #6f6886;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f4fd;
  --color-bg-dark: #130f24;
  --color-border: #e7e3f5;
  --color-success: #1aa15c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(27, 21, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 21, 48, 0.1);
  --shadow-lg: 0 24px 64px rgba(27, 21, 48, 0.16);
  --max-width: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-head p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #fff;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, #3f2a9c 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.08);
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: rgba(255, 176, 32, 0.18);
  bottom: -140px;
  left: -80px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin: 1rem 0 1.1rem;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.hero-trust li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.hero-trust li a {
  color: #fff;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-stage {
  display: flex;
  gap: 1.1rem;
  align-items: flex-end;
}

.phone-stage .phone-mock:nth-child(2) {
  transform: translateY(-26px);
}

/* ---------- Phone mockup ---------- */

.phone-mock {
  width: 190px;
  aspect-ratio: 9 / 19.5;
  background: #0f0b1f;
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.phone-mock .phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.phone-mock .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-mock.lg {
  width: 230px;
}

/* ---------- Logo strip ---------- */

.logo-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-strip-inner span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.logo-strip-inner span svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

@media (max-width: 760px) {
  .logo-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip-inner span {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.96rem;
}

.card ul {
  color: var(--color-muted);
  font-size: 0.93rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

/* ---------- Steps / Guide ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #241703;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-num::before {
  content: counter(step);
}

.step h3 {
  margin: 0 0 0.35rem;
}

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

/* ---------- Screenshots ---------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}

.shot-card {
  text-align: center;
}

.shot-card figcaption {
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.shot-card .shot-desc {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-top: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Store badges ---------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #0f0b1f;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.9;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1rem;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Content pages (legal, about) ---------- */

.content-page {
  max-width: 820px;
  margin: 0 auto;
}

.content-page h2 {
  margin-top: 2.5rem;
}

.content-page h3 {
  margin-top: 1.75rem;
}

.content-page p,
.content-page li {
  color: var(--color-ink-soft);
}

.page-hero {
  padding: 3.25rem 0 2.5rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero .eyebrow {
  margin-bottom: 0.9rem;
}

.page-hero p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0.9rem auto 0;
}

.updated-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Utility ---------- */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-md);
  }

  .site-header {
    position: sticky;
  }

  .nav {
    position: relative;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-band {
    padding: 2.25rem 1.5rem;
  }

  .phone-stage .phone-mock:nth-child(2) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Scroll reveal (progressive enhancement, added via JS only) ---------- */

.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}
