/* ==========================================================================
   Glowy Landing Page — styles.css
   ========================================================================== */

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

/* ---------- Font Faces ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --pink: #FFDEE2;
  --cream: #FFFBF7;
  --lavender: #E4D4F4;
  --text-primary: #3D3A36;
  --text-secondary: #7A7570;
  --text-tertiary: #A8A4A0;
  --accent-pink: #F5C4CA;
  --card-bg: #FFF5F0;
  --white: #FFFFFF;

  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 24px;
  --border-radius: 24px;
  --card-radius: 20px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: -32px auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: var(--pink);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 50px;
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(245, 196, 202, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 20px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 50px;
}

.btn--outline:hover {
  border-color: var(--text-primary);
}

/* ---------- Placeholder Mixins ---------- */
.placeholder-phone {
  background: linear-gradient(160deg, var(--lavender) 0%, var(--pink) 100%);
  border-radius: 32px;
  border: 2px solid rgba(61, 58, 54, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.placeholder-phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: rgba(61, 58, 54, 0.08);
  border-radius: 12px;
}


/* ==========================================================================
   1. HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 58, 54, 0.06);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-links {
  display: flex;
  gap: 28px;
}

.header__nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--text-primary);
}

/* Hamburger (CSS-only) */
.header__menu-toggle {
  display: none;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hide mobile-only CTA on desktop */
.btn--primary--mobile {
  display: none;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 72px 24px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero__mockup {
  flex: 0 0 320px;
}

.hero__phone {
  width: 300px;
  height: auto;
}

/* Apple icon in button */
.btn__apple-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   3. BASICS SECTION (3 cards)
   ========================================================================== */
.basics {
  padding: var(--section-padding);
}

.basics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.basics__card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s;
}

.basics__card:hover {
  transform: translateY(-4px);
}

.basics__card-phone {
  width: 220px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 24px;
  border-radius: 20px;
}

.basics__card-title {
  font-size: 20px;
  font-weight: 600;
}

.basics__card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ==========================================================================
   4. FEATURES SECTION (6 cards, 2x3 grid)
   ========================================================================== */
.features {
  padding: var(--section-padding);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features__card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: transform 0.3s;
}

.features__card:hover {
  transform: translateY(-4px);
}

.features__card-icon {
  width: 48px;
  height: 48px;
  background: var(--pink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4838C;
  margin-bottom: 20px;
}

.features__card-icon svg {
  width: 24px;
  height: 24px;
}

.features__card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.features__card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   5. PRICING SECTION
   ========================================================================== */
.pricing {
  padding: var(--section-padding);
}

.pricing__content {
  max-width: 800px;
  margin: 0 auto;
}

.pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.pricing__card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.3s;
}

.pricing__card:hover {
  transform: translateY(-4px);
}

.pricing__card--featured {
  border-color: var(--accent-pink);
  box-shadow: 0 8px 32px rgba(245, 196, 202, 0.35);
  padding: 40px 32px 36px;
}

.pricing__card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.pricing__card-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: #D4838C;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.pricing__card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing__card-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing__card--featured .pricing__card-price {
  font-size: 42px;
}

.pricing__card-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing__card-annual {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.pricing__card-anchor {
  font-size: 15px;
  font-weight: 600;
  color: #D4838C;
  margin-bottom: 2px;
}

.pricing__card-anchor s {
  color: var(--text-tertiary);
  font-weight: 400;
  text-decoration-color: #D4838C;
}

.pricing__card-permonth {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pricing__card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 4px;
  text-align: left;
}

.pricing__card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing__card-features svg {
  flex-shrink: 0;
}

.pricing__card-cta {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.pricing__card--featured .pricing__card-cta {
  padding: 16px 28px;
  font-size: 17px;
}

.pricing__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.pricing__guarantee svg {
  flex-shrink: 0;
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */
.contact {
  padding: var(--section-padding);
}

.contact__content {
  max-width: 480px;
  margin: 0 auto;
}

.contact__card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 48px 32px;
  text-align: center;
}

.contact__icon {
  width: 64px;
  height: 64px;
  background: var(--pink);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4838C;
  margin: 0 auto 24px;
}

.contact__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact__card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact__cta {
  justify-content: center;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid rgba(61, 58, 54, 0.08);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(61, 58, 54, 0.08);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   8. LEGAL PAGES (Terms, Privacy)
   ========================================================================== */
.legal {
  padding: 140px 24px 80px;
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal__date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal__section {
  margin-bottom: 32px;
}

.legal__section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.legal__section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal__section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal__section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal__section a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal__section a:hover {
  color: var(--accent-pink);
}

/* ==========================================================================
   RESPONSIVE — Tablet (<=1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__mockup {
    flex: none;
  }

  .hero__title {
    font-size: 42px;
  }

  .basics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .legal__title {
    font-size: 32px;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile (<=768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 16px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  /* Hamburger visible */
  .header__hamburger {
    display: flex;
  }

  .header__nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(61, 58, 54, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .header__menu-toggle:checked ~ .header__nav .header__nav-links {
    display: flex;
  }

  .header__menu-toggle:checked ~ .header__nav .header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__menu-toggle:checked ~ .header__nav .header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-toggle:checked ~ .header__nav .header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__nav .btn--primary {
    display: none;
  }

  .header__nav-links .btn--primary--mobile {
    display: inline-flex;
    background: var(--pink);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    justify-content: center;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 110px 16px 60px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__phone {
    width: 240px;
    height: auto;
  }

  /* Grids to 1 col */
  .basics__grid,
  .features__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  /* Pricing */
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing__card--featured {
    order: -1;
  }

  .basics__card-phone {
    width: 180px;
    height: 280px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   RESPONSIVE — Small (<=480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .pricing__card-price {
    font-size: 30px;
  }
}
