@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakh-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakh-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakh-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --green: #00b262;
  --green-deep: #008f4e;
  --green-soft: #e8f8f0;
  --yellow: #ffcc44;
  --yellow-soft: #fff7dc;
  --gray-25: #fbfcfb;
  --gray-50: #f3f5f4;
  --gray-100: #e8ecea;
  --gray-300: #b9c2bd;
  --gray-500: #69756f;
  --ink: #17201c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-25);
  color: var(--ink);
  font-family: "Yekan Bakh", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.topbar {
  position: relative;
  z-index: 10;
  background: var(--green);
  border-bottom: 0;
  box-shadow: 0 8px 26px rgba(0, 178, 98, 0.14);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 132px;
  height: 42px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.4);
}

.internal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
}

.internal-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -180px;
  width: 450px;
  height: 450px;
  border: 80px solid rgba(255, 255, 255, 0.08);
  border-radius: 48%;
  transform: rotate(-14deg);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: linear-gradient(to left, black, transparent 75%);
}

.hero-inner {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-block: 52px 72px;
  position: relative;
  z-index: 2;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 9px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.32;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero p {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 2;
  font-size: 16px;
}

.hero-mark {
  flex: 0 0 210px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 58px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-5deg);
  backdrop-filter: blur(8px);
}

.hero-mark img {
  width: 120px;
  height: 160px;
  object-fit: contain;
  transform: rotate(5deg);
}

.search-wrap {
  position: relative;
  z-index: 5;
  margin-top: 28px;
}

.search-box {
  height: 64px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  color: var(--gray-500);
  box-shadow: 0 16px 45px rgba(23, 32, 28, 0.1);
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 16px 45px rgba(0, 178, 98, 0.13), 0 0 0 4px var(--green-soft);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-box input::placeholder {
  color: #98a29d;
}

.result-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
}

.content {
  padding-top: 48px;
  padding-bottom: 92px;
}

.resource-section + .resource-section {
  margin-top: 62px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.5px;
}

.section-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
}

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

.resource-card {
  position: relative;
  min-height: 112px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  background: var(--white);
  color: inherit;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: var(--green);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: #cfe6da;
  box-shadow: 0 14px 34px rgba(26, 43, 35, 0.08);
}

.resource-card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.resource-card:focus-visible,
.modal button:focus-visible,
.modal a:focus-visible,
.empty-state button:focus-visible {
  outline: 3px solid rgba(0, 178, 98, 0.28);
  outline-offset: 3px;
}

.resource-card--pending {
  cursor: default;
}

.resource-card--pending:hover {
  transform: none;
  border-color: var(--gray-100);
  box-shadow: none;
}

.resource-card--pending::after {
  display: none;
}

.card-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
}

.card-icon--green {
  color: var(--green-deep);
  background: var(--green-soft);
}

.card-icon--yellow {
  color: #9b7200;
  background: var(--yellow-soft);
}

.card-icon--gray {
  color: var(--gray-500);
  background: var(--gray-50);
}

.card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-copy strong {
  font-size: 15px;
  font-weight: 800;
}

.card-copy small {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.65;
}

.card-action {
  margin-right: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--green-deep);
}

.card-action--pending {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--gray-50);
  color: #8a948f;
  font-size: 10px;
  font-weight: 600;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--gray-300);
  border-radius: 24px;
  background: var(--white);
}

.empty-state > span {
  width: 66px;
  height: 66px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.empty-state h2 {
  margin: 18px 0 4px;
}

.empty-state p {
  margin: 0;
  color: var(--gray-500);
}

.empty-state button {
  margin-top: 20px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  cursor: pointer;
}

footer {
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--gray-500);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 27, 23, 0.7);
  backdrop-filter: blur(5px);
  cursor: default;
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(510px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
  animation: modal-in 220ms ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: pointer;
}

.modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.modal-icon--yellow {
  background: var(--yellow-soft);
  color: #9b7200;
}

.modal-panel h2 {
  margin: 20px 0 8px;
  font-size: 25px;
}

.modal-lead,
.address-text {
  margin: 0 0 22px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.95;
}

.copy-row {
  min-height: 58px;
  margin-bottom: 18px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  background: var(--gray-50);
}

.copy-row code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.copy-row button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--white);
  color: var(--green-deep);
  font-size: 12px;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.secondary-button {
  margin-top: 20px;
  background: var(--ink);
}

.secondary-button:hover {
  background: #2a3731;
}

.room-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.network-note {
  margin: -6px 0 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #f4df9c;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #765800;
  font-size: 12px;
  font-weight: 600;
}

.network-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 68, 0.28);
}

.room-grid > span {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-100);
  border-radius: 13px;
  background: var(--gray-25);
}

.room-grid strong {
  font-size: 14px;
}

.room-grid small {
  color: var(--gray-500);
  font-size: 11px;
}

.address-text {
  padding: 16px;
  border-right: 3px solid var(--yellow);
  border-radius: 13px;
  background: var(--gray-50);
  color: #49534e;
}

.postal-code {
  margin: -8px 0 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
}

.postal-code strong {
  color: var(--ink);
  letter-spacing: 1px;
}

.palette-list {
  display: grid;
  gap: 10px;
}

.palette-list button {
  width: 100%;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gray-100);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  text-align: right;
  cursor: pointer;
}

.palette-list button:hover {
  border-color: var(--gray-300);
  background: var(--gray-25);
}

.palette-list button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.palette-list strong {
  font-size: 13px;
}

.palette-list code {
  color: var(--gray-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  direction: ltr;
  text-align: right;
}

.palette-list svg {
  color: var(--gray-500);
}

.signature-form {
  display: grid;
  gap: 14px;
}

.signature-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.signature-form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signature-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.signature-preview-wrap {
  margin: 4px 0;
  padding: 12px;
  border: 1px solid var(--gray-100);
  border-radius: 15px;
  background: var(--gray-50);
}

.signature-preview-wrap > span {
  display: block;
  margin-bottom: 9px;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
}

.signature-preview {
  min-height: 105px;
  padding: 18px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  border-radius: 11px;
  background: var(--white);
  direction: rtl;
}

.swatch {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.swatch--green {
  background: var(--green);
}

.swatch--yellow {
  background: var(--yellow);
}

.swatch--gray {
  background: var(--gray-50);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 50%;
  bottom: 28px;
  transform: translateX(50%);
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 600;
  animation: toast-in 180ms ease both;
}

.toast svg {
  color: var(--yellow);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(50%, 8px);
  }
}

@media (max-width: 960px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-mark {
    flex-basis: 170px;
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar-inner {
    min-height: 66px;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
  }

  .brand img {
    width: 100px;
    height: 32px;
  }

  .brand-divider {
    height: 20px;
  }

  .internal-badge {
    font-size: 0;
    gap: 0;
  }

  .hero-inner {
    min-height: 305px;
    padding-block: 40px 65px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-mark {
    position: absolute;
    left: -46px;
    bottom: -35px;
    width: 170px;
    height: 170px;
    opacity: 0.28;
  }

  .hero-mark img {
    width: 85px;
    height: 118px;
  }

  .search-box {
    height: 58px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .result-count {
    display: none;
  }

  .content {
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .resource-section + .resource-section {
    margin-top: 48px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resource-card {
    min-height: 96px;
    padding: 15px;
    border-radius: 17px;
  }

  .card-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .footer-inner {
    min-height: 74px;
    justify-content: center;
    text-align: center;
  }

  .footer-inner span:last-child {
    display: none;
  }

  .modal-panel {
    padding: 26px 20px 20px;
    border-radius: 22px;
  }

  .modal-close {
    top: 15px;
    left: 15px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
