:root {
  --ink: #17201b;
  --muted: #5f6b64;
  --line: #dfe7df;
  --paper: #fffdf7;
  --soft: #f3f8ef;
  --soft-2: #fff2e7;
  --green: #0d6b50;
  --green-dark: #094735;
  --coral: #df6049;
  --gold: #d9a329;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(27, 48, 35, 0.14);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(13, 107, 80, 0.12);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.tabs {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
}

.tab-button {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: -1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom-color: var(--line);
  border-radius: 12px 12px 0 0;
  padding: 13px clamp(18px, 3vw, 32px) 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#tab-shops {
  margin-left: auto;
}

#tab-general {
  flex: 0 0 auto;
  margin-bottom: -1px;
  border: 1px solid rgba(0, 204, 221, 0.28);
  border-radius: 12px 12px 0 0;
  padding: 5px 20px 10px;
  color: #00ccdd;
  background: rgba(0, 234, 250, 0.05);
  box-shadow: 0 -5px 16px rgba(0, 204, 221, 0.08);
  font-size: 40px;
  letter-spacing: 0;
}

#tab-general:hover {
  border-color: rgba(0, 204, 221, 0.4);
  color: #00ccdd;
  background: rgba(0, 234, 250, 0.05);
}

#tab-general.is-active {
  border-color: rgba(0, 204, 221, 0.34);
  border-bottom-color: rgba(0, 234, 250, 0.05);
  color: #00ccdd;
  background: rgba(0, 234, 250, 0.05);
  box-shadow: 0 -5px 16px rgba(0, 204, 221, 0.1);
}

#tab-general::after {
  display: block;
  background: transparent;
}

#tab-general.is-active::after {
  background: rgba(0, 204, 221, 0.7);
}

.tab-button::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: background 0.15s ease;
}

.tab-button:hover {
  color: var(--green-dark);
  border-color: #c7d8cc;
  background: rgba(255, 255, 255, 0.82);
}

.tab-button.is-active {
  color: var(--green-dark);
  border-color: #b7d2c3;
  border-bottom-color: var(--paper);
  background: var(--paper);
  box-shadow: 0 -5px 16px rgba(27, 48, 35, 0.08);
}

.tab-button.is-active::after {
  background: var(--green);
}

#tab-shops,
#tab-shops:hover,
#tab-shops.is-active {
  color: var(--green);
  border-color: rgba(13, 107, 80, 0.3);
  background: var(--soft);
}

#tab-shops.is-active {
  border-bottom-color: var(--soft);
}

#tab-associations,
#tab-associations:hover,
#tab-associations.is-active {
  color: var(--coral);
  border-color: rgba(223, 96, 73, 0.3);
  background: var(--soft-2);
}

#tab-associations.is-active {
  border-bottom-color: var(--soft-2);
}

#tab-associations.is-active::after {
  background: var(--coral);
}

#tab-associations:focus-visible {
  outline-color: var(--coral);
}

.tab-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

.tab-panel[hidden] {
  display: none;
}

body.general-active #panel-general,
body.general-active #terms,
body.general-active #privacy {
  background: rgba(0, 234, 250, 0.05);
}

body.shops-active #panel-shops,
body.shops-active #terms,
body.shops-active #privacy {
  background: var(--soft);
}

body.associations-active #panel-associations,
body.associations-active #terms,
body.associations-active #privacy {
  background: var(--soft-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(22px, 3.5vw, 43px) clamp(20px, 5vw, 72px) clamp(38px, 5vw, 64px);
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

#hero-title {
  color: #00ccdd;
}

.lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.9;
}

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

.hero-actions img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

.primary-link,
.secondary-link,
.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(13, 107, 80, 0.22);
}

.secondary-link {
  color: var(--green-dark);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42%;
  height: 28%;
  border-right: 7px solid var(--gold);
  border-bottom: 7px solid var(--gold);
  border-radius: 0 0 8px 0;
  content: "";
}

.section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.association-audience {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 20px;
}

.section-body,
.legal-content,
.contact-box {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.intro .section-body {
  width: calc(100% + 5em);
  transform: translateX(-5em);
}

.section-body p,
.legal-content p {
  margin-bottom: 18px;
}

.legal-content h3 {
  margin: 34px 0 10px;
  color: var(--green-dark);
  font-size: 21px;
  line-height: 1.5;
}

.legal-content ul {
  margin: 0 0 22px;
  padding-left: 1.5em;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--green-dark);
  text-underline-offset: 0.2em;
}

.legal-content .policy-meta {
  margin-bottom: 26px;
  font-size: 0.9em;
}

.service-band {
  display: block;
  background: var(--soft);
}

.service-band.alt {
  background: var(--soft-2);
}

.service-band .section-heading {
  max-width: 960px;
  margin-bottom: 30px;
}

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

.feature {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(13, 107, 80, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

#associations .feature {
  min-height: auto;
}

.feature h3 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1.35;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.start-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(13, 107, 80, 0.22);
  font-weight: 800;
  text-decoration: none;
}

.start-link:hover {
  background: var(--green-dark);
}

#associations .start-link {
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(223, 96, 73, 0.22);
  font-size: 36px;
}

#associations .start-link:hover {
  background: #c94f3b;
}

.shops-pricing {
  margin-top: 36px;
}

.pricing-title {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 24px;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(13, 107, 80, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(27, 48, 35, 0.06);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: center;
}

.pricing-table th,
.pricing-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  vertical-align: middle;
}

