/* HSE-OS public site. One stylesheet for hse-os.com, plans.hse-os.com and the legal pages. */

/* 16.4.1: Manrope (variable, 200–800), self-hosted like every font here */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* 16.4.1 "Triad": Petrol #0C2A30, Signal amber #F0A500 (Deep amber #B87A00 on light grounds), Mist #EEF2F1,
     Steel #4A6064, white. The same scales as the app (frontend/src/styles.css). */
  --navy: #0c2a30;
  --deep: #061c21;
  --raised: #13373f;
  --line-dark: #24474e;
  --paper: #eef2f1;
  --fog: #e3edef;
  --white: #ffffff;
  --ink: #0c2a30;
  --slate: #4a6064;
  --line: #d1dcdc;
  --amber: #f0a500;
  --amber-deep: #b87a00;
  --amber-ink: #8a5c00;
  --on-dark: #eef2f1;
  --on-dark-2: #a9c0c2;
  --ok: #1d7446;
  --bad: #b4291d;

  --f-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Manrope", Tahoma, "Segoe UI", sans-serif;
  --f-zh: "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4.2vw, 48px);
  --sec: clamp(72px, 10vw, 136px);
  --d1: clamp(2.5rem, 5.6vw, 5.1rem);
  --d2: clamp(1.9rem, 3.5vw, 3.2rem);
  --d3: clamp(1.3rem, 1.85vw, 1.7rem);
  --lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --radius: 3px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--f-ar); line-height: 1.85; }
html[lang|="zh"] body { font-family: var(--f-zh); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
bdi.n, .ltr { direction: ltr; unicode-bidi: isolate; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* ---------------------------------------------------------------- type */
.d1, .d2, .d3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.d1 { font-size: var(--d1); line-height: 1.02; }
.d2 { font-size: var(--d2); line-height: 1.06; }
.d3 { font-size: var(--d3); line-height: 1.18; letter-spacing: -0.02em; }
html[lang="ar"] .d1, html[lang="ar"] .d2, html[lang="ar"] .d3 { font-family: var(--f-ar); letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .d1 { font-size: calc(var(--d1) * 0.74); line-height: 1.25; }
html[lang="ar"] .d2 { font-size: calc(var(--d2) * 0.72); line-height: 1.35; }
html[lang="ar"] .d3 { font-size: calc(var(--d3) * 0.8); line-height: 1.45; }
html[lang|="zh"] .d1, html[lang|="zh"] .d2, html[lang|="zh"] .d3 { font-family: var(--f-zh); letter-spacing: 0.02em; font-weight: 600; }
html[lang|="zh"] .d1 { font-size: calc(var(--d1) * 0.7); line-height: 1.2; }
html[lang|="zh"] .d2 { font-size: calc(var(--d2) * 0.66); line-height: 1.3; }
html[lang|="zh"] .d3 { font-size: calc(var(--d3) * 0.78); line-height: 1.4; }
.lead { font-size: var(--lead); line-height: 1.6; color: var(--slate); max-width: 40em; }
.dark .lead { color: var(--on-dark-2); }
.fig { font-family: var(--f-display); font-weight: 800; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
html[lang="ar"] .btn { font-family: var(--f-ar); }
html[lang|="zh"] .btn { font-family: var(--f-zh); }
.btn-gold { background: var(--amber); color: var(--navy); }
.btn-gold:hover { background: #feb439; }
.btn-line { border-color: rgba(238, 242, 241, .45); color: var(--on-dark); background: transparent; }
.btn-line:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .05); }
.light .btn-line, .btn-line.on-light { border-color: var(--ink); color: var(--ink); }
.light .btn-line:hover, .btn-line.on-light:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s;
}
.top.solid { background: rgba(6, 28, 33, .94); box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; font-size: .95rem; text-decoration: none; color: var(--on-dark-2); border-radius: 2px; }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); }
.langs { display: flex; align-items: center; gap: 2px; padding-inline-start: 12px; margin-inline-start: 4px; border-inline-start: 1px solid var(--line-dark); }
.langs a { min-width: 36px; height: 34px; display: inline-grid; place-items: center; padding: 0 8px; text-decoration: none; font-size: .9rem; color: var(--on-dark-2); border-radius: 2px; }
.langs a[aria-current="true"] { color: var(--navy); background: var(--on-dark); font-weight: 600; }
.langs a:hover:not([aria-current="true"]) { color: var(--on-dark); }
.langs a[lang="ar"] { font-family: var(--f-ar); }
.langs a[lang|="zh"] { font-family: var(--f-zh); }
.top .btn { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line-dark); color: var(--on-dark); width: 46px; height: 42px; border-radius: var(--radius); cursor: pointer; }
.menu-btn svg { margin: auto; width: 22px; height: 22px; }
.sheet { display: none; }

