:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #fbfdff;
  --text: #05213a;
  --muted: #2a69b3;
  --brand: #2a69b3;
  --brand-2: #03a3ca;
  --accent: #1e9ab6;
  --danger: #f13a22;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(5, 33, 58, .08);
}

/* Force light mode on all devices */
* {
  color-scheme: light only;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42,105,179,.15), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(3,163,202,.12), transparent 65%),
    radial-gradient(800px 400px at 50% 50%, rgba(30,154,182,.1), transparent 70%),
    radial-gradient(600px 300px at 20% 80%, rgba(120,168,89,.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  filter: saturate(110%);
  z-index: -2;
}

.nav {
  position: sticky;
  top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700;
}
.brand img { display: block; }

.hamburger { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; }
.hamburger:hover { background: rgba(0,0,0,.05); }
.hamburger span { display: block; width: 22px; height: 2px; background: #333c4a; margin: 4px 0; border-radius: 2px; }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.hero { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: flex-start; padding: 32px 0 18px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr .8fr; padding: 56px 0 24px; align-items: flex-start; }
}

.appname {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #2a69b3 0%, #78a859 15%, #f4b918 30%, #f13a22 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__text .page-title {
  font-size: clamp(20px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero__text h1 {
  font-size: clamp(25px, 4.5vw, 45px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #05213a, #2a69b3 45%, #78a859 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.lead { color: #2a69b3; opacity: .92; font-size: clamp(16px, 1.9vw, 20px); margin: 0 0 16px; }

.quote { border: 1px solid rgba(120,168,89,.3); background: linear-gradient(180deg, #ffffff, #fbfdff); padding: 14px 16px; border-radius: var(--radius); color: #2a69b3; box-shadow: var(--shadow); }
.quote p { margin: 0; }

.contact-inline { margin-top: 16px; }
.email { color: var(--brand); text-decoration: none; font-weight: 600; }
.email:hover { text-decoration: underline; }

.hero__visual { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  padding-top: 10px;
  position: relative;
}
.rightsidepicture { 
  width: min(250px, 60%); 
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15)); 
  margin-top: 0;
}

.features { margin: 60px 0; padding: 40px 0; }
.features__grid { 
  display: grid; 
  gap: 24px; 
  grid-template-columns: 1fr; 
}
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(120,168,89,.3);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 33, 58, .15);
}

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  border: 2px solid;
}

.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, rgba(42,105,179,.2), rgba(3,163,202,.2));
  border-color: #2a69b3;
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, rgba(120,168,89,.2), rgba(149,200,60,.2));
  border-color: #78a859;
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, rgba(244,185,24,.2), rgba(224,159,29,.2));
  border-color: #f4b918;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.contact { margin-top: 28px; padding: 18px; background: linear-gradient(180deg, #ffffff, #f9fbff); border: 1px solid rgba(120,168,89,.3); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.contact h2 { margin: 0 0 10px; font-size: clamp(20px, 2.6vw, 28px); }
.contact p { margin: 0 0 18px; color: var(--muted); }

