/* Shared site theme. Extracted verbatim from the homepage so every page uses one brand system. */
@font-face { font-family: "Geist"; src: url("./fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("./fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Brand palette, verbatim from the OpenApps token system. */
  --green: #00c896;
  --green-lift: #4fdcb8;
  --blue: #15b9eb;
  --ink: #0b0b0b;
  --surface: #141516;
  --card: #101010;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.66);
  --fg-3: rgba(255,255,255,0.5);
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 48px;
  --wrap: 1344px;
  --header-height: 64px;
  --section: 96px;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (max-width: 900px) { :root { --gutter: 24px; --section: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
section, .hero { scroll-margin-top: 5.5rem; }
section { padding-block: var(--section); border-top: 1px solid var(--line); }

/* ---- type */
.eyebrow { font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
h1 { font: 500 clamp(40px, 6.2vw, 84px)/1.02 var(--font); letter-spacing: -0.04em; }
h1 .sep { display: inline-block; margin-inline: 0.22em; color: var(--fg-3); font-weight: 400; }
h1 .line { display: block; }
h2 { font: 500 clamp(30px, 3.8vw, 52px)/1.08 var(--font); letter-spacing: -0.035em; }
h3 { font: 500 20px/1.25 var(--font); letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-2); max-width: 680px; }
.muted { color: var(--fg-3); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 900px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }

/* ---- the brand mark: "Open" muted, the word at full strength, the full stop in the accent */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-tile { width: 26px; height: 26px; flex: none; }
.brand-word { font: 500 19px/1 var(--font); letter-spacing: -0.04em; }
.wm { font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.wm .o, .brand-word .o { color: var(--fg-3); }
.wm .dot, .brand-word .dot { color: var(--dot, var(--green)); }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; font: 500 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); white-space: nowrap; }
.btn-primary { background: var(--green); color: #04130e; }
.btn-primary:hover { background: var(--green-lift); }
.btn-secondary { appearance: none; background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* ---- header: three zones, 64px, sticky */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--ink) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: var(--header-height); }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a, .header-actions > a:not(.btn) { font: 400 13px/1 var(--font); color: var(--fg-2); transition: color 120ms var(--ease); }
.site-nav a:hover, .header-actions > a:not(.btn):hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 20px; }
@media (max-width: 760px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 0 16px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 18px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .header-actions { margin-left: auto; }
  section, .hero { scroll-margin-top: 7.5rem; }
}
@media (max-width: 430px) { .header-actions > a:not(.btn):not(.lang-switch) { display: none; } .header-actions { gap: 12px; } }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; }
.lang-switch button { appearance: none; border: 0; background: transparent; color: var(--fg-3); height: 28px; min-width: 36px; padding: 0 8px; border-radius: 6px; font: 500 12px/1 var(--font); letter-spacing: 0.04em; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--fg); }
.lang-switch button:hover { color: var(--fg); }
html[lang="en"] .t-zh { display: none; }
html:not([lang="en"]) .t-en { display: none; }

:root { --danger: #ff8a8a; }

/* Shared page composition, copied from the homepage. */
/* ---- hero */
.hero { padding-block: clamp(56px, 8vw, 104px) var(--section); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 .o { color: var(--fg-3); }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .phone { width: min(340px, 78%); border-radius: 28px; }
.hero-visual figcaption, .media figcaption { margin-top: 14px; font: 400 12px/1.4 var(--mono); color: var(--fg-3); text-align: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-visual { order: 2; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } }
/* ---- footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 56px 32px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-about { display: grid; gap: 14px; align-content: start; }
.footer-about p { color: var(--fg-2); max-width: 340px; font-size: 14px; }
.x-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; justify-self: start; transition: color 120ms var(--ease); }
.x-link:hover { color: var(--fg); }
.footer-group { display: flex; flex-direction: column; gap: 10px; }
.footer-group .eyebrow::before { display: none; }
.footer-group a { color: var(--fg-2); font-size: 13px; }
.footer-group a:hover { color: var(--fg); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }
.footer-base .container { padding-block: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; grid-template-columns: none; font-size: 13px; color: var(--fg-3); }
@media (max-width: 900px) { .site-footer .container { grid-template-columns: repeat(2, 1fr); } }
