/* MyAgendaDesk landing page (Decision #85).
   Same palette as the app: warm off-white, navy ink, amber accent. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --raised: #f1ede3;
  --border: #e8e4da;
  --ink: #1a2238;
  --navy: #1a2748;
  --navy-deep: #131c38;
  --muted: #5d667a;
  --amber: #f2b544;
  --amber-ink: #8a5700;
  --amber-soft: #fdf1d6;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 1px 3px rgba(26, 34, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(19, 28, 56, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.125rem; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f7c35c; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); }

/* Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 0.95rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }

/* Hero --------------------------------------------------------------- */
.hero { background: var(--navy); color: #fff; padding: 72px 0 96px; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(242, 181, 68, 0.14);
  border: 1px solid rgba(242, 181, 68, 0.4);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.82); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); }

/* Device frames ------------------------------------------------------ */
.device-phone {
  background: #0c1329;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.device-phone img { border-radius: 26px; width: 100%; height: auto; }
.device-desktop { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.5); }
.device-desktop .bar { height: 26px; background: #ece8de; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.device-desktop .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc9b8; display: block; }
.device-desktop img { width: 100%; height: auto; }

.hero-visual { position: relative; width: 100%; aspect-ratio: 5 / 4; }
.hero-visual .device-desktop { position: absolute; right: 0; top: 0; width: 86%; }
.hero-visual .device-phone { position: absolute; left: 0; bottom: 0; width: 34%; }

/* Features ----------------------------------------------------------- */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
}
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1rem; }

/* Showcase rows ------------------------------------------------------ */
.showcase .row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.showcase .row.flip .copy { order: 2; }
.showcase h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.showcase p { color: var(--muted); font-size: 1.1rem; max-width: 460px; }
.showcase ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.showcase li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; }
.showcase li::before {
  content: '';
  flex: 0 0 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2238' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.stage { display: flex; justify-content: center; }
.stage .device-phone { width: min(290px, 70%); }
.stage .device-desktop { width: 100%; max-width: 560px; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(26, 34, 56, 0.16); }
.stage .device-phone { box-shadow: 0 18px 44px rgba(26, 34, 56, 0.28); }
.stage-duo { gap: 18px; align-items: flex-start; }
.stage-duo .device-phone { width: min(240px, 44%); }
.stage-duo .device-phone:nth-child(2) { margin-top: 44px; }

/* Family band -------------------------------------------------------- */
.family { background: var(--navy); color: #fff; }
.family .eyebrow { color: var(--amber); }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.family h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.family p { color: rgba(255, 255, 255, 0.8); font-size: 1.12rem; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 20px 22px; }
.step b { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.step span { font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); }

/* Pricing ------------------------------------------------------------ */
.pricing { background: var(--amber-soft); }
.price-card {
  max-width: 520px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 24px;
  padding: 38px 34px 34px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(138, 87, 0, 0.14);
}
.price-free { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--amber-ink); letter-spacing: 0.02em; }
.price-big { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 3.8rem); font-weight: 600; margin: 8px 0 2px; }
.price-big small { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.price-then { color: var(--muted); margin-bottom: 22px; }
.currency { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--raised); margin-bottom: 24px; }
.currency button {
  font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
}
.currency button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(26, 34, 56, 0.16); }
.price-list { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before {
  content: '';
  flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2238' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.price-card .btn { width: 100%; }
.price-small { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* Install ------------------------------------------------------------ */
.install { background: var(--surface); }
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; text-align: left; }
.install-card { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.install-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.install-card ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.install-note { margin-top: 28px; color: var(--muted); }

/* FAQ ---------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 44px auto 0; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--amber-ink); flex: none; }
details[open] summary::after { content: '\2212'; }
details p { color: var(--muted); padding: 0 0 18px; }

/* Final call --------------------------------------------------------- */
.final { background: var(--navy); color: #fff; text-align: center; padding: 80px 0; }
.final h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.final p { color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; font-size: 1.12rem; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); padding: 40px 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer .brand { color: #fff; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Privacy page ------------------------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.doc p, .doc li { color: #2e3650; }
.doc p { margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 6px; }
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.todo { background: #fff3cd; border-radius: 4px; padding: 0 4px; }

/* Reveal on scroll (only when JavaScript is on) ---------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .family-grid, .showcase .row { grid-template-columns: 1fr; gap: 40px; }
  .showcase .row { padding: 36px 0; }
  .showcase .row.flip .copy { order: 0; }
  .feature-grid, .install-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .feature-grid, .install-grid { grid-template-columns: 1fr; }
  /* the hero's two small device frames: smaller corners so they don't clip the pictures */
  .hero-visual .device-phone { border-radius: 14px; padding: 4px; }
  .hero-visual .device-phone img { border-radius: 10px; }
  .hero-visual .device-desktop { border-radius: 8px; }
  .hero-visual .device-desktop .bar { height: 14px; padding: 0 7px; gap: 4px; }
  .hero-visual .device-desktop .bar i { width: 5px; height: 5px; }
  .wrap { padding: 0 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stage-duo { flex-direction: column; align-items: center; }
  .stage-duo .device-phone { width: min(260px, 80%); }
  .stage-duo .device-phone:nth-child(2) { margin-top: 0; }
}
