/* MyLifeDock website (GitHub Pages): landing, guide, brochure, 404.
   Same palette as the app. No external fonts or scripts. */
:root {
  --bg: #090b10;
  --bg-soft: #0f1420;
  --card: #121827;
  --card-2: #161d2e;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9edf5;
  --muted: #9aa6ba;
  --accent: #38bdf8;
  --violet: #a78bfa;
  --green: #34d399;
  --gold: #facc15;
  --danger: #f87171;
  --radius: 16px;
  --max: 1160px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(92, 110, 255, 0.14), transparent 40%),
    radial-gradient(circle at 0% 30%, rgba(56, 189, 248, 0.06), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #04121c;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.brand b {
  background: linear-gradient(135deg, var(--violet), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a.btn-primary,
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

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

.btn-gold {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #111827;
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Sections */
section {
  padding: 84px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17.5px;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--violet) 0%, #60a5fa 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  margin: 18px auto 18px;
  max-width: 880px;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.045em;
}

.hero .lead {
  max-width: 700px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.trust-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 13.5px;
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  font-size: 22px;
}

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.025);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #d5dbe6;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: #d5dbe6;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-weight: 800;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* Pricing */
.currency-switch {
  display: inline-flex;
  margin: 0 auto 32px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.currency-switch button {
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.currency-switch button[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.plan.featured {
  border: 2px solid rgba(52, 211, 153, 0.6);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--card));
}

.plan.lifetime {
  border: 2px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08), var(--card));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #04130d;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.plan.lifetime .plan-badge {
  background: var(--gold);
  color: #1a1400;
}

.plan h3 {
  margin: 0;
}

.plan-price {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan .check-list {
  flex: 1;
}

.plan-offer {
  margin: -6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  font-size: 13.5px;
  font-weight: 600;
}

/* Site-wide offer banner (shown only while an offer is on) */
.offer-bar {
  display: block;
  padding: 10px 16px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.offer-bar:hover {
  text-decoration: underline;
}

.offer-bar[hidden] {
  display: none;
}

/* Checkout page */
.checkout {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.checkout h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
}

.checkout-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.plan-choices {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.plan-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.plan-choice:has(input:checked) {
  border-color: rgba(124, 58, 237, 0.8);
  background: rgba(124, 58, 237, 0.1);
}

.plan-choice input {
  margin-right: 10px;
  accent-color: #7c3aed;
}

.plan-choice .choice-name {
  flex: 1;
  font-weight: 700;
}

.plan-choice .choice-price {
  font-weight: 800;
  white-space: nowrap;
}

.plan-choice s {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 500;
}

.choice-offer {
  display: block;
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 600;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #161b26;
  color: var(--text);
  font: inherit;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.agree input {
  margin-top: 4px;
  accent-color: #7c3aed;
}

.checkout .btn-primary {
  width: 100%;
}

.checkout-status {
  margin-top: 14px;
  font-size: 14.5px;
}

.checkout-status.error {
  color: #fca5a5;
}

.checkout-success {
  padding: 22px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.08);
}

.plan .btn {
  width: 100%;
}

.pricing-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.06);
  color: #cbd5e1;
  font-size: 14.5px;
  text-align: center;
}

/* Download */
.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.download-card .platform-icon {
  font-size: 40px;
  line-height: 1;
}

.download-card p {
  flex: 1;
}

.status-pill {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.live {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}

/* Founder */
.founder {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), var(--card));
}

.founder img {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
}

.founder blockquote {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 17px;
  font-style: italic;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.faq summary {
  padding: 16px 18px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

/* Docs layout (guide) */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 80px;
}

.doc-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
}

.doc-toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.doc-toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
}

.doc h2 {
  margin: 56px 0 14px;
  padding-top: 8px;
  font-size: 28px;
  scroll-margin-top: 84px;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.doc p,
.doc li {
  color: #d1d8e3;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc kbd,
.doc .ui {
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.92em;
  white-space: nowrap;
}

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(56, 189, 248, 0.07);
  color: #d1d8e3;
}

.callout.warn {
  border-left-color: var(--gold);
  background: rgba(250, 204, 21, 0.07);
}

.callout.danger {
  border-left-color: var(--danger);
  background: rgba(248, 113, 113, 0.07);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--card-2);
  color: #fff;
}

tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 44px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 860px) {
  .site-nav .nav-optional {
    display: none;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .doc-toc {
    position: static;
    max-height: none;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
  }

  /* Two compact columns so the contents don't fill the first phone screen. */
  .doc-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
  }

  .doc-toc a {
    padding: 4px 6px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav .nav-secondary {
    display: none;
  }

  .founder {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Print (brochure) */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  :root {
    --bg: #fff;
    --card: #fff;
    --card-2: #f1f5f9;
    --bg-soft: #fff;
    --text: #0f172a;
    --muted: #475569;
    --border: #d5dbe3;
  }

  body {
    background: #fff;
    color: #0f172a;
    font-size: 11.5pt;
  }

  h1,
  h2,
  h3,
  .plan-price,
  .stat strong {
    color: #0f172a;
  }

  .gradient-text,
  .brand b {
    -webkit-text-fill-color: #4f46e5;
    color: #4f46e5;
  }

  .site-header,
  .site-footer .footer-links,
  .no-print,
  .skip-link {
    display: none !important;
  }

  section {
    padding: 18px 0;
    break-inside: avoid;
  }

  .card,
  .plan,
  .stat {
    break-inside: avoid;
    box-shadow: none;
  }

  .check-list li,
  .card p,
  .doc p,
  .doc li {
    color: #1e293b;
  }

  th {
    background: #eef2f7;
    color: #0f172a;
  }

  td {
    color: #1e293b;
  }

  a {
    color: #1d4ed8;
  }
}
