:root {
  --ink: #173328;
  --muted: #62766d;
  --paper: #f8f5ec;
  --panel: #fffdf7;
  --line: #dce4dc;
  --green: #1d6b49;
  --green-dark: #124b35;
  --lime: #cbe46a;
  --orange: #e79a3b;
  --shadow: 0 22px 60px rgba(29, 65, 48, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 76px);
  background: rgba(248, 245, 236, 0.94);
  border-bottom: 1px solid rgba(29, 107, 73, 0.1);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 14px 14px 14px 4px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 22px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a, .link-button { color: var(--ink); background: none; border: 0; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .link-button:hover { color: var(--green); }
.main-nav .nav-cta { padding: 10px 16px; color: #fff; background: var(--green); border-radius: 999px; }
.menu-button { display: none; padding: 8px 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px; }
[data-user-nav] { display: none; }

.page {
  display: none;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 110px) clamp(20px, 7vw, 110px);
}
.page.is-active { display: block; }
.hero-page.is-active, .auth-page.is-active { display: grid; }
.hero-page {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(203, 228, 106, .36), transparent 24%),
    linear-gradient(145deg, #fbf8ef 0%, #f5f1e4 100%);
}
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 6vw, 78px); letter-spacing: -.045em; }
h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); }
.hero-lead { max-width: 650px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button, .disabled-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.primary-button { color: #fff; background: var(--green); box-shadow: 0 12px 28px rgba(29, 107, 73, .2); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { color: var(--green); background: transparent; border-color: rgba(29, 107, 73, .34); }
.disabled-button { width: 100%; color: #78877f; background: #e8ece8; cursor: not-allowed; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--lime); border: 2px solid var(--green); border-radius: 50%; }

.hero-visual { position: relative; min-height: 520px; }
.sun-orb { position: absolute; inset: 4% 4% auto auto; width: 250px; height: 250px; background: rgba(203, 228, 106, .55); border-radius: 50%; }
.landscape-lines {
  position: absolute;
  inset: 30% -30% -30% -20%;
  background:
    radial-gradient(ellipse at 25% 90%, #2a7552 0 35%, transparent 35.5%),
    radial-gradient(ellipse at 55% 92%, #438563 0 40%, transparent 40.5%),
    radial-gradient(ellipse at 80% 95%, #8bac69 0 43%, transparent 43.5%);
  transform: rotate(-3deg);
}
.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 18px;
  background: rgba(255, 253, 247, .94);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.floating-card strong, .floating-card small { display: block; }
.floating-card small { color: var(--muted); font-size: 12px; }
.bovinea-card { top: 22%; left: 0; transform: rotate(-4deg); }
.ovinea-card { top: 52%; right: 0; transform: rotate(3deg); }
.product-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}
.bovin-icon { background: var(--green); }
.ovin-icon { color: var(--ink); background: var(--orange); }
.status-dot { width: 10px; height: 10px; background: var(--lime); border: 2px solid var(--green); border-radius: 50%; }

.auth-page {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  background: linear-gradient(120deg, #e9f0da 0 48%, var(--paper) 48%);
}
.auth-intro { max-width: 620px; }
.auth-intro h1 { font-size: clamp(40px, 5vw, 66px); }
.auth-intro p:last-child { color: var(--muted); font-size: 18px; }
.form-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 38px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd7ce;
  border-radius: 10px;
  outline: none;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 107, 73, .12); }
input:disabled { background: #edf0ed; }
.field-help, .form-message, .form-switch { margin: -8px 0 0; color: var(--muted); font-size: 12px; }
.form-message { min-height: 20px; color: #a23c2e; font-weight: 700; }
.form-message.is-success { color: var(--green); }
.form-switch { text-align: center; }
.form-switch a { color: var(--green); font-weight: 800; }

.app-page { max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(40px, 5vw, 64px); }
.page-heading p:last-child { max-width: 700px; margin: 0; color: var(--muted); }
.metric-grid, .product-grid, .legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-card, .product-card, .legal-grid article, .session-card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(29, 65, 48, .07);
}
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin: 14px 0; font-family: Georgia, serif; font-size: 52px; }
.metric-card .metric-word { font-size: 30px; }
.accent-card { background: var(--green); border-color: var(--green); }
.accent-card span, .accent-card small, .accent-card strong { color: #fff; }
.info-panel {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 40px;
  margin-top: 24px;
  padding: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 22px;
}
.info-panel p { margin: 0; color: rgba(255, 255, 255, .82); }
.info-panel .eyebrow { color: var(--lime); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { display: grid; gap: 16px; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; }
.product-card p { margin: 0; color: var(--muted); }
.phase-badge { padding: 5px 9px; color: var(--green); background: #edf4d1; border-radius: 999px; font-size: 11px; font-weight: 800; }
.notice { display: flex; gap: 14px; margin-bottom: 24px; padding: 16px 18px; background: #fff5d9; border: 1px solid #ead699; border-radius: 12px; }
.notice span { color: #6e6549; }
.empty-state { padding: 64px 24px; text-align: center; background: var(--panel); border: 1px dashed #bac9be; border-radius: 22px; }
.empty-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; color: var(--green); background: #edf4d1; border-radius: 50%; font-size: 36px; }
.empty-state p { color: var(--muted); }
.session-list { display: grid; gap: 12px; }
.session-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.session-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.session-card button { padding: 8px 12px; color: #9b3e32; background: #fff6f3; border: 1px solid #e6c6c0; border-radius: 8px; }
.current-badge { padding: 4px 8px; color: var(--green); background: #edf4d1; border-radius: 999px; font-size: 11px; font-weight: 800; }
.legal-page { max-width: 1300px; margin: 0 auto; }
.legal-page > h1 { max-width: 900px; }
.legal-grid article p { color: var(--muted); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px clamp(20px, 5vw, 76px); color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 20px; }
.footer-brand strong { font-size: 18px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    display: none;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: grid; }
  .main-nav .nav-cta { text-align: center; }
  .hero-page, .auth-page { grid-template-columns: 1fr; }
  .hero-visual { min-height: 410px; }
  .auth-page { background: linear-gradient(180deg, #e9f0da 0 40%, var(--paper) 40%); }
  .metric-grid, .legal-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid .accent-card { grid-column: span 2; }
}

@media (max-width: 680px) {
  .site-header { padding: 12px 16px; }
  .brand small { display: none; }
  .page { padding: 42px 18px; }
  h1 { font-size: 42px; }
  .hero-page { align-content: start; }
  .hero-visual { min-height: 340px; }
  .sun-orb { width: 180px; height: 180px; }
  .floating-card { min-width: 220px; padding: 13px; }
  .product-icon { width: 46px; height: 46px; font-size: 23px; }
  .bovinea-card { top: 16%; }
  .ovinea-card { top: 52%; }
  .trust-row { display: grid; gap: 8px; }
  .action-row > * { width: 100%; }
  .page-heading { display: grid; align-items: start; }
  .page-heading .primary-button { width: 100%; }
  .metric-grid, .product-grid, .legal-grid, .info-panel { grid-template-columns: 1fr; }
  .metric-grid .accent-card { grid-column: auto; }
  .notice { display: grid; }
  .session-card { align-items: start; flex-direction: column; }
  footer { align-items: start; flex-direction: column; }
}

