/* Busy Day Planner: one shared stylesheet for every page. Plain CSS, system fonts, no build step.
   Colours follow the Agenda Duo App Store pictures: a blue-to-violet header, clean white below. */

:root {
  --blue: #2e6fe6;          /* rgb(46,111,230), top of the header */
  --violet: #7850c8;        /* rgb(120,80,200), bottom of the header */
  --ink: #15182a;
  --muted: #464c63;
  --bg: #ffffff;
  --soft: #f2f5fc;
  --card: #ffffff;
  --line: #d9dfec;
  --link: #1c52bd;
  --accent: #2e6fe6;
  --focus: #ffbf1f;
  --shadow: 0 8px 28px rgba(30, 40, 90, .12);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f3fa;
    --muted: #c3c9da;
    --bg: #10121b;
    --soft: #181b28;
    --card: #1b1f2e;
    --line: #313852;
    --link: #a3c2ff;
    --accent: #7ea6ff;
    --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: #fff; color: #15182a; font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------- Blue header ---------- */

.hero {
  background: linear-gradient(170deg, var(--blue) 0%, var(--violet) 100%);
  color: #fff;
}
.hero a { color: #fff; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 18px; padding: 14px 0 6px;
}
.brand {
  font-weight: 800; font-size: 21px; letter-spacing: -.2px; text-decoration: none;
  padding: 8px 0; display: inline-flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: underline; }
.topnav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.topnav a {
  display: inline-block; padding: 10px 12px; min-height: 48px; line-height: 28px;
  font-weight: 650; font-size: 18px; text-decoration: none; border-radius: 12px;
}
.topnav a:hover { background: rgba(255, 255, 255, .16); }
.topnav a[aria-current="page"] { background: rgba(255, 255, 255, .22); }

.hero-body { padding: 34px 0 52px; text-align: center; }
.hero h1 {
  margin: 0 auto; max-width: 18ch;
  font-size: clamp(36px, 7.4vw, 60px); line-height: 1.1; font-weight: 800; letter-spacing: -1px;
}
.hero .lead {
  margin: 16px auto 0; max-width: 32ch;
  font-size: clamp(21px, 3.6vw, 26px); line-height: 1.4; color: #fff; opacity: .96;
}
.hero-icon {
  display: block; margin: 0 auto 20px; width: 120px; height: 120px;
  border-radius: 27px; box-shadow: 0 10px 30px rgba(10, 10, 60, .35);
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 30px; border-radius: 999px;
  font-size: 20px; font-weight: 750; text-decoration: none; line-height: 1.2;
  background: var(--blue); color: #fff;
  box-shadow: 0 6px 18px rgba(46, 111, 230, .35);
}
.btn:hover { background: #2160d4; text-decoration: underline; }
.btn-light { background: #fff; color: #1f4fb8; box-shadow: 0 6px 18px rgba(10, 10, 60, .25); }
.hero a.btn-light { color: #1f4fb8; }
.btn-light:hover { background: #eef3ff; }
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* "Coming soon" is a label, not a link. */
.soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 26px; border-radius: 999px;
  font-size: 20px; font-weight: 750; line-height: 1.2;
  background: rgba(10, 12, 40, .32); color: #fff; border: 2px solid rgba(255, 255, 255, .55);
}
.soon .dot { width: 12px; height: 12px; border-radius: 50%; background: #ffd25a; flex: none; }
.soon-note { margin: 12px auto 0; font-size: 18px; opacity: .95; max-width: 46ch; }
.nowrap { white-space: nowrap; }
.hero-body.tall { padding-bottom: 84px; }

/* ---------- Content ---------- */

main { display: block; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.soft { background: var(--soft); border-top: 0; }

h2 { font-size: clamp(28px, 4.6vw, 38px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.5px; }
h3 { font-size: 23px; line-height: 1.3; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.big { font-size: 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

ul.ticks { padding: 0; margin: 0 0 16px; list-style: none; }
ul.ticks li { position: relative; padding-left: 36px; margin: 10px 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 18px; height: 10px;
  border-left: 4px solid var(--accent); border-bottom: 4px solid var(--accent); transform: rotate(-45deg);
}

/* Home: one big app card */
.app-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 30px; box-shadow: var(--shadow); margin: -38px auto 0; max-width: 760px; position: relative;
}
.app-card img { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 6px 18px rgba(20, 20, 70, .2); }
.app-card h2 { margin: 0 0 6px; font-size: clamp(26px, 4.4vw, 34px); }
.app-card p { margin: 0 0 4px; font-size: 21px; }
.app-card .tag { display: block; margin-top: 8px; font-size: 17px; font-weight: 650; color: var(--muted); }
.app-card .btn { margin-top: 18px; }
.more-apps { text-align: center; padding: 56px 0 64px; }
.more-apps p { font-size: 22px; color: var(--muted); margin: 0; }

/* Agenda Duo: feature rows with phone pictures */
.feature { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.feature .text { max-width: 640px; }
.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 0; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 270px; border-radius: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.shots.two img { width: 250px; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr auto; gap: 48px; }
  .feature.flip { grid-template-columns: auto 1fr; }
  .feature.flip .text { order: 2; }
  .feature.flip .shots { order: 1; }
}
@media (max-width: 600px) {
  .shots { flex-direction: column; align-items: center; gap: 22px; }
  .shots figure { width: 100%; max-width: 300px; }
  .shots.two img, .shots img { width: 100%; border-radius: 22px; }
}

.plus-box {
  background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 26px 26px 14px; box-shadow: var(--shadow);
}
.plus-box .price-note { font-size: 22px; font-weight: 750; margin-bottom: 8px; }

.link-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 10px; }
.link-cards a {
  display: block; padding: 22px 24px; min-height: 64px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
}
.link-cards a:hover { border-color: var(--accent); }
.link-cards strong { display: block; font-size: 22px; color: var(--link); }
.link-cards span { color: var(--muted); font-size: 18px; }

/* Help: guides with big numbered steps */
.toc { background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0 10px; }
.toc h2 { font-size: 24px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 28px; }
.toc li { margin: 8px 0; font-size: 20px; }
.toc a { font-weight: 650; }

.guide { padding: 40px 0 10px; scroll-margin-top: 16px; }
.guide + .guide { border-top: 1px solid var(--line); }
.guide h2 { margin-bottom: 8px; }
.guide .intro { font-size: 20px; }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 6px 0 0 76px; min-height: 58px; margin: 0 0 22px;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue), var(--violet)); color: #fff;
  font-size: 28px; font-weight: 800;
}
ol.steps h3 { margin: 6px 0 4px; font-size: 21px; }
.steps-label { font-size: 21px; font-weight: 750; margin: 26px 0 0; }

.path { font-weight: 700; }
.tip {
  background: var(--soft); border-left: 6px solid var(--accent); border-radius: 12px;
  padding: 16px 20px; margin: 18px 0 22px;
}
.tip p:last-child { margin-bottom: 0; }
.share-line { font-size: 17px; color: var(--muted); margin: 10px 0 0; }
.share-line a { color: var(--muted); }
.share-line code { font-size: 16px; background: var(--soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.print-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 10px 22px; margin-top: 18px;
  font: inherit; font-size: 19px; font-weight: 700; color: #fff; cursor: pointer;
  background: transparent; border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px;
}
.print-btn:hover { background: rgba(255, 255, 255, .14); }

/* Support */
.mailcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px; text-align: center; margin: -38px auto 0; position: relative;
}
.mailcard h2 { font-size: 22px; margin: 0 0 6px; }
.mailcard .addr { font-size: clamp(24px, 5.6vw, 32px); font-weight: 800; word-break: break-all; }
.mailcard p { margin: 12px 0 0; }
.faq h3 { margin-top: 30px; }

/* Privacy policy */
.policy .app { font-weight: 750; font-size: 21px; margin: 0 0 2px; }
.policy .updated { color: var(--muted); margin: 0 0 10px; }
.policy h2 { font-size: 27px; margin: 38px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.policy ul { padding-left: 26px; }
.policy li { margin: 10px 0; }
.policy .lead-box {
  background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 22px 0;
}
.policy .governing { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 18px; }

/* 404 */
.notfound { padding: 56px 0 72px; text-align: center; }
.notfound .btn { margin: 8px; }

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

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 30px 0 38px; text-align: center; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.site-footer nav li + li::before { content: "·"; color: var(--muted); margin-right: 8px; }
.site-footer nav a { display: inline-block; padding: 10px 6px; font-weight: 650; font-size: 19px; }
.site-footer .copy { margin: 10px 0 0; color: var(--muted); font-size: 17px; }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .wrap { padding: 0 18px; }
  .hero-body { padding: 22px 0 46px; }
  .app-card { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; justify-items: center; }
  .app-card .btn { width: 100%; }
  .soon { padding: 14px 18px; font-size: 19px; }
  .btn, .soon { width: 100%; max-width: 420px; }
  .section { padding: 38px 0; }
  ol.steps > li { padding-left: 68px; }
  ol.steps > li::before { width: 50px; height: 50px; font-size: 25px; }
}

/* ---------- Printing (mainly for the Help guides) ---------- */

@media print {
  :root { --ink: #000; --muted: #333; --bg: #fff; --soft: #fff; --card: #fff; --line: #999; --link: #000; }
  body { font-size: 13pt; line-height: 1.45; background: #fff; color: #000; }
  .skip, .topnav, .print-btn, .hero-actions, .share-line, .site-footer nav, .no-print { display: none !important; }
  .hero { background: none; color: #000; border-bottom: 2pt solid #000; }
  .hero a, .hero .lead { color: #000; }
  .hero-body { padding: 8pt 0 12pt; text-align: left; }
  .hero h1 { font-size: 24pt; max-width: none; margin: 0; }
  .hero .lead { margin: 6pt 0 0; max-width: none; font-size: 14pt; }
  .topbar { padding: 0; }
  .brand { font-size: 12pt; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .section, .guide { padding: 14pt 0 4pt; }
  .toc { padding: 8pt 0; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  ol.steps > li, .tip, figure { break-inside: avoid; page-break-inside: avoid; }
  ol.steps > li { padding-left: 46pt; min-height: 34pt; margin-bottom: 12pt; }
  ol.steps > li::before {
    width: 32pt; height: 32pt; font-size: 17pt; background: #fff; color: #000; border: 2pt solid #000;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .tip { border-left: 4pt solid #000; }
  .shots img, .app-card, .mailcard, .plus-box, .link-cards a { box-shadow: none; }
  a { text-decoration: none; }
  .site-footer { background: none; border-top: 1pt solid #999; padding: 8pt 0; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* Setup video on the help page: phone-shaped, never wider than the page. */
.setup-video { display: block; width: 100%; max-width: 360px; height: auto; margin: 12px auto; border-radius: 18px; background: #000; }
@media print { .video-guide { display: none; } }
