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

:root {
  --orange:     #ff9900;   /* app primary */
  --orange-lt:  #fff4e0;
  --orange-dk:  #e68a00;
  --green:      #2eb82e;   /* app logo petal */
  --green-lt:   #e9f8e9;
  --blue:       #2e9bf0;   /* app logo petal */
  --blue-lt:    #e6f3fd;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --radius:     18px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 740px;
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-text  { letter-spacing: -.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gray-900); }

/* Mobile menu button — hidden on desktop, shown in the responsive block below */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gray-900);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-sm {
  font-size: .85rem;
  padding: 6px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-sm:hover { background: var(--gray-200); }

.btn-primary {
  font-size: 1rem;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dk); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(255,153,0,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--orange-lt);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,153,0,.25);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover {
  background: #1f2937;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--gray-50);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,153,0,.35);
}
/* App-style icon chip */
.feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: 16px;
  background: var(--orange-lt);
  margin-bottom: 16px;
}
.feature-icon.green { background: var(--green-lt); }
.feature-icon.blue  { background: var(--blue-lt); }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .93rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
}
.contact-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}
.contact-header {
  text-align: center;
  margin-bottom: 32px;
}
.contact-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.contact-header p {
  color: var(--gray-500);
  font-size: .95rem;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.required { color: var(--orange); }
.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border-color .15s, background .15s;
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: #fff;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-size: .82rem;
  color: var(--gray-400);
  line-height: 1.4;
  flex: 1;
}
.form-feedback {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
}
.form-feedback.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.form-feedback.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ─── Legal page ────────────────────────────────────────────────────────────── */
.legal-page {
  padding: 64px 0 96px;
}
.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.legal-date {
  font-size: .88rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.legal-page p { margin-bottom: 16px; color: var(--gray-700); }
.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.legal-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-page li {
  color: var(--gray-700);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 32px 0;
  background: var(--gray-50);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .88rem;
  color: var(--gray-500);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a.active { color: var(--gray-900); }
.footer-copy {
  font-size: .82rem;
  color: var(--gray-400);
  width: 100%;
  text-align: center;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hamburger replaces the inline links: the nav links become a dropdown panel
     that toggles open via the .open class (see app.js). */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 60px;            /* height of .nav-inner */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
  .nav-links a.btn { margin: 8px 24px; text-align: center; }
  .hero { padding: 64px 0 56px; }
  .contact-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

/* App petal logo mark (nav + footer + portal) */
.logo-img { width: 28px; height: 28px; border-radius: 7px; display: inline-block; vertical-align: middle; object-fit: cover; }
