/* ===========================================================
   Finitax AI — vintage parchment theme
   Patrick Hand (headings) + system sans (body)
   =========================================================== */

:root {
  --parchment:    #ece6da;  /* main background */
  --parchment-dk: #e2dac9;  /* cards / panels */
  --parchment-lt: #f4efe6;  /* lighter panels */
  --ink:          #4a3f33;  /* primary text */
  --ink-soft:     #6b5d4a;  /* secondary text */
  --accent:       #8a6d3b;  /* warm sepia/gold */
  --accent-dk:    #6f5529;  /* darker gold (hover) */
  --line:         #c9bca5;  /* dividers / borders */
  --shadow:       rgba(74, 63, 51, 0.15);
}

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

html { scroll-behavior: smooth; }

/* ---------- Themed scrollbar ---------- */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--parchment-dk);
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--parchment-dk);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 3px solid var(--parchment-dk); /* gives the thumb a padded, rounded look */
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dk);
}

body {
  font-family: 'Patrick Hand', 'Segoe UI', system-ui, sans-serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.08rem;        /* slightly larger so handwriting stays readable */
  letter-spacing: 0.3px;
  /* subtle paper-grain gradient for the "aged" feel */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(138,109,59,0.07) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Headings use the handwritten font */
h1, h2, h3, .wordmark {
  font-family: 'Patrick Hand', cursive;
  font-weight: 400;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
header {
  padding: 1.5rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-size: 2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wordmark .sprout { font-size: 1.6rem; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-dk); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}
.hero .star { font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin-bottom: 0.5rem;
}
.hero .divider {
  width: 70px; height: 2px;
  background: var(--line);
  border: none;
  margin: 1.25rem auto 1.5rem;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--parchment-lt);
  box-shadow: 0 4px 14px var(--shadow);
}
.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-dk);
  border-color: var(--line);
  margin-left: 0.75rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- What is Finitax ---------- */
.about {
  background: var(--parchment-lt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  margin: 1rem 0 4rem;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
}
.about h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.about p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0 auto;
}
.about strong { color: var(--ink); }

/* ---------- Features ---------- */
.features { padding-bottom: 4rem; }
.features h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.25rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--parchment-dk);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px var(--shadow);
}
.card .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--ink-soft);
}
footer .foot-mark {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
footer .foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
footer .foot-links a:hover { color: var(--accent-dk); }
footer .copy { font-size: 0.9rem; opacity: 0.8; }

/* ===========================================================
   THEME & FONT PREVIEW (mockup for team review)
   =========================================================== */
.preview { padding: 2rem 0 4rem; }

/* Each section block */
.spec {
  background: var(--parchment-lt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 18px var(--shadow);
}
.spec > .label {
  display: inline-block;
  font-family: 'Segoe UI', system-ui, sans-serif; /* small meta label kept neutral */
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dk);
  background: var(--parchment-dk);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

/* Type specimen rows */
.type-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.type-row:last-child { border-bottom: none; }
.type-row .tag {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
  min-width: 90px;
  opacity: 0.8;
}
.t-display { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; }
.t-h1 { font-size: 2.6rem; }
.t-h2 { font-size: 2rem; }
.t-h3 { font-size: 1.55rem; }
.t-body { font-size: 1.15rem; }
.t-small { font-size: 0.95rem; color: var(--ink-soft); }

/* Color palette swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--parchment-lt);
}
.swatch .chip { height: 70px; }
.swatch .meta {
  padding: 0.6rem 0.75rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.swatch .name { font-size: 0.85rem; color: var(--ink); }
.swatch .hex { font-size: 0.78rem; color: var(--ink-soft); }

/* Sample UI bits */
.ui-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.field {
  width: 100%;
  max-width: 360px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1rem;
}
.field:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Chat bubble demo */
.bubbles { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.bubble {
  font-size: 1.1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  max-width: 80%;
}
.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--parchment-lt);
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--parchment-dk);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .btn-ghost { margin-left: 0; margin-top: 0.75rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .spec { padding: 1.5rem; }
}
