:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-soft: #13161b;
  --panel: #181c22;
  --panel-strong: #20252d;
  --text: #eef0f5;
  --muted: #98a0ad;
  --muted-2: #6f7886;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #f0b429;
  --accent-bright: #ffd15c;
  --green: #42d392;
  --red: #ff7b7b;
  --blue: #70a5ff;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(240, 180, 41, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(112, 165, 255, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 999; background: var(--accent); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 18, 0.86);
  backdrop-filter: blur(20px) saturate(1.3);
}
.nav-inner { min-height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(240, 180, 41, 0.45); background: linear-gradient(145deg, rgba(240, 180, 41, 0.22), rgba(240, 180, 41, 0.04)); border-radius: 10px; color: var(--accent-bright); font-size: 13px; font-weight: 850; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.language { margin-left: 6px; color: var(--text); background: var(--panel); border: 1px solid var(--border); padding: 7px 9px; border-radius: 8px; }

.hero { padding: 104px 0 80px; }
.hero.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); border: 1px solid rgba(240, 180, 41, 0.3); background: rgba(240, 180, 41, 0.08); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(240, 180, 41, 0.8); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 880px; margin: 22px auto 20px; font-size: clamp(44px, 7.3vw, 80px); }
.hero:not(.center) h1 { margin-inline: 0; }
h2 { font-size: clamp(31px, 4.5vw, 52px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 10px; }
.lede { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2vw, 20px); font-weight: 350; }
.hero:not(.center) .lede { margin-inline: 0; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero:not(.center) .hero-actions { justify-content: flex-start; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 19px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.035); text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #111318; }
.button.primary:hover { background: var(--accent-bright); box-shadow: 0 12px 32px rgba(240, 180, 41, 0.22); }
.button.disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.58; transform: none; box-shadow: none; }
.microcopy { margin-top: 13px; color: var(--muted-2); font-size: 13px; }

.section { padding: 82px 0; border-top: 1px solid var(--border); }
.section.alt { background: rgba(255, 255, 255, 0.018); }
.section-heading { max-width: 680px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); margin: 0; font-size: 17px; }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.app-card { position: relative; overflow: hidden; min-height: 430px; padding: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)); box-shadow: 0 18px 60px rgba(0,0,0,0.18); }
.app-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -140px; bottom: -160px; border-radius: 50%; background: rgba(240,180,41,0.07); filter: blur(4px); }
.app-card > * { position: relative; z-index: 1; }
.app-icon { width: 86px; height: 86px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.35); }
.app-card h3 { margin-top: 26px; font-size: 30px; }
.app-card p { color: var(--muted); max-width: 510px; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.055); border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.values-grid, .feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value, .feature, .step { padding: 25px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); }
.value strong, .feature strong, .step strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 16px; }
.value p, .feature p, .step p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 10px; background: rgba(240,180,41,0.1); color: var(--accent); font-weight: 850; }
.step-number { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: 0.08em; margin-bottom: 14px; }

