/* Sober7 additions: language menu, Isha assistant, Contact page, right-to-left support.
   Uses the tokens from style.css ("Clear Morning" palette). */

/* ================= Language menu ================= */
.s7-lang { position: relative; display: inline-flex; margin-inline-start: 4px; }
.s7-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--surface-rgb), 0.9);
  color: var(--text-2); font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.s7-lang__btn:hover, .s7-lang__btn[aria-expanded="true"] { border-color: var(--accent); color: var(--ink); }
.s7-lang__btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.s7-lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1000;
  min-width: 210px; max-height: min(70vh, 460px); overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 18px 50px rgba(var(--ink-rgb), 0.16);
}
.s7-lang__menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 5px; font-size: 14px; color: var(--text); text-align: start;
}
.s7-lang__menu button:hover, .s7-lang__menu button:focus-visible { background: var(--bg-2); outline: 0; }
.s7-lang__menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.s7-lang--float { position: fixed; top: 14px; inset-inline-end: 16px; z-index: 950; }

/* Google Translate: keep its bar, tooltips and highlights out of sight */
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
html.s7-translated body { top: 0 !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }

/* ================= Isha ================= */
.isha { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 900; font-family: var(--sans); }
.isha__launch {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.25), 0 0 0 4px rgba(var(--surface-rgb), 0.9);
  transition: transform 0.25s var(--ease-out), background 0.2s var(--ease);
}
.isha__launch:hover { background: var(--accent-hover); transform: translateY(-2px); }
.isha__launch:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.isha__ico-x { display: none; }
.isha.is-open .isha__ico-x { display: block; }
.isha.is-open .isha__ico-chat { display: none; }

.isha__teaser {
  position: absolute; bottom: 72px; inset-inline-end: 0; width: 240px; padding: 14px 34px 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px;
  box-shadow: 0 14px 40px rgba(var(--ink-rgb), 0.16); font-size: 14px; line-height: 1.45; color: var(--text);
  animation: ishaIn 0.4s var(--ease-out);
}
.isha__teaser p { cursor: pointer; margin: 0; }
.isha__teaser-x { position: absolute; top: 6px; inset-inline-end: 8px; width: 24px; height: 24px; font-size: 18px; line-height: 1; color: var(--text-3); border-radius: 50%; }
.isha__teaser-x:hover { color: var(--ink); background: var(--bg-2); }

.isha__panel {
  position: absolute; bottom: 74px; inset-inline-end: 0; width: 370px; height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(var(--ink-rgb), 0.22);
  animation: ishaIn 0.32s var(--ease-out);
}
.isha__panel[hidden] { display: none; }
@keyframes ishaIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .isha__panel, .isha__teaser { animation: none; } }

.isha__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--sage); border-bottom: 1px solid #B5D8C2; }
.isha__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; font-family: var(--heading); font-weight: 400; font-size: 19px;
}
.isha__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.isha__who strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.isha__who span { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.isha__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.isha__close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.isha__close:hover { background: rgba(var(--surface-rgb), 0.8); color: var(--ink); }

.isha__log { position: relative; flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.isha__msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.isha__msg--bot { align-self: flex-start; background: var(--bg-2); color: var(--text); border-end-start-radius: 4px; }
.isha__msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 4px; white-space: pre-wrap; }
.isha__msg--urgent { background: var(--peach); border: 1px solid var(--peach-line); }
.isha__msg ul, .isha__msg ol { margin: 6px 0; padding-inline-start: 20px; }
.isha__msg li + li { margin-top: 3px; }
.isha__msg b { font-weight: 600; color: var(--ink); }
.isha__msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.isha__typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.isha__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: ishaDot 1s infinite ease-in-out; }
.isha__typing i:nth-child(2) { animation-delay: 0.15s; }
.isha__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ishaDot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.isha__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; max-height: 124px; overflow-y: auto; }
.isha__chips:empty { display: none; }
.isha__chip {
  padding: 7px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface);
  color: var(--accent); font-size: 13px; line-height: 1.2; text-decoration: none; transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.isha__chip:hover, .isha__chip:focus-visible { background: var(--accent); color: #fff; outline: 0; }
.isha__chip--quiet { border-color: var(--line-2); color: var(--text-2); }
.isha__chip--quiet:hover, .isha__chip--quiet:focus-visible { background: var(--bg-2); color: var(--ink); }
.isha__chip--urgent { border-color: var(--peach-line); background: var(--peach); color: var(--peach-ink); }
.isha__chip--urgent:hover, .isha__chip--urgent:focus-visible { background: var(--peach-ink); color: #fff; }
.isha__chip--star { letter-spacing: 0.02em; }

.isha__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.isha__input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 999px;
  font: 400 14px var(--sans); color: var(--ink); background: var(--surface); outline: 0;
}
.isha__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.isha__send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.isha__send:hover { background: var(--accent-hover); }
.isha__note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--text-3); line-height: 1.4; }
[dir="rtl"] .isha__send svg { transform: scaleX(-1); }

