@import url('https\3a //fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
  --paper: #F6F5F1;
  --ink: #1A1A1A;
  --red: #D7263D;
  --muted: #6d6b67;
  --line: #d9d6cf;
  --white: #fff;
  --sand: #D8C3A5;
  --blue: #2E5E8C;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --max: 1200px;
  --shadow: 0 12px 34px rgba(26,26,26,.08);
}

:root, :root * { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--body); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--red); background: var(--ink); color: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 200px; display: flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: #000 url('./icons/app-icon.svg') center / cover no-repeat; }
.brand-name { display: block; font: 600 1.05rem/1.05 var(--display); letter-spacing: .08em; }
.brand-name span, .footer-brand span { color: var(--red); }
.brand-copy small { display: block; margin-top: 4px; color: #d8d5ce; font-size: .68rem; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #e7e5df; font-size: .87rem; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 5px; }
.nav .nav-cta { padding: 9px 14px; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.menu-toggle { display: none; border: 1px solid #666; background: transparent; color: white; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.install-button { display: none; align-items: center; justify-content: center; min-height: 44px; border: 0; background: var(--red); color: white; padding: 10px 14px; font: 700 .88rem var(--body); cursor: pointer; white-space: nowrap; }
.install-button.is-visible { display: inline-flex; }
.install-button:hover { background: #b51f32; }

.hero { position: relative; overflow: hidden; padding: 62px 0 48px; background: var(--ink); color: white; }
.hero::after { position: absolute; z-index: 0; right: -60px; bottom: -120px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 44px rgba(255,255,255,.02); content: ''; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 50px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--red); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.red-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--red); }
.kicker { margin: 22px 0 0; color: #d8d5ce; font-size: .88rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { max-width: 660px; margin: 10px 0 20px; font: 700 clamp(3.4rem, 7vw, 6.2rem)/.96 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.hero-copy h1 span { color: var(--red); }
.intro { max-width: 540px; margin: 0 0 26px; color: #dedbd4; font-size: 1.04rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 0; padding: 13px 19px; font: 700 .92rem var(--body); cursor: pointer; transition: background .18s, transform .18s; }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #b91f32; transform: translateY(-2px); }
.button-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.button-quiet { border: 1px solid #aaa; background: transparent; color: white; }
.button-quiet:hover { background: white; color: var(--ink); }
.micro-note { max-width: 530px; margin: 18px 0 0; color: #b8b5af; font-size: .78rem; line-height: 1.5; }

.mat-card { border-top: 4px solid var(--red); background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.card-label { margin: 0 0 6px; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mat-card h2 { margin: 0 0 16px; font: 600 clamp(2rem, 4vw, 3rem)/1.02 var(--display); text-transform: uppercase; }
.mini-rules { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.mini-rules li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #45423d; font-size: .87rem; line-height: 1.45; }
.rule-number { color: var(--red); font: 600 1rem var(--display); }
.card-note { margin: 15px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.start-foot { display: flex; align-items: center; gap: 14px; margin-top: 48px; color: #b8b5af; font-size: .66rem; font-weight: 700; letter-spacing: .14em; }
.foot-line { height: 1px; flex: 1; background: rgba(255,255,255,.28); }

.preparation { padding: 48px 0 58px; background: var(--paper); }
.preparation-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.preparation h2 { margin: 0; font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.08 var(--display); text-transform: uppercase; }
.preparation p { max-width: 620px; margin: 0; color: var(--muted); font-size: .9rem; }
.preparation strong { color: var(--ink); }
.site-footer { padding: 32px 0 18px; border-top: 3px solid var(--red); background: #111; color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { font: 600 1.05rem var(--display); letter-spacing: .08em; }
.footer-copy { margin: 4px 0 0; color: #b6b3ad; font-size: .78rem; }
.footer-link { color: #e8e5df; font-size: .8rem; font-weight: 700; }
.footer-link:hover { color: white; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

.install-guide { width: min(92vw, 520px); max-height: 85vh; overflow: auto; border: 0; border-top: 4px solid var(--red); padding: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 65px rgba(0,0,0,.28); }
.install-guide::backdrop { background: rgba(12,12,12,.68); }
.install-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.install-guide-head .eyebrow { margin: 0; }
.install-guide-close { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 12px; cursor: pointer; }
.install-guide h2 { margin: 18px 0; font: 600 clamp(1.7rem, 6vw, 2.25rem)/1.05 var(--display); text-transform: uppercase; }
.install-guide ol { padding-left: 1.35rem; }
.install-guide li { padding-bottom: 8px; }
.install-guide-note { color: var(--muted); font-size: .88rem; }
.install-guide .button { width: 100%; margin-top: 12px; }

@media (max-width: 920px) {
  .nav { gap: 12px; }
  .nav a { font-size: .78rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 740px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .header-inner { min-height: 68px; }
  .brand { min-width: 0; flex: 1; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 10px 16px 18px; border-bottom: 3px solid var(--red); background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #3a3a3a; font-size: .9rem; }
  .nav a:hover, .nav a.active { padding-bottom: 12px; }
  .nav .nav-cta { margin-top: 8px; text-align: center; }
  .nav .install-button { display: none; }
  .nav.open .install-button.is-visible { display: inline-flex; width: 100%; margin-top: 12px; text-align: center; }
  .hero { padding: 45px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-copy .intro { font-size: 1rem; }
  .mat-card { padding: 23px; }
  .start-foot { margin-top: 34px; font-size: .58rem; letter-spacing: .1em; }
  .preparation { padding: 36px 0 42px; }
  .preparation-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .install-guide { padding: 20px; }
}
@media (max-width: 430px) {
  .brand-name { font-size: .95rem; }
  .brand-copy small { font-size: .62rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .hero-actions .button { width: 100%; }
  .mat-card { padding: 20px; }
  .start-foot { gap: 8px; font-size: .52rem; }
}
@media (min-width: 741px) {
  .install-button.is-visible { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root, :root *, :root *::before, :root *::after { transition: none !important; animation: none !important; }
}
