/*
Theme Name: NIRA Home
Theme URI: https://niraprotocols.com/
Author: OpenClaw
Description: Custom NIRA Protocols homepage theme.
Version: 1.0.0
Text Domain: nira-home
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-weight: 300 700;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-Variable.ttf") format("truetype");
  font-weight: 300 700;
}

:root {
  --ink: #171511;
  --muted: #615c53;
  --line: #cec7b8;
  --paper: #f4f1e8;
  --paper-soft: #fbf8ef;
  --stone: #dfd5c3;
  --dark: #2d281f;
  --gold: #c99b2f;
  --white: #fffdf7;
  --shadow: 0 18px 48px rgba(45, 40, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 40px;
  background: var(--dark);
  color: var(--paper-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
}

.announcement span {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  min-height: 76px;
  padding: 0 56px;
  background: rgba(250, 247, 238, 0.94);
  border-bottom: 1px solid rgba(206, 199, 184, 0.7);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 166px;
}

.primary-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.primary-nav {
  justify-content: center;
  gap: 50px;
  font-size: 14px;
}

.header-actions {
  justify-content: flex-end;
  gap: 18px;
}

.header-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

i[data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 1.45;
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 58px 5.2vw 52px;
  background:
    linear-gradient(90deg, rgba(246, 242, 232, 0.95) 0%, rgba(246, 242, 232, 0.86) 38%, rgba(246, 242, 232, 0.18) 58%),
    url("assets/backgrounds/hero-product-scene.jpg") center right / cover no-repeat;
}

.hero-content {
  max-width: 650px;
}

.rating-line,
.review-score {
  display: flex;
  align-items: center;
  gap: 13px;
}

.google-mark {
  color: #4285f4;
  font-size: 28px;
  font-weight: 700;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.06em;
}

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

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  margin: 24px 0 18px;
  font-size: clamp(56px, 5.2vw, 62px);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5.6vw, 70px);
}

h3 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.02;
}

.hero-copy,
.section-intro {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
}

.hero-copy {
  max-width: 550px;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 26px;
  margin: 42px 0 28px;
  max-width: 520px;
}

.hero-icons div {
  text-align: center;
}

.hero-icons span,
.eyebrow,
.value-strip h3,
.product-card button,
.button,
.microcopy {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-icons i {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 216px;
  min-height: 55px;
  padding: 14px 24px;
  border: 1px solid var(--dark);
}

.button i {
  width: 20px;
  height: 20px;
}

.button-dark {
  background: var(--dark);
  color: var(--paper-soft);
}

.button-light {
  background: transparent;
  color: var(--dark);
}

.trusted {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.trusted p {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.avatar-stack {
  display: flex;
}

.avatar-stack span,
.review-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: linear-gradient(135deg, #d6b18b, #72604d);
}

.avatar-stack span + span {
  margin-left: -10px;
}

.avatar-stack span:nth-child(2),
.review-avatar.a2 {
  background: linear-gradient(135deg, #a37d5d, #2f2b25);
}

.avatar-stack span:nth-child(3),
.review-avatar.a3 {
  background: linear-gradient(135deg, #e4c6a3, #6e765f);
}

.avatar-stack span:nth-child(4) {
  background: linear-gradient(135deg, #beb09d, #56483b);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 34px 5.2vw;
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-strip article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.value-strip article:first-child {
  padding-left: 0;
}

.value-strip article:last-child {
  padding-right: 0;
  border-right: 0;
}

.value-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section-pad {
  padding: 68px 5.2vw;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: #7a7468;
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 24px;
}

.section-intro.left {
  margin-left: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  max-width: 810px;
  margin: 22px auto 24px;
}

.filter-row button,
.product-card button,
.goal-grid a {
  min-height: 34px;
  border: 1px solid #8e897e;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.filter-row button.active {
  background: var(--dark);
  color: var(--paper-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid rgba(206, 199, 184, 0.82);
  text-align: center;
}

.product-image {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 250px;
  padding: 18px 24px 0;
  background: url("assets/backgrounds/empty-stone-stage.jpg") center / cover no-repeat;
}

.product-image img {
  width: auto;
  max-height: 238px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card h3 {
  margin: 15px 12px 7px;
}

.product-card p {
  min-height: 38px;
  margin: 0 auto 8px;
  max-width: 245px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.22;
}

.price {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-card button {
  width: calc(100% - 44px);
  margin: 0 22px 20px;
}

.center-button {
  width: fit-content;
  margin: 22px auto 10px;
}

.microcopy {
  margin: 0;
  color: #9a9386;
  font-size: 9px;
}

.how {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 30px;
  padding: 70px 5.2vw 48px;
  background:
    linear-gradient(90deg, rgba(246, 242, 232, 0.97) 0%, rgba(246, 242, 232, 0.86) 52%, rgba(246, 242, 232, 0.22) 75%),
    url("assets/backgrounds/vial-stone-scene.jpg") center right / cover no-repeat;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 850px;
  margin-top: 34px;
}

.steps article {
  min-height: 160px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.steps article:first-child {
  padding-left: 0;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 1px solid #a59e91;
  border-radius: 50%;
  color: var(--muted);
}

.steps i {
  margin-left: 10px;
}

.steps h3 {
  font-size: 19px;
}

.steps p {
  color: var(--muted);
  font-size: 14px;
}

.side-note,
.script-note {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.55;
  text-transform: uppercase;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.goal-grid article {
  background: var(--paper-soft);
  border: 1px solid rgba(206, 199, 184, 0.82);
}

.goal-image {
  height: 210px;
  background: url("assets/backgrounds/empty-stone-stage.jpg") center / cover no-repeat;
}

.goal-one {
  background-image: url("assets/backgrounds/hero-product-scene.jpg");
  background-position: 40% center;
}

.goal-two {
  background-image: url("assets/backgrounds/vial-stone-scene.jpg");
  background-position: 70% center;
}

.goal-three {
  background-image: url("assets/backgrounds/product-bag-vial-scene.jpg");
  background-position: 70% center;
}

.goal-four {
  background-image: url("assets/backgrounds/empty-stone-stage.jpg");
  background-position: center;
}

.goal-grid h3 {
  margin: 16px 14px 6px;
}

.goal-grid p {
  max-width: 260px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
}

.goal-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 46px);
  margin: 0 23px 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.comparison {
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr) 190px;
  gap: 36px;
  align-items: center;
  padding: 64px 5.2vw;
  background:
    linear-gradient(rgba(246, 242, 232, 0.86), rgba(246, 242, 232, 0.84)),
    url("assets/backgrounds/empty-stone-stage.jpg") center / cover no-repeat;
}

.comparison-product img {
  height: 330px;
  width: 100%;
  object-fit: cover;
  object-position: 67% center;
  box-shadow: var(--shadow);
}

.comparison-product p {
  margin: 18px 0 0;
  font-size: 16px;
  letter-spacing: 0.24em;
  line-height: 1.45;
  text-transform: uppercase;
}

.comparison-table-wrap {
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: rgba(251, 248, 239, 0.83);
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 13px 18px;
  border: 1px solid rgba(206, 199, 184, 0.72);
  font-size: 14px;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  background: rgba(45, 40, 31, 0.94);
  color: var(--paper-soft);
}

.comparison-table i {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

.script-note {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.reviews {
  background: var(--paper);
}

.reviews-hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: 54px 5.2vw;
  background:
    linear-gradient(90deg, rgba(246, 242, 232, 0.96) 0%, rgba(246, 242, 232, 0.82) 44%, rgba(246, 242, 232, 0.1) 67%),
    url("assets/backgrounds/product-bag-vial-scene.jpg") center right / cover no-repeat;
}

.reviews-hero > div {
  max-width: 585px;
}

.review-score strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 58px;
  line-height: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 5.2vw;
}

.review-grid article {
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(45, 40, 31, 0.05);
}

.review-head {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 54px;
  height: 54px;
}

.review-head h3 {
  margin: 0;
  font-size: 22px;
}

.review-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

blockquote {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.08;
}

.compact {
  padding-top: 20px;
  padding-bottom: 30px;
  border-bottom: 0;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 42px;
  text-align: left;
}

.faq-list h2,
.support-card h2 {
  font-size: clamp(42px, 5vw, 66px);
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  cursor: pointer;
}

summary::after {
  content: "+";
  font-family: "Jost", Arial, sans-serif;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: -6px 0 18px;
  color: var(--muted);
}

.support-card {
  min-height: 390px;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(246, 242, 232, 0.96), rgba(246, 242, 232, 0.32)),
    url("assets/backgrounds/product-bag-vial-scene.jpg") center / cover no-repeat;
}

.support-card p {
  max-width: 330px;
  color: var(--muted);
  font-size: 18px;
}

.final-cta {
  min-height: 310px;
  padding: 64px 5.2vw;
  text-align: center;
  background:
    linear-gradient(rgba(246, 242, 232, 0.58), rgba(246, 242, 232, 0.7)),
    url("assets/backgrounds/empty-stone-stage.jpg") center / cover no-repeat;
}

.final-cta h2 {
  margin-bottom: 10px;
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.centered {
  justify-content: center;
}

.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.newsletter {
  display: grid;
  grid-template-columns: 56px minmax(280px, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 30px 5.2vw;
  border-bottom: 1px solid var(--line);
}

.newsletter h2 {
  margin: 0 0 5px;
  font-family: "Jost", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.newsletter p {
  margin: 0;
  color: var(--muted);
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}

.newsletter input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #a8a196;
  background: transparent;
}

.newsletter .button {
  min-width: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 38px;
  padding: 36px 5.2vw;
}

.footer-brand {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.footer-brand img {
  width: 200px;
  margin-bottom: 22px;
}

.footer-main h3 {
  margin-bottom: 12px;
  font-family: "Jost", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.footer-main a,
.footer-main p {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.social div {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 5.2vw;
  border-top: 1px solid var(--line);
  color: #928b80;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 170px 1fr auto;
    padding: 0 28px;
  }

  .primary-nav {
    gap: 24px;
  }

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

  .value-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

  .value-strip article:nth-child(2) {
    border-right: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .script-note {
    display: none;
  }
}

@media (max-width: 780px) {
  .announcement {
    padding: 10px 18px;
    font-size: 9px;
    line-height: 1.5;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 0 18px;
  }

  .brand img {
    width: 132px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 14px;
    font-size: 13px;
  }

  .header-actions {
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 54px 22px 360px;
    background:
      linear-gradient(180deg, rgba(246, 242, 232, 0.98) 0%, rgba(246, 242, 232, 0.9) 50%, rgba(246, 242, 232, 0.08) 100%),
      url("assets/backgrounds/hero-product-scene.jpg") bottom right / 760px auto no-repeat;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 46px;
  }

  .hero-icons,
  .filter-row,
  .product-grid,
  .goal-grid,
  .review-grid,
  .faq,
  .newsletter,
  .footer-main {
    grid-template-columns: 1fr;
  }

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

  .button,
  .center-button {
    width: 100%;
  }

  .button-light {
    background: rgba(251, 248, 239, 0.82);
  }

  .trusted {
    align-items: flex-start;
    max-width: 330px;
    padding: 10px;
    background: rgba(251, 248, 239, 0.72);
  }

  .value-strip {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .value-strip article,
  .value-strip article:first-child,
  .value-strip article:last-child {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .section-pad,
  .faq {
    padding: 54px 22px;
  }

  .how {
    display: block;
    padding: 54px 22px 280px;
    background:
      linear-gradient(180deg, rgba(246, 242, 232, 0.98) 0%, rgba(246, 242, 232, 0.92) 58%, rgba(246, 242, 232, 0.06) 100%),
      url("assets/backgrounds/vial-stone-scene.jpg") bottom right / 640px auto no-repeat;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article,
  .steps article:first-child {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-note {
    display: none;
  }

  .comparison {
    padding: 54px 22px;
  }

  .reviews-hero {
    min-height: auto;
    padding: 54px 22px 270px;
    background:
      linear-gradient(180deg, rgba(246, 242, 232, 0.98) 0%, rgba(246, 242, 232, 0.88) 54%, rgba(246, 242, 232, 0.12) 100%),
      url("assets/backgrounds/product-bag-vial-scene.jpg") bottom right / 650px auto no-repeat;
  }

  .review-grid {
    padding: 22px;
  }

  .review-score {
    flex-wrap: wrap;
  }

  .support-card {
    min-height: 420px;
    padding: 30px;
  }

  .newsletter form {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    padding: 0;
    border-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 18px 22px;
  }
}