@media (max-width: 600px) {
  .isha { inset-inline-end: 14px; bottom: 14px; }
  .isha__launch { width: 54px; height: 54px; }
  .isha__panel { position: fixed; inset: auto 10px 78px 10px; width: auto; height: calc(100dvh - 100px); max-height: 640px; }
  .isha__teaser { width: min(240px, calc(100vw - 40px)); }
}
@media print { .isha, .s7-lang { display: none !important; } }

/* ================= Contact page ================= */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { position: sticky; top: 96px; display: grid; gap: 22px; }
.contact-card { border: 1px solid var(--line); border-radius: 4px; padding: 26px; background: var(--surface); }
.contact-card .kicker { margin-bottom: 8px; }
.contact-mail { display: inline-block; font-family: var(--heading); font-weight: 300; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent-hover); }
.contact-card p.muted { margin-top: 10px; font-size: 0.95rem; }
.contact-safety { background: var(--peach); border-color: var(--peach-line); }
.contact-safety .nums { display: flex; gap: 32px; margin-top: 14px; flex-wrap: wrap; }
.contact-safety small { display: block; font-size: 11px; letter-spacing: 0.06em; color: var(--peach-ink); text-transform: uppercase; margin-bottom: 2px; }
.contact-safety .help-num { font-size: 2rem; }

