/* Tinovo — a fictional company. This site exists so the platform's onboarding
   has a real website to read on camera. See ops/demo-site/README.md.

   The palette is repeated as literal hex on purpose: the profile analyzer ranks
   colours by how often they appear across the HTML and the first two
   stylesheets (packages/tools-profile/src/brandkit.ts, rankColors), so the
   brand colours have to out-number everything else. */

:root {
  --ink: #1b1a17;
  --terracotta: #b4552d;
  --forest: #2f4a3c;
  --sand: #efe7da;
  --paper: #fbf8f3;
  --muted: #6f6a60;
  --line: #e2d8c9;
}

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

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

body {
  margin: 0;
  background: #fbf8f3;
  color: #1b1a17;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

h1, h2, h3, .nav-brand, .btn, .kicker, .stat-n, .price-n {
  font-family: 'Helvetica Neue', Inter, 'Segoe UI', system-ui, sans-serif;
}

h1, h2, h3 { color: #1b1a17; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.16rem; font-weight: 650; }
p { margin: 0 0 1.1em; color: #3a372f; }
a { color: #b4552d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #2f4a3c; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b4552d;
  font-weight: 650;
  margin: 0 0 1rem;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: #fbf8f3;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.16rem; color: #1b1a17; text-decoration: none; letter-spacing: -0.01em; }
.nav-brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: #3a372f; text-decoration: none; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; font-size: 0.95rem; }
.site-nav a:hover { color: #b4552d; }

.btn {
  display: inline-block;
  background: #b4552d;
  color: #fbf8f3;
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid #b4552d;
}
.btn:hover { background: #2f4a3c; border-color: #2f4a3c; color: #fbf8f3; }
.btn-ghost { background: transparent; color: #1b1a17; border-color: #1b1a17; }
.btn-ghost:hover { background: #1b1a17; color: #fbf8f3; border-color: #1b1a17; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.24rem; color: #3a372f; max-width: 40ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4 / 3;
  background: #efe7da;
  border: 1px solid #e2d8c9;
  position: relative;
  overflow: hidden;
}

/* A drawn shopfront, so the page carries the trade without a stock photo. */
.shopfront { position: absolute; inset: 0; }

/* ---------- sections ---------- */

section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 58ch; margin-bottom: 44px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fbf8f3;
  border: 1px solid #e2d8c9;
  padding: 28px 26px 30px;
}
.card h3 { margin-bottom: 0.45em; }
.card p { font-size: 0.98rem; margin: 0; color: #6f6a60; }
.card-mark { width: 34px; height: 34px; margin-bottom: 18px; color: #2f4a3c; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stat-n { font-size: 2.7rem; font-weight: 700; color: #2f4a3c; line-height: 1; letter-spacing: -0.03em; }
.stat-l { color: #6f6a60; font-size: 0.97rem; margin-top: 8px; }

.band { background: #efe7da; }
.band .quote { font-size: 1.5rem; line-height: 1.45; max-width: 46ch; margin: 0 0 1em; color: #1b1a17; }
.band cite { font-style: normal; color: #6f6a60; font-size: 0.97rem; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; }

.steps { counter-reset: step; display: grid; gap: 2px; background: #e2d8c9; border: 1px solid #e2d8c9; }
.step { background: #fbf8f3; padding: 26px 28px; display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Helvetica Neue', Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b4552d;
  padding-top: 3px;
}
.step h3 { margin-bottom: 0.3em; }
.step p { margin: 0; color: #6f6a60; font-size: 0.98rem; }

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

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.tier { border: 1px solid #e2d8c9; padding: 30px 28px 34px; background: #fbf8f3; }
.tier.is-lead { border-color: #2f4a3c; border-width: 2px; }
.price-n { font-size: 2.1rem; font-weight: 700; color: #1b1a17; letter-spacing: -0.02em; }
.price-sub { color: #6f6a60; font-size: 0.93rem; margin-bottom: 20px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 26px; }
.tier li { padding: 8px 0 8px 22px; position: relative; font-size: 0.98rem; color: #3a372f; border-bottom: 1px solid var(--line); }
.tier li::before { content: '—'; position: absolute; left: 0; color: #b4552d; }
.tier li:last-child { border-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 0.85rem; color: #6f6a60; margin-bottom: 6px; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #fbf8f3;
  font: inherit;
  font-size: 0.98rem;
  color: #1b1a17;
  border-radius: 2px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #2f4a3c; outline-offset: -1px; }

.detail { border-top: 1px solid var(--line); padding: 15px 0; display: grid; grid-template-columns: 116px 1fr; gap: 16px; font-size: 0.98rem; }
.detail dt { color: #6f6a60; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; font-size: 0.9rem; }
.detail dd { margin: 0; }

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

.site-foot { padding: 46px 0 56px; background: #1b1a17; color: #efe7da; border-bottom: 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-foot a { color: #efe7da; text-decoration: none; display: block; padding: 3px 0; font-size: 0.95rem; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; }
.site-foot a:hover { color: #b4552d; }
.site-foot p { color: #a09889; font-size: 0.9rem; margin: 0; }
.foot-brand { font-weight: 700; font-size: 1.1rem; color: #fbf8f3; margin-bottom: 10px; font-family: 'Helvetica Neue', Inter, system-ui, sans-serif; }
.demo-note { color: #6f6a60; font-size: 0.82rem; margin-top: 22px; width: 100%; }

@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .stats, .tiers { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding: 52px 0 44px; }
  section { padding: 52px 0; }
}
