/* GanzaQuest typography, color and spacing. */
:root {
  --ink: #192e2b;
  --muted: #4c605b;
  --paper: #fbf9f3;
  --mist: #f0ede2;
  --line: #cfcfc0;
  --night: #142e2a;
  --primary: #235b48;
  --primary-hover: #194435;
  --link: #205743;
  --gold: #f5c779;
  --radius-tile: 8px;
  --radius-field: 5px;
  --wrap: 1240px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.icon { display: block; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; }
.skip-link:focus { top: 12px; }
.center { text-align: center; }

/* Type and actions */
.kicker { color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .115em; text-transform: uppercase; margin-bottom: 16px; }
.display, .headline { font-family: var(--font-display); font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
.display { font-size: clamp(40px, 5.5vw, 80px); line-height: 1.01; letter-spacing: -.052em; }
.headline { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -.042em; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); }
.accent { color: var(--primary); }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; border: 1px solid transparent; border-radius: 5px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s ease; }
.pill:hover { background: var(--primary-hover); }
.pill:disabled { opacity: .55; cursor: wait; }
.pill-small { min-height: 42px; padding: 7px 13px; font-size: 13px; white-space: nowrap; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.more-link:hover { text-decoration: underline; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wrap); min-height: 68px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-word { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.045em; }
.desktop-nav { display: flex; gap: clamp(12px, 1.55vw, 24px); font-size: 13px; font-weight: 700; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; font-size: 12px; font-weight: 700; }
.lang-switch a { display: grid; min-height: 44px; place-items: center; padding: 0 5px; color: var(--muted); }
.lang-switch a:hover, .lang-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 5px; min-width: 44px; min-height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle .menu-icon-close, .menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
.mobile-nav[hidden] { display: none !important; }

/* Main sections and homepage */
.section { max-width: var(--wrap); margin: 0 auto; padding: 84px 28px; }
.section-head { max-width: 750px; margin-bottom: 36px; }
.section-head .lede { margin-top: 14px; }
.hero { max-width: var(--wrap); margin: 0 auto; padding: 60px 28px 58px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 76px); }
.hero .display { text-wrap: wrap; }
.hero .lede { max-width: 52ch; margin-top: 22px; }
.hero-note { margin-top: 21px; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-tile); color: #f4d6a4; background: var(--night); }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(circle at 50% 53%, transparent 0 29px, #91b5a629 30px 31px), linear-gradient(145deg, #2e5248, var(--night) 70%); }
.hero-visual::after { content: ""; position: absolute; inset: 6%; border: 1px solid #91b5a66b; border-radius: 50%; pointer-events: none; }
.hero-visual .nciata-illustration { width: 62%; height: auto; }

/* Services and feature panels */
.services { padding-top: 48px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { min-width: 0; background: var(--mist); border: 1px solid var(--line); border-top: 0; border-left: 0; padding: clamp(23px, 3.4vw, 43px); display: flex; flex-direction: column; align-items: flex-start; }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 5px; color: var(--primary); background: var(--paper); }
.tile h3 { font-family: var(--font-display); font-size: clamp(25px, 2.75vw, 37px); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tile-short { margin-top: 8px; font-size: 18px; color: var(--muted); }
.tile-text { margin-top: 13px; font-size: 16px; color: var(--muted); max-width: 55ch; }
.tile .more-link { margin-top: auto; padding-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tags li { font-size: 13px; padding: 4px 8px; border-radius: 4px; background: var(--paper); color: var(--ink); }

/* About */
.about-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 6vw, 84px); }
.about-copy { color: var(--muted); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.7; max-width: 57ch; }
.about-copy p + p { margin-top: 18px; }
.about-visual { min-height: 245px; display: grid; place-items: center; border-radius: var(--radius-tile); background: var(--night); color: var(--gold); }
.about-visual .nciata-illustration { width: min(150px, 45%); height: auto; }

/* Call to action and page intros */
.cta-tile { background: var(--mist); border: 1px solid var(--line); border-left: 5px solid #ad7630; border-radius: var(--radius-tile); padding: clamp(27px, 6vw, 68px); }
.cta-tile .headline { margin-bottom: 23px; }
.empty-tile .headline { margin-bottom: 0; }
.empty-tile .lede { max-width: 58ch; margin-top: 14px; }
.empty-tile .more-link { margin-top: 14px; }
.page-intro { max-width: var(--wrap); margin: 0 auto; padding: 56px 28px 20px; }
.page-intro .lede { max-width: 62ch; margin-top: 17px; }
.page-intro + .section { padding-top: 46px; }
.section + .section { padding-top: 0; }

/* Contact */
.contact-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.contact-section aside { position: sticky; top: 92px; }
.contact-text { margin-top: 18px; font-size: 19px; color: var(--muted); }
.contact-detail { display: flex; gap: 14px; margin-top: 32px; padding: 22px; border-radius: var(--radius-tile); background: var(--mist); color: var(--primary); }
.contact-detail strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.contact-detail p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.contact-footnote { margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; }
.contact-form label > input, .contact-form label > textarea, .contact-form label > select { display: block; margin-top: 8px; }
.contact-form label > span { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input:not([type="checkbox"]), .contact-form textarea, .contact-form select { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--paper); font-size: 17px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(35, 91, 72, .2); }
.contact-form ::placeholder { color: #626f67; }
.contact-form .consent-label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--muted); }
.consent-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.consent-label a { color: var(--link); text-decoration: underline; }
.contact-form .pill { align-self: flex-start; padding: 13px 28px; }
.form-success { display: flex; gap: 10px; align-items: flex-start; color: #1d7a3d; font-size: 15px; }
.form-error { color: #c4211b; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Product catalog and blog preview */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 22px; align-items: start; }
.product-grid:not(:has(.product-details[open])) { grid-auto-rows: 1fr; align-items: stretch; }
.product-grid > li { min-width: 0; }
.product-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-tile); background: var(--paper); box-shadow: 0 12px 28px #192e2b0b; }
.product-art { min-height: 132px; display: grid; place-items: center; background: repeating-radial-gradient(circle at 50% 52%, transparent 0 24px, #b9d2c62e 25px 26px), linear-gradient(145deg, #33594d, var(--night)); color: var(--gold); }
.product-art-agent { background: repeating-linear-gradient(135deg, #e6ce9630 0 1px, transparent 1px 27px), linear-gradient(145deg, #5b4b2f, var(--night)); }
.product-art-plate { width: 69px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #f5c77980; border-radius: 15px; background: var(--night); transform: rotate(-9deg); }
.product-art-plate .icon { transform: rotate(9deg); }
.product-content { flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 29px); }
.product-category { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; min-height: 26px; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.product-pace { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.product-content h2 { margin-top: 8px; font-family: var(--font-display); font-size: clamp(25px, 2.6vw, 35px); line-height: 1.11; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-description { margin-top: 11px; color: var(--muted); font-size: 16px; }
.product-content > .product-description { margin-bottom: auto; }
.product-launch { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--mist); color: var(--primary); font-size: 13px; font-weight: 700; }
.product-details { margin-top: 18px; border-top: 1px solid var(--line); }
.product-details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; color: var(--primary); font-weight: 700; cursor: pointer; list-style: none; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-details[open] summary .icon { transform: rotate(90deg); }
.product-details-body { padding-top: 10px; }
.product-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 15px; margin-top: 15px; }
.product-price { color: var(--muted); }
.product-price strong { color: var(--ink); font-size: 21px; }
.product-terms { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; color: var(--primary); font-size: 14px; font-weight: 700; }
.product-terms .icon { margin-top: 2px; }
.course-pricing-title, .course-interest h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.15; }
.course-pricing { display: grid; margin: 9px 0 0; }
.course-pricing > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.course-pricing dt { color: var(--muted); font-size: 14px; }
.course-pricing dd { margin: 0; font-size: 15px; font-weight: 700; }
.course-privacy { font-size: 12px; color: var(--muted); }
.course-interest { padding-top: 21px; }
.course-interest p { margin-top: 7px; font-size: 14px; }
.course-interest .contact-form { gap: 11px; margin-top: 14px; }
.course-interest .course-privacy { margin: 0; font-size: 12px; }
.course-privacy a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.blog-preview article { display: flex; gap: 18px; align-items: flex-start; max-width: 775px; padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-tile); background: var(--mist); }
.blog-preview .headline { font-size: clamp(27px, 3.25vw, 44px); }
.blog-preview .lede { margin-top: 10px; }
.blog-preview-mark { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: var(--radius-field); background: var(--paper); color: var(--primary); }

/* Privacy */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 700; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 17px; }
.translation-note { margin-bottom: 36px; padding: 16px 20px; border-radius: 14px; background: var(--mist); font-size: 15px !important; }

/* Footer */
.site-footer { background: var(--mist); color: var(--muted); font-size: 12px; line-height: 1.34; letter-spacing: -0.01em; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 36px 28px 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.footer-motto { font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.footer-nav a { color: var(--ink); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; }

/* Mobile menu and responsive layout */
@media (max-width: 1120px) {
  .header-actions .pill-small { display: none; }
}
@media (max-width: 959px) {
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-inner { min-height: 60px; }
  .mobile-nav { position: fixed; inset: 60px 0 0; background: var(--paper); padding: 20px 28px 36px; overflow-y: auto; }
  .mobile-nav > a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 23px; font-weight: 700; }
  .mobile-nav > a.active { color: var(--primary); text-decoration: underline; text-underline-offset: 5px; }
  .lang-switch-mobile { padding-top: 22px; gap: 5px; }
  .lang-switch-mobile a { min-width: 44px; border-radius: 5px; background: var(--mist); }
  .lang-switch-mobile a[aria-current] { background: var(--primary); color: #fff; }
}
@media (max-width: 734px) {
  .header-inner, .footer-inner { padding-inline: 20px; }
  .section { padding: 54px 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 42px 20px; }
  .about-section { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-visual .nciata-illustration { width: 50%; max-width: 220px; }
  .page-intro { padding: 40px 20px 12px; }
  .tile-grid, .contact-section, .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-section { gap: 33px; }
  .contact-section aside { position: static; }
  .desktop-break { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-form .pill { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* FAQ */
.faq-list { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-size: 21px; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 4px 26px; font-size: 17px; color: var(--muted); max-width: 700px; }
