/* Red Dirt Software: one stylesheet for every page. Warm off-white, ink, rust. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-latin-standard-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --bg-2: #f3ece2;
  --card: #fffdfa;
  --ink: #1f1a16;
  --muted: #655b53;
  --line: #e6ddd1;
  --line-2: #d6cabb;
  --accent: #9a3412;
  --accent-hover: #7c2d12;
  --accent-soft: #f7e6da;
  --on-accent: #fff8f1;
  --ok: #3f6212;
  --ok-soft: #ecf3e0;
  --error: #b42318;
  --shadow: 0 1px 2px rgba(60, 30, 15, .06), 0 8px 28px rgba(60, 30, 15, .07);
  --radius: 16px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311;
    --bg-2: #1d1916;
    --card: #211c19;
    --ink: #f3eee8;
    --muted: #b0a69c;
    --line: #342d28;
    --line-2: #4a413a;
    --accent: #f0956a;
    --accent-hover: #f6ae8a;
    --accent-soft: #3a2419;
    --on-accent: #1d120c;
    --ok: #b5d98a;
    --ok-soft: #222a17;
    --error: #ff8a7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 19px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: var(--on-accent); margin-left: 8px; }
.nav a.btn:hover { background: var(--accent-hover); color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; font-variation-settings: "opsz" 36; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 640px; margin: 20px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

.hero { padding: 96px 0 48px; }
.hero .actions { margin-top: 32px; }
.hero-page { padding: 72px 0 48px; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 12px; }
.card-label { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.path-card { padding: 36px; }
.app-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.app-row img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 1px 3px rgba(60,30,15,.2); }
.app-row h3 { margin: 0; }
.app-row p { margin: 2px 0 0; font-size: 15px; }

.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--sans); color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks li span { color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--sans); margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; list-style: none; padding: 0; margin: 0; }
.features li { border-top: 1px solid var(--line); padding-top: 20px; }
.features h3 { font-size: 20px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: #2a1b13; color: #f7efe6; border-radius: 24px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fbf4ea; }
.cta-band p { color: #d8c8b8; margin: 12px 0 0; max-width: 520px; }
.cta-band .btn { background: #f0956a; border-color: #f0956a; color: #1d120c; }
.cta-band .btn:hover { background: #f6ae8a; border-color: #f6ae8a; }
@media (prefers-color-scheme: dark) { .cta-band { background: #2b1d15; border: 1px solid #45302a; } }

/* ---------- Apps page ---------- */
.app-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.app-hero .app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 2px 6px rgba(60,30,15,.22); margin-bottom: 24px; }
.app-hero h1 { font-size: clamp(36px, 4.6vw, 54px); }
.app-hero h1 span { display: block; font-style: italic; font-weight: 500; color: var(--accent); }
.app-hero .actions { margin-top: 28px; }
.status-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #2a1b13; box-shadow: var(--shadow); border: 1px solid var(--line); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(255, 248, 241, .95); color: #1f1a16; font: 600 15px/1 var(--sans); box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: transform .15s; }
.video .play::before { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #9a3412; margin-left: 4px; }
.video .play small { font: 500 14px/1 var(--sans); color: #655b53; }
.video button:hover .play { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.video button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 14px; color: var(--muted); margin: 12px 2px 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery .shot { display: block; border-radius: 12px; }
.gallery .shot:hover img { border-color: var(--line-2); }
.gallery img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; width: 100%; background: var(--bg-2); }
.gallery figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.gallery figure.wide { grid-column: 1 / -1; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .price { font: 600 34px/1.1 var(--serif); margin: 8px 0 4px; letter-spacing: -.01em; }
.plan .price small { font: 500 15px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .trial { font-size: 14px; color: var(--muted); margin: 0 0 20px; min-height: 1.6em; }
.plan .ticks { margin: 0; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.fine { font-size: 15px; color: var(--muted); margin: 24px 0 0; max-width: 760px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

/* ---------- Work page ---------- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer .card { padding: 28px; }
.offer .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.offer .icon svg { width: 22px; height: 22px; }
.offer .ticks { font-size: 15px; margin: 4px 0 0; gap: 8px; }

.quote-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.quote-aside p:not(.eyebrow) { color: var(--muted); }
.quote-aside .ticks { margin-top: 20px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 14px; color: var(--error); }
.field .err:empty { display: none; }
.counter { margin-left: auto; font-variant-numeric: tabular-nums; }
.hint-row { display: flex; gap: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; margin-top: 4px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 24px; }
.form-foot p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 240px; }
.form-error { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--error); font-size: 15px; }
.form-error:empty { display: none; }
.success { text-align: left; }
.success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 20px; }
.success h3 { font-size: 28px; margin-bottom: 10px; }
.success p { color: var(--muted); margin: 0 0 12px; }

/* ---------- Prose (About, Privacy) ---------- */
.prose > * { max-width: 700px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 15px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values .card { padding: 28px; }
.values h3 { font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 0; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer .brand { font-size: 18px; }
.site-footer p { margin: 14px 0 0; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: start; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 14px; margin: 8px 0 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-hero, .quote-layout { grid-template-columns: 1fr; gap: 40px; }
  .grid-2, .grid-3, .steps, .offer, .values, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 520px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 2px; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .nav a:first-child { padding-left: 0; }
  .nav a.btn { margin-left: auto; padding: 9px 14px; }
  .hero { padding: 56px 0 24px; }
  .hero-page { padding: 48px 0 32px; }
  .section { padding: 64px 0; }
  .grid-2, .gallery, .features, .facts, .form-grid { grid-template-columns: 1fr; }
  .card, .path-card { padding: 24px; }
  .form { padding: 22px 18px; border-radius: 16px; }
  .cta-band { padding: 36px 24px; border-radius: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .nav a { padding: 8px 6px; font-size: 13.5px; }
  .form { padding: 20px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.spaced { margin-top: 40px; }
.prose > h2:first-child { margin-top: 0; }
