/*
 * duetrack.co — the public site.
 *
 * Layout follows the attached template's rhythm: a full-bleed hero, alternating
 * white and tinted sections at generous vertical padding, a promo trio, a
 * screenshots strip and a pricing table. The palette is DueTrack's own rather
 * than the template's blue and green — the mark is a purple squircle with gold
 * sand in it, and a site in someone else's colours would not look like the app
 * it is selling.
 *
 * Hand-written CSS, no framework: this is three static pages that must load
 * instantly on a phone, and shipping a build system to style them would be the
 * expensive way to get a worse result.
 */

:root {
  --purple: #2C006B;
  --purple-lift: #3D0A8F;
  --gold: #F8B50F;
  --gold-ink: #412402;
  --ink: #1B1420;
  --body: #574C60;
  --muted: #7A6E84;
  --surface: #FFFFFF;
  --tint: #F7F3EA;
  --line: #E8E1D5;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(44, 0, 107, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }

p { margin: 0 0 16px; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
/* The header is sticky, so an anchor jump would otherwise land with the
   section heading hidden underneath it. */
section[id] { scroll-margin-top: 84px; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--purple); color: #E7DEF8; }
.section--ink h2, .section--ink h3 { color: #FFFDF8; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(44, 0, 107, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--ink .eyebrow { color: var(--gold); background: rgba(248, 181, 15, 0.14); }

.head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.head p { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 26px rgba(248, 181, 15, 0.35); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--purple { background: var(--purple); color: #FFFDF8; }
.btn--purple:hover { background: var(--purple-lift); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.section--ink .btn--ghost { border-color: rgba(255, 253, 248, 0.35); color: #FFFDF8; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Epilogue', sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--purple); text-decoration: none; }
.nav .btn { padding: 10px 20px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(248, 181, 15, 0.20), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(44, 0, 107, 0.12), transparent 62%),
    var(--tint);
  padding: 84px 0 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lede { font-size: 1.15rem; max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.hero-shot { display: flex; justify-content: center; align-items: flex-end; }
.phone {
  width: 300px;
  border-radius: 38px;
  border: 10px solid #1B1420;
  background: #1B1420;
  box-shadow: 0 30px 70px rgba(27, 20, 32, 0.34);
  overflow: hidden;
}
.phone img { border-radius: 28px; }

/*
 * A phone screenshot is over twice as tall as it is wide, so left to itself it
 * stretches the hero to about 1400px and strands the headline in the middle of
 * an empty column. Cap the frame and let the screen crop from the bottom — the
 * top of the vault is the part worth showing anyway.
 */
.hero .phone { height: 560px; }
.hero .phone img { height: 100%; object-fit: cover; object-position: top; }
.split .phone { height: 520px; }
.split .phone img { height: 100%; object-fit: cover; object-position: top; }
.shot .phone { height: 480px; }
.shot .phone img { height: 100%; object-fit: cover; object-position: top; }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card--plain { background: transparent; border: 0; padding: 0; }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(44, 0, 107, 0.08);
  margin-bottom: 16px;
  font-size: 22px;
}
.card p { margin: 0; font-size: 0.98rem; }

/* Split content ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12, 163, 12, 0.12);
  color: #0a7a0a;
  font-size: 13px; font-weight: 900;
}
.section--ink .checklist li::before { background: rgba(248, 181, 15, 0.18); color: var(--gold); }

/* Screenshots ------------------------------------------------------------ */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 280px; margin: 0 auto 16px; }
.shot h3 { font-size: 1rem; margin-bottom: 4px; }
.shot p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--gold); box-shadow: var(--shadow); position: relative; }
.plan--featured::after {
  content: 'Most popular';
  position: absolute; top: -13px; right: 26px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.plan .price { font-family: 'Epilogue', sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--ink); line-height: 1; }
.plan .per { font-size: 0.9rem; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0; padding: 0; }
.plan li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 0.96rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: #0a7a0a; font-weight: 900; }
.plan li.no::before { content: '·'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.plan .btn { margin-top: auto; justify-content: center; }

.billing-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.billing-option { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); }
.billing-option.is-best { border-color: var(--gold); border-width: 2px; }
.billing-option .name { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.billing-option .amount { font-family: 'Epilogue', sans-serif; font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1.2; }
.billing-option .detail { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple); font-weight: 900; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 12px 0 0; font-size: 0.98rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #17111C; color: #A99CB4; padding: 56px 0 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #FFFDF8; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #C9BDD4; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .brand { color: #FFFDF8; margin-bottom: 12px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }

/* Legal pages ------------------------------------------------------------ */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal .callout {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lede { max-width: none; }
  .grid--3, .grid--2, .shots, .plans, .billing-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .shot .phone { max-width: 260px; height: 440px; }
  .hero .phone { height: 460px; }
  .split .phone { height: 440px; }
}
