:root {
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.30);
  --maxw: 1120px;
  --transition: .2s ease;
  font-synthesis-weight: none;
}

[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-2: #0f1422;
  --text: #e8ecf3;
  --muted: #a8b0bf;
  --brand: #FFC447;
  --brand-2: #FFE37A;
  --card: #111729;
  --border: #253147;
  --badge-bg: rgba(255,255,255,.06);
  --btn-text: #001018;
}

[data-theme="light"] {
  --bg: #fffaf0;
  --bg-2: #fff7e6;
  --text: #101418;
  --muted: #536079;
  --brand: #FFB400;
  --brand-2: #FFE07A;
  --card: #ffffff;
  --border: #e7e1d7;
  --badge-bg: rgba(0,0,0,.04);
  --btn-text: #101418;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* === DEVICE SHELLS === */
.shell-desktop {
  display: none;
}

.shell-mobile {
  display: none;
}

[data-device="desktop"] .shell-desktop {
  display: block;
}

[data-device="mobile"] .shell-mobile {
  display: block;
}

/* === DESKTOP HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.app-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.nav a {
  margin: 0 10px;
  color: var(--text);
}

.nav .cta {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--badge-bg);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--card);
}

/* === MOBILE HEADER === */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.burger {
  width: 36px;
  height: 28px;
  display: grid;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-content: center;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.appstore-cta-small {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

/* === MOBILE DRAWER === */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  width: min(84vw, 360px);
  height: 100%;
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav a {
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.drawer-nav a:hover {
  border-color: var(--border);
  background: var(--badge-bg);
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.theme-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.theme-icon {
  font-size: 20px;
}

.theme-label {
  font-weight: 600;
}

/* === HERO SECTION === */
.hero {
  padding: 84px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}

.mobile-hero {
  padding: 40px 0;
  text-align: center;
}

.mobile-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-hero .hero-card {
  order: -1;
  margin-bottom: 24px;
  max-width: 420px;
}

h1 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}

.mobile-hero h1 {
  font-size: clamp(28px, 7vw, 38px);
}

.lead {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  margin-bottom: 22px;
}

.mobile-hero .lead {
  font-size: clamp(15px, 4vw, 18px);
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  font-size: 14px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--btn-text);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.subtle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  color: var(--text);
}

.hero-card {
  border-radius: 22px;
  background: radial-gradient(1200px 800px at 70% -10%, color-mix(in oklab, var(--brand) 15%, transparent), transparent 60%),
    color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* === SECTIONS === */
.section {
  padding: 74px 0;
  border-top: 1px solid var(--border);
}

.mobile-content .section {
  padding: 50px 0;
}

.section h2 {
  font-size: clamp(24px, 3.6vw, 40px);
  margin: 0 0 8px;
}

.section .kicker {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  margin-bottom: 8px;
}

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

/* === FEATURES === */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.features-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (min-width: 600px) {
  .features-mobile {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
  box-shadow: 0 5px 16px rgba(0,0,0,.04);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* === HOW IT WORKS === */
.grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.how-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-how {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.mobile-how .how-visual {
  order: -1;
}

.mobile-how .card {
  max-width: 100%;
}

/* === PHONE MOCKUP === */
.phone {
  position: relative;
  border-radius: 41px;
  padding: 15px;
  background: radial-gradient(120% 100% at 90% -10%, rgba(88,130,255,0.08), transparent 60%),
    linear-gradient(145deg, #0a1022 0%, #0b0f1a 45%, #121a33 100%),
    linear-gradient(90deg, transparent 0%, rgba(200,220,255,.12) 96%, rgba(200,220,255,.30) 99%, transparent 100%);
  background-blend-mode: normal, normal, screen;
  box-shadow: 0 12px 36px rgba(0,0,0,.46),
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 0 36px rgba(80,130,255,.07);
  display: inline-block;
  max-width: 360px;
  width: 100%;
  margin: 0;
}

.phone .screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.phone:before {
  content: "";
  position: absolute;
  width: 104px;
  height: 26px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(80% 120% at 50% 40%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(180deg, rgba(12,16,30,.88), rgba(0,0,0,.92));
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 4px 10px rgba(0,0,0,.40);
  opacity: .95;
  z-index: 1;
}

.phone:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 41px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.050), inset 0 0 24px rgba(80,130,255,.06);
  pointer-events: none;
}

.phone .side-button {
  position: absolute;
  right: -2px;
  top: 22%;
  width: 6px;
  height: 54px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.40), rgba(255,255,255,.45), rgba(0,0,0,.25));
  box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  filter: saturate(110%);
}

/* === GALLERY === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.gallery-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .gallery-mobile {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery img,
.gallery-mobile img {
  cursor: pointer;
  transition: transform .2s ease;
}

.gallery img:hover,
.gallery-mobile img:hover {
  transform: translateY(-2px);
}

.gallery figure,
.gallery-mobile figure {
  margin: 0;
}

/* === PRIVACY & FAQ === */
.mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.notice {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: var(--badge-bg);
  margin-top: 12px;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}

.list li {
  background: var(--badge-bg);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}

ul.inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

ul.inline li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--badge-bg);
}

/* === FOOTER === */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

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

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: min(92vw, 980px);
  max-height: 90vh;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.lightbox .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

/* === UTILITIES === */
.center {
  text-align: center;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* === MOBILE HEADER BRAND WITH ICON === */
.mobile-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}

.mobile-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* === MOBILE HERO IMAGE WITH TEXT OVERLAY === */
.hero-image-with-text {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 70% -10%, color-mix(in oklab, var(--brand) 15%, transparent), transparent 60%),
    color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image-with-text img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
}

.hero-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: left;
  z-index: 1;
}

.hero-text-overlay h1,
.hero-text-overlay .lead {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

[data-theme="light"] .hero-text-overlay h1,
[data-theme="light"] .hero-text-overlay .lead {
  background: rgba(255, 250, 230, 0.95);
  border: 1px solid rgba(255, 200, 100, 0.3);
}

[data-theme="dark"] .hero-text-overlay h1,
[data-theme="dark"] .hero-text-overlay .lead {
  background: rgba(17, 23, 41, 0.92);
  border: 1px solid rgba(37, 49, 71, 0.8);
}

.hero-text-overlay h1 {
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
  width: 100%;
}

.hero-text-overlay .lead {
  font-size: clamp(13px, 3.5vw, 16px);
  color: var(--text);
  margin: 0;
  width: 100%;
}

/* Adjust for iPad size */
@media (min-width: 600px) {
  .hero-image-with-text {
    max-width: 600px;
  }
  
  .hero-text-overlay {
    padding: 32px;
  }
  
  .hero-text-overlay h1 {
    font-size: clamp(24px, 4vw, 34px);
    padding: 20px 24px;
  }
  
  .hero-text-overlay .lead {
    font-size: clamp(14px, 3vw, 18px);
    padding: 18px 24px;
  }
}
/* === DRAWER BRAND WITH ICON === */
.drawer-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.drawer-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
