/* ============================================================
   Funzone SI — Warm Boutique (Archetype E)
   Palette: terracotta accent, sand bg, olive accent-2, off-white surface
   ============================================================ */

:root {
  --accent:    #c1622a;   /* terracotta */
  --accent-2:  #5a6e3a;   /* olive */
  --bg:        #f5efe6;   /* warm sand */
  --surface:   #fffaf4;   /* off-white */
  --fg:        #2b2118;   /* dark espresso */
  --muted:     #7a6355;   /* warm mid-brown */
  --border:    #d9c9b8;   /* light sand-border */

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--fg);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ── Layout utility ────────────────────────────────────────── */
.container {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-lg);
}

.section--alt {
  background: var(--surface);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--fg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-block: var(--space-xl);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 90% 20%, rgba(193,98,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-text { max-width: 36rem; }

.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 2em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.8em;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193,98,42,0.25);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(193,98,42,0.35);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero visual panel */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
}

.hero-tile:first-child {
  grid-column: 1 / -1;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-tile-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-tile:first-child .hero-tile-num { color: #fff; }

.hero-tile-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-tile:first-child .hero-tile-label { color: rgba(255,255,255,0.82); }

/* ── How it works ──────────────────────────────────────────── */
.how-it-works h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.how-it-works .intro {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: var(--space-md);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: steps;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  counter-increment: steps;
}

.step::before {
  content: counter(steps);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.step p { font-size: 0.9rem; color: var(--muted); }

/* ── Features ──────────────────────────────────────────────── */
.features h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.features-intro {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: var(--space-md);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.feature-card:nth-child(odd) {
  background: var(--bg);
}

.feature-icon {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
  background: var(--accent-2);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #fff;
}

.feature-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.feature-body p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Use cases ─────────────────────────────────────────────── */
.use-cases h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.use-cases-intro {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: var(--space-md);
}

.vignettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vignette {
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.vignette:nth-child(2) { border-left-color: var(--accent-2); }
.vignette:nth-child(3) { border-left-color: var(--muted); }

.vignette-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.vignette:nth-child(2) .vignette-tag { color: var(--accent-2); }
.vignette:nth-child(3) .vignette-tag { color: var(--muted); }

.vignette h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.vignette p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── About ─────────────────────────────────────────────────── */
.about .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 5rem;
}

.about-aside h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.about-aside .rule {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 1rem;
}

.about-body p { font-size: 1rem; color: var(--muted); }
.about-body p:not(:last-child) { margin-bottom: 1.2rem; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing {
  background: var(--fg);
  color: var(--bg);
}

.pricing .section-label { color: #e8aa7a; }

.pricing h2 {
  color: var(--bg);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.pricing-lead {
  color: rgba(245,239,230,0.7);
  max-width: 34rem;
  margin-bottom: var(--space-md);
}

.pricing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 44rem;
}

.pricing-plan-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--bg);
  margin-bottom: 0.3rem;
}

.pricing-model {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e8aa7a;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: rgba(245,239,230,0.7);
  max-width: 26rem;
  margin: 0;
}

.pricing-amount {
  text-align: right;
  flex-shrink: 0;
}

.pricing-price {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pricing-cadence {
  display: block;
  font-size: 0.8rem;
  color: rgba(245,239,230,0.65);
  margin-top: 0.3rem;
  text-align: right;
}

/* ── Disclaimer ────────────────────────────────────────────── */
.disclaimer {
  border-top: 2px solid var(--border);
}

.disclaimer h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52rem;
}

.disclaimer-box p:not(:last-child) { margin-bottom: 0.8rem; }

.entity-disclosure {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--fg);
  color: rgba(245,239,230,0.75);
  padding-block: var(--space-md);
  font-size: 0.82rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: rgba(245,239,230,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: #e8aa7a; }

/* ── Sub-page layout ───────────────────────────────────────── */
.subpage-wrap {
  max-width: 52rem;
  margin-inline: auto;
  padding: var(--space-lg) var(--space-sm);
}

.subpage-wrap h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.7rem;
}

.subpage-wrap h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.subpage-wrap h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.subpage-wrap p,
.subpage-wrap li {
  color: var(--muted);
  font-size: 0.92rem;
}

.subpage-wrap ul,
.subpage-wrap ol {
  margin-bottom: 1em;
}

.back-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--border);
  padding: 0.4em 1em;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}
.back-link:hover { border-color: var(--accent); }

.entity-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.contact-section { margin-bottom: 2.5rem; }
.contact-section h2 {
  color: var(--fg);
  margin-top: 2rem;
}

/* ── Mobile nav ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  .site-nav.open { display: flex; }
  .site-header .container { flex-wrap: wrap; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .vignettes { grid-template-columns: 1fr; }
  .about .container { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-amount { text-align: left; }
  .pricing-cadence { text-align: left; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .vignettes { grid-template-columns: 1fr 1fr; }
  .about .container { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}
