/* Tile Wise — Site Styles */
/* Colors match the iOS app exactly */

:root {
  --navy:   #1C3879;
  --pink:   #E84C8C;
  --gold:   #D1A62E;
  --mint:   #3AB5A0;
  --bg:     #F0F1F5;
  --white:  #FFFFFF;
  --text:   #1C3879;
  --muted:  rgba(28, 56, 121, 0.55);
  --border: rgba(28, 56, 121, 0.10);
  --radius: 16px;
  --shadow: 0 4px 24px rgba(28, 56, 121, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ─────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ─── Nav ─────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--pink);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700 !important;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  background: var(--navy);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(209,166,46,0.15) 0%, transparent 60%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.70);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 14px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.90; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-trial {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* ─── Features ────────────────────────────────────────────── */

.features { background: #fff; }

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── How it works ───────────────────────────────────────── */

.how { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: steps;
}

.step {
  text-align: center;
  counter-increment: steps;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── Pricing ─────────────────────────────────────────────── */

.pricing { background: #fff; }

.pricing-header { text-align: center; margin-bottom: 48px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--radius);
  padding: 32px;
  border: 1.5px solid var(--border);
  background: #fff;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--shadow); }

.pricing-card.featured {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.65;
}

.pricing-price {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pricing-price sup {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
}

.pricing-period {
  font-size: 14px;
  opacity: 0.55;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card.featured .pricing-features li {
  border-color: rgba(255,255,255,0.10);
}

.pricing-features li::before {
  content: '✓';
  font-weight: 800;
  color: var(--mint);
  font-size: 13px;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.pricing-card .pricing-cta {
  background: var(--navy);
  color: #fff;
}

.pricing-card.featured .pricing-cta {
  background: var(--gold);
  color: var(--navy);
}

.pricing-cta:hover { opacity: 0.88; }

.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Audience ────────────────────────────────────────────── */

.audience { background: var(--navy); color: #fff; }
.audience .section-label { color: var(--gold); }
.audience .section-title { color: #fff; }
.audience .section-sub { color: rgba(255,255,255,0.65); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audience-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.audience-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.audience-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */

footer {
  background: var(--navy);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.footer-brand h2 span { color: var(--gold); }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 72px 0 56px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
}
