/* Hosia — site styles.
   One stylesheet, no build step. Palette is the Konquer Media system the
   product belongs to: deep emerald ground, cream ink, gold for anything that
   asks to be clicked. Display type is a tight uppercase grotesk. */

:root {
  --ground:   #001a1b;
  --deep:     #000f10;
  --surface:  #003839;
  --raised:   #0a4849;
  --ink:      #f5efd7;
  --ink-soft: rgba(245, 239, 215, 0.78);
  --muted:    rgba(245, 239, 215, 0.52);
  --rule:     rgba(226, 192, 124, 0.16);
  --rule-strong: rgba(226, 192, 124, 0.34);
  --gold:     #e2c07c;
  --gold-bright: #f2d79a;
  --gold-soft: rgba(226, 192, 124, 0.72);
  --danger:   #e4796c;

  --display: 'Archivo', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --body:    'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  background-image:
    radial-gradient(60rem 30rem at 15% -10%, rgba(226, 192, 124, 0.10), transparent 60%),
    radial-gradient(40rem 24rem at 100% 0%, rgba(10, 72, 73, 0.55), transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- chrome ---- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  font-size: 1rem;
}
.bar nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.bar nav a {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.bar nav a:hover, .bar nav a.on { color: var(--gold-bright); }

/* ---- layout ---- */
main { padding: 3.5rem 1.5rem 5rem; }
main.prose { max-width: 44rem; margin: 0 auto; }
main.wide  { max-width: 68rem; margin: 0 auto; }

section { margin-bottom: 5rem; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .96;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 2.6rem 0 1rem;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 1.6rem 0 .5rem;
}
p { margin: 0 0 1rem; }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 40rem; }
.micro { font-size: .86rem; color: var(--muted); }

.eyebrow {
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: .7rem;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
a:focus-visible, .btn:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- hero ---- */
.hero { padding-top: 2.5rem; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 1rem; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn.ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--gold); }

/* ---- install tabs ---- */
.install {
  margin-top: 2.4rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  overflow: hidden;
  max-width: 44rem;
}
.install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.install-head .eyebrow { margin: 0; }
.tabs { display: flex; gap: .3rem; }
.tab {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--deep); background: var(--gold); border-color: var(--gold); }
.install pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 1.1rem 1.2rem; }
.install [hidden] { display: none; }

/* ---- sections ---- */
.band {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2.2rem;
}
.band h2 { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.6rem 2.2rem;
}
.grid h3 { margin-top: 0; }
.grid p { color: var(--ink-soft); margin-bottom: 0; }

/* OS cards */
.os {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.os-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.4rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.os-card .eyebrow { margin: 0; }
.os-card .eyebrow::before { display: none; }
.os-card h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.01em; }
.os-card .spacer { flex: 1; }
.os-card .btn { align-self: flex-start; margin-top: .6rem; }

/* Numbered feature list */
.features { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
.feature {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.feature .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: .35rem;
}
.feature h3 { margin: 0 0 .4rem; font-size: 1.5rem; letter-spacing: -.01em; }
.feature p { color: var(--ink-soft); margin: 0; max-width: 46rem; }
@media (max-width: 40rem) {
  .feature { grid-template-columns: 1fr; gap: .3rem; }
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.plan {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.6rem;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.plan.featured { border-color: var(--gold); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.plan h3 { margin: 0 0 .3rem; font-size: 1.4rem; letter-spacing: -.01em; }
.plan .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.02em;
  color: var(--gold);
  margin: .2rem 0 .8rem;
}
.plan ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--ink-soft); }
.plan li { margin-bottom: .3rem; }

/* ---- code ---- */
pre {
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.6;
  background: var(--deep);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  color: var(--ink-soft);
  margin: 1.1rem 0;
}
code { font-family: var(--mono); font-size: .88em; }
p code, li code, td code {
  background: var(--raised);
  padding: .12em .38em;
  border-radius: 3px;
  color: var(--ink);
}
pre code { background: none; padding: 0; }
pre .c { color: var(--muted); }

/* ---- downloads ---- */
.dl { display: flex; flex-direction: column; gap: .7rem; margin: 1.6rem 0 2.4rem; }
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.note {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.note h3 { margin-top: 0; color: var(--danger); }
.note p:last-child { margin-bottom: 0; }

/* ---- markdown documents (privacy, terms) ---- */
main.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
main.prose h2 { font-size: 1.4rem; }
main.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
  margin: 1.2rem 0;
  display: block;
  overflow-x: auto;
}
main.prose th, main.prose td {
  text-align: left;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
main.prose th {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
main.prose blockquote {
  margin: 1.4rem 0;
  padding: .9rem 1.2rem;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--ink-soft);
}
main.prose blockquote p:last-child { margin-bottom: 0; }
main.prose ul, main.prose ol { padding-left: 1.3rem; }
main.prose li { margin-bottom: .4rem; }
main.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.4rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}
footer p { margin: 0 0 .4rem; }
footer .version {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
footer .fineprint { margin-top: 1rem; font-size: .8rem; max-width: 36rem; margin-inline: auto; }

/* A target with no published artifact. Deliberately not a button — there is
   nothing to click, and styling it like one invites the click anyway. */
.pending {
  font-size: .84rem;
  color: var(--muted);
  border: 1px dashed var(--rule-strong);
  border-radius: 4px;
  padding: .55rem 1rem;
  align-self: flex-start;
}