@media (max-width: 1080px) {
  .nav, .top .langs, .top .btn-gold { display: none; }
  .menu-btn { display: grid; }
  .sheet { display: block; position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--on-dark); padding: 0 var(--gut) 32px; overflow-y: auto; transform: translateY(-100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
  .sheet.open { transform: none; visibility: visible; transition: transform .35s ease; }
  .sheet-head { display: flex; align-items: center; height: 76px; }
  .sheet nav { display: grid; margin-top: 8px; border-top: 1px solid var(--line-dark); }
  .sheet nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
  html[lang="ar"] .sheet nav a, html[lang|="zh"] .sheet nav a { font-family: inherit; font-size: 1.25rem; }
  .sheet .langs { border: 0; padding: 0; margin: 24px 0; gap: 8px; }
  .sheet .langs a { height: 44px; min-width: 56px; border: 1px solid var(--line-dark); }
  .sheet .btn { width: 100%; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .sheet.open { transition: none; } }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: var(--sec); position: relative; }
.dark { background: var(--navy); color: var(--on-dark); }
.deep { background: var(--deep); color: var(--on-dark); }
.light { background: var(--paper); }
.fog { background: var(--fog); }
.head { display: grid; gap: 22px; align-content: start; margin-bottom: clamp(40px, 6vw, 72px); max-width: 52rem; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
/* the section's top rule: a hairline with a short amber segment where the section starts */
.rule { height: 1px; background: var(--line); position: relative; margin-bottom: clamp(36px, 5vw, 56px); }
.dark .rule, .deep .rule { background: var(--line-dark); }
.rule::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; width: 56px; height: 3px; background: var(--amber); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  min-height: min(100svh, 940px);
  background:
    radial-gradient(70% 55% at 62% 100%, rgba(240, 165, 0, .20) 0%, rgba(240, 165, 0, .06) 38%, rgba(240, 165, 0, 0) 70%),
    linear-gradient(180deg, #061c21 0%, #0c2a30 45%, #13373f 100%);
  display: flex; flex-direction: column;
}
html[dir="rtl"] .hero { background:
    radial-gradient(70% 55% at 38% 100%, rgba(240, 165, 0, .20) 0%, rgba(240, 165, 0, .06) 38%, rgba(240, 165, 0, 0) 70%),
    linear-gradient(180deg, #061c21 0%, #0c2a30 45%, #13373f 100%); }
.hero-text { position: relative; z-index: 2; padding-top: clamp(120px, 17vh, 190px); }
.hero h1 { max-width: 9.5em; }
html[lang="ar"] .hero h1, html[lang|="zh"] .hero h1 { max-width: 12em; }
.hero .lead { margin: 28px 0 36px; max-width: 34em; color: #b9cacb; }
.hero-from { margin-top: 22px; font-size: .95rem; color: var(--on-dark-2); }
.hero-from b { color: var(--amber); font-weight: 600; }
.hero-art { position: relative; margin-top: auto; z-index: 1; pointer-events: none; }
.hero-art img { width: 100%; height: auto; margin-top: -9%; }
html[dir="rtl"] .hero-art img { transform: scaleX(-1); }
.hero-art.photo img { margin-top: 0; aspect-ratio: 5 / 2; object-fit: cover; }
html[dir="rtl"] .hero-art.photo img { transform: none; }
@media (min-width: 1500px) { .hero-art img { margin-top: -14%; } }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-art { overflow: hidden; }
  .hero-art img { width: 210%; max-width: none; margin-top: 8px; margin-inline-start: -98%; }
  html[dir="rtl"] .hero-art img { margin-inline-start: -98%; }
  .hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: dusk 2.2s cubic-bezier(.3, .7, .2, 1) .25s both; }
  .hero-text > * { animation: rise .9s cubic-bezier(.3, .7, .2, 1) both; }
  .hero-text > *:nth-child(2) { animation-delay: .12s; }
  .hero-text > *:nth-child(3) { animation-delay: .22s; }
  .hero-text > *:nth-child(4) { animation-delay: .3s; }
}
@keyframes dusk { from { opacity: 0; clip-path: inset(0 100% 0 0); } 30% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- audience */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.aud li { list-style: none; padding: 28px 28px 8px 0; border-inline-end: 1px solid var(--line); padding-inline-start: 28px; }
.aud li:first-child { padding-inline-start: 0; }
.aud li:last-child { border-inline-end: 0; }
.aud h3 { margin-bottom: 12px; }
.aud p { color: var(--slate); }
.aud-ico { width: 44px; height: 44px; color: var(--amber-ink); margin-bottom: 26px; }
@media (max-width: 980px) {
  .aud { grid-template-columns: 1fr 1fr; }
  .aud li:nth-child(2n) { border-inline-end: 0; }
  .aud li:nth-child(2n+1) { padding-inline-start: 0; }
  .aud li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .aud { grid-template-columns: 1fr; }
  .aud li { border-inline-end: 0; padding-inline: 0 !important; }
  .aud li + li { border-top: 1px solid var(--line); }
}
ul.plain { margin: 0; padding: 0; }

/* ---------------------------------------------------------------- frames for screenshots */
.frame { background: #163c44; border-radius: 10px; padding: 0 0 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: #163c44; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2e5560; }
.frame-bar span { margin-inline: auto; padding: 3px 14px; border-radius: 4px; background: #0f3138; font-size: .74rem; color: #93abad; direction: ltr; letter-spacing: .01em; }
.frame img { width: 100%; height: auto; background: #f0f6f7; }
.light .frame, .fog .frame { box-shadow: 0 30px 60px -28px rgba(12, 42, 48, .45), 0 0 0 1px rgba(12, 42, 48, .08); }
.phone { width: 100%; border-radius: 34px; padding: 10px; background: #163c44; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 25px; width: 100%; height: auto; background: #f0f6f7; }
.ph { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #f0f5f4 0 14px, #e6edec 14px 28px); color: var(--slate); font-size: .9rem; }

/* ---------------------------------------------------------------- showcase */
.show > * { min-width: 0; }
.show { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 0; align-items: end; }
.show-phone { margin: 0 0 0 0; margin-inline-start: -120px; position: relative; z-index: 2; transform: translateY(36px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line-dark); }
.tabs button { background: none; border: 0; padding: 10px 0 14px; margin-bottom: -1px; cursor: pointer; color: var(--on-dark-2); font: 500 .98rem/1.3 inherit; font-family: inherit; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--on-dark); border-bottom-color: var(--amber); }
.tabs button:hover { color: var(--on-dark); }
.panels .shot { margin: 0; }
.panels .shot + .shot { display: none; }
.js .panels .shot { display: none; }
.js .panels .shot.on { display: block; }
.show-phone figcaption, .shot-cap { margin-top: 14px; font-size: .88rem; color: var(--on-dark-2); }
.show-phone .phone { box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 8px rgba(12, 42, 48, .9); }
.show-note { margin-top: 28px; font-size: .85rem; color: var(--on-dark-2); }
@media (prefers-reduced-motion: no-preference) { .js .panels .shot.on { animation: fadein .35s ease both; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .show-phone { max-width: 260px; margin-inline: auto; transform: none; margin-top: 40px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
}

/* ---------------------------------------------------------------- features */
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.feat .head { position: sticky; top: 120px; align-self: start; margin-bottom: 0; }
.fl { border-top: 1px solid var(--line); }
.fl > li { list-style: none; display: grid; grid-template-columns: 52px 1fr; gap: 0 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.fl-ico { width: 44px; height: 44px; color: var(--amber-ink); grid-row: span 3; }
.fl h3 { margin-bottom: 10px; }
.fl p { color: var(--slate); margin-bottom: 14px; }
.ticks { margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { list-style: none; position: relative; padding-inline-start: 22px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(.8em - 1px); width: 12px; height: 2px; background: var(--amber); }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat .head { position: static; margin-bottom: 8px; }
}
@media (max-width: 520px) { .fl > li { grid-template-columns: 1fr; } .fl-ico { grid-row: auto; margin-bottom: 14px; } }

/* ---------------------------------------------------------------- incidents (a real sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: 0; padding: 0; }
.steps > li { list-style: none; counter-increment: step; position: relative; padding: 30px 0 40px; border-top: 1px solid var(--line-dark); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--amber); margin-bottom: 18px; letter-spacing: .02em; }
.steps > li::after { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--on-dark-2); margin: 0; }
.light .steps > li, .fog .steps > li { border-top-color: var(--line); }
.light .steps p, .fog .steps p { color: var(--slate); }
.fog .steps > li::before, .light .steps > li::before { color: var(--amber-ink); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps, .steps.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .steps.five { grid-template-columns: 1fr; } .steps > li { padding-bottom: 28px; } }

/* ---------------------------------------------------------------- roles */
.roles-art { margin: 0 0 clamp(40px, 6vw, 72px); border-radius: 4px; overflow: hidden; background:
  radial-gradient(60% 70% at 50% 100%, rgba(240, 165, 0, .16), rgba(240, 165, 0, 0) 70%), linear-gradient(180deg, #08242a, #13373f); }
.roles-art img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.roles-art.photo img { object-fit: cover; aspect-ratio: 21 / 9; max-height: none; }
.rg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.rg h3 { font-family: var(--f-text); font-size: .95rem; font-weight: 600; color: var(--amber-ink); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
html[lang="ar"] .rg h3 { font-family: var(--f-ar); }
html[lang|="zh"] .rg h3 { font-family: var(--f-zh); }
.rg dl { margin: 0; }
.rg dt { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.22rem; line-height: 1.2; margin-top: 20px; }
html[lang="ar"] .rg dt { font-family: var(--f-ar); font-size: 1.1rem; }
html[lang|="zh"] .rg dt { font-family: var(--f-zh); font-size: 1.1rem; }
.rg dd { margin: 6px 0 0; color: var(--slate); font-size: .97rem; }
.rg-free h3 { color: var(--ink); }
.rg-free { background: var(--white); padding: 0 22px 22px; margin-top: -22px; padding-top: 22px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1000px) { .rg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rg { grid-template-columns: 1fr; } .rg-free { margin-top: 0; } }

/* ---------------------------------------------------------------- languages */
.tri { margin: 0 0 clamp(48px, 7vw, 88px); padding: 0; border-top: 1px solid var(--line); }
.tri li { list-style: none; display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 18px; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); }
.tri .code { font-size: .85rem; color: var(--slate); }
.tri b { display: block; font-weight: 600; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.15; }
.tri li[lang="en"] b { font-family: var(--f-display); }
.tri li[lang="ar"] b { font-family: var(--f-ar); font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.45; }
.tri li[lang|="zh"] b { font-family: var(--f-zh); font-size: clamp(1.8rem, 4.2vw, 3.6rem); }
.tri span.s { display: block; margin-top: 6px; color: var(--slate); }
.tri li[lang="en"] span.s { font-family: var(--f-text); }
.tri li[lang="ar"] span.s { font-family: var(--f-ar); }
.tri li[lang|="zh"] span.s { font-family: var(--f-zh); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.pair figcaption { margin-top: 14px; font-size: .9rem; color: var(--slate); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .tri li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- security */
.secu { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.secu-art { position: sticky; top: 110px; border-radius: 4px; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(240, 165, 0, .14), rgba(240, 165, 0, 0) 70%), var(--deep); }
.secu-art.photo img { aspect-ratio: 1; object-fit: cover; }
.sl { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 44px); border-top: 1px solid var(--line-dark); }
.sl li { list-style: none; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.sl h3 { font-family: var(--f-text); font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; color: var(--on-dark); }
html[lang="ar"] .sl h3 { font-family: var(--f-ar); }
html[lang|="zh"] .sl h3 { font-family: var(--f-zh); }
.sl p { color: var(--on-dark-2); margin: 0; font-size: .98rem; }
.sl li:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .secu { grid-template-columns: 1fr; } .secu-art { position: static; max-width: 460px; } }
@media (max-width: 600px) { .sl { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- offline */
.off { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.off-art { border-radius: 4px; overflow: hidden; background: radial-gradient(70% 60% at 30% 100%, rgba(240, 165, 0, .16), rgba(240, 165, 0, 0) 70%), linear-gradient(180deg, #08242a, #13373f); }
.off-art img { width: 100%; height: auto; }
.off-art.photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 30px 0 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-line .fig { font-size: 3.4rem; line-height: 1; color: var(--ink); }
.price-line > span:not(.fig) { color: var(--slate); }
.price-line .pl-from { width: 100%; color: var(--ink) !important; font-weight: 500; }
@media (max-width: 900px) { .off { grid-template-columns: 1fr; } .off-art { order: -1; } }

/* ---------------------------------------------------------------- buying + hosting */
.host { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 7vw, 88px); }
.host-h { grid-column: 1 / -1; margin-bottom: 4px; }
.host article { background: var(--white); padding: 30px 28px 32px; border-radius: 3px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(12, 42, 48, .04); display: flex; flex-direction: column; }
.host .eg { display: block; margin: 6px 0 22px; font-size: .92rem; color: var(--slate); direction: ltr; text-align: start; }
html[dir="rtl"] .host .eg { text-align: right; }
.host .eg.text { direction: inherit; }
.host .pr { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.host p { color: var(--slate); margin: 0 0 18px; }
@media (max-width: 1180px) { .host { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .host { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- closing (price + calls to action) */
.close-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.from { display: grid; gap: 10px; }
.from small { font-size: 1rem; color: var(--on-dark-2); }
.from .fig { font-size: clamp(5rem, 12vw, 10rem); line-height: .85; color: var(--white); }
html[lang="ar"] .from .fig, html[lang|="zh"] .from .fig { font-family: var(--f-display); }
.from .unit { font-size: 1.15rem; color: var(--on-dark); }
.inc { margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.inc li { list-style: none; position: relative; padding-inline-start: 22px; color: var(--on-dark); }
.inc li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(.8em - 1px); width: 12px; height: 2px; background: var(--amber); }
.tax { margin-top: 20px; font-size: .9rem; color: var(--on-dark-2); }
.final { margin-top: clamp(72px, 10vw, 128px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 7fr 5fr; gap: 32px 64px; align-items: end; }
.final .actions { justify-content: flex-end; }
@media (max-width: 900px) { .close-grid, .final { grid-template-columns: 1fr; } .final .actions { justify-content: flex-start; } }
@media (max-width: 520px) { .final .actions .btn, .close-grid .actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--deep); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 36px; }
.foot img { height: 30px; width: auto; margin-bottom: 18px; }
.foot h2 { font-family: var(--f-text); font-size: .9rem; font-weight: 600; color: var(--on-dark); margin-bottom: 14px; }
html[lang="ar"] .foot h2 { font-family: var(--f-ar); }
html[lang|="zh"] .foot h2 { font-family: var(--f-zh); }
.foot ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li { list-style: none; }
.foot a { text-decoration: none; color: var(--on-dark-2); }
.foot a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.foot .langs { border: 0; padding: 0; margin: 20px 0 0; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- plans page */
.pagehead { background: linear-gradient(180deg, #061c21 0%, #0c2a30 100%); color: var(--on-dark); padding: clamp(130px, 18vh, 180px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 165, 0, .55), transparent); }
.pagehead .lead { color: #b9cacb; margin-top: 22px; }
.pagehead .tax-note { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--on-dark); }
.pagehead .tax-note::before { content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }

.pt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt th, .pt td { padding: 22px 16px; text-align: end; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt th:first-child, .pt td:first-child { text-align: start; padding-inline-start: 0; }
.pt th:last-child, .pt td:last-child { padding-inline-end: 0; }
.pt thead th { font-size: .85rem; font-weight: 600; color: var(--slate); padding-top: 0; border-bottom: 1px solid var(--ink); }
.pt tbody th { font-weight: 400; }
.pt .pn { display: block; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.42rem; line-height: 1.1; }
html[lang="ar"] .pt .pn, html[lang|="zh"] .pt .pn { font-family: inherit; font-size: 1.15rem; }
.pt .pw { display: block; color: var(--slate); font-size: .92rem; margin-top: 4px; }
.pt .mo { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.42rem; }
.pt .sub { display: block; font-size: .8rem; color: var(--slate); }
.pt td bdi { white-space: nowrap; }
.pt tr.custom td { color: var(--slate); }
@media (max-width: 900px) {
  .pt thead { display: none; }
  .pt, .pt tbody, .pt tr, .pt th, .pt td { display: block; width: 100%; }
  .pt tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .pt th, .pt td { border: 0; padding: 0 !important; text-align: start !important; }
  .pt tbody th { grid-column: 1 / -1; margin-bottom: 10px; }
  .pt td::before { content: attr(data-l); display: block; font-size: .78rem; color: var(--slate); }
  .pt td.mo-cell { grid-column: 1 / -1; margin-bottom: 8px; }
  .pt tr.custom td { grid-column: 1 / -1; }
}
.incl { margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.incl li { list-style: none; position: relative; padding-inline-start: 22px; }
.incl li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(.8em - 1px); width: 12px; height: 2px; background: var(--amber); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.ot { width: 100%; border-collapse: collapse; }
.ot td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ot td:last-child { text-align: end; font-weight: 600; white-space: nowrap; padding-inline-start: 20px; }
.ot tr:first-child td { border-top: 1px solid var(--ink); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- form */
.req { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.req-main { display: grid; gap: 44px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.35rem; padding: 0; margin-bottom: 20px; }
html[lang="ar"] legend, html[lang|="zh"] legend { font-family: inherit; font-size: 1.2rem; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.fg .full { grid-column: 1 / -1; }
.fld label, .fld .lbl { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; }
.fld .req-mark { color: var(--amber-ink); margin-inline-start: 2px; }
.fld .opt { color: var(--slate); font-weight: 400; font-size: .85rem; }
.fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld input[type="number"], .fld input[type="date"], .fld select, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b5c6c7; border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 400 1rem/1.4 inherit; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.fld textarea { min-height: 120px; resize: vertical; }
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .fld select { background-position: 20px 50%, 25px 50%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 165, 0, .45); }
.fld .help { display: block; margin-top: 6px; font-size: .85rem; color: var(--slate); }
.fld .err { display: none; margin-top: 6px; font-size: .88rem; color: var(--bad); font-weight: 500; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--bad); }
.fld.bad .err { display: block; }
.fld input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.addr { display: flex; align-items: stretch; }
.addr input { flex: 1; min-width: 0; }
.addr .addr-suf { display: flex; align-items: center; padding: 0 14px; border: 1px solid #b5c6c7; border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--fog); color: var(--slate); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.addr .addr-suf[hidden] { display: none; }
.fld .addr input:has(+ .addr-suf:not([hidden])) { border-radius: var(--radius) 0 0 var(--radius); }
.fld.bad .addr .addr-suf { border-color: var(--bad); }
.choice { display: grid; gap: 10px; }
.choice label { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: start; padding: 16px 18px; border: 1px solid #c2d0d1; border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 400; margin: 0; }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--navy); }
.choice b { font-weight: 600; }
.choice .ch-eg { grid-column: 2; font-size: .88rem; color: var(--slate); }
.choice .ch-pr { grid-row: 1; grid-column: 3; font-size: .88rem; font-weight: 600; text-align: end; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice.row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice.hostpick label { grid-template-columns: 22px 1fr; }
.choice.hostpick b bdi { white-space: nowrap; }
.choice.hostpick .ch-pr { grid-row: auto; grid-column: 2; text-align: start; font-weight: 500; color: var(--slate); }
.choice.row label { grid-template-columns: 22px 1fr; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #c2d0d1; border-radius: var(--radius); background: var(--white); cursor: pointer; margin: 0; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.checks label:has(input:checked) { border-color: var(--ink); }
.fld label.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.submit-row { display: grid; gap: 16px; }
.submit-row .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.alert { padding: 16px 18px; border-radius: var(--radius); border-inline-start: 3px solid var(--bad); background: #fbeceb; color: #6d1712; font-weight: 500; }
.alert .btn { margin-top: 12px; min-height: 44px; }
.alert[hidden] { display: none; }
.mock-note { font-size: .85rem; color: var(--amber-ink); font-weight: 600; }

.est { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 100px; background: var(--navy); color: var(--on-dark); border-radius: 4px; padding: 28px 28px 26px; }
.est h2 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; color: var(--on-dark); margin-bottom: 18px; }
html[lang="ar"] .est h2 { font-family: var(--f-ar); }
html[lang|="zh"] .est h2 { font-family: var(--f-zh); }
.est ul { margin: 0; padding: 0; }
.est li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; color: var(--on-dark-2); }
.est li bdi { color: var(--on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.est .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.est .tot span { font-weight: 600; }
.est .tot bdi { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 2.2rem; line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; }
.est .tot.custom bdi { font-size: 1.8rem; }
.est .warn { margin-top: 14px; font-size: .9rem; color: #ffca80; }
.est .warn:empty { display: none; }
.est .note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--on-dark-2); }
@media (max-width: 980px) { .req { grid-template-columns: 1fr; } .est { position: static; grid-column: auto; grid-row: auto; } }
@media (max-width: 600px) { .fg { grid-template-columns: 1fr; } .choice.row { grid-template-columns: 1fr; } .choice label { grid-template-columns: 22px 1fr; } .choice .ch-pr { grid-row: auto; grid-column: 2; text-align: start; } }

.done { background: var(--white); border-radius: 4px; padding: clamp(32px, 5vw, 64px); box-shadow: 0 0 0 1px var(--line); max-width: 760px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--amber); margin-bottom: 28px; }
.done-mark svg { width: 26px; height: 26px; }
.done h2 { margin-bottom: 18px; }
.done .ref { display: inline-flex; gap: 12px; align-items: baseline; padding: 12px 18px; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 3px; }
.done .ref bdi { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.done p { color: var(--slate); max-width: 36em; }
@media (prefers-reduced-motion: no-preference) { .done { animation: rise .5s ease both; } }

/* ---------------------------------------------------------------- legal + 404 */
.doc { max-width: 46rem; }
.doc h1 { margin-bottom: 20px; }
.doc h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.4rem; margin: 2.2em 0 .6em; line-height: 1.15; }
html[lang="ar"] .doc h2, html[lang|="zh"] .doc h2 { font-family: inherit; font-size: 1.3rem; }
.doc h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.doc p, .doc li { color: #1e3a40; }
.doc ul, .doc ol { padding-inline-start: 1.4em; }
.doc li { margin-bottom: .45em; }
.doc blockquote { margin: 1.4em 0; padding: 14px 18px; border-inline-start: 3px solid var(--amber); background: var(--white); }
.doc blockquote p:last-child { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { border-bottom-color: var(--ink); }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc code { font-size: .9em; background: var(--fog); padding: 1px 5px; border-radius: 2px; }
.doc-note { padding: 14px 18px; background: var(--fog); border-radius: 3px; margin-bottom: 28px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-nav a { color: var(--ink); text-underline-offset: 3px; }
.lost { min-height: 70vh; display: grid; align-content: center; }

@media print {
  .top, .foot, .sheet { display: none !important; }
  .pagehead { padding: 20px 0; background: none; color: #000; }
}
