:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8ecf1;
  --muted: #9aa5b8;
  --accent: #2d9d8f;
  --accent-hover: #3db8a9;
  --link: #6eb5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-doxology {
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(45, 157, 143, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 1.25rem;
  text-align: center;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

header .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

main {
  flex: 1;
  width: min(42rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

section {
  margin-bottom: 2.5rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.features li:last-child {
  margin-bottom: 0;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.faq-item p {
  margin: 0;
}

footer {
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer nav {
  margin-bottom: 0.5rem;
}

footer nav a {
  margin: 0 0.5rem;
}

.placeholder {
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.accessibility-callout {
  background: rgba(45, 157, 143, 0.12);
  border: 1px solid rgba(45, 157, 143, 0.45);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}

.accessibility-callout h2 {
  margin-top: 0;
  color: var(--accent);
}

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

.siri-callout {
  background: rgba(110, 181, 255, 0.08);
  border: 1px solid rgba(110, 181, 255, 0.35);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}

.siri-callout h2 {
  margin-top: 0;
  color: var(--link);
}

.phrase-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0;
}

.phrase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.phrase-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phrase-table th,
.phrase-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phrase-table th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  width: 42%;
}

.phrase-table td {
  color: var(--muted);
}

.phrase-table tbody tr:last-child th,
.phrase-table tbody tr:last-child td {
  border-bottom: none;
}

.phrase-table code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  color: var(--text);
  word-break: keep-all;
}