.product-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); gap: 62px; align-items: center; }
.product-title { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.product-title .app-icon { width: 78px; height: 78px; }
.product-title h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); overflow-wrap: anywhere; }
.app-window { border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: #f8f9fb; color: #21242a; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.window-bar { height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 7px; background: #f0f1f3; border-bottom: 1px solid #dedfe2; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: #d2d3d5; }
.window-title { margin-left: 8px; font-size: 12px; font-weight: 700; color: #666b74; }
.window-body { min-height: 388px; padding: 28px; }
.scan-summary { text-align: center; padding: 25px 0 18px; }
.scan-summary strong { display: block; font-size: 50px; line-height: 1; letter-spacing: -0.05em; }
.scan-summary span { color: #747982; font-size: 13px; }
.confidence { display: flex; justify-content: center; gap: 7px; margin-top: 13px; }
.confidence i { font-style: normal; font-size: 10px; padding: 4px 8px; background: #e8eaed; border-radius: 999px; }
.result-list { display: grid; gap: 9px; margin-top: 22px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #e2e4e7; border-radius: 10px; background: white; }
.result strong { font-size: 12px; }
.result small { display: block; color: #858b94; margin-top: 2px; }
.score { font-size: 11px; color: #5a626c; background: #eef0f2; padding: 4px 7px; border-radius: 6px; }

.privacy-banner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 32px; border: 1px solid rgba(66,211,146,0.24); background: rgba(66,211,146,0.06); border-radius: var(--radius); }
.privacy-banner p { margin: 8px 0 0; color: var(--muted); }
.privacy-mark { font-size: 42px; color: var(--green); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.legal-shell { min-height: 100vh; }
.legal-header { padding: 34px 0 22px; border-bottom: 1px solid var(--border); }
.legal-header a { color: var(--muted); text-decoration: none; }
.legal-main { padding: 54px 0 86px; }
.legal-main h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 58px); }
.legal-main h2 { margin-top: 48px; font-size: 28px; }
.legal-main h3 { margin-top: 30px; font-size: 19px; }
.legal-main p, .legal-main li { color: #c2c7d0; }
.legal-main a { color: var(--accent-bright); }
.legal-main .subtitle { color: var(--muted); }
.legal-main .contact, .legal-main .note { padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }

.notice { max-width: 720px; margin: 0 auto; padding: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); text-align: center; }
.notice-icon { font-size: 42px; }
.notice ol { max-width: 560px; margin: 25px auto; text-align: left; color: var(--muted); }

.app-card.compact { min-height: 0; }
.app-card.featured { border-color: rgba(240, 180, 41, 0.34); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 70px rgba(0,0,0,0.28); }

/* CalendarDeduplicator legal/support pages retain their reviewed text while
   sharing the same visual system as the new product page. */
body.legacy-legal {
  --color-bg: var(--bg);
  --color-bg-secondary: var(--panel);
  --color-text: var(--text);
  --color-text-secondary: var(--muted);
  --color-accent: var(--accent-bright);
  --color-border: var(--border);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(240, 180, 41, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(112, 165, 255, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}
body.legacy-legal .wrap { width: min(calc(100% - 40px), 820px); max-width: 820px; padding: 0; }
body.legacy-legal .site-header { position: sticky; top: 0; z-index: 10; padding: 18px 0; border-bottom: 1px solid var(--border); background: rgba(13,15,18,0.9); backdrop-filter: blur(18px); }
body.legacy-legal .site-header .product { color: var(--text); }
body.legacy-legal .site-header .product span, body.legacy-legal .back { color: var(--muted); }
body.legacy-legal .back:hover { color: var(--accent-bright); }
body.legacy-legal main { padding: 64px 0 84px; }
body.legacy-legal h1 { max-width: none; margin: 0 0 12px; font-size: clamp(38px, 5vw, 58px); }
body.legacy-legal h2 { margin: 48px 0 14px; font-size: 28px; }
body.legacy-legal h3 { margin: 30px 0 10px; font-size: 19px; }
body.legacy-legal p, body.legacy-legal li, body.legacy-legal td { color: #c2c7d0; }
body.legacy-legal a { color: var(--accent-bright); }
body.legacy-legal .meta, body.legacy-legal .subtitle { color: var(--muted); border-color: var(--border); }
body.legacy-legal table { border-color: var(--border); }
body.legacy-legal th, body.legacy-legal td { border-color: var(--border); }
body.legacy-legal th, body.legacy-legal .addr, body.legacy-legal .contact { background: var(--panel); }
body.legacy-legal .addr, body.legacy-legal .contact { border: 1px solid var(--border); }
body.legacy-legal footer { border-color: var(--border); color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 38px 0 48px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-grid strong { color: var(--text); }
.footer-grid p { max-width: 430px; }
.footer-links { display: grid; gap: 7px; margin-top: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; }

@media (max-width: 900px) {
  .apps-grid, .product-hero { grid-template-columns: 1fr; }
  .values-grid, .feature-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero { gap: 40px; }
  .app-window { transform: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-inner { min-height: 58px; flex-wrap: wrap; padding-block: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-bottom: 3px; }
  .language { margin-left: auto; }
  .hero { padding: 76px 0 60px; }
  .section { padding: 62px 0; }
  .apps-grid, .values-grid, .feature-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; padding: 26px; }
  .product-title { align-items: flex-start; }
  .product-title .app-icon { width: 64px; height: 64px; }
  .window-body { min-height: 330px; padding: 18px; }
  .privacy-banner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
