/* Shared by the static pages: privacy, terms and the guides. */
:root {
  --font-sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --bg: #f7f6f2;
  --bg-raised: #fffefb;
  --text: #22242a;
  --text-dim: #5b5e66;
  --accent: #7f6226;
  --line: rgba(60, 58, 48, 0.16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0e16;
    --bg-raised: #10141f;
    --text: #e8e8e4;
    --text-dim: #a2a4a8;
    --accent: #c9a75c;
    --line: rgba(160, 165, 180, 0.16);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0e16;
  --bg-raised: #10141f;
  --text: #e8e8e4;
  --text-dim: #a2a4a8;
  --accent: #c9a75c;
  --line: rgba(160, 165, 180, 0.16);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 40px 16px 72px;
}
.wordmark {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
h1 {
  font-size: 30px;
  font-weight: 500;
  margin: 28px 0 4px;
  letter-spacing: -0.01em;
}
.updated {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 28px;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
p,
li {
  color: var(--text);
}
ul {
  padding-left: 1.2em;
}
li + li {
  margin-top: 6px;
}
a {
  color: var(--accent);
}
.summary {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.summary ul {
  margin: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 500;
  color: var(--text-dim);
}
code {
  font-size: 0.9em;
}
/* on phones the legal pages' short tables stack into labelled rows; the
   guides' data tables keep their columns and scroll sideways instead */
@media (max-width: 520px) {
  main > table,
  main > table tbody,
  main > table tr,
  main > table td {
    display: block;
  }
  main > table thead {
    display: none;
  }
  main > table td {
    border: 0;
    padding: 2px 0;
  }
  main > table tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  main > table td:first-child {
    font-weight: 500;
  }
  article table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }
  article th,
  article td {
    min-width: 6.5em;
  }
}
nav.legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

/* ---------- guides ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crumbs {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 22px 0 0;
}
.crumbs a {
  color: inherit;
}
.cta {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.cta:hover {
  filter: brightness(1.08);
}
.cta-box {
  margin: 32px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-box p {
  margin: 0;
  color: var(--text-dim);
  flex: 1 1 240px;
}
article h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 6px;
}
article blockquote {
  margin: 16px 0;
  padding: 2px 16px;
  border-left: 2px solid var(--accent);
  color: var(--text-dim);
}
article table {
  margin: 16px 0;
}
article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.related {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.related h2 {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
.guide-list {
  list-style: none;
  padding: 0;
}
.guide-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.guide-list a {
  font-size: 17px;
  font-weight: 500;
}
.guide-list p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- guide infographics ---------- */
/* the app's planet and element palette (styles.css), per theme */
:root {
  --line-strong: rgba(60, 58, 48, 0.42);
  --c-sun: #a4791b; --c-moon: #5e6b80; --c-mercury: #96682a; --c-venus: #3d7d55;
  --c-mars: #b1442e; --c-jupiter: #6d51a1; --c-saturn: #57626f; --c-uranus: #1f7f88;
  --c-neptune: #2f6cab; --c-pluto: #8d5265; --c-node: #766f5c; --c-chiron: #4f7a6a;
  --e-fire: #b1442e; --e-earth: #6b7a35; --e-air: #3f6f96; --e-water: #3d6191;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --line-strong: rgba(178, 183, 194, 0.42);
    --c-sun: #e0b45f; --c-moon: #cfd6e3; --c-mercury: #d3a469; --c-venus: #8cbd9e;
    --c-mars: #d1705a; --c-jupiter: #a48fc9; --c-saturn: #93a0b0; --c-uranus: #7fc4c9;
    --c-neptune: #74a3d4; --c-pluto: #b48897; --c-node: #b9b4a2; --c-chiron: #86a89b;
    --e-fire: #d1705a; --e-earth: #9aa86e; --e-air: #94b4cf; --e-water: #7f9fc4;
  }
}
:root[data-theme='dark'] {
  --line-strong: rgba(178, 183, 194, 0.42);
  --c-sun: #e0b45f; --c-moon: #cfd6e3; --c-mercury: #d3a469; --c-venus: #8cbd9e;
  --c-mars: #d1705a; --c-jupiter: #a48fc9; --c-saturn: #93a0b0; --c-uranus: #7fc4c9;
  --c-neptune: #74a3d4; --c-pluto: #b48897; --c-node: #b9b4a2; --c-chiron: #86a89b;
  --e-fire: #d1705a; --e-earth: #9aa86e; --e-air: #94b4cf; --e-water: #7f9fc4;
}

.glyph {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.17em;
}

/* key facts, straight under the title */
.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 22px 0 8px;
}
.glance .card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px 12px;
}
.glance .big .glyph {
  width: 1.2em;
  height: 1.2em;
}
.glance .big {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
}
.glance .small {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-dim);
  margin-top: 4px;
}

