:root {
  --ink: #17211c;
  --muted: #607066;
  --line: #d8e1dc;
  --surface: #ffffff;
  --field: #f6f8f7;
  --brand: #0d7c66;
  --brand-dark: #075344;
  --gold: #f4b63f;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(23, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #eef3f0;
}

a {
  color: var(--brand-dark);
}

.home-body {
  background: #f4f7f5;
}

.site-nav {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.home-hero {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 52px 0 76px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
}

.hero-copy .lede {
  max-width: 700px;
  font-size: 1.2rem;
}

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

.tap-demo {
  position: relative;
  min-height: 520px;
}

.phone-mock {
  position: absolute;
  right: 0;
  top: 20px;
  display: grid;
  width: min(320px, 82vw);
  min-height: 520px;
  padding: 34px 24px;
  border: 10px solid #111a16;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  align-content: center;
  gap: 16px;
}

.phone-top {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 82px;
  height: 7px;
  border-radius: 999px;
  background: #111a16;
  transform: translateX(-50%);
}

.phone-mock p {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.phone-mock span {
  color: var(--muted);
  font-weight: 700;
}

.mini-stars {
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
}

.signal-card {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: grid;
  width: 220px;
  min-height: 220px;
  padding: 22px;
  border-radius: 8px;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
  place-items: center;
}

.nfc-rings {
  position: relative;
  width: 130px;
  height: 130px;
}

.nfc-rings span {
  position: absolute;
  inset: calc(var(--ring) * 18px);
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-left-color: transparent;
  border-radius: 50%;
}

.nfc-rings span:nth-child(1) {
  --ring: 0;
}

.nfc-rings span:nth-child(2) {
  --ring: 1;
}

.nfc-rings span:nth-child(3) {
  --ring: 2;
}

.qr-grid {
  display: grid;
  width: 76px;
  height: 76px;
  margin-top: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.qr-grid span {
  background: rgba(255, 255, 255, 0.9);
}

.qr-grid span:nth-child(3n),
.qr-grid span:nth-child(5),
.qr-grid span:nth-child(14) {
  opacity: 0.35;
}

.home-section,
.benefit-grid,
.home-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.impact-band,
.growth-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.home-section h2,
.home-cta h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.home-section p,
.growth-list {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 70px;
}

.benefit-card,
.steps-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.06);
}

.benefit-card h3,
.steps-grid h3 {
  font-size: 1.25rem;
}

.benefit-card p,
.steps-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.steps-section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid article span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.growth-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.home-cta {
  display: grid;
  min-height: 360px;
  padding: 80px 24px;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(13, 124, 102, 0.92), rgba(23, 33, 28, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px);
  color: #ffffff;
  text-align: center;
  place-items: center;
}

.home-cta .eyebrow,
.home-cta h2 {
  color: #ffffff;
}

.home-cta .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
}

.company-home {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: hidden;
}

.compact-nav {
  width: 100%;
  padding: clamp(14px, 2.2vw, 22px) 0 0;
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.company-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
}

.company-copy h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
}

.company-copy .lede {
  max-width: 650px;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}

.company-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.device-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.nfc-badge {
  display: grid;
  min-height: 130px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 900;
}

.qr-mini {
  display: grid;
  width: 126px;
  height: 126px;
  padding: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.qr-mini span {
  background: var(--ink);
}

.qr-mini span:nth-child(3n),
.qr-mini span:nth-child(6),
.qr-mini span:nth-child(15) {
  background: var(--line);
}

.review-preview {
  padding: 20px;
  border-radius: 8px;
  background: var(--field);
}

.mini-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-preview h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

.review-preview p {
  margin: 10px 0 0;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  max-width: 680px;
  margin-top: clamp(18px, 3vw, 30px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.metric-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: clamp(16px, 2vw, 24px);
}

.company-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 33, 28, 0.06);
}

