/* ohbrer.com — one stylesheet. Colours follow the ShowMeTheMoney app
   (warm paper, indigo ink, the app's "money in" green) so the site and the
   product feel like one thing. System fonts only: no font requests to
   anyone, which is part of the privacy promise. */

:root {
  color-scheme: light;
  --paper: #f2efe9;
  --paper-soft: #eae6de;
  --paper-mute: #e1dcd2;
  --card: #fbfaf7;
  --ink: #2c3e50;
  --ink-soft: rgba(44, 62, 80, 0.72);
  --line: rgba(60, 60, 60, 0.14);
  --line-strong: rgba(60, 60, 60, 0.28);
  --accent: #00875e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 153, 107, 0.1);
  --warn-soft: #fbf1d9;
  --warn-line: #e0c27a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #181818;
    --paper-soft: #202020;
    --paper-mute: #282828;
    --card: #1f1f1f;
    --ink: #ececec;
    --ink-soft: rgba(235, 235, 235, 0.68);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #36c894;
    --accent-ink: #0d1f18;
    --accent-soft: rgba(54, 200, 148, 0.12);
    --warn-soft: #2e2716;
    --warn-line: #7a6430;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

code,
pre {
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  background: var(--paper-mute);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--card);
  padding: 6px 10px;
  z-index: 10;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand b {
  color: var(--accent);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--ink);
}

nav a[aria-current='page'] {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

/* Sections */

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

.hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section {
  padding: 40px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button[aria-disabled='true'] {
  background: var(--paper-mute);
  border-color: var(--line-strong);
  color: var(--ink-soft);
  cursor: default;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid + p,
.plans + p {
  margin-top: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--accent);
}

.after-actions {
  margin-top: 12px;
}

.card h3 {
  margin-bottom: 6px;
}

.card p:last-child {
  margin-bottom: 0;
}

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

.small {
  font-size: 0.9rem;
}

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
}

.figure {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Pricing */

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

.plan {
  display: flex;
  flex-direction: column;
}

.plan .price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 8px 0 0;
}

.plan .per {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.plan ul {
  padding-left: 1.1em;
  margin: 0 0 20px;
  flex: 1;
}

.plan.featured {
  border: 2px solid var(--accent);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Comparison table and legal pages */

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 0.95rem;
}

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

th {
  font-weight: 600;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose li {
  margin-bottom: 0.35em;
}

/* Forms */

form.stack {
  display: grid;
  gap: 14px;
  max-width: 440px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type='email'] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 600px) {
  .hero {
    padding: 44px 0 28px;
  }

  body {
    font-size: 16px;
  }
}

/* Install steps (install-mac.php): numbered, each with its screenshot. */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 40px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h2 {
  font-size: 1.25rem;
  margin: 4px 0 8px;
}

.figure.shot {
  margin: 14px 0 18px;
  width: fit-content;
  max-width: min(100%, 720px);
}

/* Screenshots keep their natural size (never stretched, which blurs them)
   and shrink only to fit a narrow screen. */
.figure.shot img {
  width: auto;
  max-width: 100%;
}

.figure.shot figcaption {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--card);
}

@media (max-width: 600px) {
  .steps > li {
    padding-left: 44px;
  }
}
