:root {
  --surface: rgba(255, 248, 235, 0.74);
  --text: #1f2626;
  --text-muted: #52605f;
  --line: rgba(17, 49, 47, 0.1);
  --emerald: #0f7666;
  --emerald-deep: #134e4a;
  --gold: #d39b2f;
  --clay: #d9724c;
  --rose: #b44d5f;
  --shadow: 0 24px 60px rgba(17, 49, 47, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(211, 155, 47, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 118, 102, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3e8 0%, #efe4cf 100%);
}

body::before,
body::after {
  position: fixed;
  content: "";
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(6px);
}

body::before {
  top: 72px;
  right: 4vw;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(211, 155, 47, 0.24), transparent 68%);
}

body::after {
  bottom: -40px;
  left: -10px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 118, 102, 0.18), transparent 70%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(17, 49, 47, 0.08);
  font-size: 0.95em;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 49, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fdf5e5;
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  box-shadow: 0 10px 24px rgba(15, 118, 102, 0.24);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 1.05rem;
}

.brand__text small,
.site-nav a,
.panel__hint,
.eyebrow,
.panel__eyebrow {
  color: var(--text-muted);
}

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

.site-nav,
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(17, 49, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.locale-toggle__button {
  min-width: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.locale-toggle__button:hover {
  color: var(--emerald);
  transform: translateY(-1px);
}

.locale-toggle__button.is-active {
  color: #fff8ee;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  box-shadow: 0 10px 20px rgba(15, 118, 102, 0.18);
}

.site-nav a,
.site-footer__nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-footer__nav a:hover {
  color: var(--emerald);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr minmax(300px, 0.82fr);
  gap: 24px;
  margin-bottom: 18px;
}

.hero__copy,
.hero__card,
.panel,
.banner,
.content-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 49, 47, 0.08);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero__copy {
  padding: 34px 34px 30px;
}

.hero__copy::before,
.hero__card::before,
.panel::before,
.content-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(211, 155, 47, 0.42), rgba(15, 118, 102, 0.16), transparent);
}

.eyebrow,
.panel__eyebrow,
.hero__card-label,
.premium-card__label {
  margin: 0 0 10px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.hero__card h2,
.panel h2,
.content-card h1 {
  margin: 0;
  line-height: 0.95;
  font-family: "Montserrat", sans-serif;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.6vw, 5.5rem);
}

.hero__lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__chips span,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 49, 47, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero__card {
  padding: 28px;
  color: #f5efe2;
  background:
    radial-gradient(circle at top right, rgba(211, 155, 47, 0.42), transparent 35%),
    linear-gradient(160deg, #0e2d2a 0%, #153f3b 58%, #19514a 100%);
}

.hero__card h2 {
  margin-top: 2px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero__card p,
.hero__facts dt {
  color: rgba(245, 239, 226, 0.76);
}

.hero__facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.hero__facts div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.hero__facts dt {
  margin-bottom: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__facts dd {
  margin: 0;
  font-weight: 800;
}

.banner {
  margin-bottom: 24px;
  padding: 16px 22px;
  color: var(--emerald-deep);
}

.banner p {
  margin: 0;
  line-height: 1.7;
}

.workflow-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  padding: 24px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.panel__hint {
  max-width: 28ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: right;
}

.setup-grid,
.editor-grid {
  display: grid;
  gap: 18px;
}

.setup-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
}

.editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 800;
}

.field textarea,
.contact-input,
.contact-select {
  width: 100%;
  border: 1px solid rgba(17, 49, 47, 0.12);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.field textarea {
  min-height: 130px;
  padding: 14px 15px;
  resize: vertical;
}

.field textarea:focus,
.contact-input:focus,
.contact-select:focus {
  outline: 2px solid rgba(15, 118, 102, 0.16);
  border-color: rgba(15, 118, 102, 0.4);
}

.contact-input,
.contact-select {
  padding: 12px 14px;
}

.premium-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(17, 49, 47, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.46);
}

.premium-card--reveal {
  margin-top: 8px;
}

.premium-card__copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
}

.premium-card__copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.premium-card__controls {
  display: grid;
  gap: 12px;
}

