/* ==========================================================================
   WakeSense — Design System & Stylesheet (wakesense.app)
   Strict compliance with WakeSense Brand Guidelines & Tokens
   ========================================================================== */

/* --- Self-hosted Variable Font (Manrope) --- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens --- */
:root {
  --bg: #0A0F1E;
  --bg-deep: #060913;
  --surface: #141C30;
  --surface-hover: #1A243D;
  --surface-subtle: #0F1629;
  --surface-card: rgba(20, 28, 48, 0.75);
  --line: #2A3558;
  --hair: rgba(237, 239, 247, 0.08);
  --hair-strong: rgba(237, 239, 247, 0.16);

  --sunrise-1: #FFB25C;
  --sunrise-2: #FF7A45;
  --sunrise-glow: rgba(255, 178, 92, 0.22);
  --sunrise-grad: linear-gradient(135deg, var(--sunrise-1) 0%, var(--sunrise-2) 100%);

  --dream: #7C8CFF;
  --dream-glow: rgba(124, 140, 255, 0.16);
  --dream-soft: rgba(124, 140, 255, 0.1);

  --text: #EDEFF7;
  --muted: #9AA3B8;
  --dim: #647087;

  --ok: #199E70;
  --ok-soft: rgba(25, 158, 112, 0.15);
  --warn: #FAB219;
  --warn-soft: rgba(250, 178, 25, 0.15);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-card: 24px;
  --radius-pill: 9999px;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --container: 1180px;
  --container-narrow: 840px;
}

/* Japanese font stack adjustment */
:lang(ja) {
  --font-sans: 'Manrope', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', system-ui, sans-serif;
  line-break: strict;
  word-break: break-word;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--sunrise-1);
  outline-offset: 3px;
}

/* --- Background Ambient Horizon --- */
.bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-decor-circle {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 178, 92, 0.12) 0%, rgba(124, 140, 255, 0.06) 45%, rgba(10, 15, 30, 0) 75%);
  filter: blur(50px);
}

.bg-decor-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 80%);
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Typography Helpers --- */
.gradient-text {
  background: var(--sunrise-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.dream-text {
  color: var(--dream);
}

.muted {
  color: var(--muted);
}

.time-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

/* --- Section Spacing --- */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunrise-1);
  background: rgba(255, 178, 92, 0.1);
  border: 1px solid rgba(255, 178, 92, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sunrise-1);
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted);
  line-height: 1.6;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hair);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 12px rgba(255, 178, 92, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-link:hover .brand-mark {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(255, 178, 92, 0.5));
}

.brand-name {
  color: var(--text);
  white-space: nowrap;
}

.brand-name span {
  color: var(--sunrise-1);
}

.brand-ja-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 4px;
  font-size: 12px;
  font-weight: 600;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.lang-flag {
  display: inline-block;
  width: 15px;
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  vertical-align: middle;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Header CTA */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--sunrise-grad);
  color: #0A0F1E;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--sunrise-glow);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* --- Hero Section --- */
.hero {
  padding-top: 50px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--sunrise-grad);
  color: #0A0F1E;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px var(--sunrise-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 178, 92, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  background: rgba(20, 28, 48, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Hero Micro Badges */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-icon {
  color: var(--ok);
  font-weight: 700;
}

