/* Premium sub-page layouts for the Tempet site shell. */
.site-page [hidden] { display: none !important; }
.site-page main { position: relative; z-index: 1; }
.page-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.page-hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(126px, 16vh, 170px) 20px 56px;
  text-align: center;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.4;
  text-transform: uppercase;
}
.page-eyebrow::before,
.page-eyebrow::after {
  width: clamp(24px, 5vw, 48px);
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgb(var(--acc) / .72));
}
.page-eyebrow::after { transform: rotate(180deg); }
.page-title {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(38px, 7.2vw, 76px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.1;
  text-wrap: balance;
  text-transform: uppercase;
}
.page-title em,
.page-story-title em {
  color: var(--accent);
  background: linear-gradient(105deg, var(--accent-hi) 4%, var(--accent) 52%, var(--accent-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--dim);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  text-wrap: balance;
}
.page-subtitle strong { color: var(--text); font-weight: 600; }
.page-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.site-page .glow-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(27,23,31,.88), rgba(14,13,18,.86));
  box-shadow: 0 24px 80px -44px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.page-section { padding: 24px 0 82px; }
.page-section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.page-section-head .page-eyebrow { justify-content: flex-start; margin-bottom: 12px; }
.page-section-title { max-width: 720px; margin: 0; font-family: var(--display); font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.06em; line-height: 1.18; text-transform: uppercase; text-wrap: balance; }
.page-section-title em { color: var(--accent); font-style: normal; }
.page-section-copy { max-width: 360px; margin: 0 0 4px; color: var(--dim); font-size: 14px; line-height: 1.7; }
.page-kicker { color: var(--accent-hi); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(var(--acc) / .29);
  border-radius: 15px;
  background: linear-gradient(145deg, rgb(var(--acc) / .2), rgb(var(--acc) / .07));
  color: var(--accent-hi);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 32px -20px rgb(var(--acc) / .8);
}
.page-icon .ico, .page-icon svg { width: 23px; height: 23px; }
.page-note { color: var(--faint); font-size: 12px; line-height: 1.6; }
.site-page :focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* Download */
.download-main { padding-bottom: 44px; }
.download-hero { padding-bottom: 40px; }
.download-header { display: grid; justify-items: center; }
.download-header .page-icon { width: 76px; height: 76px; margin-bottom: 26px; border-radius: 21px; }
.download-header .page-icon svg { width: 34px; height: 34px; }
.download-title { max-width: 900px; margin: 0; font-family: var(--display); font-size: clamp(37px, 6vw, 58px); font-weight: 800; letter-spacing: -.065em; line-height: 1.1; text-align: center; text-transform: uppercase; text-wrap: balance; }
.download-title em { color: var(--accent); background: linear-gradient(105deg, var(--accent-hi), var(--accent), var(--accent-lo)); -webkit-background-clip: text; background-clip: text; font-style: normal; -webkit-text-fill-color: transparent; }
.download-subtitle { max-width: 680px; margin: 17px auto 0; color: var(--dim); font-size: 16px; line-height: 1.65; text-align: center; }
.download-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.download-card { position: relative; min-width: 0; padding: clamp(24px, 3.4vw, 36px); }
.download-card h2, .download-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 15px; font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.download-card h2 svg, .download-card h3 svg { width: 21px; height: 21px; flex: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-card > p:not(.download-lock):not(.download-note) { min-height: 48px; margin: 0 0 21px; color: var(--dim); font-size: 14px; line-height: 1.65; }
.download-btn { min-height: 56px; height: auto; margin: 0 0 17px; font-size: 15px; }
.download-btn svg { width: 19px; height: 19px; }
.download-lock { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 22px; color: #beb6bf; font-size: 13px; line-height: 1.65; }
.download-lock > svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.download-lock a { color: var(--accent-hi); font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.download-lock a:hover { text-decoration: underline; }
.download-note { margin: -11px 0 17px; color: #a8d8a5; font-size: 12px; line-height: 1.5; }
.download-info { display: flex; align-items: center; gap: 10px; min-height: 68px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid rgb(var(--acc) / .2); border-radius: 14px; background: linear-gradient(120deg, rgb(var(--acc) / .095), rgba(255,255,255,.025)); color: #c9c1c9; font-size: 12px; line-height: 1.5; }
.download-info svg { width: 18px; height: 18px; flex: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-info strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 650; }
.system-req { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.system-req li { display: flex; align-items: center; gap: 10px; color: #ddd6dc; font-size: 13px; }
.system-req li::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgb(var(--acc) / .75); content: ''; }
.faq-section { padding: 86px 0 44px; }
.faq-section h2 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(24px, 4vw, 34px); font-weight: 750; letter-spacing: -.05em; text-transform: uppercase; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.faq-item { align-self: start; padding: 19px 21px; border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(21,19,26,.68); transition: border-color .25s, background .25s; }
.faq-item:hover, .faq-item[open] { border-color: rgb(var(--acc) / .32); background: rgba(25,21,27,.85); }
.faq-item summary { position: relative; padding-right: 26px; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 0; right: 0; color: var(--accent); font-size: 19px; font-weight: 400; line-height: 1; content: '+'; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--dim); font-size: 13px; line-height: 1.65; }

/* Authentication */
.auth-main { min-height: calc(100vh - 90px); display: grid; align-items: center; padding: clamp(116px, 15vh, 154px) 24px 82px; }
.auth-layout { width: min(1060px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); align-items: center; gap: clamp(36px, 7vw, 92px); }
.auth-story { position: relative; padding: 30px 0; }
.auth-story::before { position: absolute; z-index: -1; top: 50%; left: -15%; width: min(520px, 50vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(var(--acc) / .13), transparent 68%); content: ''; transform: translateY(-50%); filter: blur(10px); }
.auth-story .page-eyebrow { justify-content: flex-start; }
.auth-story-title { max-width: 550px; margin: 0; font-family: var(--display); font-size: clamp(39px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.075em; line-height: 1.12; text-transform: uppercase; text-wrap: balance; }
.auth-story-title em { display: block; }
.auth-story-copy { max-width: 410px; margin: 20px 0 0; color: var(--dim); font-size: 16px; line-height: 1.7; }
.auth-story-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-story-meta span { display: inline-flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); color: #d7d0d8; font-size: 12px; }
.auth-story-meta i { width: 6px; height: 6px; border-radius: 50%; background: #79cd76; box-shadow: 0 0 10px rgba(121,205,118,.7); }
.auth-wrap { width: 100%; min-width: 0; }
.auth-head { margin: 0 0 20px; text-align: left; }
.auth-head .auth-mark { display: none; }
.auth-head h1 { margin: 0; font-family: var(--display); font-size: clamp(26px, 3.1vw, 34px); font-weight: 750; letter-spacing: -.055em; line-height: 1.18; }
.auth-head h1 em { color: var(--accent); font-style: normal; }
.auth-head > p:last-child { margin: 9px 0 0; color: var(--dim); font-size: 14px; line-height: 1.55; }
.auth-card { padding: clamp(21px, 3vw, 31px); }
.form-error { display: none; align-items: flex-start; gap: 10px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid rgba(241,105,93,.25); border-radius: 12px; background: rgba(241,105,93,.1); color: #ffc3bc; font-size: 13px; line-height: 1.5; }
.form-error.show { display: flex; animation: authErrorIn .24s ease-out; }
.form-error.is-info { border-color: rgba(142,162,255,.26); background: rgba(142,162,255,.1); color: #cad3ff; }
.form-error svg { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@keyframes authErrorIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.social-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--text); font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.social-btn:hover { transform: translateY(-1px); border-color: rgb(var(--acc) / .38); background: rgba(255,255,255,.07); }
.social-btn svg { width: 19px; height: 19px; flex: none; }
.divider { display: flex; align-items: center; gap: 13px; margin: 21px 0; color: var(--faint); font-size: 11px; }
.divider::before, .divider::after { height: 1px; flex: 1; background: rgba(255,255,255,.09); content: ''; }
.field { min-width: 0; margin-bottom: 17px; }
.field-label { display: block; margin-bottom: 8px; color: #e8e1e7; font-size: 12px; font-weight: 650; }
.field-wrap { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 49px; border: 1px solid rgba(255,255,255,.105); border-radius: 12px; background: rgba(8,7,11,.56); transition: border-color .2s, box-shadow .2s, background .2s; }
.field-wrap:focus-within { border-color: rgb(var(--acc) / .75); background: var(--ctrl); box-shadow: 0 0 0 3px rgb(var(--acc) / .09); }
.field-wrap > svg { width: 17px; height: 17px; flex: none; margin-left: 14px; color: var(--dim); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-input { width: 100%; min-width: 0; height: 47px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14px var(--font); }
.field-input::placeholder { color: var(--faint); }
.field-toggle { display: grid; width: 43px; height: 43px; flex: none; place-items: center; margin-right: 2px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); cursor: pointer; }
.field-toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.field-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 21px; }
.check-label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #c9c1cb; font-size: 12px; line-height: 1.5; cursor: pointer; }
.check-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-box { display: grid; width: 18px; height: 18px; flex: none; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(0,0,0,.28); color: var(--ink); transition: background .2s, border .2s; }
.check-box svg { width: 12px; height: 12px; opacity: 0; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.check-input:checked + .check-box { border-color: var(--accent); background: var(--accent); }
.check-input:checked + .check-box svg { opacity: 1; }
.check-input:focus-visible + .check-box { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.forgot { color: var(--accent-hi); font-size: 12px; font-weight: 600; text-decoration: none; }
.forgot:hover, .auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.submit { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.75); border-radius: 10px; color: var(--ink); background: linear-gradient(180deg,#fff,#d4d6dd); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); font: 600 14px var(--font); cursor: pointer; transition: background .2s ease, transform .2s var(--ease); }
.submit:hover { transform: translateY(-1px); background: linear-gradient(180deg,#fff,#e2e4e9); }
.submit:disabled { opacity: .58; cursor: wait; transform: none; }
.auth-foot { margin-top: 20px; color: var(--dim); font-size: 13px; text-align: center; }
.auth-foot a, .terms a { color: var(--accent-hi); font-weight: 650; text-decoration: none; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 15px 0 0; color: var(--faint); font-size: 11px; line-height: 1.5; text-align: center; }
.auth-note svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.twofa-intro { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; color: var(--dim); font-size: 13px; line-height: 1.55; }
.twofa-intro i { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border: 1px solid rgb(var(--acc) / .25); border-radius: 13px; background: rgb(var(--acc) / .12); color: var(--accent); }
.twofa-intro svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-input.code { padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: .45em; text-align: center; }
.link-back { display: block; margin: 16px auto 0; padding: 5px 8px; border: 0; background: transparent; color: var(--dim); font-size: 12px; font-weight: 600; cursor: pointer; }
.link-back:hover { color: var(--text); }
.strength { display: none; align-items: center; gap: 10px; margin-top: 10px; }
.strength.show { display: flex; }
.strength-track { display: flex; flex: 1; gap: 4px; }
.strength-seg { height: 4px; flex: 1; border-radius: 10px; background: rgba(255,255,255,.1); }
.strength-seg.lit-1 { background: #ee6d57; }.strength-seg.lit-2 { background: #e9ae4d; }.strength-seg.lit-3 { background: #75c77b; }
.strength-text { min-width: 52px; color: var(--dim); font-size: 10px; text-align: right; }
.terms { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 19px; color: var(--dim); font-size: 11px; line-height: 1.6; }
.terms .check-label { display: block; flex: none; }
.terms .check-input { position: static; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); opacity: 1; }
.terms .check-box { display: none; }
.terms > span:last-child { min-width: 0; }

/* Community and 404 */
.community-main { padding-bottom: 70px; }
.community-hero { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(128px, 17vh, 174px) 0 54px; text-align: center; }
.community-hero .page-icon { width: 74px; height: 74px; margin: 0 auto 26px; border-color: rgba(124,136,255,.32); background: linear-gradient(145deg, rgba(88,101,242,.2), rgb(var(--acc) / .1)); color: #b7beff; }
.community-hero .page-icon svg { width: 31px; height: 31px; }
.community-hero .page-title { font-size: clamp(38px, 7vw, 70px); }
.community-hero .page-subtitle { max-width: 710px; }
.community-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 38px auto 0; text-align: left; }
.community-card { padding: 23px; }
.community-card .page-icon { width: 43px; height: 43px; margin: 0 0 18px; border-radius: 13px; }
.community-card .page-icon svg { width: 20px; height: 20px; }
.community-card h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.community-card p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.65; }
.community-invite { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(930px, calc(100% - 48px)); margin: 0 auto; padding: clamp(26px, 4vw, 42px); overflow: hidden; }
.community-invite::after { position: absolute; top: -110px; right: 10%; width: 270px; height: 270px; border: 1px solid rgba(88,101,242,.23); border-radius: 50%; box-shadow: 0 0 0 28px rgba(88,101,242,.025), 0 0 0 58px rgba(88,101,242,.02); content: ''; pointer-events: none; }
.community-invite h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 4vw, 35px); font-weight: 750; letter-spacing: -.06em; text-transform: uppercase; }
.community-invite p { max-width: 470px; margin: 9px 0 0; color: var(--dim); font-size: 14px; line-height: 1.65; }
.community-invite .btn { z-index: 1; flex: none; }
.community-invite .btn .ico { width: 19px; height: 19px; }
.community-note { margin: 20px 0 0; color: var(--faint); font-size: 12px; line-height: 1.6; text-align: center; }
.notfound-main { min-height: 70vh; display: grid; place-items: center; padding: 128px 24px 78px; text-align: center; }
.notfound-card { width: min(750px, 100%); padding: clamp(30px, 6vw, 62px); }
.notfound-code { margin: 0; color: var(--accent); font-family: var(--display); font-size: clamp(100px, 24vw, 205px); font-weight: 900; letter-spacing: -.1em; line-height: .9; background: linear-gradient(180deg, #ffe5c6, var(--accent) 58%, var(--accent-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound-title { margin: 24px 0 10px; font-family: var(--display); font-size: clamp(22px, 4vw, 34px); font-weight: 750; letter-spacing: -.055em; line-height: 1.25; text-transform: uppercase; text-wrap: balance; }
.notfound-copy { max-width: 470px; margin: 0 auto; color: var(--dim); font-size: 15px; line-height: 1.65; }
.notfound-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 27px; }

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; width: min(530px, 100%); gap: 24px; }
  .auth-main { align-items: start; padding-top: 120px; }
  .auth-story { padding: 0; text-align: center; }
  .auth-story .page-eyebrow { justify-content: center; }
  .auth-story-title { margin: 0 auto; font-size: clamp(35px, 8vw, 52px); }
  .auth-story-copy { margin: 13px auto 0; font-size: 14px; }
  .auth-story-meta { justify-content: center; margin-top: 19px; }
  .auth-story::before { left: 50%; width: 90vw; transform: translate(-50%,-50%); }
}
@media (max-width: 680px) {
  .page-main { width: min(100% - 30px, 560px); }
  .page-hero { padding: 116px 15px 40px; }
  .page-eyebrow { gap: 9px; margin-bottom: 15px; font-size: 9px; letter-spacing: .2em; }
  .page-title { font-size: clamp(34px, 9.4vw, 52px); }
  .page-subtitle { margin-top: 14px; font-size: 14px; }
  .page-section { padding: 16px 0 60px; }
  .page-section-head { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 20px; }
  .page-section-copy { font-size: 13px; }
  .download-hero { padding-top: 117px; }
  .download-header .page-icon { width: 62px; height: 62px; margin-bottom: 21px; }
  .download-title { font-size: clamp(34px, 9vw, 47px); }
  .download-subtitle { margin-top: 13px; font-size: 14px; }
  .download-section, .faq-grid { grid-template-columns: 1fr; gap: 13px; }
  .download-card { padding: 23px 20px; border-radius: 18px !important; }
  .download-card h2, .download-card h3 { font-size: 18px; }
  .download-card > p:not(.download-lock):not(.download-note) { min-height: 0; margin-bottom: 18px; font-size: 13px; }
  .download-info { min-height: 58px; }
  .faq-section { padding-top: 60px; }
  .faq-item { padding: 16px; }
  .faq-item summary { font-size: 13px; }
  .auth-main { padding: 112px 15px 60px; }
  .auth-layout { gap: 22px; }
  .auth-story-title { font-size: clamp(32px, 9vw, 45px); }
  .auth-story-meta span { min-height: 33px; padding: 0 10px; font-size: 11px; }
  .auth-head { margin-bottom: 15px; }
  .auth-head h1 { font-size: 25px; }
  .auth-card { padding: 20px 17px; border-radius: 18px !important; }
  .social-btns { gap: 7px; }
  .social-btn { min-height: 43px; font-size: 12px; }
  .field { margin-bottom: 14px; }
  .field-wrap, .field-input { min-height: 46px; height: 46px; }
  .community-hero { width: min(100% - 30px, 560px); padding: 118px 0 37px; }
  .community-highlights { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .community-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 0 13px; padding: 17px; border-radius: 16px !important; }
  .community-card .page-icon { grid-row: span 2; margin: 0; }
  .community-card h2 { align-self: end; margin-bottom: 4px; font-size: 15px; }
  .community-card p { font-size: 12px; }
  .community-invite { width: min(100% - 30px, 560px); align-items: flex-start; flex-direction: column; gap: 20px; padding: 23px 19px; border-radius: 18px !important; }
  .community-invite .btn { width: 100%; }
  .notfound-main { min-height: 62vh; padding: 112px 15px 58px; }
  .notfound-card { padding: 32px 20px; border-radius: 20px !important; }
  .notfound-title { margin-top: 19px; }
}
@media (max-width: 390px) {
  .site-page .nav__login span { display: none; }
  .site-page .nav__login { width: 40px; padding: 0; justify-content: center; }
  .download-lock { font-size: 12px; }
  .auth-story-meta { gap: 6px; }
  .auth-story-meta span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-page .page-icon, .site-page .faq-item, .site-page .social-btn, .site-page .submit { transition: none; }
  .community-invite::after { display: none; }
}

.legal-main { padding-bottom: 80px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.legal-nav a { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--dim); font-size: 14px; transition: color .2s, border-color .2s; }
.legal-nav a:hover { color: var(--text); border-color: rgb(var(--acc) / .5); }
.legal-doc { max-width: 820px; margin: 0 auto 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: #14121a; scroll-margin-top: 110px; }
.legal-doc h2 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.legal-doc p { margin: 0 0 12px; color: var(--dim); font-size: 15.5px; line-height: 1.7; }
.legal-doc p:last-child { margin-bottom: 0; }

:root {
  --bg: #050506; --bg-2: #09090b; --raise: #0f0f12; --group: #16161a; --ctrl: #0a0a0c;
  --border: #26262c; --border-hi: #3f3f48; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --text: #f5f5f7; --sub: #d4d4da; --label: #c2c2ca; --dim: #a1a1aa; --faint: #83838e; --acc: 232 234 240;
}
.legal-doc, .auth-card, .community-card, .download-card, .notfound-card, .glow-card, .card {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg,#111114,#0b0b0d); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn--primary { border-color: rgba(255,255,255,.75); color: #0b0b0d; background: linear-gradient(180deg,#fff,#d4d6dd); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.btn--ghost { border-color: var(--line-2); border-radius: 10px; color: var(--text); background: transparent; }
.btn--discord { border-color: rgba(88,101,242,.3); color: #fff; background: #5865f2; }
input, select, textarea, .field-input, .field-control { color: var(--text); background: var(--ctrl); border-color: var(--border); }
input:focus, select:focus, textarea:focus, .field-input:focus, .field-control:focus { border-color: var(--border-hi); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.notfound-code { color: transparent; background: linear-gradient(100deg,#fff 0%,rgb(var(--acc)) 45%,#7d7f8a 100%); -webkit-background-clip: text; background-clip: text; }
.footer__brand .brand-mark:not(img) { background: url('../img/logo-tp.webp') center / contain no-repeat; }
.notfound-title, .notfound-copy, .notfound-actions .btn--ghost { display: none; }
.notfound-actions .btn--primary { margin-top: 18px; }
.page-title, .download-title, .auth-story-title, .community-invite h2 { text-transform: lowercase; font-weight: 700; }
.page-title::first-letter, .download-title::first-letter, .auth-story-title::first-letter, .community-invite h2::first-letter { text-transform: uppercase; }
.auth-story-title { font-size: clamp(36px,4.2vw,54px); line-height: 1.04; letter-spacing: -.045em; }
.auth-story-title em { font-style: normal; }
.auth-story::before { filter: none; background: radial-gradient(circle,rgba(255,255,255,.045),transparent 68%); }
.auth-head h1 { font-weight: 700; }
.auth-card { background: linear-gradient(180deg,#111114,#0b0b0d); }
.auth-card, .download-info, .download-lock, .community-hero .page-icon, .community-invite::after { border-color: var(--line); }
.auth-story-meta span, .legal-nav a { border-radius: 9px; }
.auth-card .btn { border-radius: 10px; }
.download-info { border-color: var(--line); background: var(--raise); }
.community-hero .page-icon { background: var(--raise); color: var(--label); }
.community-invite::after { opacity: .2; border-color: var(--line-2); box-shadow: 0 0 0 28px rgba(255,255,255,.012),0 0 0 58px rgba(255,255,255,.008); }
.footer__cols h6 { text-transform: none !important; }
.auth-card, .download-card, .community-card, .legal-doc, .notfound-card { background: linear-gradient(180deg,#111114,#0b0b0d) !important; }
.auth-card .btn, .auth-submit, .download-btn, .community-invite .btn { border-radius: 10px !important; }
.auth-card input, .auth-card select, .auth-card textarea { border-color: var(--border) !important; background: var(--ctrl) !important; }

/* Remplissage automatique du navigateur : le champ garde le thème noir et un texte lisible */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--ctrl) inset !important;
  box-shadow: 0 0 0 1000px var(--ctrl) inset !important;
  transition: background-color 99999s ease-out 0s;
}
