/* COUNTRO dark appearance: existing dark sections remain native navy. */
:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
/* Alternate wordmark keeps the gold identity and uses ivory lettering. */
.logo .logo-dark { display:none; }
html[data-theme="dark"] .logo .logo-light { display:none; }
html[data-theme="dark"] .logo .logo-dark { display:block; }
.theme-toggle { flex:0 0 auto; width:43px; height:43px; border:1px solid #dccaa4; border-radius:5px; background:#fffaf0; color:#ad802b; display:grid; place-items:center; padding:8px; transition:background .2s, border-color .2s; }
.theme-toggle:hover { background:#f4e6c9; border-color:#bd8d31; }
.theme-toggle:focus-visible { outline:3px solid #d8a638; outline-offset:3px; }
.theme-toggle .theme-icon { width:21px; height:21px; display:block; }
.theme-toggle .theme-sun { display:none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display:block; }

/* The original ivory sections become navy, never a brown translucent overlay. */
html[data-theme="dark"] body { background:#061925; color:#f4f1e9; }
html[data-theme="dark"] .header { background:rgba(6,24,36,.97); border-bottom-color:#28485c; }
html[data-theme="dark"] .navigation a { color:#e5ecf0; }
html[data-theme="dark"] .navigation a:hover { color:#f0bc54; }
html[data-theme="dark"] .nav-cta, html[data-theme="dark"] .btn-dark { color:#071c2a; background:#d8a638; }
html[data-theme="dark"] .nav-cta span { color:#071c2a; }
html[data-theme="dark"] .btn-outline { color:#f4f1e9; border-color:#d4a549; }
html[data-theme="dark"] .btn-outline:hover { background:#102f41; }
html[data-theme="dark"] .menu-toggle span { background:#e8dcbf; }
html[data-theme="dark"] .navigation { background:#081e2b; border-bottom-color:#2b4759; }
html[data-theme="dark"] .theme-toggle { border-color:#3c5667; color:#f0bd58; background:#0e2b3e; }
html[data-theme="dark"] .theme-toggle:hover { background:#173c50; }
html[data-theme="dark"] .language-trigger { background:#102e40; border-color:#3c5667; color:#eef4f5; }
html[data-theme="dark"] .language-trigger:hover, html[data-theme="dark"] .language-trigger[aria-expanded="true"] { background:#194152; border-color:#c99b40; }
html[data-theme="dark"] .language-menu { background:#102a3a; border-color:#4b6575; box-shadow:0 14px 38px #0009; }
html[data-theme="dark"] .language-option { color:#e4edf2; }
html[data-theme="dark"] .language-option:hover,html[data-theme="dark"] .language-option:focus-visible { background:#204355; }
html[data-theme="dark"] .language-option[aria-pressed="true"] { color:#f4cd79; background:#224558; }

html[data-theme="dark"] .hero { background:radial-gradient(circle at 80% 18%,#1c3b48 0%,transparent 40%), linear-gradient(150deg,#071d2b 0%,#0b2636 92%); }
html[data-theme="dark"] .hero-grain { opacity:.06; }
html[data-theme="dark"] .hero h1 { color:#fff9ed; }
html[data-theme="dark"] .hero h1 em { color:#e5b351; }
html[data-theme="dark"] .hero-lead,html[data-theme="dark"] .hero-language p { color:#b2c5d0; }
html[data-theme="dark"] .hero-note,html[data-theme="dark"] .visual-caption,html[data-theme="dark"] .hero-bottom { color:#9cb4c4; }
html[data-theme="dark"] .hero-language { border-top-color:#3c5560; }
html[data-theme="dark"] .hero-language strong { color:#eef4f5; }
html[data-theme="dark"] .hero-language-icon { color:#e7b64b; border-color:#b58a37; }
html[data-theme="dark"] .hero-mark .orb-number { background:#0b2636d9; color:#f4cd79; }
html[data-theme="dark"] .hero-visual { background:transparent; border-color:transparent; }
html[data-theme="dark"] .hero-mark img,html[data-theme="dark"] .hero-visual img { mix-blend-mode:normal; }

html[data-theme="dark"] .section-light { background:#0b2231; color:#f4f1e9; }
html[data-theme="dark"] .section-light:nth-of-type(even) { background:#091f2d; }
html[data-theme="dark"] .feature-text .section-intro,html[data-theme="dark"] .section-head>p { color:#b8cbd4; }
html[data-theme="dark"] .detail-lines>div { border-color:#315065; }
html[data-theme="dark"] .detail-lines p { color:#b1c3d0; }
html[data-theme="dark"] .light-media { background:radial-gradient(circle at center,#17384a,#0a2635 78%); border-color:#315061; }
html[data-theme="dark"] .light-cutout-stage:before { background:radial-gradient(ellipse at center,rgba(214,169,71,.17),transparent 70%); }
html[data-theme="dark"] .state-live { color:#f2c363; border-color:#aa863b; }
html[data-theme="dark"] .steps-grid article,html[data-theme="dark"] .toolkit-grid article { background:#102c3c; border-color:#365369; }
html[data-theme="dark"] .steps-grid article p,html[data-theme="dark"] .toolkit-grid article>p:not(.tool-kicker) { color:#b4c9d5; }
html[data-theme="dark"] .receiving-band { background:#213642; border:1px solid #8f703b; }
html[data-theme="dark"] .receiving-band>div:first-child p,html[data-theme="dark"] .scan-demo small,html[data-theme="dark"] .scan-label { color:#d5c39e; }
html[data-theme="dark"] .scan-demo { border-color:#8c754c; }
html[data-theme="dark"] .scan-demo strong { color:#fff0c2; }
html[data-theme="dark"] .locale-strip { background:#173446; }
html[data-theme="dark"] .language-list span { background:#0e2838; color:#e6edf1; border-color:#415868; }
html[data-theme="dark"] .language-list small { color:#e7b957; }
html[data-theme="dark"] .price-card:not(.pro) { background:#102d3f; color:#f2f2ed; border-color:#b18a44; }
html[data-theme="dark"] .price-card.pro { background:#061a27; border-color:#365466; }
html[data-theme="dark"] .price-card>p,html[data-theme="dark"] .price-amount span { color:#b7cbd6; }
html[data-theme="dark"] .price-card li { border-top-color:#355467; }
html[data-theme="dark"] .pricing-note { color:#b1c3ca; }
html[data-theme="dark"] .faq-items,html[data-theme="dark"] .faq-items details { border-color:#365365; }
html[data-theme="dark"] .faq-items details p { color:#b7cad6; }
html[data-theme="dark"] .faq-items summary:after { color:#e3b657; }

/* Keep input text and placeholder readable in the dark signup pane. */
html[data-theme="dark"] .signup-card { color:#eef3f5; background:#102b3c; border:1px solid #39586b; }
html[data-theme="dark"] .signup-card .tabs { border-color:#3c5a6b; }
html[data-theme="dark"] .tabs button { color:#c5d1d9; }
html[data-theme="dark"] .tabs button[aria-selected="true"] { color:#f5dd9c; }
html[data-theme="dark"] .signup-card input:not([type=checkbox]),html[data-theme="dark"] .signup-card select { color:#f5f6f5; background:#082233; border-color:#527084; color-scheme:dark; }
html[data-theme="dark"] .signup-card input::placeholder { color:#aac1ce; opacity:1; }
html[data-theme="dark"] .consent,html[data-theme="dark"] .invitation-note,html[data-theme="dark"] .signup-footnote { color:#b5cad5; }
html[data-theme="dark"] .signup-footnote { border-color:#446171; }
html[data-theme="dark"] .consent a { color:#f5bd58; }
html[data-theme="dark"] .optional { color:#a9c0cd; }
html[data-theme="dark"] .feedback { color:#bcd3dd; }
html[data-theme="dark"] .feedback.error { color:#ffa48d; }
html[data-theme="dark"] .feedback.success { color:#9de6c6; }
html[data-theme="dark"] .footer { background:#03121c; }
html[data-theme="dark"] .review-ribbon { background:#102d3e; color:#f9f6ef; }

/* Privacy page inherits the appropriate background and body color. */
html[data-theme="dark"] .privacy-actions .text-link { color:#e6edf1; }
html[data-theme="dark"] .privacy-copy { color:#b9cbd4; }

@media(max-width:1180px) {
  /* Reserve width for both accessibility controls and translated labels. */
  .nav-inner { gap:11px; }
  .navigation { gap:10px; }
  .nav-cta { padding:11px; }
}
@media(max-width:900px) {
  .nav-inner .theme-toggle { margin-left:0; }
  .navigation { z-index:29; }
}
@media(max-width:760px) {
  .nav-inner { gap:7px; }
  .nav-inner .logo { width:clamp(101px,27vw,136px); }
  .nav-inner .language-trigger { min-width:0; padding:7px 8px; gap:5px; }
  .nav-inner .language-current { font-size:.72rem; }
  .nav-inner .theme-toggle { width:38px; height:40px; padding:8px; }
  .nav-inner .menu-toggle { width:35px; padding:8px 5px; }
}
@media(max-width:355px) {
  .nav-inner .logo { width:100px; }
  .nav-inner .language-world { display:none; }
  .nav-inner .language-trigger { padding:6px; }
  .nav-inner .theme-toggle { width:34px; }
  .nav-inner .menu-toggle { width:31px; }
}

/* Collapse full navigation before the extra appearance control can crowd the header. */
@media(max-width:1220px) {
  .header .navigation { display:none; position:absolute; left:0; right:0; top:84px; padding:24px; flex-direction:column; gap:18px; align-items:flex-start; background:#fff9ed; border-bottom:1px solid #d9ceb7; box-shadow:0 17px 22px #091e2c19; }
  .header .navigation.open { display:flex; }
  .header .menu-toggle { display:flex!important; flex-direction:column; justify-content:space-evenly; border:0; background:transparent; width:40px; height:40px; padding:8px; flex:none; }
  .header .menu-toggle span { width:100%; height:2px; background:var(--navy); }
  html[data-theme="dark"] .header .navigation { background:#081e2b; border-color:#2b4759; }
  html[data-theme="dark"] .header .menu-toggle span { background:#f4f1e9; }
}
@media(max-width:760px) {
  .header .navigation { top:70px; }
  .header .menu-toggle { width:35px; padding:8px 5px; }
}
@media(max-width:355px) {
  .header .menu-toggle { width:31px; }
}

/* Privacy has less header width; the logo links home on narrow devices. */
@media(max-width:760px) {
  .privacy-actions { gap:7px; }
  .privacy-actions .text-link { display:none; }
}

/* Explicit creator section dark mode, appended after general section color rules. */
html[data-theme="dark"] .about-section.section-light,
html[data-theme="dark"] .about-section.section-light:nth-of-type(even) { background:#0a2230; color:#f6f3ec; }
html[data-theme="dark"] .about-section .about-story h2 {color:#f7f6f1;}
html[data-theme="dark"] .about-section .about-story h2 span {color:#e3b452;}
html[data-theme="dark"] .about-section .about-story>p:not(.about-subtitle),
html[data-theme="dark"] .about-section .about-contact p {color:#bdccd3;}

/* V5.3: keep the desktop header on a single aligned row with tighter spacing. */
@media (min-width:1061px) {
  html {scroll-padding-top:86px;}
  .header .nav-inner {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto auto auto;
    align-items:center;
    column-gap:clamp(12px,1.4vw,22px);
    row-gap:0;
    height:84px;
    padding:0;
  }
  .header .logo {grid-column:1; grid-row:1; align-self:center;}
  .header .navigation {
    grid-column:2;
    grid-row:1;
    position:static;
    display:flex !important;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:clamp(14px,1.8vw,30px);
    padding:0;
    margin:0;
    border:0;
    box-shadow:none;
    background:transparent;
    min-width:0;
  }
  .header .navigation a {
    white-space:nowrap;
    word-break:keep-all;
    hyphens:none;
    letter-spacing:.045em;
    font-size:clamp(.68rem,.78vw,.8rem);
  }
  .header .language-picker {grid-column:3; grid-row:1;}
  .header .theme-toggle {grid-column:4; grid-row:1; margin-left:0;}
  .header .nav-cta {grid-column:5; grid-row:1; align-self:center; margin-left:0; white-space:nowrap;}
  .header .navigation .mobile-cta {display:none !important;}
  .header .menu-toggle {display:none !important;}
  html[data-theme="dark"] .header .navigation {background:transparent; border:0;}
}
@media (max-width:1060px) {
  .header .navigation {display:none;position:absolute;left:0;right:0;top:84px;padding:24px;flex-direction:column;gap:18px;align-items:flex-start;background:#fff9ed;border-bottom:1px solid #d9ceb7;box-shadow:0 17px 22px #091e2c19;z-index:29;}
  .header .navigation.open {display:flex;}
  .header .navigation a {white-space:normal;}
  .header .menu-toggle {display:flex!important;flex:none;flex-direction:column;justify-content:space-evenly;border:0;background:transparent;width:40px;height:40px;padding:8px;}
  .header .menu-toggle span {width:100%;height:2px;background:var(--navy);}
  .header .nav-cta {margin-left:auto;}
  html[data-theme="dark"] .header .navigation {background:#081e2b;border-color:#2b4759;}
  html[data-theme="dark"] .header .menu-toggle span {background:#f4f1e9;}
}
@media(max-width:760px) {
  .header .navigation {top:70px;}
  .header .menu-toggle {width:35px;padding:8px 5px;}
}
/* V5.3: pricing units and included seat counts, with clear contrast in both themes. */
.pro-seat-summary {display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:17px 0 23px;padding:15px 16px;border:1px solid #c49a46;background:rgba(211,164,63,.10);}
.pro-seat-summary strong {color:var(--ink);font-size:1rem;line-height:1.35;font-weight:850;}
.pro-seat-summary span {color:#586d7c;font-size:.88rem;line-height:1.5;}
.price-card.pro .pro-seat-summary {background:rgba(216,166,56,.12);border-color:#b8892f;}
.price-card.pro .pro-seat-summary strong {color:#fff8ea;}
.price-card.pro .pro-seat-summary span {color:#d3dee5;}
html[data-theme="dark"] .pro-seat-summary {background:rgba(211,164,63,.09);border-color:#94723b;}
html[data-theme="dark"] .pro-seat-summary strong {color:#fff7e5;}
html[data-theme="dark"] .pro-seat-summary span {color:#c8d5da;}


/* V5.4: grouped FAQ supports longer answers, accessibility and all six translations. */
.faq-intro {align-self:start;position:sticky;top:126px;}
.faq-intro-text {max-width:330px;color:#667987;font-size:1.02rem;line-height:1.65;margin-top:25px;}
.faq-items {min-width:0;border-top:0;}
.faq-group {margin-bottom:33px;}
.faq-group-title {display:flex;align-items:center;gap:14px;margin:0;padding:0 5px 14px;font:800 .79rem/1.35 'Segoe UI',Arial,sans-serif;letter-spacing:.12em;color:#986b19;border-bottom:2px solid #cda03f;text-transform:uppercase;overflow-wrap:normal;word-break:normal;}
.faq-group-title span {font-size:.69rem;color:#a58c60;letter-spacing:0;flex:none;}
.faq-group details {border-bottom:1px solid #ded2bc;}
.faq-group summary {line-height:1.43;hyphens:none;overflow-wrap:normal;word-break:normal;}
.faq-group details p {line-height:1.68;overflow-wrap:normal;word-break:normal;}
.faq-group details[open] summary {color:#9b6d20;}
.faq-group details summary:focus-visible {outline:2px solid #cda03f;outline-offset:3px;}
html[data-theme="dark"] .faq-intro-text {color:#adc1ce;}
html[data-theme="dark"] .faq-group-title {color:#edb64c;border-bottom-color:#9f7b37;}
html[data-theme="dark"] .faq-group-title span {color:#a6b7be;}
html[data-theme="dark"] .faq-group details {border-bottom-color:#395569;}
html[data-theme="dark"] .faq-group details[open] summary {color:#f0be55;}
html[data-theme="dark"] .faq-group details p {color:#b9cbd4;}
@media(max-width:900px) {.faq-intro {position:static;}}
@media(max-width:760px) {.faq-group {margin-bottom:28px;}.faq-group summary {padding:21px 4px;font-size:1rem;}.faq-group details p {padding:0 20px 22px 4px;font-size:.94rem;}}
