:root {
  color-scheme: light;
  --ink: #16211b;
  --muted: #64726b;
  --paper: #ffffff;
  --wash: #f5f3ed;
  --line: #dfdbd0;
  --green: #0f5f3f;
  --green-dark: #09291d;
  --gold: #c7952c;
  --gold-soft: #fff4d9;
  --shadow: 0 24px 70px rgba(17, 35, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.site-header.compact {
  position: static;
  width: min(920px, calc(100% - 40px));
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.86;
}

nav a:hover {
  opacity: 1;
}

.hero {
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 124px max(20px, calc((100vw - 1120px) / 2)) 56px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 30, 20, 0.92), rgba(6, 30, 20, 0.72) 48%, rgba(6, 30, 20, 0.2)),
    url("assets/riceflow-hero.png") center / cover no-repeat;
}

.hero-panel {
  width: min(760px, 100%);
  padding: 38px;
  background: rgba(6, 28, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 660px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #211707;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

.summary-strip,
.modules-section,
.details-section,
.contact-section,
footer,
.policy-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.summary-strip div {
  min-height: 138px;
  padding: 26px;
  background: var(--paper);
}

.summary-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.summary-strip span,
.module-grid p,
.details-copy p,
.detail-card dd,
.contact-section p,
.policy-page p,
.policy-page li {
  color: var(--muted);
}

.modules-section,
.details-section,
.contact-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-grid article {
  min-height: 184px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(15, 95, 63, 0.1);
  border-radius: 8px;
}

.module-grid h3 {
  margin-bottom: 10px;
}

.details-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details-copy p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 18px;
}

.detail-card {
  padding: 28px;
  background: var(--green-dark);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dl {
  margin: 0;
}

.detail-card div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-card div:first-child {
  padding-top: 0;
}

.detail-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--gold);
  font-weight: 900;
}

dd {
  margin: 0;
}

.detail-card a {
  color: #ffffff;
}

.contact-section {
  text-align: center;
}

.contact-section p {
  max-width: 610px;
  margin: 14px auto 24px;
}

.contact-section .button.primary {
  background: var(--green);
  color: #ffffff;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

footer div {
  display: grid;
  gap: 2px;
}

footer strong {
  color: var(--ink);
  font-size: 16px;
}

footer a {
  color: var(--green);
  font-weight: 900;
}

.privacy-body {
  background: #ffffff;
}

.policy-page {
  max-width: 920px;
  padding: 42px 0 72px;
}

.policy-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
}

.policy-hero h1 {
  color: var(--ink);
  font-size: 46px;
}

.updated {
  margin-top: 12px;
  color: var(--muted);
}

.policy-page section:not(.policy-hero) {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.policy-page h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.policy-page p + p,
.policy-page p + ul {
  margin-top: 12px;
}

.policy-page ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.policy-page li + li {
  margin-top: 8px;
}

.policy-page a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header,
  .site-header.compact {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 120px 18px 48px;
  }

  .hero-panel {
    padding: 28px;
  }

  .summary-strip,
  .module-grid,
  .details-section {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    margin-top: 24px;
  }

  .modules-section,
  .details-section,
  .contact-section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-header.compact {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  nav {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
    padding: 126px 14px 34px;
  }

  .hero-panel {
    padding: 22px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy,
  .details-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .summary-strip,
  .modules-section,
  .details-section,
  .contact-section,
  footer,
  .policy-page {
    width: min(100% - 28px, 1120px);
  }

  .summary-strip div,
  .module-grid article,
  .detail-card {
    padding: 22px;
  }

  .detail-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-hero h1 {
    font-size: 36px;
  }
}
