/* Maker's Assistant: shared styles for index, privacy, terms.
   Palette: pale sage paper, green-black ink, ballpoint blue, marigold (sticky note). */

:root {
  --paper: #f1f4ef;
  --paper-2: #e5ebe3;
  --ink: #1d2a23;
  --ink-soft: #46554c;
  --rule: #c9d3cb;
  --pen: #2b56a0;
  --pen-hover: #1d3f7c;
  --note: #f2c94c;
  --note-ink: #1d2a23;
  --sheet: #ffffff;
  --sheet-ink: #1d2a23;
  --sheet-soft: #5a6660;
  --sheet-rule: #e2e6e3;
  --shadow: 0 1px 0 #c9d3cb, 0 18px 40px -24px rgba(29, 42, 35, 0.35);

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a17;
    --paper-2: #1c2420;
    --ink: #e4ebe6;
    --ink-soft: #a9b6ae;
    --rule: #2f3a34;
    --pen: #93b4ee;
    --pen-hover: #b8cdf5;
    --note: #e7bf45;
    --note-ink: #141a17;
    --sheet: #1f2824;
    --sheet-ink: #e4ebe6;
    --sheet-soft: #a2afa7;
    --sheet-rule: #33403a;
    --shadow: 0 1px 0 #2f3a34, 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

a { color: var(--pen); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pen-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); margin: 0 0 0.45em; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }

/* ---------- Masthead ---------- */
.masthead { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand small { font-family: var(--f-body); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0; margin-left: 0.4em; }
.masthead-cta { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; }

/* ---------- Hero: the morning email is the centerpiece ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.hero .sub { color: var(--ink-soft); }

.button {
  display: inline-block;
  font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.005em;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 6px; text-decoration: none;
  margin: 8px 0 6px;
}
.button:hover { background: var(--pen-hover); color: #fff; }
@media (prefers-color-scheme: dark) {
  .button:hover { background: var(--pen); color: var(--note-ink); }
}
.button-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; }

/* The email "sheet" */
.inbox { margin: 0; }
.sheet {
  background: var(--sheet); color: var(--sheet-ink);
  border-radius: 10px; box-shadow: var(--shadow);
  font-family: var(--f-ui); font-size: 0.95rem; line-height: 1.5;
  overflow: hidden;
  transform: rotate(0.6deg);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: arrive 700ms cubic-bezier(.2,.7,.2,1) 150ms both; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(18px) rotate(0deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0.6deg); }
  }
}
.sheet-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--sheet-rule); }
.sheet-head p { margin: 0; max-width: none; }
.sheet-from { display: flex; justify-content: space-between; gap: 12px; color: var(--sheet-soft); font-size: 0.85rem; }
.sheet-subject { font-weight: 700; font-size: 1.08rem; margin-top: 4px !important; color: var(--sheet-ink); }
.sheet-body { padding: 6px 20px 18px; }
.sheet-body ol { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: d; }
.sheet-body li {
  counter-increment: d;
  display: grid; grid-template-columns: 1.6em 1fr; gap: 0 8px;
  padding: 12px 0; margin: 0; border-bottom: 1px solid var(--sheet-rule);
}
.sheet-body li::before {
  content: counter(d);
  font-weight: 700; color: var(--note-ink); background: var(--note);
  width: 1.6em; height: 1.6em; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; margin-top: 1px;
}
.sheet-body li strong { font-weight: 650; }
.sheet-body .why { display: block; color: var(--sheet-soft); font-size: 0.88rem; }
.sheet-pulse { margin: 12px 0 0; color: var(--sheet-soft); font-size: 0.9rem; max-width: none; }
.inbox figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; padding-left: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--rule); }
.section-tint { background: var(--paper-2); border-top-color: transparent; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* What it does: a two-column definition list, not a card grid */
.jobs { margin: 28px 0 0; display: grid; gap: 0; }
.job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 40px; padding: 22px 0; border-top: 1px solid var(--rule); }
.job:last-child { border-bottom: 1px solid var(--rule); }
.job dt { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1.25; }
.job dd { margin: 0; }
.job dd p:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .job { grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); }
}

.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; }
@media (min-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0 10px 1.6em; position: relative; border-bottom: 1px solid var(--rule); margin: 0; }
.plain-list li::before { content: ""; position: absolute; left: 0.2em; top: 1.15em; width: 0.6em; height: 2px; background: var(--ink-soft); }

/* Setup steps: a real sequence, so numbered */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 2.8em; margin: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.05em;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  color: var(--pen);
}
.steps .who { color: var(--ink-soft); font-size: 0.95rem; }

/* Connection status */
.status { width: 100%; max-width: 720px; border-collapse: collapse; margin: 20px 0 16px; font-size: 1rem; }
.status th, .status td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.status thead th { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); }
.status tbody th { font-weight: 600; font-family: var(--f-display); white-space: nowrap; }
.pill { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rule); white-space: nowrap; }
.pill-ready { background: var(--note); color: var(--note-ink); border-color: var(--note); }

/* Pricing */
.prices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 28px 0 20px; max-width: 900px; }
@media (min-width: 760px) { .prices { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; } }
.price { padding: 26px 24px; border-radius: 10px; border: 1px solid var(--rule); }
.price-founding { background: var(--sheet); color: var(--sheet-ink); border: 2px solid var(--ink); }
.price h3 { margin-bottom: 0.6em; }
.price .amount { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 0.2em; }
.price .amount span { font-weight: 600; font-size: 0.5em; letter-spacing: -0.01em; color: var(--ink-soft); }
.price-founding .amount span { color: var(--sheet-soft); }
.price p { margin-bottom: 0.6em; }
.price .fine { font-size: 0.95rem; color: var(--ink-soft); }
.price-founding .fine { color: var(--sheet-soft); }
.price-list .amount { color: var(--ink-soft); }

/* Closing call */
.closing { text-align: left; }
.closing h2 { max-width: 18ch; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 1.9em; padding-top: 1.1em; border-top: 1px solid var(--rule); }
.legal h3 { margin-top: 1.4em; }
.legal .meta { color: var(--ink-soft); }
.legal .short { background: var(--paper-2); border-left: 4px solid var(--note); padding: 18px 20px; border-radius: 0 8px 8px 0; margin: 24px 0 8px; max-width: var(--measure); }
.legal .short p:last-child, .legal .short ul:last-child { margin-bottom: 0; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.reads { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 0.97rem; min-width: 520px; }
.reads th, .reads td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.reads thead th { font-family: var(--f-display); font-weight: 700; color: var(--ink-soft); font-size: 0.92rem; }
.reads tbody th { font-family: var(--f-display); font-weight: 600; white-space: nowrap; }
.reads code { font-size: 0.85em; word-break: break-word; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 32px 0 44px; font-size: 0.95rem; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer p { margin: 0; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav li { margin: 0; }
.footer a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.after-jobs { margin-top: 28px; }
@media (max-width: 520px) {
  .status { font-size: 0.95rem; }
  .status th, .status td { padding-right: 10px; }
  .status .pill { white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .status tbody th { white-space: normal; }
}
