/* Cahaya Mata: first-draft preview (Ruth Ai Systems, Nov 2026)
   Warm, hopeful palette: cream paper, deep rose (from their pink sign), sunlight amber ("cahaya" = light).
   Static HTML/CSS, no framework: suitable for Cloudflare hosting as-is. */

:root {
  --paper: #fbf5ea;
  --paper-2: #f4e8d4;
  --white: #fffdf8;
  --ink: #2b211c;
  --ink-soft: #5e5048;
  --rose: #a51e4f;        /* main button: white text passes AA */
  --rose-dark: #84153e;
  --sun: #f0b429;         /* decorative only, never text on light */
  --sun-text: #8a5300;    /* amber dark enough for small text on cream */
  --sun-soft: #fbe7b5;
  --rule: #e2d3bb;
  --dark: #3a1626;        /* deep plum-rose band */
  --wa: #157a46;
  --wa-dark: #0f6238;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 14px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--rose); font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--sun-text); outline-offset: 3px; }
.center { text-align: center; }

/* ---------- Preview-only markers ---------- */
.preview-ribbon { background: var(--ink); color: var(--paper); font-size: 13px; text-align: center; padding: 6px var(--gutter); }
.ph {
  display: inline-block; background: repeating-linear-gradient(-45deg, #fff6d6, #fff6d6 8px, #fbedbd 8px, #fbedbd 16px);
  border: 1.5px dashed #b78a1c; color: #6b4d00; font-family: var(--sans); font-size: .82rem; font-weight: 700;
  line-height: 1.35; padding: 2px 8px; border-radius: 4px;
}
.ph-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(-45deg, #fff6d6, #fff6d6 10px, #fbedbd 10px, #fbedbd 20px);
  border: 2px dashed #b78a1c; color: #6b4d00; font-weight: 700; font-size: .95rem; padding: 24px; border-radius: var(--radius);
}

/* ---------- Header ---------- */
.site-header { background: rgba(251,245,234,.96); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand .sun { width: 38px; height: 38px; color: var(--sun); flex: none; }
.brand .logo { width: auto; height: 50px; flex: none; display: block; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.head-actions .btn-donate { padding: 11px 22px; min-height: 44px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { gap: 10px; min-height: 66px; }
  .brand span { font-size: 1.05rem; line-height: 1.1; }
  .head-actions { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; background: none; border: 1.5px solid var(--ink);
    border-radius: 999px; padding: 8px 14px; font: 700 15px var(--sans); color: var(--ink); cursor: pointer; min-height: 44px;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(43,33,28,.1); margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .brand { gap: 6px; }
  .brand span { font-size: .78rem; line-height: 1.12; }  /* 21 Nov: longer name (Masyarakat) must fit beside the switch + Donate + Menu */
  .brand .sun { width: 30px; height: 30px; }
  .brand .logo { height: 30px; }
  .head-actions .btn-donate { padding: 10px 11px; font-size: 14px; }
  .menu-toggle { padding: 8px 9px; font-size: 14px; }
  .site-header .wrap { gap: 6px; }
}
@media (max-width: 340px) {
  .brand .logo { height: 24px; }
  .brand span { font-size: .7rem; }
  .head-actions { gap: 4px; }
  .head-actions .btn-donate { padding: 10px 8px; }
  .menu-toggle { padding: 8px 7px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--ink); color: #fff; text-decoration: none; font: 700 16px/1.2 var(--sans);
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer; min-height: 48px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-donate, a.btn-donate { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-donate:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: #fff; color: var(--dark); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-small { padding: 10px 18px; font-size: 15px; min-height: 44px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }
.text-link { font-weight: 700; color: var(--rose); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.text-link:hover { color: var(--rose-dark); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); color: #f7ecef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
@media (max-width: 767px) { .section { padding: 60px 0; } }
.kicker { font: 800 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-text); margin: 0 0 14px; }
.section-dark .kicker { color: var(--sun); }
.sec-head { margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p:not(.kicker) { color: var(--ink-soft); margin: 0; }
.section-dark .sec-head p:not(.kicker) { color: #e6cfd8; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }
.lead-light { color: #f0dde4; margin-left: auto; margin-right: auto; }
.fine { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Hero + trust strip ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero .lead { margin-bottom: 28px; }
.hero-img img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 24px 48px -24px rgba(58,22,38,.45); }
.hero-slim { padding: 52px 0 40px; }
.hero-slim .wrap { grid-template-columns: 1fr !important; }
.hero-note { font-size: .95rem; color: var(--ink-soft); }
.note-safe { font-size: .95rem; background: var(--white); border-left: 4px solid var(--sun); padding: 12px 16px; border-radius: 8px; max-width: 70ch; color: var(--ink-soft); }
.draft-note { font-size: .92rem; background: var(--sun-soft); padding: 12px 16px; border-radius: 8px; max-width: 75ch; }
.trust { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; padding-top: 14px; padding-bottom: 14px; font-size: .92rem; color: var(--ink-soft); text-align: center; }
.trust b { color: var(--ink); }

/* ---------- Cards: What we do ---------- */
.cards3 { display: grid; gap: 24px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: 14px 14px 22px; border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card .media img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 18px; }
.card h3, .card p { padding: 0 8px; }
.card p { color: var(--ink-soft); flex: 1; }
.card .btn { margin: 0 8px; align-self: flex-start; }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.big { font-family: var(--serif); font-size: 1.4rem; line-height: 1.35; }

/* ---------- Detail blocks ---------- */
.detail { display: grid; gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--rule); }
.detail:first-of-type { border-top: 0; }
@media (min-width: 860px) {
  .detail { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .detail:nth-of-type(even) .media { order: 2; }
}
.detail .media img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.detail .num { font: 800 14px var(--sans); color: var(--sun-text); letter-spacing: .14em; margin-bottom: 6px; }
.detail .ph { margin-bottom: 1em; }

/* ---------- Teasers / stories ---------- */
.teasers { display: grid; gap: 18px; }
@media (min-width: 760px) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 24px; }
.teaser p { color: #ead6de; margin: 0; }
.age { font-weight: 500; color: var(--sun-text); }
.section-dark .age { color: var(--sun); }
.group-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 22px; }
.stories { display: grid; gap: 20px; }
@media (min-width: 700px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story { background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--sun); border-radius: var(--radius); padding: 24px 24px 20px; }
.story h3 { font-size: 1.6rem; margin-bottom: 10px; }
.story .bg { color: var(--ink-soft); font-size: .98rem; }
.story .bg + .progress { margin-top: 14px; }
.story .bg-lbl { display: block; font: 800 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); margin-bottom: 4px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--paper); margin: 0 0 16px; }
.progress { background: #fdf3dc; border-radius: 10px; padding: 14px 16px; margin: 0; }
.progress .lbl { display: block; font: 800 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); margin-bottom: 4px; }
.progress.soft { background: var(--paper); color: var(--ink-soft); font-style: italic; }
.progress.soft .lbl { font-style: normal; }
.ph-line { margin: 10px 0 0; }
.photo-band { padding: 12px 0; }
.band { display: grid; gap: 16px; }
@media (min-width: 700px) { .band { grid-template-columns: 1fr 1fr; } }
.band img { border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- Ways to help / contact ---------- */
.ways { display: grid; gap: 20px; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .ways4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ways4 { grid-template-columns: repeat(4, 1fr); } }
.way { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.way p { color: var(--ink-soft); flex: 1; overflow-wrap: anywhere; }
.way-main { background: #fdecef; border-color: #f2c3d1; }
.way .kicker { flex: none; }

/* ---------- Donate ---------- */
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 860px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { display: flex; gap: 16px; }
.why .i { font: 600 1.6rem var(--serif); color: var(--rose); flex: none; }
.why p { color: var(--ink-soft); }
.covers { display: grid; gap: 20px; }
@media (min-width: 760px) { .covers { grid-template-columns: repeat(3, 1fr); } }
.cover { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.cover .amt { margin-bottom: 12px; }
.give { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .give { grid-template-columns: 1.5fr 1fr; gap: 24px 48px; align-items: stretch; } .give-head { grid-column: 1 / -1; } .give-pay .pay-gap { margin-top: 0; } }
.pay-gap { min-height: 280px; margin: 8px 0 16px; }
.pay-gap div { display: grid; gap: 10px; max-width: 46ch; }
.pay-gap strong { font-size: 1.15rem; letter-spacing: .06em; }
.pay-gap span { font-weight: 600; }
.talk { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }

/* ---------- Form ---------- */
.enquire { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .enquire { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.form-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin: 6px 18px 0 0; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.choice legend { width: 100%; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { width: 100%; font: 16px var(--sans); padding: 12px 14px; border: 1.5px solid #c9b79b; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; accent-color: var(--rose); flex: none; }
.consent span { font-weight: 600; }
.form-foot { margin-top: 20px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; border-radius: 20px; padding: 28px; max-width: min(520px, calc(100vw - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(43,33,28,.5); }
.preview-note { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }
.agent-top { display: flex; justify-content: space-between; align-items: center; }
.agent-top .kicker { margin: 0; }
.agent-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); width: 44px; height: 44px; }
.agent-panel h2 { font-size: 1.7rem; margin-top: 10px; }
.agent-slot { min-height: 160px; margin: 8px 0 14px; }
.agent-alt { font-size: .92rem; margin: 0; }

/* ---------- Floating agent bubble ---------- */
.agent-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; min-height: 52px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1.2 var(--sans); box-shadow: 0 12px 28px rgba(43,33,28,.35);
}
.agent-bubble svg { width: 26px; height: 26px; color: var(--sun); flex: none; }
.agent-bubble b { color: var(--sun); }
.agent-bubble:hover { background: #000; }
body.menu-open .agent-bubble { display: none; }
@media (max-width: 600px) { .agent-bubble { right: 12px; bottom: 12px; font-size: 14px; } body { padding-bottom: 72px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9ddd2; padding: 64px 0 28px; }
.site-footer a:not(.btn) { color: #fff; }
.site-footer .cols { display: grid; gap: 36px; }
@media (min-width: 860px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr; } }
.brand-light { color: #fff; }
.brand-light small { color: #cbb9ad; }
.foot-mission { margin: 18px 0 20px; max-width: 42ch; }
.foot-h { font: 800 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding-top: 20px; font-size: .88rem; color: #cbb9ad; }

/* ---------- Legal text ---------- */
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal-text .legal-title { font-size: 2rem; margin-top: 0; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li { margin-bottom: .5em; }
.lang-tag { display: inline-block; font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; }

/* ---------- Scroll-in ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
@media (min-width: 1000px) { .band4 { grid-template-columns: repeat(4, 1fr); } .band4 img { aspect-ratio: 4 / 3; } }

/* ---------- Donation box (layout idea only; own colours and sun mark) ---------- */
.help-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .help-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.help-side { display: grid; gap: 20px; }
.dbox { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(58,22,38,.10); max-width: 520px; width: 100%; overflow: hidden; }
.dbox-brand { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 20px 16px 14px; color: var(--ink); font: 600 1.15rem/1.15 var(--serif); }
.dbox-brand .sun { width: 34px; height: 34px; color: var(--sun); flex: none; }
.dbox-brand .logo { width: auto; height: 44px; flex: none; }
.dbox-brand small { display: block; font: 600 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.dbox-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.dbox-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 8px; min-height: 48px; font: 700 1rem var(--sans); color: var(--ink-soft); cursor: pointer; margin-bottom: -1px; }
.dbox-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--rose); }
.dbox-tab:hover { color: var(--ink); }
.dbox-panel { padding: 20px 20px 24px; display: grid; gap: 14px; }
.dbox-panel[hidden] { display: none; }
.dbox-title { text-align: center; color: var(--ink-soft); font-weight: 600; margin: 0; }
.dbox-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dbox-amts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 440px) { .dbox-amts { grid-template-columns: repeat(4, 1fr); } }
.freq-btn, .amt-btn { background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px; min-height: 48px; padding: 10px 8px; font: 700 1rem var(--sans); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.freq-btn:hover, .amt-btn:hover { border-color: var(--rose); }
.freq-btn[aria-pressed="true"], .amt-btn[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.amt-custom { width: 100%; }
.custom-wrap { display: grid; gap: 6px; }
.custom-wrap[hidden], .dbox-error[hidden], .dbox-soon[hidden] { display: none; }
.custom-label { font-weight: 700; display: grid; gap: 6px; }
.custom-field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink-soft); border-radius: 10px; padding: 0 14px; background: #fff; min-height: 48px; }
.custom-field:focus-within { outline: 3px solid var(--sun-text); outline-offset: 2px; }
.custom-field input { border: 0; outline: 0; font: 700 1.1rem var(--sans); width: 100%; min-height: 44px; background: transparent; color: var(--ink); }
.dbox-error { color: #9b1c1c; font-weight: 700; margin: 0; }
.custom-field.invalid { border-color: #9b1c1c; }
.dbox-sum { text-align: center; margin: 0; color: var(--ink-soft); font-weight: 600; min-height: 1.4em; }
.dbox-go { width: 100%; }
.dbox-soon { background: var(--sun-soft); border-radius: 10px; padding: 12px 14px; margin: 0; font-weight: 600; }
.dbox-soon a { font-weight: 700; }
.dbox-note { margin: 0; color: var(--ink-soft); }
button.text-link { background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- EN | 中文 switch (added 20 Nov 2026) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--sans); color: var(--ink-soft); white-space: nowrap; }
.lang-switch b { color: var(--ink); font-weight: 800; }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 12px 2px; border-bottom: 2px solid transparent; }
.lang-switch a:hover, .lang-switch a:focus-visible { border-bottom-color: var(--sun); }
@media (max-width: 420px) { .lang-switch { gap: 4px; font-size: 13px; } .head-actions { gap: 6px; } }

/* ---------- Simplified Chinese pages: fonts and spacing (Fraunces / Nunito Sans have no Chinese glyphs) ---------- */
[lang^="zh"] {
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
}
body:lang(zh), [lang^="zh"] body { line-height: 1.8; }
[lang^="zh"] { line-height: 1.8; }
[lang^="zh"] h1, [lang^="zh"] h2, [lang^="zh"] h3 { line-height: 1.3; letter-spacing: 0; font-weight: 700; }
[lang^="zh"] h1 em, [lang^="zh"] h2 em { font-style: normal; }
[lang^="zh"] em { font-style: normal; }
[lang^="zh"] .kicker, [lang^="zh"] .foot-h, [lang^="zh"] .lbl, [lang^="zh"] .brand small, [lang^="zh"] .lang-tag { letter-spacing: .06em; text-transform: none; }
[lang^="zh"] .btn, [lang^="zh"] button, [lang^="zh"] .agent-bubble { line-height: 1.35; }
[lang^="zh"] .btn { text-align: center; }
[lang^="zh"] p, [lang^="zh"] li, [lang^="zh"] h1, [lang^="zh"] h2, [lang^="zh"] h3, [lang^="zh"] .btn { overflow-wrap: anywhere; line-break: strict; }