.cform { display: grid; gap: 18px; }
.cform + .cform { margin-top: 0; }
.cblock { border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 36px); background: var(--surface); scroll-margin-top: 90px; }
.cblock + .cblock { margin-top: 28px; }
.cblock .h3 { margin-bottom: 6px; }
.cblock > .muted { margin-bottom: 22px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label, .cform legend { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.cform textarea.field { min-height: 130px; resize: vertical; }
.cform select.field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5A5B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
[dir="rtl"] .cform select.field { background-position: left 16px center; }
.cform__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform__foot small { font-size: 12px; color: var(--text-3); }
.cform__status { font-size: 14px; min-height: 20px; color: var(--text-2); }
.cform__status.is-ok { color: var(--ok); }
.cform__status.is-err { color: var(--error); }
.cform__status a { color: inherit; text-decoration: underline; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* star rating: real radio buttons, drawn as stars */
.stars { border: 0; padding: 0; margin: 0; }
.stars__set { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars__set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars__set label { margin: 0; cursor: pointer; color: var(--line-2); transition: color 0.15s var(--ease), transform 0.15s var(--ease); }
.stars__set label svg { width: 34px; height: 34px; display: block; }
.stars__set label:hover, .stars__set label:hover ~ label,
.stars__set input:checked ~ label { color: #E2A33B; }
.stars__set input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.stars__set label:active { transform: scale(0.92); }
.stars__word { display: inline-block; margin-inline-start: 12px; font-size: 14px; color: var(--text-2); vertical-align: middle; min-width: 80px; }
.stars__row { display: flex; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }

/* ================= Right-to-left tweaks ================= */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .faq-side { padding-right: 0; padding-left: 32px; }
[dir="rtl"] .faq-cats button, [dir="rtl"] .rail__item button, [dir="rtl"] .gloss__link { text-align: right; }
[dir="rtl"] .faq-search svg { left: auto; right: 14px; }
[dir="rtl"] .faq-search .field { padding-left: 16px; padding-right: 38px; }
[dir="rtl"] .faq__a ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .faq-cats button.is-on { padding-left: 0; padding-right: 8px; box-shadow: inset -2px 0 0 var(--accent); }
[dir="rtl"] .hero__title, [dir="rtl"] .h2, [dir="rtl"] .h3 { letter-spacing: 0; }
[dir="rtl"] .isha__msg--me { white-space: pre-wrap; }

/* ================= Membership: log in button, avatar ================= */
.s7-auth { display: inline-flex; margin-inline-start: 8px; }
.s7-login {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 13px; font-weight: 500;
  transition: background 0.2s var(--ease);
}
.s7-login:hover { background: var(--accent-hover); }
.s7-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage); color: var(--accent) !important; border: 1.5px solid var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  transition: box-shadow 0.2s var(--ease);
}
.s7-avatar:hover, .s7-avatar:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); outline: 0; }
.s7-auth--float { position: fixed; top: 14px; inset-inline-end: 16px; z-index: 950; }
@media (max-width: 600px) {
  .s7-login span { display: none; }
  .s7-login { width: 34px; padding: 0; justify-content: center; }
  .s7-lang__btn { padding: 0 8px; }
  .nav__links { gap: 14px; }
}

/* refund promise under the main buttons */
.refund-note { display: inline-flex; align-items: center; gap: 6px; flex-basis: 100%; margin-top: 10px; font-size: 13px; color: var(--ok); text-decoration: underline; text-decoration-color: rgba(44, 115, 80, 0.35); text-underline-offset: 3px; }
.refund-note::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l5.5 2v4.2c0 3.4-2.3 6.3-5.5 7.3-3.2-1-5.5-3.9-5.5-7.3V3z' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M5.3 8.2l1.8 1.8 3.6-3.7' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l5.5 2v4.2c0 3.4-2.3 6.3-5.5 7.3-3.2-1-5.5-3.9-5.5-7.3V3z' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M5.3 8.2l1.8 1.8 3.6-3.7' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.refund-note:hover { color: var(--accent-hover); }
.unlock { flex-wrap: wrap; }

/* ================= Membership pages ================= */
.acct { position: relative; padding: 120px 0 110px; background: linear-gradient(180deg, var(--bg-2) 0, var(--bg) 380px); min-height: 100vh; }
.acct .container { display: block; }
.acct__crumb { font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 18px; display: flex; gap: 10px; }
.acct__crumb a:hover { color: var(--ink); }
.acct__title { font-family: var(--heading); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--ink); }
.acct__sub { margin-top: 12px; color: var(--text-2); max-width: 52ch; font-size: 1.05rem; }
.acct__head { margin-bottom: 36px; }
.acct__narrow { max-width: 520px; margin: 0 auto; }
.acct__narrow .acct__head { text-align: center; }
.acct__narrow .acct__sub { margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.03), 0 18px 50px rgba(var(--ink-rgb), 0.07); }
.card + .card { margin-top: 20px; }
.card__title { font-family: var(--heading); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
.form { display: grid; gap: 16px; }
.form label, .form .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.form .hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.form .field[readonly] { background: var(--bg-2); color: var(--text-2); cursor: not-allowed; }
.form select.field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5A5B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.pw { position: relative; }
.pw .field { padding-inline-end: 70px; }
.pw__toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--accent); padding: 6px 8px; border-radius: 3px; }
.pw__toggle:hover { background: var(--accent-soft); }
.lock-field { position: relative; }
.lock-field svg { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.btn-wide { width: 100%; justify-content: center; text-align: center; }
.form .link-cta { justify-content: center; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.msg { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 4px; }
.msg:empty { display: none; }
.msg--err { background: var(--error-bg); color: var(--error); }
.msg--ok { background: var(--sage); color: var(--ok); }
.msg--info { background: var(--accent-soft); color: var(--ink); }
.msg a, .msg button.linkish { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.linkish { color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent-hover); }
.acct__alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); }
.acct__alt a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form .check, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.5; font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.demo-flag { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-size: 12px; font-weight: 600; }

/* pay page */
.pay { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pay__summary { position: sticky; top: 92px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 20px; }
.price b { font-family: var(--heading); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.04em; color: var(--ink); }
.price span { color: var(--text-3); font-size: 14px; }
.incl { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.incl li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.incl li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex: none; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%232C7350' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.promise { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 6px; background: var(--sage); border: 1px solid #B5D8C2; }
.promise__ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ok); }
.promise b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.promise p { font-size: 14px; color: var(--text-2); margin: 0; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.methods span { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2); background: var(--surface); }
.secure { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.done { text-align: center; padding: 10px 0; }
.done__ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--ok); }
.done h2 { font-family: var(--heading); font-weight: 300; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 10px; }
.done p { color: var(--text-2); margin: 0 auto 10px; max-width: 42ch; }
@media (max-width: 900px) { .pay { grid-template-columns: 1fr; } .pay__summary { position: static; } }