.pricing-table tr > :last-child {
  border-right: 0;
}

.pricing-table tbody tr:last-child > * {
  border-bottom: 0;
}

.pricing-table thead th {
  color: var(--green-dark);
  background: rgba(13, 107, 80, 0.1);
  font-size: 18px;
  font-weight: 900;
}

.pricing-table thead .pricing-recommended-plan {
  color: var(--green-dark);
  background: rgba(13, 107, 80, 0.2);
  white-space: nowrap;
}

.pricing-recommended-badge {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 10px;
  color: #d85f00;
  background: var(--white);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  vertical-align: 2px;
}

.pricing-table tbody th {
  width: 1%;
  color: var(--green-dark);
  background: var(--paper);
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.pricing-table tbody td {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.pricing-table tbody td:nth-last-child(2) {
  color: var(--green-dark);
  background: rgba(13, 107, 80, 0.055);
  font-weight: 800;
}

.pricing-table tbody th[colspan="2"] {
  width: 1%;
}

.pricing-table .pricing-group-item {
  width: 1%;
}

.pricing-table .pricing-sub-item {
  width: 1%;
  padding-left: 24px;
}

.pricing-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dashed currentColor;
  cursor: help;
  outline: none;
}

.pricing-tooltip-content {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: #888;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(27, 48, 35, 0.2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pricing-tooltip-content::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--white);
  content: "";
  transform: translateX(-50%);
}

.pricing-tooltip-accent {
  color: #d85f00;
}

.pricing-tooltip:hover .pricing-tooltip-content,
.pricing-tooltip:focus .pricing-tooltip-content,
.pricing-tooltip:focus-within .pricing-tooltip-content,
.pricing-tooltip.is-pinned .pricing-tooltip-content {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pricing-tooltip:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.pricing-support-jump {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.pricing-support-jump:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.pricing-table .pricing-action-row th,
.pricing-table .pricing-action-row td {
  padding-top: 20px;
  padding-bottom: 20px;
}

.pricing-start-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 18px rgba(13, 107, 80, 0.2);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.pricing-start-link:hover {
  background: var(--green-dark);
}

.pricing-support-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.pricing-support-title {
  margin-top: 32px;
  scroll-margin-top: 100px;
}

.pricing-support-title:focus {
  border-radius: 3px;
  outline: 2px solid rgba(13, 107, 80, 0.45);
  outline-offset: 6px;
}

.pricing-support-highlights article {
  border: 1px solid rgba(13, 107, 80, 0.14);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(27, 48, 35, 0.06);
}

.pricing-support-highlights h4 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.pricing-support-highlights .pricing-support-label {
  display: inline-block;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #d85f00;
  background: var(--soft-2);
  font-size: 13px;
  font-weight: 800;
}

.pricing-support-menu {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-support-menu li::marker {
  color: var(--green);
}

.contact-box {
  padding: 30px;
  border: 1px solid rgba(13, 107, 80, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(27, 48, 35, 0.08);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(13, 107, 80, 0.16);
}

.mail-link {
  position: relative;
  justify-content: center;
  margin-top: 18px;
  border: 0;
  color: var(--white);
  background: #00ccdd;
  cursor: pointer;
  font: inherit;
}

body.shops-active .mail-link {
  background: var(--green);
}

body.associations-active .mail-link {
  background: var(--coral);
}

.mail-link.is-loading {
  gap: 10px;
}

.mail-link.is-loading::before {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: var(--white);
  border-radius: 50%;
  content: "";
  animation: contact-spin 0.8s linear infinite;
}

.mail-link:disabled {
  cursor: wait;
  opacity: 0.72;
}

@keyframes contact-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.contact-dialog {
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-dialog::backdrop {
  background: rgba(9, 71, 53, 0.38);
}

.contact-dialog-panel {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-dialog-panel h3 {
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.35;
}

.contact-confirm-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-confirm-list div {
  display: grid;
  gap: 6px;
}

.contact-confirm-list dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.contact-confirm-list dd {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.contact-confirm-note {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 107, 80, 0.14);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}

.contact-confirm-note p {
  margin: 0;
}

.contact-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.dialog-cancel,
.dialog-submit {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.dialog-cancel {
  border: 1px solid var(--line);
  color: var(--green-dark);
  background: var(--white);
}

.dialog-submit {
  border: 0;
  color: var(--white);
  background: var(--coral);
}

.operator-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.operator-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.operator-list dt {
  color: var(--green-dark);
  font-weight: 800;
}

.operator-list dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #00ccdd;
}

.site-footer,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer p {
  margin: 0;
  padding-bottom: 12px;
  line-height: 1;
}

.site-footer strong {
  font-size: 40px;
}

.footer-home {
  text-decoration: none;
}

.site-footer a {
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .tabs {
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    aspect-ratio: 16 / 11;
  }

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

  .intro .section-body {
    width: auto;
    transform: none;
  }

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

  .pricing-support-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 18px;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav {
    gap: 8px 12px;
    font-size: 13px;
  }

  .hero,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tab-button {
    flex: 0 0 auto;
    width: max-content;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
    text-align: center;
  }

  .lead,
  .section-body,
  .legal-content,
  .contact-box {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-link,
  .secondary-link,
  .mail-link,
  .start-link {
    justify-content: center;
    width: 100%;
  }

  .section-action {
    justify-content: stretch;
  }

  .operator-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-dialog-actions {
    display: grid;
  }

  .dialog-cancel,
  .dialog-submit {
    width: 100%;
  }

}