/* --- Hero Visual & Phone Replica --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* CSS Phone Frame */
.phone-frame {
  width: 100%;
  height: 680px;
  background: var(--bg);
  border: 3.5px solid #26304D;
  border-radius: 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0c1224 0%, #080c18 100%);
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.phone-status-bar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

/* Phone Screen Content */
.phone-screen {
  flex: 1;
  height: calc(100% - 44px);
  padding: 10px 18px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.phone-wake-header {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-wake-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

/* Big Alarm Number */
.phone-alarm-time {
  font-size: 82px;
  font-weight: 200;
  line-height: 0.95;
  background: var(--sunrise-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0;
  letter-spacing: -0.04em;
}

.phone-sub-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.phone-sub-highlight {
  color: var(--text);
  font-weight: 500;
}

/* Phone Inset Cards */
.phone-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Schedule mini rows */
.phone-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 2px 0;
}

.phone-schedule-day {
  color: var(--text);
}

.phone-schedule-time {
  color: var(--sunrise-1);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Check items */
.phone-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}

.phone-check-icon {
  color: var(--ok);
  font-weight: bold;
}

/* Bottom App Navigation Bar */
.phone-nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 12px 10px 10px;
  border-top: 1px solid var(--hair);
  flex-shrink: 0;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.phone-nav-item.active {
  color: var(--sunrise-1);
}

.phone-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sunrise-1);
}

/* Evening Briefing Card (Nalevo v hero sekci pod badges) */
.hero-evening-plan,
.floating-briefing {
  margin-top: 32px;
  width: 100%;
  max-width: 480px;
  background: rgba(20, 28, 48, 0.78);
  border: 1.5px solid rgba(255, 178, 92, 0.35);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.briefing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sunrise-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.briefing-headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.briefing-highlight {
  font-size: 34px;
  font-weight: 300;
  color: var(--sunrise-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.briefing-details {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Chips */
.briefing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.reason-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--dream);
}

.briefing-sleep-row {
  border-top: 1px solid var(--hair);
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--dream);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Brand Pillars Banner (Under Hero) --- */
.hero-pillars {
  margin-top: 50px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  background: rgba(20, 28, 48, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(124, 140, 255, 0.1);
  border: 1px solid rgba(124, 140, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dream);
  flex-shrink: 0;
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* --- Problem Statement Strip --- */
.problem-strip {
  padding: 60px 0;
}

.problem-card {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.8) 0%, rgba(15, 22, 41, 0.9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sunrise-grad);
}

.problem-text {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.01em;
}

.problem-highlight {
  color: var(--sunrise-1);
  font-weight: 600;
}

/* --- Three Steps (Jak to funguje) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 140, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-number {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sunrise-1);
  background: rgba(255, 178, 92, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dream);
}

.step-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}

.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.steps-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.steps-footnote code {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* --- Trust Grid (2x2) --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 178, 92, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.trust-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(25, 158, 112, 0.12);
  border: 1px solid rgba(25, 158, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ok);
  margin-bottom: 4px;
}

.trust-card-icon.info {
  background: rgba(124, 140, 255, 0.12);
  border-color: rgba(124, 140, 255, 0.25);
  color: var(--dream);
}

.trust-card-icon.gold {
  background: rgba(255, 178, 92, 0.12);
  border-color: rgba(255, 178, 92, 0.25);
  color: var(--sunrise-1);
}

.trust-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.trust-card-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Trust Card Visual Box (All 4 cards have matching height & padding) */
.trust-card-visual {
  margin-top: 6px;
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trust-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.trust-status-row:last-child {
  border-bottom: none;
}

.trust-status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.trust-status-label svg {
  color: var(--ok);
  flex-shrink: 0;
}

.trust-status-label svg.info {
  color: var(--dream);
}

.trust-status-label svg.gold {
  color: var(--sunrise-1);
}

.trust-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(25, 158, 112, 0.15);
  color: var(--ok);
  border: 1px solid rgba(25, 158, 112, 0.3);
  white-space: nowrap;
}

.trust-status-badge.info {
  background: rgba(124, 140, 255, 0.15);
  color: var(--dream);
  border-color: rgba(124, 140, 255, 0.3);
}

.trust-status-badge.gold {
  background: rgba(255, 178, 92, 0.15);
  color: var(--sunrise-1);
  border-color: rgba(255, 178, 92, 0.3);
}

.trust-visual-footer {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(25, 158, 112, 0.1);
  border: 1px solid rgba(25, 158, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text);
}

.trust-visual-footer.info {
  background: rgba(124, 140, 255, 0.1);
  border-color: rgba(124, 140, 255, 0.25);
}

.trust-visual-footer.gold {
  background: rgba(255, 178, 92, 0.1);
  border-color: rgba(255, 178, 92, 0.25);
}

.trust-footer-strong {
  font-weight: 700;
  font-size: 13.5px;
}

/* --- Features Section (6 Cards) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 140, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sunrise-1);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Beta Gallery ("Takto vypadá beta dnes") --- */
.beta-gallery-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

.beta-gallery-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.beta-gallery-sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.gallery-scroll-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-phone-frame {
  width: 100%;
  border-radius: 28px;
  border: 2.5px solid #26304D;
  background: #000;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.gallery-phone-frame:hover {
  transform: translateY(-4px);
}

.gallery-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

/* --- Pro & Free Section --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 24px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.pro {
  border-color: rgba(255, 178, 92, 0.4);
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.95) 0%, rgba(26, 20, 40, 0.7) 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.pricing-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sunrise-1);
  background: rgba(255, 178, 92, 0.12);
  border: 1px solid rgba(255, 178, 92, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pricing-card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-card-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-card.pro .pricing-amount {
  color: var(--sunrise-1);
}

.pricing-period {
  font-size: 14px;
  color: var(--muted);
}

.pricing-annual-hint {
  font-size: 12.5px;
  color: var(--dream);
  margin-bottom: 24px;
  font-weight: 500;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.pricing-check {
  color: var(--ok);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta-wrap {
  margin-top: 10px;
}

.btn-pricing-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--sunrise-1), var(--sunrise-2));
  color: #070b16 !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 122, 69, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pricing-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 122, 69, 0.45);
}

.btn-pricing-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-pricing-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-note {
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 8px;
}

/* --- Privacy Highlight (Local-First) --- */
.privacy-highlight-card {
  background: linear-gradient(135deg, rgba(15, 22, 41, 0.9) 0%, rgba(20, 28, 48, 0.75) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-content-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sunrise-1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-link:hover {
  color: var(--text);
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: rgba(124, 140, 255, 0.35);
}

.faq-question {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--sunrise-1);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Waitlist CTA Section --- */
.waitlist-section {
  padding: 110px 0;
  position: relative;
}

.waitlist-card {
  background: radial-gradient(circle at center top, rgba(255, 178, 92, 0.16) 0%, rgba(20, 28, 48, 0.95) 60%), #0A0F1E;
  border: 1.5px solid rgba(255, 178, 92, 0.35);
  border-radius: 36px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.waitlist-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.waitlist-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  position: relative;
}

.waitlist-input {
  flex: 1;
  background: rgba(10, 15, 30, 0.85);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 15px 22px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-input:focus {
  border-color: var(--sunrise-1);
  box-shadow: 0 0 0 3px rgba(255, 178, 92, 0.15);
}

.waitlist-input::placeholder {
  color: var(--dim);
}

.waitlist-btn {
  padding: 15px 28px;
  background: var(--sunrise-grad);
  color: #0A0F1E;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sunrise-glow);
}

.waitlist-sub {
  font-size: 13px;
  color: var(--dim);
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  color: var(--ok);
}

.form-feedback.error {
  display: block;
  color: var(--warn);
}

/* --- Privacy Policy Section (Collapsible Accordion) --- */
.legal-section {
  padding: 50px 0;
  border-top: 1px solid var(--hair);
  background: rgba(10, 15, 30, 0.4);
}

.legal-details {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.legal-details[open] {
  border-color: rgba(124, 140, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.legal-summary {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  transition: background 0.15s ease;
}

.legal-summary::-webkit-details-marker {
  display: none;
}

.legal-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.legal-summary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dream);
  background: rgba(124, 140, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.legal-title-compact {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.legal-sub-hint {
  font-size: 13.5px;
  color: var(--muted);
}

.legal-summary-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sunrise-1);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.legal-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.legal-details[open] .legal-chevron {
  transform: rotate(180deg);
}

.legal-card-body {
  padding: 0 32px 36px;
  border-top: 1px solid var(--hair);
  margin-top: 10px;
  padding-top: 28px;
}

.legal-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.legal-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}

.legal-content ul {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content code {
  color: var(--sunrise-1);
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 178, 92, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Site Footer --- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 60px 0 40px;
  background: var(--bg-deep);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--dim);
}

.footer-google-note {
  font-size: 12px;
  color: var(--dim);
}

.czech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.android-exclusive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 220, 132, 0.1);
  color: #3DDC84;
  border: 1px solid rgba(61, 220, 132, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(61, 220, 132, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.android-exclusive-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 220, 132, 0.45);
}

.android-exclusive-badge svg {
  flex-shrink: 0;
}

.footer-platform-note {
  font-size: 12.5px;
  color: #3DDC84;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* --- Dynamic Sunrise Horizon Backdrop (Scroll-reactive) --- */
.sunrise-scroll-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}

.sunrise-sky-warmth {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 122, 69, 0.22) 0%, rgba(255, 178, 92, 0.12) 40%, rgba(124, 140, 255, 0.05) 70%, transparent 90%);
  mix-blend-mode: screen;
}

.sunrise-horizon-glow {
  position: absolute;
  bottom: -22vh;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 60vh;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at bottom center, rgba(255, 178, 92, 0.38) 0%, rgba(255, 122, 69, 0.24) 35%, rgba(124, 140, 255, 0.08) 65%, transparent 85%);
  filter: blur(60px);
  will-change: transform;
}

.sunrise-sun-orb {
  position: absolute;
  bottom: -18vh;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  max-width: 820px;
  height: 35vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 235, 185, 0.50) 0%, rgba(255, 178, 92, 0.32) 35%, rgba(255, 122, 69, 0.16) 65%, transparent 80%);
  filter: blur(50px);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .sunrise-horizon-glow, .sunrise-sun-orb {
    will-change: auto;
    transform: translateX(-50%) !important;
  }
}

/* --- Root Language Selector Page (web/index.html) --- */
.root-hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.root-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 44px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.root-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 18px rgba(255, 178, 92, 0.4));
}

.root-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.root-title span {
  color: var(--sunrise-1);
}

.root-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: -12px;
}

