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

    :root {
      --green: #1A6B3C;
      --green-dark: #0F4A28;
      --green-deep: #0A3019;
      --gold: #D4A017;
      --gold-light: #F0C040;
      --offwhite: #F9F6F0;
      --charcoal: #1C1C1E;
      --charcoal-soft: #2C2C2A;
      --muted: #5F5E5A;
      --border: rgba(28,28,30,0.1);
    }

    html.dark-mode {
      --offwhite: #0D1510;
      --charcoal: #EAF0EC;
      --charcoal-soft: #121C16;
      --muted: #A8B8AD;
      --border: rgba(220,230,224,0.18);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--offwhite);
      color: var(--charcoal);
      overflow-x: hidden;
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: #fff;
      border-bottom: 0.5px solid var(--border);
      padding: 0 40px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-logo-mark {
      width: 40px;
      height: 40px;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-logo-mark img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .nav-logo-text {
      font-family: 'Fraunces', serif;
      font-size: 18px;
      font-weight: 600;
      color: var(--charcoal);
    }

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--charcoal);
      font-size: 14px;
      font-weight: 400;
      transition: color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.is-active {
      color: var(--green);
    }

    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--charcoal);
      cursor: pointer;
    }

    .nav-toggle svg { width: 20px; height: 20px; }

    .nav-cta {
      background: var(--green);
      color: #fff !important;
      font-size: 13px;
      font-weight: 500;
      padding: 10px 20px;
      border-radius: 4px;
      text-decoration: none;
    }

    .questionnaire-page {
      padding: 48px 0 64px;
      background: linear-gradient(180deg, rgba(15,74,40,0.04), rgba(212,160,23,0.02));
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 40px;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(212,160,23,0.15);
      border: 0.5px solid rgba(212,160,23,0.4);
      border-radius: 100px;
      padding: 6px 16px;
      margin-bottom: 18px;
    }

    .hero-pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--gold);
    }

    .hero-pill span {
      color: #9a7407;
      font-size: 12px;
      letter-spacing: 0.8px;
      font-weight: 500;
    }

    .questionnaire-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(32px, 4.5vw, 50px);
      line-height: 1.08;
      margin-bottom: 12px;
    }

    .questionnaire-title .gold { color: var(--gold); font-style: italic; }

    .questionnaire-sub {
      max-width: 720px;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 24px;
      font-size: 15px;
    }

    .questionnaire-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .questionnaire-card-top {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 12px;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      background: #fff;
    }

    .questionnaire-card-top h2 {
      font-family: 'Fraunces', serif;
      font-size: 22px;
      font-weight: 600;
    }

    .status {
      width: 100%;
      margin-top: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #f8faf9;
      color: var(--muted);
      font-size: 14px;
      display: none;
    }

    .status.error {
      display: block;
      border-color: rgba(178, 50, 50, 0.28);
      background: rgba(178, 50, 50, 0.06);
      color: #7e1f1f;
    }

    .embed-frame-wrap {
      width: 100%;
      min-height: 76vh;
      background: #fff;
    }

    .embed-frame {
      display: block;
      width: 100%;
      min-height: 76vh;
      border: 0;
    }

    .helper {
      margin-top: 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .helper code {
      color: var(--green-dark);
      word-break: break-all;
      font-size: 13px;
    }

    footer {
      background: var(--charcoal-soft);
      padding: 64px 40px 32px;
    }

    .footer-inner { max-width: 1200px; margin: 0 auto; }

    .footer-top {
      display: grid;
      grid-template-columns: 1.8fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 48px;
    }

    .footer-brand-name {
      font-family: 'Fraunces', serif;
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .footer-logo-img {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      object-fit: cover;
      display: block;
    }

    .footer-brand-desc {
      color: rgba(255,255,255,0.4);
      font-size: 13px;
      line-height: 1.65;
      max-width: 240px;
    }

    .footer-col-title {
      color: rgba(255,255,255,0.6);
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col a {
      color: rgba(255,255,255,0.4);
      font-size: 13px;
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-col a:hover { color: rgba(255,255,255,0.8); }

    .footer-divider {
      border: none;
      border-top: 0.5px solid rgba(255,255,255,0.08);
      margin-bottom: 24px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-copy { color: rgba(255,255,255,0.25); font-size: 12px; }

    .footer-reg {
      display: flex;
      align-items: center;
      gap: 6px;
      color: rgba(255,255,255,0.25);
      font-size: 12px;
    }

    .footer-reg-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

    html.dark-mode body {
      background: #0B120D;
      color: #EAF0EC;
    }

    html.dark-mode nav {
      background: #0E1712;
      border-bottom-color: rgba(212,160,23,0.24);
      box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    }

    html.dark-mode .nav-logo-text,
    html.dark-mode .nav-links a {
      color: rgba(246,248,245,0.92);
    }

    html.dark-mode .nav-links a:hover,
    html.dark-mode .nav-links a.is-active {
      color: var(--gold-light);
    }

    html.dark-mode .nav-toggle {
      background: rgba(255,255,255,0.04);
      border-color: rgba(212,160,23,0.32);
      color: rgba(246,248,245,0.92);
    }

    html.dark-mode .questionnaire-page {
      background: linear-gradient(180deg, rgba(15,74,40,0.24), rgba(212,160,23,0.1));
    }

    html.dark-mode .questionnaire-card,
    html.dark-mode .questionnaire-card-top {
      background: #121D17;
      border-color: rgba(212,160,23,0.24);
      box-shadow: 0 14px 30px rgba(0,0,0,0.3);
    }

    html.dark-mode .hero-pill {
      background: rgba(212,160,23,0.18);
      border-color: rgba(212,160,23,0.36);
    }

    html.dark-mode .hero-pill span { color: #e2be52; }
    html.dark-mode .questionnaire-sub,
    html.dark-mode .helper { color: #A8B8AD; }
    html.dark-mode .helper code { color: #D7E6DC; }
    html.dark-mode .embed-frame-wrap { background: #0E1712; }

    @media (max-width: 1023px) {
      .container { padding-left: 16px; padding-right: 16px; }

      nav {
        padding-left: 16px;
        padding-right: 16px;
        height: auto;
        min-height: 64px;
      }

      .nav-toggle { display: inline-flex; }

      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 0.5px solid var(--border);
        padding: 12px 16px 16px;
        flex-direction: column;
        gap: 14px;
      }

      html.dark-mode .nav-links {
        background: linear-gradient(180deg, #101D15 0%, #0B140F 100%);
        border-bottom-color: rgba(212,160,23,0.24);
        border-top: 1px solid rgba(212,160,23,0.14);
        box-shadow: 0 16px 30px rgba(0,0,0,0.4);
      }

      nav.nav-open .nav-links { display: flex; }

      .questionnaire-page { padding-top: 36px; }

      .questionnaire-card-top h2 { font-size: 18px; }

      footer { padding-left: 16px; padding-right: 16px; }
      .footer-top { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
    }
