/* inhouse.technology: one stylesheet, no JavaScript, light and dark. */

:root {
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --sunken: #efebe1;
  --ink: #15181a;
  --ink-2: #44484b;
  --muted: #777a7c;
  --line: #e3ddd0;
  --line-2: #d4ccbb;
  --brand: #0f4c3a;
  --brand-ink: #ffffff;
  --brand-soft: #e3eee7;
  --accent: #c8642c;
  --ok: #1d7347;
  --ok-soft: #e2f1e8;
  --warn: #9a5b12;
  --warn-soft: #f7ecd9;
  --bad: #ab3227;
  --bad-soft: #f9e5e1;
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 8px 24px -12px rgb(40 30 10 / 18%);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1211;
    --surface: #171b19;
    --sunken: #121514;
    --ink: #ecebe5;
    --ink-2: #c3c4bf;
    --muted: #8d918c;
    --line: #262b28;
    --line-2: #343a36;
    --brand: #7fd1ae;
    --brand-ink: #0b1f17;
    --brand-soft: #16271f;
    --accent: #f0a06a;
    --ok: #79d3a1;
    --ok-soft: #14271d;
    --warn: #e8b46a;
    --warn-soft: #2a2114;
    --bad: #f2988c;
    --bad-soft: #2c1714;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -16px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font: 0.88em var(--mono); background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.05em; font-weight: 650; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 0.88em; }

/* ------------------------------------------------------------ header and footer */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08em; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.brand .domain { font-weight: 400; color: var(--muted); font-size: 0.85em; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.95em; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .who { color: var(--muted); font-size: 0.9em; overflow-wrap: anywhere; }

footer.foot { border-top: 1px solid var(--line); margin-top: 80px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 40px; flex-wrap: wrap; color: var(--muted); font-size: 0.9em; }
footer.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.97em var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-provider { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn-provider:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-light { background: #fffdf8; color: #0f4c3a; }
.btn-light:hover { filter: brightness(0.97); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
button.link { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); }
button.link.danger { color: var(--bad); }
form.inline { display: inline; }

/* ------------------------------------------------------------ home: hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85em; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 5px 12px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.3em, 5.2vw, 3.6em); line-height: 1.05; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: 1.15em; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero .fine { margin-top: 16px; font-size: 0.88em; color: var(--muted); }

/* the "pacote do dia" mock: a Claude conversation drawn in HTML */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 30px 60px -30px rgb(15 76 58 / 25%); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); font-size: 0.82em; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 0.93em; }
.bubble-user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.bubble-ai { display: flex; flex-direction: column; gap: 10px; }
.bubble-ai .title { font-family: var(--serif); font-weight: 600; font-size: 1.12em; }
.pkg { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.pkg li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.pkg .k { font-size: 0.74em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 6px; margin-top: 2px; }
.k-meet { background: var(--brand-soft); color: var(--brand); }
.k-due { background: var(--bad-soft); color: var(--bad); }
.k-dec { background: var(--warn-soft); color: var(--warn); }
.k-dir { background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); }
.mock-tools { font: 0.78em var(--mono); color: var(--muted); }

/* ------------------------------------------------------------ home: sections */
.band { padding: 64px 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7em, 3.4vw, 2.3em); }
.section-head p { color: var(--ink-2); font-size: 1.05em; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.band-alt .pillar { background: var(--paper); }
.pillar .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.pillar p { color: var(--ink-2); font-size: 0.95em; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.steps li::after { content: ""; position: absolute; top: 18px; left: 46px; right: 8px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 0.95em; margin: 0; }

.hosting { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.plan .tag { margin-bottom: 14px; }
.plan h3 { font-family: var(--serif); font-size: 1.45em; font-weight: 600; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.checks li::before { content: "✓"; color: var(--brand); font-weight: 700; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promises div { border-top: 2px solid var(--brand); padding-top: 16px; }
.promises p { color: var(--ink-2); margin: 0; }

.cta { background: #0f4c3a; color: #f4f1e8; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fffdf8; font-size: clamp(1.6em, 3vw, 2.2em); margin: 0 0 6px; }
.cta p { color: #cfe0d7; margin: 0; }

/* ------------------------------------------------------------ app pages */
.page { padding: 48px 0 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9em, 4vw, 2.6em); margin: 0; }
.page-head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.4em; }
.card > p:last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78em; font-weight: 600; border-radius: 99px; padding: 3px 10px; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.plain::before { display: none; }

.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid transparent; }
.alert p:last-child { margin-bottom: 0; }
.notice { background: var(--ok-soft); color: var(--ink); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

.rows { list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows li:first-child { border-top: 0; padding-top: 4px; }
.rows .grow { flex: 1 1 200px; min-width: 0; }
.rows .name { font-weight: 600; color: var(--ink); text-decoration: none; }
.rows a.name:hover { color: var(--brand); }
.rows .sub { display: block; color: var(--muted); font-size: 0.88em; overflow-wrap: anywhere; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.9em; text-transform: uppercase; }
.company-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-family: var(--serif); font-weight: 700; font-size: 1.2em; text-transform: uppercase; }

.empty { text-align: center; padding: 40px 24px; }
.empty p { color: var(--ink-2); max-width: 30em; margin: 0 auto 20px; }

.record { display: grid; grid-template-columns: 90px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 16px 0; background: var(--sunken); }
.record dt, .record dd { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); }
.record dt:first-of-type, .record dd:first-of-type { border-top: 0; }
.record dt { color: var(--muted); font-size: 0.88em; font-weight: 600; }
.record dd { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
.record dd .hint { font-family: var(--sans); color: var(--muted); }
.copy { user-select: all; color: var(--ink); font-weight: 600; }
.link-box { display: block; font: 0.9em var(--mono); background: var(--surface); border: 1px dashed var(--brand); border-radius: 10px; padding: 12px 14px; margin: 10px 0; overflow-wrap: anywhere; user-select: all; }

.numbered { list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.numbered li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.85em; }

/* forms */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; }
.field small { color: var(--muted); }
.input, .field input {
  font: inherit; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
}
.input:focus, .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { position: relative; display: block; cursor: pointer; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 16px 16px 46px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.option input { position: absolute; left: 16px; top: 19px; accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.option strong { display: block; margin-bottom: 4px; }
.option span { color: var(--ink-2); font-size: 0.92em; }
.option:hover { border-color: var(--ink-2); }
.option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }

/* sign-in */
.auth { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 48px 0; }
.auth .wrap { display: flex; justify-content: center; }
.auth .card { width: 100%; max-width: 440px; padding: 36px; text-align: center; }
.auth .card h1 { font-size: 2em; }
.auth .buttons { flex-direction: column; margin: 24px 0 8px; }
.auth .btn { width: 100%; }
.auth .company-mark { margin: 0 auto 16px; }
.auth .alert { text-align: left; margin: 20px 0 0; }
.auth .fine { font-size: 0.85em; color: var(--muted); margin-top: 18px; }

/* terms */
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2em, 4vw, 2.6em); }
.prose h2 { font-size: 1.3em; margin-top: 36px; }
.prose p { color: var(--ink-2); }
.prose .callout { background: var(--warn-soft); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 18px; margin: 16px 0; }
.prose .callout p { color: var(--ink); margin: 0; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps li::after { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .pillars, .steps, .hosting, .promises, .options { grid-template-columns: 1fr; }
  .band { padding: 48px 0; }
  .cta { padding: 32px 24px; }
  .card { padding: 20px; }
  .auth .card { padding: 28px 20px; }
  .nav .who { display: none; }
  .brand .domain { display: none; }
  .buttons .btn { flex: 1 1 auto; }
  .record { grid-template-columns: 1fr; }
  .record dt { padding-bottom: 0; }
  .record dd { border-top: 0; }
}
