/* ==========================================================================
   Vixy Store — main.css
   Design tokens mirror the Vixy AI carousel palette exactly (see
   Hasan-OS/Business/Carousel_Design.md). Light/paper theme only, no dark mode.
   ========================================================================== */

@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — identical to the carousel P object */
  --paper:    #F2EAD6;
  --cream:    #FDFAF0;
  --bubble:   #EDE6D6;
  --ink:      #14100C;
  --brown:    #3D3229;
  --muted:    rgba(61, 50, 41, 0.62);
  --orange:   #E07826;
  --burgundy: #7A2422;
  --line:     rgba(20, 16, 12, 0.20);
  --line-soft:rgba(20, 16, 12, 0.08);
  --success:  #2E6B3F;
  --danger:   #A33327;

  /* type scale */
  --font: 'General Sans', -apple-system, 'Segoe UI', sans-serif;
  --fs-hero:  clamp(2.6rem, 6vw, 4.5rem);
  --fs-title: clamp(1.9rem, 4vw, 2.8rem);
  --fs-h3:    1.35rem;
  --fs-body:  1.02rem;
  --fs-small: 0.88rem;
  --fs-label: 0.72rem;

  /* spacing & shape */
  --space-section: clamp(4rem, 9vw, 7rem);
  --container: 1120px;
  --radius: 14px;
  --radius-btn: 10px;
  --shadow-card: 0 14px 40px rgba(20, 16, 12, 0.10);
}

/* ---- reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* subtle grid background — hero + CTA band only */
.grid-bg {
  background-image:
    repeating-linear-gradient(0deg, rgba(20,16,12,0.045) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(20,16,12,0.045) 0 1px, transparent 1px 36px);
}

/* ---- focus state (mandatory, everywhere) ----------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---- label / badge ---------------------------------------------------- */
.label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.45em 0.9em;
  border-radius: 4px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- V-mark ------------------------------------------------------------ */
.v-mark { display: block; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--burgundy));
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(224, 120, 38, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(224, 120, 38, 0.36); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.btn-block { width: 100%; }

/* ---- nav ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links .nav-sub {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { display: block; }

/* ---- footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  margin-top: var(--space-section);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.footer-tagline {
  color: var(--muted);
  font-size: var(--fs-small);
  max-width: 420px;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: var(--brown);
  font-size: var(--fs-small);
  font-weight: 600;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.5rem;
}

/* ---- sections ------------------------------------------------------------ */
section { padding: var(--space-section) 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .label { display: block; margin-bottom: 0.9rem; }
.section-head h2 { font-size: var(--fs-title); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ---- hero ------------------------------------------------------------ */
.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 var(--space-section);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .badge { margin-bottom: 1.5rem; }
.hero-copy h1 {
  font-size: var(--fs-hero);
  margin-bottom: 1.1rem;
}
.hero-copy .hero-sub {
  font-style: italic;
  color: var(--brown);
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
}
.hero-visual img {
  max-height: 78vh;
  width: auto;
  filter: drop-shadow(0 24px 50px rgba(20,16,12,.30));
}
.hero-visual-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: center;
  padding: 2rem;
}

/* ---- product grid ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.product-card .label { color: var(--brown); }
.product-card h3 { font-size: var(--fs-h3); }
.product-card .promise { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.product-card .features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0;
}
.product-card .features li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--brown);
}
.product-card .features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-top: auto;
}
.price-row .amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
}
.price-row .unit {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---- numbered steps ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.step { text-align: left; }
.step .num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* ---- honest proof band ------------------------------------------------------------ */
.proof-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.proof-band .container { max-width: 680px; }
.proof-band p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brown);
  margin-bottom: 1.5rem;
}
.proof-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.proof-links a {
  text-decoration: none;
  color: var(--orange);
  font-weight: 600;
  font-size: var(--fs-small);
}

/* ---- FAQ ------------------------------------------------------------ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1.3rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: 0.9rem;
  padding-right: 1.5rem;
}

/* ---- final CTA ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-title); margin-bottom: 1rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  section { padding: clamp(3rem, 10vw, 4rem) 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

.nav-links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
  gap: 1.2rem;
}