.beta { margin-top: 16px; display: grid; gap: 12px; padding: 14px; background: linear-gradient(180deg, #ffffff, #fbfdff); border: 1px solid rgba(120,168,89,.3); border-radius: 12px; box-shadow: var(--shadow); }
.btn-cta { 
  font-size: 15px; 
  padding: 10px 14px; 
  text-decoration: none; 
  display: inline-block; 
  width: fit-content; 
}

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { color: #2a69b3; font-size: 14px; }
.field-security label { color: #05213a !important; }
.field input, .field textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(42,105,179,.2);
  border-radius: 12px;
  outline: none;
  padding: 12px 14px;
  transition: border .15s ease, box-shadow .15s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #2a69b3; }
.field input:focus, .field textarea:focus { border-color: rgba(42,105,179,.7); box-shadow: 0 0 0 6px rgba(42,105,179,.18); background: var(--panel-2); }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  appearance: none;
  border: 0; cursor: pointer; font-weight: 700;
  padding: 12px 16px; border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #f4b918, #e09f1d, #f13a22);
  box-shadow: 0 10px 22px rgba(241,58,34,.25), 0 8px 20px rgba(224,159,29,.18);
  font-size: 16px;
  text-decoration: none;
}
.btn:hover { filter: saturate(110%); }
.hint { color: var(--muted); font-size: 13px; }
.hint.error { color: #e24d4d !important; }
.hint.success { 
  color: #78a859 !important; 
  font-size: 16px; 
  font-weight: 600; 
  text-align: center; 
  padding: 20px; 
  background: linear-gradient(180deg, #ffffff, #fbfdff); 
  border: 1px solid #78a859; 
  border-radius: 12px; 
  margin-top: 20px;
}

.footer { max-width: 1100px; margin: 24px auto; padding: 0 24px 32px; color: #2a69b3; }

/* Legal pages styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(120,168,89,.3);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.legal-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 16px;
  background: linear-gradient(90deg, #2a69b3, #78a859, #f4b918, #f13a22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.legal-meta {
  color: #2a69b3;
  font-size: 14px;
}

.legal-meta p {
  margin: 4px 0;
}

.legal-section {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(120,168,89,.2);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  color: #05213a;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2a69b3;
}

.legal-section h3 {
  color: #2a69b3;
  font-size: 16px;
  margin: 20px 0 12px;
}

.legal-section p {
  color: #05213a;
  line-height: 1.6;
  margin: 0 0 16px;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-section li {
  color: #05213a;
  margin-bottom: 8px;
  line-height: 1.5;
}

.legal-section strong {
  color: #2a69b3;
  font-weight: 600;
}

.contact-info {
  background: linear-gradient(135deg, rgba(42,105,179,.1), rgba(120,168,89,.1));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(42,105,179,.2);
  margin-top: 20px;
}

.contact-info p {
  margin: 0;
  color: #05213a;
}

.legal-footer {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
}

/* Download page styles */
.download-section {
  margin: 40px 0;
  padding: 32px 0;
}

.download-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(120,168,89,.3);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 33, 58, .15);
}

.download-card.coming-soon {
  opacity: 0.7;
  background: linear-gradient(180deg, #f8f9fa, #f0f2f5);
}

.download-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(42,105,179,.1), rgba(120,168,89,.1));
  border: 2px solid rgba(42,105,179,.2);
}

.android-card .download-icon {
  background: linear-gradient(135deg, rgba(120,168,89,.2), rgba(149,200,60,.2));
  border-color: #78a859;
}

.ios-card .download-icon {
  background: linear-gradient(135deg, rgba(42,105,179,.2), rgba(3,163,202,.2));
  border-color: #2a69b3;
}

.download-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.download-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
  font-size: 16px;
}

.download-info {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(42,105,179,.05);
  border-radius: 12px;
  border: 1px solid rgba(42,105,179,.1);
}

.version-info, .size-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-label, .size-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.version-number, .size-number {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.download-status {
  margin-bottom: 24px;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.status-badge.beta {
  background: linear-gradient(135deg, #f4b918, #e09f1d);
  color: white;
}

.status-badge.coming-soon {
  background: linear-gradient(135deg, #2a69b3, #03a3ca);
  color: white;
}

.status-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.download-actions {
  display: grid;
  gap: 12px;
}

.btn-download {
  background: linear-gradient(90deg, #78a859, #95c83c);
  box-shadow: 0 8px 20px rgba(120,168,89,.3);
}

.btn-download:hover {
  filter: saturate(110%);
}

.btn-disabled {
  background: linear-gradient(90deg, #ccc, #999);
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-disabled:hover {
  filter: none;
}

.download-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  font-style: italic;
}

.download-section .features h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 40px;
  background: linear-gradient(90deg, #2a69b3, #78a859, #f4b918, #f13a22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.release-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.release-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.release-date {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.secure-download {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.secure-download .field {
  margin-bottom: 0;
}

.secure-download .field input {
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: monospace;
  background: #f8f9fa;
}

.secure-download .field input:focus {
  background: #fff;
}

.btn-secondary {
  background: linear-gradient(90deg, #2a69b3, #03a3ca);
  box-shadow: 0 8px 20px rgba(42,105,179,.3);
  margin-top: 8px;
}

.btn-secondary:hover {
  filter: saturate(110%);
}

.download-error {
  background: linear-gradient(135deg, rgba(241,58,34,.1), rgba(226,78,78,.1));
  border: 1px solid rgba(241,58,34,.3);
  color: #e24d4d;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s ease;
}

.back-link:hover {
  background: rgba(42,105,179,.1);
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.download-button-container {
  margin-top: 32px;
  text-align: center;
}

.btn-download-main {
  background: linear-gradient(90deg, #78a859, #95c83c);
  box-shadow: 0 12px 28px rgba(120,168,89,.4);
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all .2s ease;
}

.btn-download-main:hover {
  filter: saturate(110%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(120,168,89,.5);
}

.ios-signup-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: color .2s ease;
  background: linear-gradient(135deg, rgba(42,105,179,.1), rgba(3,163,202,.1));
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(42,105,179,.2);
}

.ios-signup-link:hover {
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(42,105,179,.2), rgba(3,163,202,.2));
  border-color: rgba(42,105,179,.4);
}

/* Language switcher */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Hero section language switcher - positioned relative to hero__visual */
.hero__visual .language-switcher {
  top: 0;
  right: calc(50% - min(250px, 60%) / 2);
}

/* Top bar aligned with hero columns (for download pages) */
.hero-topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-topbar { grid-template-columns: 1.2fr .8fr; }
}
.hero-topbar__visual { position: relative; }
.hero-topbar .language-switcher {
  top: 0;
  right: calc(50% - min(250px, 60%) / 2);
}
body.download-page .hero__visual .language-switcher { display: none !important; }
body.home-page .hero__visual .language-switcher { display: none !important; }

.language-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid rgba(42,105,179,.2);
  border-radius: 14px;
  text-decoration: none;
  color: #05213a;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(5, 33, 58, .08);
  transition: all .2s ease;
}

.language-switcher a:hover {
  background: #2a69b3;
  color: white;
  border-color: #2a69b3;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 33, 58, .15);
}

.language-switcher .flag {
  width: 20px;
  height: 15px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.language-switcher .lang-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