.template-grid {
  display: grid;
  gap: 14px;
}

.template-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 49, 47, 0.1);
  border-radius: var(--radius-lg);
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.template-card:hover,
.template-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(15, 118, 102, 0.32);
}

.template-card.is-selected {
  border-color: rgba(15, 118, 102, 0.62);
  background: rgba(240, 255, 249, 0.78);
  box-shadow: 0 18px 34px rgba(15, 118, 102, 0.12);
}

.template-card__swatch {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 16, 15, 0.08), rgba(10, 16, 15, 0.52)),
    var(--template-photo),
    linear-gradient(135deg, var(--swatch-a), var(--swatch-b) 58%, var(--swatch-c));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.template-card__swatch::before,
.template-card__swatch::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.template-card__swatch::before {
  top: 10%;
  right: 12%;
  width: 68px;
  height: 68px;
}

.template-card__swatch::after {
  inset: auto 12% 10% auto;
  width: 48%;
  height: 12%;
}

.template-card__title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.template-card__title strong {
  font-size: 1rem;
}

.template-card__title small,
.template-card__copy {
  color: var(--text-muted);
}

.template-card__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.upload-zone {
  display: grid;
  gap: 14px;
}

.import-guide {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(17, 49, 47, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.44);
}

.import-guide__title {
  margin: 0 0 10px;
  font-weight: 800;
}

.import-guide__list {
  margin: 0;
  padding-left: 20px;
}

.import-guide__list li + li {
  margin-top: 10px;
}

.upload-zone__actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-zone__meta,
.export-card__status,
.field__meta,
.preview-card__meta,
.preview-card__text,
.empty-state p,
.content-card p,
.content-card li {
  color: var(--text-muted);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.button--primary {
  color: #fef9ee;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  box-shadow: 0 16px 28px rgba(15, 118, 102, 0.24);
}

.button--ghost {
  border-color: rgba(17, 49, 47, 0.12);
  color: var(--emerald-deep);
  background: rgba(255, 255, 255, 0.54);
}

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

.table-wrap {
  overflow: auto;
  max-height: 760px;
  border: 1px solid rgba(17, 49, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.contacts-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(17, 49, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

.contacts-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(252, 248, 239, 0.96);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts-table tbody tr.is-excluded {
  opacity: 0.52;
  background: rgba(180, 77, 95, 0.05);
}

.contact-name {
  font-weight: 800;
}

.contact-subtle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
}

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

.preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 49, 47, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.46);
}

.preview-card canvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 49, 47, 0.14);
}

.preview-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-card__title strong {
  font-size: 1rem;
}

.preview-card__text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 49, 47, 0.05);
  font-size: 0.94rem;
  white-space: pre-wrap;
}

.export-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(17, 49, 47, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
}

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

.export-card__summary > div {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.export-card__label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 28px 22px;
}

.empty-state p {
  margin: 0;
}

.site-footer {
  margin-top: 26px;
  padding: 24px 10px 0;
  color: var(--text-muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.content-page {
  min-height: 100vh;
}

.content-card {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 34px;
}

.content-card h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.content-card h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
}

.content-card ul {
  padding-left: 20px;
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .template-grid--three,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header,
  .site-footer,
  .site-header__controls,
  .site-nav,
  .site-footer__nav,
  .panel__head,
  .setup-grid,
  .editor-grid,
  .export-card__summary {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .panel__hint {
    max-width: none;
    text-align: left;
  }

  .template-grid--three,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .hero__card,
  .panel,
  .content-card {
    padding: 22px;
  }

  .site-header,
  .site-footer,
  .site-header__controls,
  .site-nav,
  .site-footer__nav {
    align-items: flex-start;
  }

  .locale-toggle {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    max-width: none;
    font-size: 2.9rem;
  }

  .panel h2,
  .hero__card h2 {
    font-size: 2.1rem;
  }

  .contacts-table {
    min-width: 640px;
  }

  .upload-zone__actions,
  .toolbar {
    flex-direction: column;
  }

  .button,
  .upload-zone__label {
    width: 100%;
  }

  .locale-toggle__button {
    flex: 1 1 0;
    text-align: center;
  }
}
