/* SimpDev — site styles
   Plain CSS, no build step. Light theme by default, dark theme via prefers-color-scheme. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #55627a;
  --heading: #0b1220;
  --brand: #2456d6;
  --brand-hover: #1c46b3;
  --brand-soft: #e6edfb;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf1e1;
  --tasklock: #16a34a;
  --subrotation: #0f9488;
  --leavesafe: #d97706;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121a2b;
    --surface-2: #182236;
    --border: #243049;
    --text: #e6ebf4;
    --muted: #9aa8c0;
    --heading: #f8fafc;
    --brand: #6f97ff;
    --brand-hover: #88a9ff;
    --brand-soft: #1a2747;
    --ok: #4ade80;
    --ok-soft: #12301f;
    --warn: #fbbf24;
    --warn-soft: #3a2a10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--heading);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 26px; height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--heading); text-decoration: none; }

.header__cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .header__cta .btn--ghost { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-hover); }

.btn--ghost {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--muted); }

.btn--link {
  padding: 8px 4px;
  color: var(--brand);
  background: transparent;
}

.btn--disabled {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

.btn svg { width: 18px; height: 18px; flex: none; }

/* Google Play badge (official artwork, hosted by Google) */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { opacity: 0.92; }

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

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__summary {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* App list shown beside the hero on wide screens */
.hero__apps {
  display: grid;
  gap: 12px;
}

.applink {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.applink:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.applink__name { font-weight: 700; color: var(--heading); }
.applink__desc { font-size: 14px; color: var(--muted); }
.applink__arrow { color: var(--muted); font-size: 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
}

/* ---------- App icon tiles ---------- */

.appicon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.appicon svg { width: 28px; height: 28px; }
.appicon img { width: 100%; height: 100%; object-fit: cover; }
.appicon--lg { width: 72px; height: 72px; border-radius: 18px; }
.appicon--lg svg { width: 38px; height: 38px; }

.appicon--subrotation { background: var(--subrotation); color: #fff; }
.appicon--leavesafe { background: var(--leavesafe); color: #fff; }
.appicon--tasklock { background: #0c2a6e; }

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

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 680px;
  margin-bottom: 32px;
}
.section__title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--soon { background: var(--warn-soft); color: var(--warn); }
.pill--dev { background: var(--brand-soft); color: var(--brand); }

/* ---------- App cards ---------- */

.grid--apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 960px) { .grid--apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--apps { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.appcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.appcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.appcard__title { font-size: 22px; font-weight: 800; margin-top: 14px; }
.appcard__tagline { color: var(--muted); font-size: 15px; margin-top: 2px; }
.appcard__desc { color: var(--text); font-size: 15px; flex: 1; }
.appcard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.appcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}
.appcard__links a { color: var(--muted); }
.appcard__links a:hover { color: var(--brand); }

/* ---------- App detail ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.detail__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.detail__title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.detail__sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.detail__lead { font-size: 17px; color: var(--text); margin-bottom: 24px; }
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.detail__legal { font-size: 14px; color: var(--muted); }
.detail__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.detail__legal a:hover { color: var(--brand); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
}
.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.subhead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}
.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.card + .card { margin-top: 16px; }
.card--soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }

/* ---------- About / contact ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.prose { color: var(--text); font-size: 16px; }
.prose p + p { margin-top: 14px; }

.contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 640px) { .trust { grid-template-columns: 1fr; } }
.trust__item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.trust__title { font-weight: 700; color: var(--heading); margin-bottom: 4px; font-size: 15px; }
.trust__body { color: var(--muted); font-size: 14px; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__blurb { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__links a { color: var(--text); font-size: 15px; }
.footer__links a:hover { color: var(--brand); }

.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Legal / policy pages ---------- */

.legal { padding: 48px 0 72px; }
.legal__wrap { max-width: 780px; margin: 0 auto; }

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 8px; }

.legal__title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.legal__meta strong { color: var(--text); font-weight: 600; }

.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
}
@media (max-width: 640px) { .policy { padding: 24px 20px; } }

.policy h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.policy h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy p { margin: 0 0 12px; }
.policy ul, .policy ol { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin: 4px 0; }
.policy li::marker { color: var(--muted); }
.policy strong { color: var(--heading); }

.policy__note {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text);
}

.legal__related {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

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