.fig {
  margin: 28px 0;
  padding: 18px 18px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fig > figcaption {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.fig-note {
  font-size: 13px;
  color: var(--text-dim);
  margin: 10px 0 0;
}
.fig > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
/* charts keep a legible size on phones and scroll sideways in their card */
.fig {
  overflow-x: auto;
}
.fig-bars > svg,
.fig-timeline > svg,
.fig-zodiac > svg,
.fig-cycle > svg,
.fig-horizon > svg {
  min-width: 560px;
}
.wheels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.wheels > svg {
  display: block;
  width: 100%;
  max-width: 380px;
  flex: 1 1 280px;
  height: auto;
}
.fig svg text {
  font-family: var(--font-sans);
  fill: var(--text);
}
.fig svg .lbl {
  font-size: 13px;
  font-weight: 500;
}
.fig svg .lbl.hot {
  fill: var(--accent);
}
.fig svg .val,
.fig svg .num {
  font-size: 11.5px;
  fill: var(--text-dim);
}
.fig svg .num {
  font-size: 12px;
  font-weight: 500;
  fill: var(--text);
}
.fig svg .in {
  font-size: 12px;
  font-weight: 500;
  fill: var(--bg);
}
.fig svg .in.small {
  font-size: 10.5px;
  font-weight: 400;
}
.fig svg .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.fig svg .spoke,
.fig svg .tick {
  stroke: var(--line-strong);
  stroke-width: 0.8;
}
.fig svg .axis {
  stroke: var(--accent);
  stroke-width: 1.4;
}

/* numbered flow */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}
.steps li {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.steps .n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.steps .step {
  display: block;
  font-weight: 500;
  line-height: 1.35;
}
.steps .detail {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 4px;
}
.steps li + li {
  margin-top: 0;
}

/* side by side */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.compare .col {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.compare .col-head {
  padding: 10px 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}
.compare ul {
  list-style: none;
  margin: 0;
  padding: 6px 14px 10px;
}
.compare li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.compare li:last-child {
  border-bottom: 0;
}

/* product screenshots */
.shot {
  margin: 28px 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
.shot figcaption {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 10px;
}

/* the closing pitch — a footer, not an opener */
.about {
  margin-top: 40px;
}
.about .cta-box {
  margin: 0;
}
.about-note {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 12px 2px 0;
}

/* wheel, ring and strip labels keep a halo so lines passing under them don't cut them */
.fig-wheel svg text,
.fig-cycle svg text,
.fig-zodiac svg text,
.fig-horizon svg text {
  paint-order: stroke;
  stroke: var(--bg-raised);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.fig-wheel svg .val {
  font-size: 10.5px;
}

/* on phones, wide charts scroll sideways — say so */
@media (max-width: 600px) {
  .fig-bars > figcaption::after,
  .fig-timeline > figcaption::after,
  .fig-zodiac > figcaption::after,
  .fig-cycle > figcaption::after,
  .fig-horizon > figcaption::after {
    content: ' · swipe →';
    color: var(--accent);
    letter-spacing: 0.04em;
  }
}

/* planet-in-sign pages */
p.links {
  line-height: 2;
}
p.links a,
p.links strong {
  white-space: nowrap;
}
.matrix-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.matrix {
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 14px;
}
.matrix th {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 10px;
  border: 0;
}
.matrix td {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  text-align: center;
}
.matrix td a {
  display: block;
  padding: 7px 8px;
}
.matrix td.now {
  background: var(--accent);
}
.matrix td.now .glyph path {
  stroke: var(--bg);
}
.matrix td a:hover {
  background: var(--bg-raised);
}
