/* TabToTake website — same colours as the app: grey, navy, golden-yellow accent. */
:root {
  --text: #161b2e;
  --muted: #59607a;
  --canvas: #e8ebf2;
  --page: #ffffff;
  --card: #f3f5fa;
  --border: #c3cae3;
  --navy: #1f2d63;
  --on-navy: #ffffff;
  --yellow: #f6c343;
  --on-yellow: #1b2552;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f1f3;
    --muted: #a9a9b2;
    --canvas: #121214;
    --page: #1c1c1f;
    --card: #28282c;
    --border: #3c3c43;
    --navy: #a9b9f7;
    --on-navy: #121a40;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--navy); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

header.site {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 32px 24px 40px;
  background: var(--page);
  border-radius: 28px;
}
@media (max-width: 600px) {
  main { border-radius: 20px; margin: 0 8px 24px; padding: 24px 16px 32px; }
}

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 8px; color: var(--navy); }
h3 { font-size: 18px; margin: 20px 0 4px; }
p, li { max-width: 68ch; }
.lead { font-size: 19px; color: var(--muted); }
.updated { color: var(--muted); font-size: 15px; }

.hero { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr auto; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 24px 0; }
.card { background: var(--card); border-radius: 20px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.note {
  background: var(--card);
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 20px 0;
}
.button {
  display: inline-block;
  background: var(--navy);
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 16px;
  margin: 4px 8px 4px 0;
}
.button.soon { background: var(--card); color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer.site {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--muted);
  font-size: 14px;
}
footer.site a { color: var(--muted); }

/* ---------- Phone mock-ups of the app (made in HTML, so they stay sharp and follow dark mode) ---------- */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 260px;
  border-radius: 40px;
  padding: 10px;
  background: #11141f;
  box-shadow: 0 24px 60px rgba(22, 27, 46, 0.25);
  flex: none;
}
.screen {
  border-radius: 31px;
  background: #e8ebf2;
  color: #161b2e;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  min-height: 500px;
}
.screen .top { padding: 18px 16px 12px; }
.screen .date { color: #59607a; font-size: 12px; }
.screen .title { font-size: 22px; font-weight: 800; margin: 2px 0 10px; }
.pills { display: flex; gap: 6px; }
.pill { flex: 1; text-align: center; background: #fff; border-radius: 12px; padding: 6px 0; font-size: 11px; color: #59607a; }
.pill b { display: block; font-size: 15px; color: #161b2e; }
.pill.on { background: #f6c343; color: #1b2552; }
.pill.on b { color: #1b2552; }
.sheet { background: #fff; border-radius: 24px 24px 0 0; padding: 14px 12px 18px; min-height: 360px; }
.slot { font-weight: 700; color: #1f2d63; font-size: 13px; margin: 6px 4px; }
.dose { border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; background: #f3f5fa; }
.dose .row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.dose .name { font-size: 15px; font-weight: 800; margin: 2px 0; }
.dose .sub { font-size: 12px; color: #59607a; }
.dose.due { background: #1f2d63; color: #fff; }
.dose.due .sub { color: #cbd3f0; }
.dose.taken { background: #e7f5ec; }
.dose.taken .row span:last-child { color: #1b7f45; }
.btns { display: flex; gap: 6px; margin-top: 8px; }
.btns span { flex: 1; text-align: center; border-radius: 12px; padding: 7px 0; font-weight: 700; font-size: 12px; }
.btns .take { flex: 2; background: #fff; color: #1f2d63; }
.btns .skip { border: 1px solid #cbd3f0; color: #fff; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 44px 0; }
.feature.flip .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
@media (max-width: 700px) {
  .feature { grid-template-columns: 1fr; gap: 16px; margin: 32px 0; }
  .feature.flip .feature-art { order: 0; }
}

.mock { width: 100%; max-width: 320px; background: #fff; color: #161b2e; border-radius: 22px; padding: 16px; box-shadow: 0 14px 40px rgba(22, 27, 46, 0.14); font-size: 13px; }
.mock h4 { margin: 0 0 8px; font-size: 15px; }
.flag { display: inline-block; background: #fce4d0; color: #c2570a; font-weight: 700; font-size: 11px; border-radius: 8px; padding: 2px 8px; }
.field { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e3e7f2; }
.field:last-of-type { border-bottom: 0; }
.field span:first-child { color: #59607a; }
.field.check { background: #fff7ef; margin: 0 -8px; padding: 7px 8px; border-radius: 8px; }
.tick { margin-top: 10px; font-weight: 700; color: #1f2d63; }

.notif { width: 100%; max-width: 320px; background: rgba(255, 255, 255, 0.92); color: #161b2e; border-radius: 20px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(22, 27, 46, 0.16); display: grid; grid-template-columns: 36px 1fr; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.notif img { width: 36px; height: 36px; border-radius: 9px; }
.notif .app { color: #59607a; font-size: 11px; }
.notif b { display: block; }

.readings table { margin: 6px 0 0; font-size: 12px; }
.readings th, .readings td { padding: 6px 4px; border-bottom: 1px solid #e3e7f2; }
.readings td b { font-size: 13px; }
.readings .muted { color: #59607a; font-size: 11px; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 340px; justify-content: center; }
.langs span { background: var(--card); border-radius: 14px; padding: 8px 14px; font-weight: 600; font-size: 17px; }
.langs span.on { background: var(--yellow); color: var(--on-yellow); }
