@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --page: #f3f0ea;
  --page-alt: #ebe6de;
  --surface: #ffffff;
  --surface-soft: #f8f5f0;
  --surface-strong: #141210;
  --ink: #161412;
  --ink-soft: #2f2b27;
  --muted: #6b645d;
  --muted-strong: #4e4842;
  --line: #dbd3c9;
  --line-strong: #c7bcaf;
  --accent: #7f6449;
  --accent-deep: #5e4936;
  --accent-soft: #ece2d7;
  --success: #6f5a43;
  --danger: #8d5b53;
  --shadow-sm: 0 10px 24px rgba(16, 14, 12, 0.04);
  --shadow-md: 0 18px 40px rgba(16, 14, 12, 0.06);
  --container: min(1200px, calc(100% - 40px));
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f4ee 0%, #f1ece5 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 20, 18, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  max-width: 13rem;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.button {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-link {
  padding: 0.82rem 1rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #171411;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero-grid,
.grid-2,
.grid-3,
.home-story-grid,
.footer-shell,
.cta-panel,
.auth-layout,
.about-hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
}

.hero-copy h1,
.section-header h2,
.cta-panel h2,
.hero-surface h2,
.account-summary h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 5vw, 5rem);
  max-width: 11ch;
}

.eyebrow,
.card-kicker,
.surface-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.section-header p,
.card-copy,
.hero-surface p,
.footer-shell p,
.timeline-step p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lede {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.card,
.hero-surface {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.metric-card {
  border-top: 3px solid var(--accent);
}

.metric-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.hero-surface-contrast,
.cta-panel,
.site-footer {
  background: var(--surface-strong);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-surface-contrast p,
.hero-surface-contrast .card-list,
.cta-panel h2,
.cta-panel .eyebrow,
.site-footer p,
.site-footer a,
.site-footer strong {
  color: rgba(255, 255, 255, 0.9);
}

.hero-surface-contrast .surface-label,
.cta-panel .eyebrow {
  color: #cfb092;
}

.section {
  padding: 2.5rem 0 4.25rem;
}

.section-alt {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(22, 20, 18, 0.06);
  border-bottom: 1px solid rgba(22, 20, 18, 0.06);
}

.section-header {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.section-header h2,
.cta-panel h2,
.hero-surface h2 {
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.home-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
  line-height: 1.6;
}

.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill {
  background: var(--accent-soft);
  border: 1px solid rgba(127, 100, 73, 0.18);
  color: var(--accent-deep);
}

.status-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(127, 100, 73, 0.18);
}

.product-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.product-logo {
  max-width: 9rem;
  max-height: 5.6rem;
  object-fit: contain;
}

.product-meta {
  display: grid;
  gap: 0.95rem;
}

.cta-panel {
  grid-template-columns: 1.2fr auto;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 1.9rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.cta-panel .button {
  background: #ffffff;
  color: #171411;
}

.cta-panel .button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.site-footer {
  margin: 1rem auto 2rem;
  width: var(--container);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.footer-shell {
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}

.footer-copy {
  text-align: right;
}

.catalog-shell {
  display: grid;
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.product-card-copy {
  display: grid;
  gap: 0.7rem;
}

.product-card-copy h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.form-shell {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group label {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 3.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 0.85rem 1rem;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 100, 73, 0.1);
}

.form-message {
  min-height: 1.15rem;
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-success {
  color: var(--accent-deep);
}

.auth-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.auth-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.auth-tab.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.tab-panel {
  display: none;
  margin-top: 1.4rem;
}

.tab-panel.is-active {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .home-story-grid,
  .auth-layout,
  .about-hero-grid,
  .footer-shell,
  .cta-panel,
  .product-card {
    grid-template-columns: 1fr;
  }

  .cta-actions,
  .footer-copy {
    justify-content: flex-start;
    text-align: left;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .product-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link,
  .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 3.8rem;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .section {
    padding-bottom: 3.25rem;
  }

  .metric-card,
  .card,
  .hero-surface,
  .cta-panel,
  .site-footer {
    padding: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