.company-grid h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.company-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.review-body {
  background:
    linear-gradient(135deg, rgba(13, 124, 102, 0.88), rgba(23, 33, 28, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px),
    #0d7c66;
}

.review-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.review-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.rating-panel {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
}

.review-panel h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.rating-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.rating-grid form {
  margin: 0;
}

.rating-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rating-button:hover,
.rating-button:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(13, 124, 102, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.stars {
  color: var(--gold);
  font-size: clamp(1.3rem, 6vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.rating-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--field);
  font-weight: 700;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.dashboard-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.dashboard-header h1 {
  margin-bottom: 10px;
}

.button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

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

.button.full-width {
  width: 100%;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.editor-panel,
.list-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.07);
}

.editor-panel,
.list-panel {
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--brand);
  outline: none;
}

small {
  color: var(--muted);
}

.form-actions,
.row-actions,
.panel-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-actions {
  flex-wrap: wrap;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.site-row h3 {
  margin-bottom: 6px;
}

.site-row p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-row a {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.row-actions {
  flex: 0 0 auto;
  align-items: flex-start;
}

.row-actions form {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.icon-button.danger {
  color: var(--danger);
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
}

.notice p {
  margin: 0;
}

.notice.success {
  border-color: #a6d8c7;
  color: #075344;
}

.notice.error {
  border-color: #f1a8a0;
  color: var(--danger);
}

.empty-state {
  margin: 26px 0 8px;
  color: var(--muted);
}

.text-link {
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-nav,
  .dashboard-header,
  .dashboard-grid,
  .site-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav nav {
    flex-wrap: wrap;
  }

  .home-hero,
  .company-hero,
  .company-grid,
  .impact-band,
  .growth-section,
  .benefit-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 30px;
  }

  .tap-demo {
    min-height: 430px;
  }

  .phone-mock {
    right: 0;
  }

  .signal-card {
    left: 0;
    bottom: 0;
    width: 180px;
    min-height: 180px;
  }

  .dashboard-header .button {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .company-copy h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .company-panel {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: stretch;
  }

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

  .nfc-badge {
    min-height: 82px;
    font-size: 1.45rem;
  }

  .qr-mini {
    width: 82px;
    height: 82px;
    padding: 8px;
    gap: 4px;
  }

  .company-grid {
    gap: 10px;
  }

  .company-grid article {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .home-body {
    background: #f7faf8;
  }

  .company-home {
    width: min(100% - 24px, 460px);
    gap: 12px;
  }

  .compact-nav {
    display: flex;
    padding-top: 12px;
  }

  .brand-mark {
    font-size: 0.96rem;
  }

  .company-hero {
    gap: 14px;
    align-items: start;
  }

  .company-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 13vw, 3.3rem);
    line-height: 0.95;
  }

  .company-copy .lede {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .metric-strip {
    margin-top: 12px;
  }

  .metric-strip div {
    padding: 10px 8px;
  }

  .metric-strip strong {
    font-size: 0.92rem;
  }

  .metric-strip span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .company-panel {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .device-row {
    gap: 8px;
  }

  .review-preview {
    padding: 12px;
  }

  .mini-label {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .review-preview h2 {
    margin-bottom: 6px;
    font-size: 1.14rem;
  }

  .review-preview .mini-stars {
    font-size: 1.35rem;
  }

  .review-preview p {
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .company-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .company-grid article {
    min-height: 66px;
    padding: 10px 8px;
    text-align: center;
  }

  .company-grid h3 {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .company-grid p {
    display: none;
  }

  .review-shell {
    min-height: 100svh;
    padding: 12px;
    place-items: center;
  }

  .review-panel {
    display: grid;
    align-content: start;
    width: min(292px, 100%);
    min-height: auto;
    padding: 12px 10px;
  }

  .rating-panel {
    align-self: center;
  }

  .rating-panel .eyebrow {
    margin-bottom: 4px;
    font-size: 0.58rem;
  }

  .rating-panel h1 {
    margin-bottom: 4px;
    font-size: 0.78rem;
    line-height: 1.12;
  }

  .rating-panel .lede {
    margin-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .rating-grid {
    gap: 5px;
    margin-top: 9px;
  }

  .rating-button {
    grid-template-columns: minmax(0, 1fr) 26px;
    min-height: 36px;
    padding: 4px 7px 4px 10px;
    border-radius: 6px;
  }

  .rating-number {
    width: 26px;
    height: 26px;
    font-size: 0.76rem;
  }

  .stars {
    font-size: clamp(0.88rem, 4.7vw, 1.08rem);
  }
}

@media (max-width: 380px) {
  .review-shell {
    padding: 8px;
  }

  .review-panel {
    width: min(282px, 100%);
    padding: 11px 9px;
  }

  .rating-panel h1 {
    font-size: 0.72rem;
  }

  .rating-grid {
    gap: 4px;
    margin-top: 8px;
  }

  .rating-button {
    min-height: 34px;
  }

  .rating-number {
    width: 24px;
    height: 24px;
  }
}
