/* CodeHeda brand: white #FFFFFF, navy #102B4E, orange #F59E0B, light gray #F3F5F8 */

:root {
  --bg: #FFFFFF;
  --surface: #F3F5F8;
  --text: #102B4E;
  --muted: #4A5A70;
  --accent: #F59E0B;
  --navy: #102B4E;
  --border: #DFE5EE;
  --link: #0B5CAD;
  color-scheme: light;
}

/* Dark mode: from the system setting, unless the reader chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1B2E;
    --surface: #162A45;
    --text: #F3F5F8;
    --muted: #B5C2D6;
    --border: #26405F;
    --link: #8EC5FF;
    color-scheme: dark;
  }
}

/* Dark mode: the reader chose it with the toggle. */
:root[data-theme="dark"] {
  --bg: #0E1B2E;
  --surface: #162A45;
  --text: #F3F5F8;
  --muted: #B5C2D6;
  --border: #26405F;
  --link: #8EC5FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--link); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo { width: 28px; height: 28px; flex-shrink: 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.nav a { color: var(--text); text-decoration: none; padding: 4px 2px; }
.nav a:hover { text-decoration: underline; }
.toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  cursor: pointer;
}

/* Sections */
main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
li { margin-bottom: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin: 4px 8px 4px 0;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 12px;
}

.steps li { margin-bottom: 10px; }

.payment-box {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}

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

/* Extension tiles */
.tile { display: flex; flex-direction: column; }
.tile h3 { margin-top: 12px; }
.tile ul { margin-bottom: 8px; }
.price-line { font-size: 18px; font-weight: 700; margin: 4px 0 4px; }
.plan {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.plan p:last-child { margin-bottom: 0; }
.plan .price { margin: 2px 0 4px; }
.tile-foot { margin: auto 0 0; padding-top: 8px; }
.tile-foot .btn { margin: 0; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.shot .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