.root-lang-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.root-lang-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.root-lang-link:hover {
  background: var(--surface-hover);
  border-color: var(--sunrise-1);
  transform: translateY(-2px);
}

.root-lang-primary {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.root-lang-secondary {
  font-size: 12px;
  color: var(--muted);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 14px;
  }

  .nav-link {
    font-size: 13.5px;
  }

  .btn-header-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 12px 0;
  }

  .nav-menu {
    display: none;
  }

  .btn-header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .floating-briefing {
    position: static;
    margin: 20px auto 0;
    width: 100%;
    max-width: 380px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-pillars {
    padding: 24px 20px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }

  .nav-menu {
    display: none;
  }

  .btn-header-cta {
    display: none;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    padding: 30px 24px;
  }

  .waitlist-card {
    padding: 44px 22px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-btn {
    width: 100%;
  }

  .legal-card {
    padding: 30px 22px;
  }

  .gallery-scroll-container {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-link {
    font-size: 19px;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-ja-tag {
    display: none;
  }

  .lang-selector {
    padding: 2px 3px;
    gap: 2px;
  }

  .lang-btn {
    padding: 5px 6px;
    gap: 0;
  }

  .lang-btn span {
    display: none;
  }

  .lang-flag {
    width: 18px;
    height: 13px;
  }
}

/* ==========================================================================
   Visual Enhancements & Modern Polish (Raycast/Linear aesthetic)
   ========================================================================== */

/* Horizon Glowing Divider */
.horizon-divider {
  position: relative;
  width: 100%;
  max-width: var(--container);
  height: 1px;
  margin: 60px auto;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 178, 92, 0.2) 20%, rgba(255, 178, 92, 0.8) 50%, rgba(255, 178, 92, 0.2) 80%, transparent 100%);
}

.horizon-divider::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(255, 178, 92, 0.45) 0%, transparent 75%);
  filter: blur(5px);
  pointer-events: none;
}

