/* ============================================
   Eventual Calendar — Site Styles
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3d4a;
  background-color: #fafafa;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; font: inherit; }

h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand color */
.text-brand { color: #f5235a; }

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #1e2030;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #5a5d6d;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #f5235a; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 80px 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  filter: drop-shadow(0 8px 24px rgba(245, 35, 90, 0.12));
}

.hero-title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
  font-weight: 700;
  color: #1e2030;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: #6b6e7d;
  max-width: 500px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.app-store-link {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.app-store-badge {
  height: 50px;
  width: auto;
}

/* Phone Showcase */
.phone-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  padding-bottom: 0;
  position: relative;
}

.phone {
  flex-shrink: 0;
}

.phone img {
  display: block;
  border-radius: 24px;
}

.phone-center {
  position: relative;
  z-index: 2;
}

.phone-center img {
  width: 280px;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.08));
}

.phone-left,
.phone-right {
  position: relative;
  z-index: 1;
}

.phone-left {
  margin-right: -30px;
  transform: perspective(1200px) rotateY(8deg) scale(0.88);
}

.phone-left img {
  width: 250px;
  opacity: 0.9;
}

.phone-right {
  margin-left: -30px;
  transform: perspective(1200px) rotateY(-8deg) scale(0.88);
}

.phone-right img {
  width: 250px;
  opacity: 0.9;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 100px 0 80px;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  color: #1e2030;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.features-desc {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  color: #6b6e7d;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 35, 90, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5235a;
  margin-bottom: 20px;
}

.feature-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e2030;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-text {
  font-size: 0.92rem;
  color: #6b6e7d;
  line-height: 1.65;
}

/* ============================================
   iPad Section
   ============================================ */
.ipad-section {
  padding: 40px 0 100px;
}

.ipad-header {
  text-align: center;
  margin-bottom: 72px;
}

.ipad-title {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  color: #1e2030;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.ipad-desc {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  color: #6b6e7d;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.ipad-showcase {
  margin-bottom: 80px;
}

.ipad-showcase:last-child {
  margin-bottom: 0;
}

.ipad-showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}

.ipad-showcase-reverse {
  grid-template-columns: 1.6fr 1fr;
}

.ipad-showcase-reverse .ipad-showcase-text {
  order: 2;
}

.ipad-showcase-reverse .ipad-image-wrap {
  order: 1;
}

.ipad-showcase-heading {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  color: #1e2030;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.ipad-showcase-desc {
  font-size: 0.95rem;
  color: #6b6e7d;
  line-height: 1.7;
}

.ipad-image-wrap {
  position: relative;
}

.ipad-image {
  width: 100%;
  border-radius: 12px;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.08));
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1e2030;
}

.footer-copy {
  font-size: 13px;
  color: #9a9daa;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: #6b6e7d;
  transition: color 0.2s ease;
}

.footer-link:hover { color: #f5235a; }

.footer-attribution {
  font-size: 12px;
  color: #b0b3be;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.footer-attribution:hover { color: #6b6e7d; }

/* ============================================
   Scroll Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Privacy Policy & FAQ Pages
   ============================================ */
.page-header {
  padding: 100px 24px 48px;
  text-align: center;
}

.page-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: #f5235a;
}

.page-title {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 700;
  color: #1e2030;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b6e7d;
}

.page-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a9daa;
  font-weight: 500;
  margin-top: 12px;
}

/* Privacy Policy Content */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.privacy-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e2030;
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3a3d4a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.privacy-content p {
  font-size: 0.95rem;
  color: #5a5d6d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.privacy-content li {
  font-size: 0.95rem;
  color: #5a5d6d;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.privacy-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f5235a;
}

.privacy-content a {
  color: #f5235a;
  transition: opacity 0.2s ease;
}

.privacy-content a:hover { opacity: 0.75; }

/* FAQ Page */
.faq-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9daa;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1e2030;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  gap: 16px;
}

.faq-question:hover { color: #f5235a; }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #9a9daa;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 18px;
  font-size: 0.92rem;
  color: #5a5d6d;
  line-height: 1.7;
}

.faq-answer-inner p {
  margin-bottom: 8px;
}

.faq-answer-inner ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
}

.faq-answer-inner li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.faq-answer-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f5235a;
}

.faq-support-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.faq-support-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2030;
  margin-bottom: 10px;
}

.faq-support-text {
  font-size: 0.92rem;
  color: #6b6e7d;
  margin-bottom: 16px;
}

.faq-support-link {
  display: inline-block;
  background: #f5235a;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-support-link:hover {
  background: #d9174c;
  transform: translateY(-1px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipad-showcase-item,
  .ipad-showcase-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ipad-showcase-reverse .ipad-showcase-text {
    order: 0;
  }

  .ipad-showcase-reverse .ipad-image-wrap {
    order: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 20px 0;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .phone-showcase {
    margin-top: 40px;
  }

  .phone-center img {
    width: 200px;
  }

  .phone-left img,
  .phone-right img {
    width: 180px;
  }

  .phone-left {
    margin-right: -20px;
  }

  .phone-right {
    margin-left: -20px;
  }

  .features {
    padding: 72px 0 56px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 22px;
  }

  .ipad-section {
    padding: 32px 0 72px;
  }

  .ipad-header {
    margin-bottom: 48px;
  }

  .ipad-showcase {
    margin-bottom: 56px;
  }

  .page-header {
    padding: 80px 20px 36px;
  }

  .footer {
    padding: 32px 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
