/* ==========================================================================
   FreePrintable.me — Apple Light Minimalist Theme (120 FPS)
   Light Mode Only | Optimized for Parents & Teachers
   ========================================================================== */

/* 1. Design Tokens & Palette (Strict Light Mode)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "SF Pro", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Light Theme Variables */
  --bg-page: #fbfbfd;
  --bg-gradient: radial-gradient(circle at 50% -10%, #eaf1fb 0%, #fbfbfd 50%, #f5f5f7 100%);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);

  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;

  --accent-green: #34c759;
  --status-bg: #eafaf0;
  --status-border: #b8ebd0;
  --status-text: #1b7a37;

  --btn-primary-bg: #1d1d1f;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #000000;

  --focus-ring: rgba(0, 113, 227, 0.35);
  --divider: rgba(0, 0, 0, 0.08);

  --toast-bg: #1d1d1f;
  --toast-text: #ffffff;
}

/* 2. Global Resets & Hardware-Accelerated Rendering
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  accent-color: var(--accent-blue);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-page);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 3. Page Layout Wrapper
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 4. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  transform: translateZ(0);
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #ffffff;
}

.logo-bg {
  fill: var(--accent-blue);
}

.logo-paper {
  fill: #ffffff;
  stroke: var(--accent-blue);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.brand-tld {
  color: var(--accent-blue);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Status Pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--status-text);
  letter-spacing: -0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  animation: pulse-dot 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* 5. Main Hero Section
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 60px;
}

.hero-section {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 7px 18px;
  border-radius: 980px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 22px;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 6. Apple-Style Pill Buttons (Hardware-Accelerated 120 FPS)
   -------------------------------------------------------------------------- */
.action-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 980px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease,
              background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.25);
}

.btn-icon-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* 7. Bento Grid: What's Coming (Parents & Teachers)
   -------------------------------------------------------------------------- */
.features-preview {
  margin-top: 64px;
  text-align: center;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  text-align: left;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 113, 227, 0.25);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f2f7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.card-icon-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* 8. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 32px 0 24px;
  border-top: 1px solid var(--divider);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.bullet {
  color: var(--divider);
}

/* 9. Ultra-Smooth Toast Feedback
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 10. Responsive Tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .site-header {
    padding: 16px 0 12px;
  }

  .main-content {
    padding: 24px 0 36px;
  }

  .features-preview {
    margin-top: 48px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