/* Specular Top-Light on Cards */
.trust-card, .step-card, .feature-card, .pricing-card, .calc-card {
  position: relative;
}

.trust-card::after, .step-card::after, .feature-card::after, .pricing-card::after, .calc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

/* Briefing Card */
.floating-briefing {
  /* Static in-flow alignment under phone tabs */
}

/* Live Monitoring Indicator */
@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(25, 158, 112, 0.6);
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(25, 158, 112, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(25, 158, 112, 0);
  }
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ok);
  display: inline-block;
  animation: pulseDot 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(25, 158, 112, 0.1);
  border: 1px solid rgba(25, 158, 112, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* Phone Screen Switcher Tabs */
.phone-view-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.phone-tab-btn {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-subtle);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-tab-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.phone-tab-btn.active {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--sunrise-1);
  box-shadow: 0 0 12px rgba(255, 178, 92, 0.25);
}

.phone-screen-view {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
  animation: fadeInView 0.25s ease-out;
}

.phone-screen-view.active {
  display: flex;
}

#view-alarm {
  gap: 10px;
  justify-content: flex-start;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ringing Screen View Mockup */
#view-ringing {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

#view-ringing.active {
  display: flex;
}

.screen-ringing-bg {
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.95) 0%, rgba(107, 51, 38, 0.6) 75%, rgba(255, 154, 77, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.ringing-traffic-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
}

