:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #121215;
  --line: #28282f;
  --red: #f0384b;
  --text: #f4f1ee;
  --muted: #a7a6af;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.app-shell { max-width: 640px; margin: auto; padding: max(16px, env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px)) 20px 112px; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.brand img { border-radius: 8px; }
.brand-small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 3px; color: var(--muted); margin-top: 4px; }
.demo-badge { font-size: 9px; font-weight: bold; letter-spacing: 2px; color: var(--red); border: 1px solid #77303b; padding: 8px 10px; border-radius: 5px; }
.demo-note { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: #c6b8bc; line-height: 1.6; padding: 12px; border: 1px solid #4c242e; border-radius: 8px; background: #1d1015; margin-bottom: 18px; }
.signal { width: 5px; height: 5px; flex: 0 0 5px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.hero-card { min-height: 310px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0b0b0e; }
.hero-portrait { position: absolute; height: 110%; width: auto; right: -100px; top: -5%; opacity: .76; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0e 5%, #0b0b0e99 43%, transparent 85%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; padding: 26px 22px 50px; }
.eyebrow { font-size: 9px; letter-spacing: 2px; font-weight: 700; color: var(--red); margin: 0 0 18px; }
h1 { font-size: clamp(42px, 10vw, 59px); line-height: 1.02; letter-spacing: -2px; margin: 0 0 16px; }
h1 em { color: var(--red); font-style: normal; }
.hero-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.6; color: #c7c3ca; margin: 0 0 22px; }
.hero-caption { position: absolute; bottom: 17px; left: 23px; font-size: 8px; letter-spacing: 2px; color: var(--muted); z-index: 1; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 14px 16px; font-size: 12px; font-weight: bold; line-height: 1.4; border: 1px solid transparent; border-radius: 7px; }
.primary { background: var(--red); color: #fff; }
.secondary { background: #19191e; color: var(--text); border-color: #37373e; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 27px 0 13px; }
.section-heading h2 { font-size: 17px; margin: 0; letter-spacing: -.4px; }
.section-heading > span { font-size: 7px; letter-spacing: 1px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 10px; }
.access-preview { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.panel-icon { color: var(--red); font-size: 24px; }
h3 { font-size: 13px; margin: 0 0 7px; }
.panel p, .intro { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0; }
.icon-button { min-width: 40px; min-height: 40px; color: var(--text); background: #202025; border: 1px solid var(--line); border-radius: 7px; margin-left: auto; }
.quick-grid, .device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.quick-card, .device-button { text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.quick-card > span, .quick-card > strong { display: block; }
.quick-symbol { color: var(--red); font-size: 23px; margin-bottom: 15px; }
.quick-card strong { font-size: 13px; margin-bottom: 7px; }
.quick-card span:last-child { color: var(--muted); font-size: 10px; }
.period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.period-card { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 16px 11px; min-width: 0; }
.period-card:nth-child(2) { border-color: #87323e; background: #1c1218; }
.period-card .label { font-size: 8px; color: var(--red); letter-spacing: 1px; }
.period-card strong { display: block; font-size: 17px; margin: 13px 0 7px; }
.period-card p { color: var(--muted); font-size: 10px; line-height: 1.6; min-height: 32px; }
.period-card button { display: block; border: 1px solid #3c343d; border-radius: 5px; color: #ded7da; background: transparent; padding: 10px 2px; width: 100%; font-size: 10px; }
.fine-print, .panel .fine-print { color: var(--muted); font-size: 10px; line-height: 1.75; margin: 12px 0 0; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-title { font-size: clamp(32px, 8vw, 44px); letter-spacing: -1.5px; margin-bottom: 22px; overflow-wrap: anywhere; }
.page-title > span { color: var(--red); }
.screen:not(#screen-home) { padding-top: 15px; }
.account-placeholder { text-align: center; padding: 28px 20px; }
.outline-symbol { display: block; font-size: 48px; color: var(--red); margin: 0 0 25px; }
.label { display: block; color: var(--muted); font-size: 8px; letter-spacing: 1.6px; line-height: 1.5; }
.account-placeholder h2 { font-size: 32px; line-height: 1.1; letter-spacing: -1px; }
.account-fields { display: grid; grid-template-columns: 1fr 1fr; margin-top: 23px; border: 1px solid var(--line); border-radius: 7px; text-align: left; }
.account-fields > div { padding: 14px 12px; }
.account-fields > div + div { border-left: 1px solid var(--line); }
.account-fields span { display: block; font-size: 10px; color: var(--muted); }
.account-fields strong { display: block; font-size: 12px; margin-top: 9px; font-weight: normal; }
.account-placeholder .button { margin-top: 23px; width: 100%; justify-content: center; }
.privacy-note { font-size: 11px; color: var(--muted); line-height: 1.75; padding: 0 5px; }
.small-heading { font-size: 15px; margin-top: 25px; }
.device-button { min-height: 72px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.device-button span { color: var(--red); }
.guide { margin-top: 23px; }
.guide h2 { font-size: 24px; margin: 12px 0; }
.guide ol { padding-left: 23px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.guide li { padding: 0 0 12px 5px; }
.guide li::marker { color: var(--red); font-weight: bold; }
.guide .button { width: 100%; margin-top: 10px; }
.warning-panel { border-left: 2px solid var(--red); background: #191014; padding: 15px; margin: 22px 0 12px; border-radius: 0 6px 6px 0; }
.warning-panel strong { font-size: 12px; }
.warning-panel p { font-size: 11px; color: #c0acb3; line-height: 1.7; margin: 8px 0 0; }
.text-button { background: none; border: none; color: var(--red); padding: 12px 0; font-size: 12px; text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; background: var(--surface); }
.faq summary, .legal-note summary { cursor: pointer; font-size: 13px; padding: 18px 14px; line-height: 1.5; }
.faq details p { white-space: pre-line; font-size: 12px; color: var(--muted); line-height: 1.8; padding: 0 14px 16px; margin: 0; }
.support-panel { margin-top: 25px; }
.support-panel h2 { font-size: 24px; margin: 13px 0; }
.support-panel .button { width: 100%; margin-top: 20px; }
.legal-note { margin-top: 16px; color: var(--muted); }
.legal-note summary { padding-left: 0; }
.legal-note p { font-size: 11px; line-height: 1.8; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #8c8b95; font-size: 7px; letter-spacing: 1px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #101013; padding: 10px 8px max(12px, env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px)); z-index: 5; }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: none; padding: 5px 0; color: #9c9ba6; font-size: 9px; min-height: 46px; }
.bottom-nav button > span { font-size: 23px; line-height: 1; }
.bottom-nav button[aria-current="page"] { color: var(--red); }
.notice { position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: #21151c; border: 1px solid #99414d; border-radius: 9px; padding: 16px; font-size: 12px; line-height: 1.75; width: calc(100% - 32px); max-width: 560px; box-shadow: 0 10px 40px #0008; z-index: 10; }
@media (max-width: 350px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .hero-copy { padding-left: 17px; }
  .hero-portrait { right: -130px; opacity: .58; }
  .period-grid { grid-template-columns: 1fr; }
  .period-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7px; }
  .period-card strong, .period-card p { margin: 0; min-height: auto; }
  .brand { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) { .button, .quick-card, .device-button { transition: border-color .15s; } .quick-card:hover, .device-button:hover { border-color: #87404b; } }
