/* Brick Keeper product site. Colours follow the app (lib/theme.ts): warm near-black, warm white, amber. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

:root {
  --ink: #121214;
  --surface: #1d1d22;
  --surface-2: #26262c;
  --text: #f4f1ea;
  --text-2: #a49d90;
  --muted: #6f6b64;
  --amber: #e8b04a;
  --amber-light: #f3cf86;
  --hairline: rgba(244, 241, 234, 0.08);
  --sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-light); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
p { margin: 0; }

/* Language: every bilingual element exists twice; the html[data-lang] attribute picks one. */
html[data-lang="en"] [lang="zh-Hans"], html[data-lang="zh"] [lang="en"] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 20, 0.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.lang { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.lang:hover { border-color: rgba(244, 241, 234, 0.2); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; background: var(--amber); color: #1a1206; font-weight: 600; font-size: 16px; }
.btn:hover { background: var(--amber-light); color: #1a1206; }
.btn svg { width: 20px; height: 20px; }
.link-down { color: var(--text-2); font-size: 15px; }
.link-down:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 72px 0 72px;
  background: radial-gradient(ellipse 46% 50% at 78% 42%, rgba(232, 176, 74, 0.17), transparent 72%),
              radial-gradient(ellipse 36% 40% at 8% 70%, rgba(70, 130, 200, 0.13), transparent 72%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--amber); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); }
.hero .lead { margin-top: 22px; color: var(--text-2); font-size: 19px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.facts li { font-size: 13px; color: var(--text-2); border: 1px solid var(--hairline); background: rgba(29, 29, 34, 0.7); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 820px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Phone screenshots */
.phone { position: relative; width: min(100%, 330px); margin: 0 auto; }
.phone img { width: 100%; border-radius: 34px; border: 1px solid rgba(244, 241, 234, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px #0b0b0d; }
.phone.tilt { transform: rotate(2deg); }
@media (max-width: 820px) { .phone { width: min(78%, 300px); } .phone.tilt { transform: none; } }

/* Feature sections */
.section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.section-head { max-width: 40em; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 42px); }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .phone { order: 2; }
.feature h3 { font-size: 26px; margin: 10px 0 14px; }
.feature p { color: var(--text-2); }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.feature li { position: relative; padding-left: 22px; margin-top: 8px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.num { font-size: 13px; font-weight: 600; color: var(--amber); letter-spacing: 0.08em; }
.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; margin: 2px 4px 2px 0; }
.p-sealed { background: rgba(95, 168, 160, 0.18); color: #7fc6bd; }
.p-opened { background: rgba(232, 176, 74, 0.18); color: var(--amber-light); }
.p-built { background: rgba(217, 88, 74, 0.2); color: #f08a7e; }
.p-gift { background: rgba(155, 140, 217, 0.2); color: #b9adf0; }
.p-sold { background: rgba(106, 104, 98, 0.3); color: #c8c1b4; }
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .phone { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px 24px; }
.card.glow::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px 180px at 100% 0%, rgba(232, 176, 74, 0.16), transparent 70%), radial-gradient(240px 160px at 0% 100%, rgba(70, 130, 200, 0.12), transparent 70%); }
.card > * { position: relative; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(232, 176, 74, 0.14); color: var(--amber); margin-bottom: 16px; }
.card .icon svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* Closing call to action */
.closing { text-align: center; padding: 96px 0 104px; border-top: 1px solid var(--hairline); position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 260px at 50% 100%, rgba(232, 176, 74, 0.16), transparent 70%); }
.closing .wrap { position: relative; }
.closing img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.closing h2 { font-size: clamp(30px, 4vw, 44px); }
.closing p { color: var(--text-2); margin: 14px auto 30px; max-width: 30em; }

/* Text pages (privacy, support) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 4.6vw, 46px); }
.page .meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.page .intro { color: var(--text-2); font-size: 19px; margin-top: 22px; }
.page h2 { font-size: 22px; margin: 52px 0 14px; }
.page h3 { font-size: 17px; margin: 28px 0 8px; }
.page p, .page li { color: #d9d4ca; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin: 10px 0 0; }
.page li { margin-top: 6px; }
.page strong { color: var(--text); font-weight: 600; }
.summary { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.summary div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px 18px; font-size: 15px; color: var(--text-2); }
.summary b { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 560px) { .summary { grid-template-columns: 1fr; } }
.contact { margin-top: 36px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.contact p { color: var(--text-2); }
.contact .mail { font-size: 20px; font-weight: 600; color: var(--text); }
details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
details summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--amber); font-weight: 500; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { margin-top: 10px; color: var(--text-2); }
details > div p { color: var(--text-2); }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .links a { color: var(--text-2); }
.foot .links a:hover { color: var(--text); }
.foot .legal { margin-top: 20px; font-size: 13px; color: var(--muted); max-width: 46em; }