.ringing-time-large {
  font-size: 82px;
  font-weight: 200;
  line-height: 0.95;
  background: var(--sunrise-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 18px 0 6px;
  letter-spacing: -0.04em;
}

.ringing-slider-mock {
  width: 100%;
  background: rgba(10, 15, 30, 0.75);
  border: 1.5px solid rgba(255, 178, 92, 0.6);
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto !important;
  margin-bottom: 12px;
}

.ringing-slider-handle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sunrise-1);
  color: #0A0F1E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.ringing-slider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sunrise-1);
  flex: 1;
  text-align: center;
}

.ringing-snooze-box {
  width: 100%;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
}

/* Shadow Week Mini Table */
#view-shadow {
  height: 100%;
  display: none;
  flex-direction: column;
}

#view-shadow.active {
  display: flex;
}

.shadow-mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.shadow-mini-table tr {
  border-bottom: 1px solid var(--hair);
}

.shadow-mini-table tr:last-child {
  border-bottom: none;
}

.shadow-mini-table td {
  padding: 10px 4px;
}

.shadow-day-col {
  color: var(--text);
  font-weight: 600;
  width: 32px;
}

.shadow-old-col {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.shadow-wake-col {
  color: var(--sunrise-1);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
}

.shadow-diff-col {
  color: var(--dream);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.shadow-diff-col.warn {
  color: var(--warn);
}

.shadow-total-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 8px;
  padding: 11px 14px;
  background: rgba(124, 140, 255, 0.12);
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--dream);
}

/* --- Interactive Sleep Gain Calculator --- */
.calc-section {
  padding: 40px 0 80px;
}

.calc-card {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.95) 0%, rgba(15, 22, 41, 0.9) 100%);
  border: 1.5px solid rgba(124, 140, 255, 0.3);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.calc-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 36px;
}

.calc-headline {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.calc-sub {
  font-size: 15px;
  color: var(--muted);
}

.calc-controls {
  max-width: 640px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.calc-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-time-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.calc-pill-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-variant-numeric: tabular-nums;
}

.calc-pill-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.calc-pill-btn.active {
  color: #0A0F1E;
  background: var(--sunrise-grad);
  border-color: var(--sunrise-1);
  box-shadow: 0 4px 14px var(--sunrise-glow);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.calc-result-box {
  background: var(--surface-subtle);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-result-box.highlight {
  border-color: rgba(255, 178, 92, 0.45);
  background: rgba(255, 178, 92, 0.08);
}

.calc-res-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-res-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.calc-res-value.glow-sunrise {
  background: var(--sunrise-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-res-value.glow-dream {
  color: var(--dream);
}

.calc-res-note {
  font-size: 12px;
  color: var(--dim);
}

@media (max-width: 768px) {
  .calc-card {
    padding: 30px 20px;
  }
  .calc-results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

