/* ── Piktivo Landing — Thai Sunshine theme ──────────────────────────── */
:root {
  --sun:       #F9A825;   /* warm primary */
  --sun-deep:  #F57F17;   /* deeper orange */
  --gold:      #FFC107;
  --cream:     #FFF8E7;   /* page background */
  --ink:       #3E2723;   /* warm dark brown text */
  --ink-soft:  #6D5b4f;
  --card:      #ffffff;
  --shadow:    0 10px 30px rgba(245, 127, 23, 0.12);
  --radius:    18px;
  --maxw:      1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: 'Baloo 2', 'Nunito', sans-serif; }

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

a { color: inherit; text-decoration: none; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  border: none;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #1B80B6; color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #156A98; }
.btn-secondary { background: #fff; color: var(--sun-deep); border: 2px solid var(--sun); }
.btn-light { background: #fff; color: var(--sun-deep); box-shadow: var(--shadow); }
.btn-small { padding: 9px 18px; font-size: .92rem; background: #1B80B6; color: #fff; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 127, 23, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: #1B80B6; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--sun-deep); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background: linear-gradient(160deg, #FFF3D6 0%, #FFE2A8 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-logo { width: 120px; margin-bottom: 18px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.hero h1 { font-size: 3rem; line-height: 1.1; color: #1B80B6; margin-bottom: 18px; }
.hero-tagline { font-size: 1.18rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }
.hero-visual { display: flex; justify-content: center; }

/* Phone mockup frame */
.phone-frame {
  background: #1c1c1e;
  padding: 10px;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(62, 39, 35, .28);
  max-width: 280px;
}
.phone-frame img { width: 100%; display: block; border-radius: 24px; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 2.1rem; text-align: center; color: #1B80B6; }
.section-subtitle { text-align: center; color: var(--ink-soft); margin: 10px auto 44px; max-width: 560px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245,127,23,.08);
  transition: transform .18s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon { font-size: 2.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--sun-deep); }
.feature-card p { color: var(--ink-soft); font-size: .98rem; }

/* Install */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; }
.install-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px dashed rgba(245,127,23,.35);
}
.install-card h3 { font-size: 1.35rem; margin-bottom: 16px; color: #1B80B6; }
.install-card ol { padding-left: 22px; }
.install-card li { margin-bottom: 12px; color: var(--ink-soft); }
.install-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255, 167, 38, 0.12);
  border-left: 3px solid #FFA726;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.inline-icon { font-size: 1.05rem; }
.install-cta { text-align: center; margin-top: 40px; }

/* Android Chrome warning + button */
.install-warning {
  margin-bottom: 16px;
  padding: 13px 15px;
  background: rgba(217, 48, 37, 0.10);
  border-left: 4px solid #D93025;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}
.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  background: #1B80B6;
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.btn-chrome:hover { background: #156A98; }
.chrome-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 28%, transparent 29%),
    conic-gradient(#EA4335 0 33.3%, #34A853 33.3% 66.6%, #FBBC05 66.6% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  flex: none;
}
.chrome-fallback {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.chrome-fallback a { color: #1B80B6; font-weight: 700; }

/* Screenshots */
.shots { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1B80B6 0%, #156A98 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-band p { margin-bottom: 28px; opacity: .95; font-size: 1.1rem; }

/* Footer */
.site-footer { background: #2c211c; color: #f4e9df; padding: 44px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Baloo 2'; font-size: 1.2rem; font-weight: 700; }
.footer-brand .brand-icon { width: 30px; height: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #f4d39b; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .88rem; opacity: .75; }
.footer-copy a { color: #f4d39b; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-cta { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}



/* ---- JS-driven enhancements ---- */
.install-card.recommended {
  border-color: var(--sun, #F9A825);
  box-shadow: 0 10px 30px rgba(249, 168, 37, 0.25);
  position: relative;
}
.install-card.recommended::after {
  content: "Recommended for your device";
  position: absolute;
  top: -12px;
  left: 16px;
  background: #1B80B6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(8px);
}
