@font-face {
      font-family: "Recoleta";
      src: url("../fonts/RecoletaBasic-RegularDEMO.woff2") format("woff2"),
           url("../fonts/RecoletaBasic-RegularDEMO.woff")  format("woff");
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --bg: linear-gradient(to bottom, #BAE4E6, #E7F4F5);
      --text: #1a1a1a;
      --muted: #555555;
      --accent: #1a1a1a;
      --max-width: 640px;
      --pad: clamp(1rem, 4vw, 2rem);
      --font-display: "Recoleta", Georgia, serif;
      --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html {
      height: 100%;
      scroll-behavior: smooth;
      background: var(--bg);
      background-attachment: fixed;
    }

    body {
      min-height: 100%;
      margin: 0;
      color: var(--text);
      font-family: var(--font-body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .wrap {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
    }

    /* ===== Hero ===== */
    .hero {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(1.5rem, 4vh, 3rem) var(--pad);
      text-align: center;
    }
    .logo { width: 100%; height: auto; margin: 0 auto 2rem; }
    .tagline {
      font-family: var(--font-display);
      font-weight: normal;
      font-size: clamp(1.75rem, 6vw, 3rem);
      line-height: 1.15;
      margin: 0 0 1.5rem;
    }
    .description {
      font-size: clamp(1rem, 2.5vw, 1.125rem);
      color: var(--muted);
      max-width: 48ch;
      margin: 0 auto;
    }
    
    /* ===== Shared section heading ===== */
    .section-title {
      font-family: var(--font-display);
      font-weight: normal;
      font-size: clamp(1.5rem, 5vw, 2.25rem);
      text-align: center;
      margin: 0 0 1.5rem;
    }
    
    /* ===== First app ===== */
    .app {
      padding: var(--pad);
      padding-bottom: clamp(1.5rem, 4vh, 3rem);
      text-align: center;
    }
    .app p {
      color: var(--muted);
      max-width: 48ch;
      margin: 0 auto;
      font-size: clamp(1rem, 2.5vw, 1.125rem);
    }

    /* ===== About ===== */
    .about { padding: var(--pad); padding-bottom: 4rem; }
    .about p {
      margin: 0 0 1.25rem;
      color: var(--muted);
    }

    /* ===== Guiding principles — 2×2 grid ===== */
    .principles-grid {
      list-style: none;
      margin: 1.25rem 0 2rem;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.75rem 2rem;
    }
    .principles-grid strong {
      display: block;
      font-family: var(--font-display);
      font-weight: normal;
      font-size: 1.3rem;
      color: var(--text);
      margin-bottom: 0.35rem;
    }
    .principles-grid span { color: var(--muted); }
    @media (max-width: 480px) {
      .principles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    }
    
    /* ===== Contact ===== */
    #contact {
      padding: 0 var(--pad) 4rem;
    }
    
    #contact-form,
    #form-success {
      max-width: 460px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 16px;
      padding: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    /* Keep JS hide behavior working despite the ID rules above */
    #contact-form[hidden],
    #form-success[hidden] { display: none; }
    
    #contact-form {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    
    .form-field {
      display: flex;
      flex-direction: column;
      text-align: left;
    }
    .form-field label {
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
      color: var(--text);
    }
    .form-field input,
    .form-field textarea {
      width: 100%;
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--text);
      padding: 0.7rem 0.85rem;
      border: 1px solid #d5dede;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.3);
    }
    .form-field input:focus,
    .form-field textarea:focus {
      outline: none;
      border-color: #3aa6ac;
      box-shadow: 0 0 0 3px rgba(58, 166, 172, 0.2);
    }
    .form-field textarea { resize: vertical; }
    
    /* Center the Turnstile widget within the card */
    .cf-turnstile {
      display: flex;
      justify-content: center;
    }
    
    /* Send button — flat, larger, subtle brand teal */
    #submit-btn {
      align-self: center;
      width: 100%;
      font-family: var(--font-body);
      font-size: 1.15rem;
      font-weight: 600;
      padding: 0.9rem 1.75rem;
      border: none;
      border-radius: 12px;
      background: #3aa6ac;
      color: #ffffff;
      cursor: pointer;
      transition: background 0.15s ease;
    }
    #submit-btn:hover:not(:disabled),
    #submit-btn:focus-visible { background: #2c8b90; }
    #submit-btn:disabled {
      background: #bcd8d9;
      cursor: not-allowed;
    }
    
    #form-error {
      color: #c0392b;
      font-size: 0.9rem;
      text-align: center;
      margin: 0;
      min-height: 1.2em;
    }
    
    #form-success { text-align: center; }
    #form-success h3 {
      font-family: var(--font-display);
      font-weight: normal;
      margin: 0;
    }

    /* ===== Footer ===== */
    .footer {
      text-align: center;
      padding: 0 var(--pad) 2.5rem;
      color: var(--muted);
    }
    .footer .social {
      display: flex; flex-wrap: wrap; justify-content: center;
      gap: 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0;
    }
    .footer .social a {
      color: var(--accent);
      text-decoration: none;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s ease;
    }
    .footer .social a:hover,
    .footer .social a:focus-visible { border-bottom-color: currentColor; }
    .footer p { margin: 0; font-size: 0.8rem; }