/* Apprentice — shared site styles (v2).
   Hue language: paper, ink, and light. Color appears only as bloom, never as paint.
   Ground is white (projectminimi reference); everything else is the editorial scene system. */

:root {
  --paper: #ffffff;
  --ink: #0e0e0d;
  --muted: #5f5f5a;
  --faint: #706b63;
  --line: rgba(14, 14, 13, 0.12);
  --card: rgba(255, 255, 255, 0.62);
  --h-blue: #6a7bff;
  --h-teal: #34e3c4;
  --h-red: #ff6b6b;
  --h-gold: #ffce5c;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sys);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 16.5px;
  font-weight: 400;
  overflow-x: hidden;
}

::selection { background: rgba(106, 123, 255, 0.22); }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 4px; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(6vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; border-radius: 7px; }
.brand span { color: var(--muted); }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a.on { color: var(--ink); }
.pill {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
  display: inline-block;
}
.pill:hover { background: #000; }
.pill.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.pill.ghost:hover { border-color: var(--ink); }
.pill.big { padding: 14px 28px; font-size: 16px; }

@media (max-width: 720px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .navlinks { gap: 16px; }
  .navlinks a.hide-m { display: none; }
  .nav .brand b { font-size: 0; }
  .nav .brand b::after { content: "Apprentice"; font-size: 18px; }
}

/* ---------- layout ---------- */

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(720px, 92vw); margin: 0 auto; }

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

h1.display {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
}
h1.display .thin { font-weight: 300; color: var(--muted); }
h2.head {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
h3 { font-weight: 600; letter-spacing: -0.02em; }
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  font-weight: 400;
  max-width: 60ch;
}
.lead strong, .lead b { color: var(--ink); font-weight: 500; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.endline {
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.endline b { font-weight: 600; }

/* ---------- hero bloom (the one ambient motion) ---------- */

.bloom {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 55%, transparent 96%);
}
.bloom i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  mix-blend-mode: multiply;
}
.bloom .b1 { width: 640px; height: 640px; background: radial-gradient(closest-side, var(--h-blue), transparent 72%); top: -200px; left: -160px; animation: drift1 26s ease-in-out infinite alternate; }
.bloom .b2 { width: 520px; height: 520px; background: radial-gradient(closest-side, var(--h-blue), transparent 72%); top: 30%; right: -200px; opacity: 0.08; animation: drift2 31s ease-in-out infinite alternate; }
.bloom .b3 { width: 460px; height: 460px; background: radial-gradient(closest-side, var(--h-teal), transparent 72%); bottom: -200px; left: 24%; opacity: 0.08; animation: drift1 37s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(60px, 40px, 0); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50px, -30px, 0); } }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .bloom i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-bottom: 14px;
}

/* bare lowercase word as an action — lit on hover */
.wordlink {
  font-size: 15.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, text-shadow 0.15s ease;
}
.wordlink:hover { color: var(--ink); border-color: var(--h-blue); text-shadow: 0 0 14px rgba(106, 123, 255, 0.45); }

/* editorial hairline rows — the house alternative to card grids */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(180px, 3fr) 7fr; gap: 18px;
  padding: 22px 2px; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 17px; }
.row p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.row .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 10px; vertical-align: 1px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- proof strip ---------- */

.proof {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.proof div { min-width: 130px; }
.proof b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.proof span { color: var(--muted); font-size: 13.5px; }

/* ---------- mock UI bits ---------- */

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14, 14, 13, 0.1);
  overflow: hidden;
}
.mock .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafaf8;
}
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e0d9; }
.mock .bar em { font-style: normal; font-size: 12px; color: var(--faint); margin-left: 8px; }
.mock .body { padding: 20px; font-size: 14.5px; }

.rulecard {
  border: 1px solid var(--line);
  box-shadow: inset 14px 0 18px -14px rgba(106, 123, 255, 0.55);
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
}
.rulecard small { color: var(--faint); display: block; margin-top: 3px; font-size: 12px; }

.say {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14.5px;
}
.say::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--h-teal);
  box-shadow: 0 0 12px var(--h-teal);
  flex: none;
}

/* ---------- task chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip:hover { border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- FAQ ---------- */

details {
  border-top: 1px solid var(--line);
  padding: 20px 2px;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 19px; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: #3a3a34; font-size: 15px; line-height: 1.65; margin-top: 10px; max-width: 62ch; }
details p + p { margin-top: 8px; }

/* ---------- forms ---------- */

.capture { display: flex; gap: 10px; max-width: 460px; }
.capture input {
  flex: 1;
  font: 15px var(--sys);
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.capture input:focus { border-color: var(--h-blue); }
.capture button {
  font: 500 15px var(--sys);
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease;
}
.capture button:hover { background: #000; }
.formnote { margin-top: 12px; font-size: 13px; color: var(--faint); }
.success { display: none; color: var(--ink); font-size: 15.5px; font-weight: 500; }
@media (max-width: 520px) {
  .capture { flex-direction: column; }
  .capture button { width: 100%; }
}

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan.hot { border-color: var(--ink); box-shadow: 0 24px 60px rgba(14, 14, 13, 0.08); }
.plan .tier { font-weight: 600; font-size: 18px; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin: 12px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .blurb { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 26px; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: #3a3a34; }
.plan li::before { content: "\2713"; position: absolute; left: 2px; color: var(--muted); font-size: 13px; }
.plan .cta { margin-top: auto; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px min(6vw, 54px) 40px;
  margin-top: 40px;
}
.foot {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot .col b { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.foot .col a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 3px 0; }
.foot .col a:hover { color: var(--ink); }
.foot .brandcol { max-width: 300px; }
.foot .brandcol p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.legal {
  width: min(1120px, 92vw);
  margin: 36px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}
.legal a { color: var(--faint); text-decoration: none; }
.legal a:hover { color: var(--ink); }

/* ---------- misc ---------- */

.center { text-align: center; }
.center .lead, .center .capture, .center .formnote { margin-left: auto; margin-right: auto; }
.center .capture { justify-content: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; } .mt64 { margin-top: 64px; }
hr.sep { border: 0; border-top: 1px solid var(--line); }

.quiet { color: var(--muted); }
.tiny { font-size: 13px; color: var(--faint); }

table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
table.cmp td:first-child { font-weight: 500; }
.tablewrap { overflow-x: auto; }
