/* Brand palette (mirrors src/styles/colors.ts)
  primary: #4A0EEE;
  secondary: #68DFD0;
  secondaryLight: #CDFDFE;
  dark: #00002D;
  red: #EB5160;
*/

:root {
  --primary: #4A0EEE;
  --secondary: #68DFD0;
  --secondaryLight: #CDFDFE;
  --dark: #00002D;
  --light: #f8fafc;
  --muted: #65707b;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; letter-spacing: 0.1px; transition: transform 0.04s ease, box-shadow 0.2s ease; border: none; font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--secondary); color: var(--dark); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(0.98); }
.btn-light { background: #fff; color: var(--dark); box-shadow: var(--shadow); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { height: 28px; width: auto; }
.logo.small { height: 20px; }
.logo-icon { height: 28px; width: auto; display: inline-block; }
.logo-name { height: 20px; width: auto; display: inline-block; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; font-size: 18px; color: #fff; font-family: 'Quicksand', sans-serif; }

.hero { background: radial-gradient(1200px 500px at 20% -10%, rgba(104,223,208,0.35), transparent 60%), var(--dark); color: #fff; padding: 60px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1fr; align-items: center; gap: 16px; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.3px; }
.hero .tagline { font-size: clamp(16px, 1.5vw, 20px); color: var(--secondaryLight); margin: 0 0 22px; }
.hero .subnote { font-size: 13px; opacity: 0.85; margin-top: 12px; }
.hero-visual { display: none; }
.hero-badges { margin-top: 10px; padding-bottom: 34px; }
.hero-badges-title { margin: 8px 0 12px; color: var(--secondaryLight); font-weight: 700; }
.store-badges { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.store-badge { height: 36px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }
/* Removed Apple badge border per request */
.hero-icon { width: clamp(128px, 14vw, 160px); height: auto; display: block; margin: 0 auto 20px; }
.hero-name { height: clamp(44px, 6vw, 64px); width: auto; display: block; margin: 0 auto 28px; }
.hero h1 { margin-top: 0; }
.hero-screenshot { margin-top: 20px; }
.hero-cta { margin-top: 16px; }
.screenshot-img { display: block; width: 100%; height: auto; }
.hero-shot { width: min(420px, 85%); margin: 40px auto 0; border-radius: 16px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.hero-shot-img { display: block; width: 100%; height: auto; background: #000; }

/* mobile-specific overrides moved to styles.mobile.css */

/* Faux in-app preview styles removed: using screenshots instead */

.screenshots { padding: 56px 0; background: #fff; }
.screenshots-title { margin: 0 0 18px; font-size: 28px; text-align: center; }
.screenshots-grid { display: none; }
.carousel { position: relative; width: min(960px, 96%); margin: 0 auto; }
/* Touch-friendly horizontal scroll with snap */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { display: grid; justify-items: center; padding: 8px; scroll-snap-align: center; }
.screenshot-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); width: 100%; max-width: 420px; text-align: center; margin: 0 auto; }
.screenshot-card img { width: 100%; height: auto; border-radius: 12px; display: block; background: #000; }
.screenshot-card figcaption { margin-top: 8px; font-weight: 700; color: var(--dark); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; cursor: pointer; }
.carousel-btn:hover { background: rgba(0,0,0,0.65); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer; padding: 0; line-height: 0; display: inline-block; }
.carousel-dot[aria-selected="true"] { background: var(--primary); }

.features { padding: 56px 0; background: var(--light); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.signup { padding: 72px 0; background: linear-gradient(180deg, #fff, #f5fbfb 80%); }
.signup-card { margin: 0 auto; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); width: min(720px, 100%); }
.signup h2 { margin: 0 0 8px; font-size: 28px; }
.signup .muted { margin: 0 0 18px; color: var(--muted); }

.form { display: grid; gap: 12px; }
label { font-weight: 600; font-size: 14px; color: var(--dark); }
input[type="email"], input[type="text"] { width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); padding: 10px 14px; font: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
button { font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
input::placeholder { color: #9aa4b2; }
input:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(104,223,208,0.2); }
.form-msg { min-height: 18px; font-size: 13px; margin-top: 6px; }
.form-msg.success { color: #05654c; }
.form-msg.error { color: #a3172f; }

.site-footer { background: var(--dark); color: #c8d0e1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.footer-inner a { color: #c8d0e1; text-decoration: none; margin-left: 14px; }
.footer-inner a:hover { text-decoration: underline; }

/* Ensure footer CTA uses dark text color on white button */
.site-footer .btn-light { color: var(--dark); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal[aria-hidden="false"] { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; z-index: 1; width: min(820px, 92%); max-height: 80vh; margin: 8vh auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.modal-header { padding: 16px 20px; background: var(--light); border-bottom: 1px solid #e5e7eb; }
.modal-header h3 { margin: 0; font-size: 20px; color: var(--dark); }
.modal-updated { font-size: 12px; color: #6b7280; margin-top: 2px; }
.modal-content { padding: 16px 20px; overflow: auto; }
.modal-content h4 { margin: 16px 0 6px; font-size: 16px; color: var(--dark); }
.modal-content p { margin: 0 0 10px; color: var(--dark); line-height: 1.6; }
.modal-footnote { font-size: 12px; color: #64748b; margin-top: 10px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 8px; border: none; background: rgba(0,0,0,0.06); color: #0f172a; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(0,0,0,0.1); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
}

/* mobile-specific overrides moved to styles.mobile.css */

/* Hidden by default, shown on small screens */
.mobile-cta { display: none; }
