:root {
  --olive: #8a9248;
  --olive-deep: #5b6230;
  --cream: #f5f3ec;
  --sand: #ece7d8;
  --card: rgba(255, 255, 255, 0.68);
  --line: rgba(91, 98, 48, 0.16);
  --text: #25301d;
  --muted: #5e684f;
  --shadow: 0 20px 60px rgba(57, 67, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-head: "Jost", "Inter", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 146, 72, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 155, 191, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f5ef 0%, #f2eee4 100%);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

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

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

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(57, 67, 33, 0.06);
}

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

.brand img {
  width: 38px;
  height: auto;
}

.brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name,
.brand-sub,
.section-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-name {
  font: 700 0.95rem var(--font-head);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.top-link,
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-link:hover,
.open-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(57, 67, 33, 0.1);
  border-color: rgba(91, 98, 48, 0.26);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 48px 0 28px;
}

#survey {
  scroll-margin-top: 24px;
}

.hero-copy-full {
  grid-column: 1 / -1;
}

.hero-copy,
.embed-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(138, 146, 72, 0.14), rgba(122, 155, 191, 0.08));
}

.eyebrow,
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--olive-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.05;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 26px;
  font-size: 1.04rem;
  color: var(--muted);
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(57, 67, 33, 0.1);
}

.hero-btn-primary {
  background: var(--olive-deep);
  color: #fff;
}

.hero-btn-primary:hover {
  background: #485022;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: var(--line);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.placeholder-badge,
.code-hint code {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(91, 98, 48, 0.12);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.survey-shell {
  padding-top: 12px;
}

.survey-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.survey-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.open-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hero-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.embed-card {
  overflow: hidden;
}

.placeholder {
  padding: 36px;
}

.placeholder h3 {
  margin-top: 18px;
  font-size: 2rem;
}

.placeholder p {
  max-width: 62ch;
  color: var(--muted);
  margin: 14px 0 0;
}

.code-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.code-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(138, 146, 72, 0.12);
}

.form-frame {
  width: 100%;
  min-height: 1320px;
  border: 0;
  background: #fff;
}

.page-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-sticky-cta {
  display: none;
}

.is-hidden {
  display: none;
}

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

  .survey-head,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-link,
  .open-link {
    width: 100%;
  }

  .hero-copy,
  .placeholder {
    padding: 28px;
  }

  .hero-copy {
    order: 1;
  }

  .form-frame {
    min-height: 1480px;
  }
}

@media (max-width: 640px) {
  main,
  .topbar,
  .page-footer {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    margin-top: 12px;
    border-radius: 28px;
  }

  .hero {
    padding-top: 24px;
    gap: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-text {
    margin: 18px 0 20px;
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btn,
  .hero-points span,
  .placeholder-badge,
  .code-hint code {
    width: 100%;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-copy,
  .placeholder,
  .embed-card {
    border-radius: 22px;
  }

  .survey-head {
    margin-bottom: 14px;
  }

  .survey-head .open-link {
    display: none;
  }

  .survey-head h2,
  .placeholder h3 {
    font-size: 1.7rem;
  }

  .form-frame {
    min-height: 1600px;
  }

  .page-footer {
    padding-bottom: 98px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(91, 98, 48, 0.18);
    border-radius: 22px;
    background: rgba(247, 245, 239, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(57, 67, 33, 0.14);
  }

  .mobile-sticky-cta .hero-btn {
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .topbar,
  .hero-copy,
  .placeholder {
    padding: 22px;
  }

  .topbar {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-sub,
  .eyebrow,
  .section-label {
    letter-spacing: 0.1em;
  }

  .form-frame {
    min-height: 1680px;
  }
}
