/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --text:      #1d1d1f;
  --text-muted:#6e6e73;
  --accent:    #0071e3;
  --accent-hov:#0077ed;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --nav-h:     60px;
  --max-w:     1080px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,247,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.08) 0%, transparent 70%);
}
.hero-inner { max-width: 680px; }

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hov); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: rgba(0,0,0,0.06);
  color: var(--text);
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: rgba(0,0,0,0.1); transform: translateY(-1px); }

/* ─── Platform Cards ──────────────────────────────────────────── */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 100px;
}
.platform-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.platform-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 20px;
}
.platform-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.platform-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { text-decoration: underline; }

/* ─── Page Hero ───────────────────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.07) 0%, transparent 70%);
}
.page-hero-inner { max-width: 600px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

/* ─── Apps Grid ───────────────────────────────────────────────── */
.apps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
}
.empty-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 80px 32px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  margin: 0 auto 20px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ─── Support ─────────────────────────────────────────────────── */
.support-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}
.support-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-group label span { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error {
  background: #fff2f2;
  border: 1px solid #ffcdd2;
  color: #c00;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 4px;
}
.support-confirm {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.support-confirm svg {
  width: 56px;
  height: 56px;
  color: #30d158;
  margin: 0 auto 20px;
}
.support-confirm h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.support-confirm p { color: var(--text-muted); margin-bottom: 28px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .platforms { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; border-radius: var(--radius-sm); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { margin-left: 0; }
}

/* ─── App Cards (ios.php / mac.php) ──────────────────────────── */
.apps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
a.app-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
a.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.app-card-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.app-card-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.app-card-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.app-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ─── App Hero ────────────────────────────────────────────────── */
.app-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.app-hero-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.app-hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
.app-hero-text h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.app-hero-text .hero-sub {
  max-width: none;
  margin: 0 0 24px;
}
.app-hero-text a img {
  -webkit-user-select: none;
  user-select: none;
}
.badge-free {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,113,227,0.08);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
}
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.app-store-placeholder {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1.5px solid var(--border);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── Screenshots ─────────────────────────────────────────────── */
.screenshots-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.screenshots-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ─── Features ────────────────────────────────────────────────── */
.app-features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
}
.features-grid {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Support CTA ─────────────────────────────────────────────── */
.app-support-cta {
  text-align: center;
  padding: 60px 24px 100px;
}
.app-support-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ─── Responsive additions ────────────────────────────────────── */
@media (max-width: 768px) {
  .app-hero-inner { flex-direction: column; gap: 24px; }
  .app-hero-icon  { width: 100px; height: 100px; }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid  { grid-template-columns: 1fr; }
}

/* ─── Screenshot tabs ─────────────────────────────────────────── */
.screenshots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  margin-top: 40px;
}
.screenshots-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,0.05);
  padding: 4px;
  border-radius: 980px;
}
.screenshots-tabs .tab {
  padding: 7px 16px;
  border: none;
  border-radius: 980px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.screenshots-tabs .tab:hover {
  color: var(--text);
}
.screenshots-tabs .tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.screenshots-controls {
  display: flex;
  gap: 10px;
}

/* ─── Prose pages ─────────────────────────────────────────────── */
.prose-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 100px;
}
.prose {
  max-width: 640px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}
.prose p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.prose a {
  color: var(--accent);
}
.prose a:hover {
  text-decoration: underline;
}

/* ─── Language switcher ───────────────────────────────────────── */
.lang-switcher {
  position: relative;
  list-style: none;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang-current:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  list-style: none;
  min-width: 140px;
  overflow: hidden;
  z-index: 200;
}
.lang-switcher.open .lang-dropdown {
  display: block;
}
.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.lang-dropdown li a:hover {
  background: var(--bg);
}

/* ─── Phone-frame screenshot slider ────────────────────────────── */
.slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 2rem;
  gap: 1.5rem;
}
.phone-stage-outer {
  position: relative;
  width: 337.5px;
  height: 690px;
}
.phone-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  transform: scale(0.25);
  transform-origin: top left;
}
.screenshots-track-wrap {
  background: #D2DDEF;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.screenshots-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.screenshot-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-slide img {
  max-width: none;
}
.bezel-img {
  position: relative;
  width: 1350px;
  max-width: none;
  pointer-events: none;
  z-index: 2;
  display: block;
}
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.85;
}
.arrow-btn svg {
  width: 90px;
  height: 90px;
}
.arrow-btn:hover { background: var(--bg); opacity: 1; }
.arrow-btn:active { transform: translateY(-50%) scale(0.95); }
.arrow-prev { left: -212px; }
.arrow-next { right: -212px; }
.arrow-btn:disabled { opacity: 0.25; cursor: default; }
.dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.dot.active {
  background: var(--text);
  transform: scale(1.2);
}
.caption {
  font-size: 13px;
  color: var(--text-muted);
  height: 1.2em;
}
