/* Shared Essential layout. Each app declares its colors in index.htm. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  --bg: #f7f8fa;
  --ink: #172c38;
  --muted: #526573;
  --line: #dce3e5;
  --panel: #fff;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2 { margin: 0; }
p { line-height: 1.7; }
svg { display: block; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: #fff; color: #111; padding: 16px; }
.skip:focus { top: 12px; }
.page { max-width: 1240px; margin: auto; padding: 0 48px; }
header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 110px; border-bottom: 1px solid var(--line); }
header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand-primary) 65%, var(--brand-secondary) 65%); border-radius: 0 0 2px 2px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -.5px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 9px; background: #fff; }
.brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 1.8px; color: var(--muted); margin-top: 5px; }
header nav { display: flex; gap: 30px; font-size: 13px; color: var(--muted); }
header nav a:hover, .text-link:hover, .contact-link:hover { color: var(--accent); }
.header-cta { padding: 12px 18px; border: 1px solid var(--brand-primary); border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--brand-primary); color: var(--brand-on-primary); box-shadow: inset 0 -3px 0 var(--brand-secondary); }
.header-cta span { margin-left: 18px; }
.header-cta:hover { filter: brightness(.95); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; min-height: 655px; align-items: center; padding: 56px 0 64px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.7; color: var(--accent); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(44px, 4.7vw, 65px); font-weight: 650; letter-spacing: -3px; line-height: 1.08; margin-top: 28px; }
h1 em { font-style: normal; color: var(--accent); text-decoration: underline; text-decoration-color: var(--brand-secondary); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.hero-description { font-size: 16px; color: var(--muted); max-width: 430px; margin-top: 27px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 33px; }
.play-badge { display: inline-flex; gap: 11px; align-items: center; background: #090c10; color: #fff; padding: 10px 18px; border: 1px solid #68717d; border-radius: 8px; flex-shrink: 0; box-shadow: 0 6px 15px #00000008; }
.play-badge:hover { background: #252b31; }
.play-badge svg { width: 26px; height: 29px; }
.play-badge small { font-size: 8px; letter-spacing: 1.1px; display: block; }
.play-badge strong { font-size: 21px; font-weight: 500; line-height: 1.2; display: block; letter-spacing: -.5px; }
.text-link { font-size: 12px; font-weight: 600; }
.text-link span { margin-left: 10px; }
.hero-meta { font-size: 11px; color: var(--muted); margin-top: 23px; }
.hero-meta span { padding: 0 9px; }
.hero-visual { height: 520px; position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.visual-backdrop { position: absolute; inset: 35px -8px 8px 10px; border-radius: 48% 48% 22% 45%; background: var(--surface); z-index: -1; }
.phone { background: #161b20; padding: 6px; border: 1px solid #505863; border-radius: 24px; box-shadow: 0 24px 38px #12213326; flex-shrink: 0; overflow: hidden; }
.phone img { width: 100%; border-radius: 18px; }
.hero-visual .phone { position: absolute; }
.hero-visual .primary { width: min(243px, calc(415px * var(--screenshot-ratio))); transform: rotate(6deg); right: 27px; top: 20px; z-index: 1; }
.hero-visual .secondary { width: min(213px, calc(355px * var(--screenshot-ratio))); transform: rotate(-8deg); left: 15px; top: 80px; opacity: .93; }
.image-note { position: absolute; right: 9px; bottom: 4px; background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--brand-secondary); font-size: 11px; line-height: 1.5; padding: 14px 22px; box-shadow: 0 7px 25px #00000008; border-radius: 9px; z-index: 2; }
.image-note span { float: left; font-size: 23px; color: var(--accent); margin-right: 14px; }
.section-rule { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 9px; letter-spacing: 1.8px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; padding: 43px 0 67px; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--surface); border-radius: 10px; color: var(--accent); margin-bottom: 18px; box-shadow: inset 0 -2px 0 var(--brand-secondary); }
.feature-icon svg { width: 21px; height: 21px; }
.features h2 { font-size: 17px; letter-spacing: -.5px; line-height: 1.4; margin-bottom: 10px; }
.features p { font-size: 13px; color: var(--muted); }
.gallery-section { padding: 52px 42px 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 70px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
.section-intro h2 { font-size: 27px; letter-spacing: -1px; max-width: 350px; line-height: 1.25; margin-top: 12px; }
.section-intro > p { font-size: 11px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery figure { margin: 0; padding: 22px 22px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.gallery img { width: 100%; max-width: 200px; max-height: 335px; object-fit: contain; margin: auto; border-radius: 6px; transition: transform .2s; }
.gallery a:hover img { transform: translateY(-4px); }
figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 18px; }
.contact { display: flex; justify-content: space-between; gap: 40px; align-items: center; padding-bottom: 54px; }
.contact h2 { font-size: 23px; letter-spacing: -.7px; margin-top: 12px; }
.contact p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-top: 8px; }
.contact-link { font-size: 16px; white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-link span { margin-left: 12px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); }
.footer-line { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 15px; }
footer > p { font-size: 10px; max-width: 770px; line-height: 1.7; }

@media (min-width: 1500px) {
  .page { max-width: 1320px; }
  .hero { min-height: 700px; }
  .hero-visual { height: 540px; }
  .hero-visual .primary { right: 47px; }
  .hero-visual .secondary { left: 28px; }
}
@media (max-width: 1050px) {
  .page { padding: 0 32px; }
  .hero { gap: 22px; min-height: 600px; padding: 45px 0; }
  .hero-visual { height: 460px; }
  .hero-visual .primary { width: min(211px, calc(345px * var(--screenshot-ratio))); right: 5px; }
  .hero-visual .secondary { width: min(175px, calc(287px * var(--screenshot-ratio))); left: 0; }
  .hero-actions { gap: 16px; }
  h1 { font-size: 49px; }
  .hero-description { font-size: 15px; }
  .image-note { right: 0; }
  .features { gap: 24px; }
  .gallery-section { padding: 35px 26px; }
  .gallery { gap: 15px; }
  .gallery figure { padding: 18px 14px; }
  .contact { gap: 24px; }
  .contact h2 { font-size: 20px; }
}
@media (max-width: 760px) {
  .page { padding: 0 24px; }
  header { min-height: 90px; gap: 12px; }
  header nav { display: none; }
  .brand { font-size: 15px; gap: 9px; }
  .brand img { width: 35px; height: 35px; }
  .brand small { font-size: 8px; letter-spacing: 1.1px; }
  .header-cta { font-size: 10px; padding: 10px 12px; white-space: nowrap; }
  .header-cta span { margin-left: 8px; }
  .hero { display: flex; flex-direction: column; gap: 24px; padding: 42px 0 38px; min-height: 0; align-items: stretch; }
  .hero-copy { width: 100%; max-width: 520px; margin: auto; }
  h1 { font-size: clamp(38px, 8vw, 55px); letter-spacing: -2px; margin-top: 23px; }
  h1 em { text-underline-offset: 7px; text-decoration-thickness: 2px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .hero-description { font-size: 14px; margin-top: 22px; max-width: 440px; }
  .hero-actions { gap: 24px; margin-top: 25px; }
  .play-badge { padding: 9px 14px; }
  .play-badge strong { font-size: 20px; }
  .hero-meta { font-size: 10px; margin-top: 18px; }
  .hero-visual { width: 100%; max-width: 435px; height: 415px; margin: 6px auto 0; }
  .hero-visual .primary { width: min(206px, calc(340px * var(--screenshot-ratio))); right: 24px; top: 14px; }
  .hero-visual .secondary { width: min(178px, calc(295px * var(--screenshot-ratio))); left: 17px; top: 55px; }
  .visual-backdrop { inset: 18px 0 4px 0; }
  .image-note { font-size: 10px; padding: 11px 16px; right: 8px; bottom: 0; }
  .section-rule { font-size: 8px; letter-spacing: 1px; gap: 20px; line-height: 1.6; }
  .section-rule span:last-child { text-align: right; }
  .features { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 40px; }
  .features article { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; }
  .feature-icon { grid-row: 1/3; margin: 0; }
  .features h2 { font-size: 16px; margin-bottom: 5px; }
  .features p { font-size: 12px; }
  .gallery-section { padding: 30px 20px; margin-bottom: 38px; border-radius: 12px; }
  .section-intro { display: block; margin-bottom: 24px; }
  .section-intro h2 { font-size: 24px; max-width: 300px; }
  .section-intro > p { margin-top: 15px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .gallery figure { padding: 9px 6px; border-radius: 6px; }
  .gallery img { border-radius: 2px; }
  .gallery figcaption { font-size: 8px; line-height: 1.4; margin-top: 10px; }
  .contact { display: block; padding-bottom: 36px; }
  .contact h2 { font-size: 22px; max-width: 320px; }
  .contact-link { display: inline-block; font-size: 14px; margin-top: 22px; }
  .footer-line { font-size: 9px; gap: 12px; line-height: 1.5; }
  footer > p { font-size: 9px; }
}
@media (max-width: 380px) {
  .brand { font-size: 13px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .brand small { font-size: 7px; }
  .header-cta { font-size: 9px; padding: 10px; }
  .hero-actions { gap: 18px; }
  .text-link { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
