/* AI Frontly redesign — "service counter" theme.
   Pine + brass on warm paper. Bricolage Grotesque display, Inter body.
   Mobile-first, visible keyboard focus, reduced motion respected. */

:root {
  --paper: #faf9f5;
  --ink: #1f2421;
  --pine: #17453a;
  --pine-deep: #0e2d25;
  --brass: #c69a45;
  --line: #e4ded0;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .menu-row dt {
  font-family: "Bricolage Grotesque", "Inter", -apple-system, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--pine); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow { max-width: 680px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine);
  text-decoration: none;
}

.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}

.topbar nav a:hover { color: var(--pine); }

.topbar-mail {
  border: 1px solid var(--pine);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.topbar-mail:hover { background: var(--pine); color: var(--paper) !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--pine-deep);
  color: var(--paper);
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--paper);
}

.lede {
  font-size: 1.15rem;
  max-width: 34ch;
  color: #d8d4c8;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-mail { font-size: 0.92rem; color: #a8a496; }

.hero-mail::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: #0f352c; }

.hero .btn-primary { background: var(--brass); color: var(--pine-deep); }
.hero .btn-primary:hover { background: #d5a955; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }

.hero .btn-ghost { border-color: #4a5a54; color: var(--paper); }
.hero .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Demo card (the one bold element) ---------- */
.demo-card {
  background: #122620;
  border: 1px solid #2a443c;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.demo-tag {
  font-size: 0.78rem;
  color: var(--brass);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.chat { display: flex; flex-direction: column; gap: 10px; }

.msg p {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 92%;
}

.msg-in p { background: #1e3830; color: #e8e4d8; }

.msg-out { text-align: right; }
.msg-out p { background: var(--pine); color: #fff; text-align: left; }

.slot-row { display: flex; gap: 10px; margin-top: 10px; }

.slot {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
}

.slot:hover:not(:disabled) { background: var(--brass); color: var(--pine-deep); }
.slot:disabled { opacity: 0.45; cursor: default; }
.slot-picked { background: var(--brass) !important; color: var(--pine-deep) !important; opacity: 1 !important; }

.demo-link { margin-top: 14px; font-size: 0.92rem; color: #a8a496; }
.demo-link a { color: var(--brass); }
.quiet { color: #7d7a6e; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }

.section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 12px;
}

.section-intro {
  color: #5c5a52;
  margin-bottom: 52px;
  max-width: 60ch;
}

.section-deep { background: #f3f0e7; }

/* ---------- Service menu (work-order rows, not cards) ---------- */
.menu-group {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pine);
  margin: 0 0 6px;
  padding-top: 8px;
}

.menu-group::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--brass);
  margin-top: 10px;
}

.menu { margin-bottom: 44px; }

.menu-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row dt {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.menu-row dd { color: #5c5a52; font-size: 0.99rem; max-width: 62ch; }

.menu-secondary .menu-row dt { font-size: 1.02rem; }

/* ---------- Ledger (how it works — a genuine sequence) ---------- */
.ledger {
  list-style: none;
  max-width: 720px;
}

.ledger li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.ledger li:first-child { border-top: 1px solid var(--line); }

.ledger-num {
  width: 40px;
  height: 40px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  color: var(--pine);
  font-size: 1.05rem;
}

.ledger h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--ink); }
.ledger p { color: #5c5a52; font-size: 0.98rem; max-width: 58ch; }

/* ---------- About ---------- */
#about p { color: #5c5a52; max-width: 58ch; }

/* ---------- Contact ---------- */
.email-line { margin: 6px 0 40px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(23, 69, 58, 0.12);
}

.contact-form .btn { width: 100%; margin-top: 4px; }

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #7d7a6e;
}

/* ---------- Footer ---------- */
footer {
  background: var(--pine-deep);
  color: #a8a496;
  padding: 36px 0;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .menu-row { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .topbar nav a { margin-left: 14px; font-size: 0.86rem; }
  .topbar-mail { padding: 6px 12px; }
  .contact-form { padding: 28px 20px; }
  .ledger li { grid-template-columns: 40px 1fr; gap: 14px; }
}

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