/* profile */
.prof-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.prof-avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sage); border: 2px solid var(--accent); color: var(--accent); font-family: var(--heading); font-size: 28px; font-weight: 400; }
.prof-head h1 { font-family: var(--heading); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.prof-head p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.prof-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.prof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.prof-grid .card + .card { margin-top: 0; }
.prof-side { display: grid; gap: 20px; }
.refund-card { border-color: #B5D8C2; }
.refund-card p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--error); color: var(--error); border-radius: 2px; font-size: 14px; font-weight: 500; background: var(--surface); }
.btn-danger:hover { background: var(--error-bg); }
.btn-danger--fill { background: var(--error); color: #fff; }
.btn-danger--fill:hover { background: #8a3727; }
.small { font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .prof-grid { grid-template-columns: 1fr; } }
.unlock .unlock__msg:empty { display: none; }

/* password checklist */
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--text-3); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); }
.pw-rules li.is-ok { color: var(--ok); }
.pw-rules li.is-ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.2' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (max-width: 420px) { .pw-rules { grid-template-columns: 1fr; } }

/* welcome page */
.welcome { max-width: 1040px; margin: 0 auto; }
.welcome__hero { text-align: center; margin-bottom: 40px; }
.welcome__hero .kicker { margin-bottom: 10px; }
.welcome__badge { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--ok); border: 1px solid #B5D8C2; }
.welcome__lead { max-width: 58ch; margin: 16px auto 0; font-family: var(--heading); font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.45; color: var(--text-2); letter-spacing: -0.01em; }
.welcome__cta { margin-top: 26px; }
.welcome__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.welcome__grid .card + .card { margin-top: 0; }
.welcome__mot p { color: var(--text-2); margin-bottom: 12px; }
.welcome__safety { margin-top: 18px; padding: 14px 16px; border-radius: 6px; background: var(--peach); border: 1px solid var(--peach-line); }
.welcome__safety b { display: block; color: var(--peach-ink); font-size: 13px; margin-bottom: 4px; }
.welcome__safety p { margin: 0; font-size: 13px; color: var(--text); }
.wtips { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wtips li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.wtip__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.wtips b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.wtips p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.welcome__foot { text-align: center; margin-top: 32px; }
@media (max-width: 900px) { .welcome__grid { grid-template-columns: 1fr; } }

/* inner-page banners: fixed 420px (the home page keeps its full-screen hero) */
.page-hero { min-height: 0; height: 420px; }
.page-hero .container { padding-bottom: 32px; }
@media (max-width: 700px) { .page-hero { height: auto; min-height: 420px; } }
.page-hero .container > .panel { padding: 24px 32px 26px; }
.page-hero .hero__title { font-size: clamp(2rem, 3.4vw, 3.1rem) !important; }
.page-hero .page-hero__crumb { margin-bottom: 12px; }
.page-hero .page-hero__sub { margin-top: 10px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.page-hero { padding-top: 76px; box-sizing: border-box; }
.page-hero .access { margin-top: 10px; }
.page-hero .access__n { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.page-hero .unlock-strip { margin-top: 14px; }
.page-hero .unlock-strip__step { padding: 9px 0; }

/* banners: text sits directly on the image (no white box).
   A soft light wash from the left keeps the dark text readable on any photo. */
.page-hero .container > .panel, .hero .hero__panel {
  background: transparent; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0;
}
.page-hero .hero__scrim {
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 32%, rgba(255,255,255,0.35) 58%, rgba(255,255,255,0) 78%) !important;
}
@media (max-width: 700px) {
  .page-hero .hero__scrim { background: linear-gradient(0deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.8) 55%, rgba(255,255,255,0.4) 100%) !important; }
}

/* CTA buttons: hospital purple (white text contrast 8.9:1) */
:root { --cta: #5B3592; --cta-hover: #46277A; --cta-soft: #ECE4F6; }
.link-cta--fill { background: var(--cta) !important; border-color: var(--cta) !important; color: #fff !important; }
.link-cta--fill:hover, .link-cta--fill:focus-visible { background: var(--cta-hover) !important; border-color: var(--cta-hover) !important; }
.link-cta--fill:focus-visible { outline: 3px solid var(--cta-soft); outline-offset: 2px; }
.s7-login { background: var(--cta); }
.s7-login:hover { background: var(--cta-hover); }

/* home page sections: no white boxes behind headlines and copy (text sits straight on the images) */
.arc__panel.panel, .scene__copy.panel, .band__inner.panel, .steps__panel.panel {
  background: transparent; box-shadow: none; border-radius: 0; isolation: isolate;
}

/* landing page: no white washes or glows behind any text (images to be chosen later) */
.hero .hero__scrim, .arc__scrim, .scene__scrim, .steps__scrim { background: none !important; }

/* certificate page: no white box behind the text */
#cert .gate__box { background: transparent; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0; }
