/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(to bottom, #FDFBF8 0%, #FCD9AC 65%);
  min-height: 100vh;
  color: #1C1C1E;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('paper_grain.png');
  background-repeat: repeat;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* =============================================
   LAYOUT
============================================= */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 48px;
}

.container {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

/* =============================================
   FADE-IN ANIMATIONS
============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-2 { animation: fadeUp 0.6s ease forwards 0.10s; opacity: 0; }
.fade-3 { animation: fadeUp 0.6s ease forwards 0.20s; opacity: 0; }
.fade-4 { animation: fadeUp 0.6s ease forwards 0.25s; opacity: 0; }
.fade-5 { animation: fadeUp 0.6s ease forwards 0.30s; opacity: 0; }
.fade-6 { animation: fadeUp 0.6s ease forwards 0.40s; opacity: 0; }
.fade-7 { animation: fadeUp 0.6s ease forwards 0.45s; opacity: 0; }

/* =============================================
   HERO — LOGO
============================================= */
.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 22%;
  margin: 0 auto 32px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
  object-fit: cover;
}

/* =============================================
   HERO — TEXT
============================================= */
.tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: #8A8178;
  font-style: italic;
  margin-bottom: 16px;
}

.headline {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  color: #1C1C1E;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.intro {
  max-width: 768px;
  margin: 0 auto 64px;
}

.intro p {
  line-height: 1.6;
  margin-bottom: 24px;
}

.intro p:first-child {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #1C1C1E;
}

.intro p:last-child {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  color: #8A8178;
}

.intro strong {
  font-weight: 600;
  color: #1C1C1E;
}

/* =============================================
   USE FOR SECTION
============================================= */
.use-for {
  max-width: 768px;
  margin: 0 auto 48px;
}

.use-for h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 16px;
}

.use-for p {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  color: #8A8178;
  line-height: 1.6;
}

.use-for strong {
  font-weight: 600;
  color: #1C1C1E;
}

/* =============================================
   CARDS — shared styles
============================================= */
.card {
  background: rgba(253,251,248,0.4);
  backdrop-filter: blur(1px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #1C1C1E;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-body {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #8A8178;
  line-height: 1.6;
}

/* =============================================
   IS / IS NOT CARDS
============================================= */
.is-isnot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto 64px;
  text-align: left;
}

.card-is::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(to right, #7DAF8A, transparent);
  opacity: 0.8;
}

.card-is .card-title svg { color: #7DAF8A; }

.card-isnot {
  background: rgba(253,251,248,0.15);
  box-shadow: none;
  border: 2px solid rgba(255,255,255,0.3);
}

.card-isnot .card-title { color: #8A8178; }

.card-summary {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: #1C1C1E;
  margin-bottom: 16px;
}

.bullet-list { display: flex; flex-direction: column; gap: 16px; }

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #8A8178;
  line-height: 1.5;
}

.bullet-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ea580c;
  margin-top: 8px;
  flex-shrink: 0;
}

.bullet-x {
  color: rgba(138,129,120,0.7);
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* =============================================
   USE CASES GRID
============================================= */
.use-cases {
  max-width: 960px;
  margin: 0 auto 96px;
  width: 100%;
}

.use-cases h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 28px;
  text-align: center;
}

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

.use-case-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.use-case-title {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 12px;
}

/* =============================================
   CLOSING TAGLINE
============================================= */
.closing {
  max-width: 768px;
  margin: 0 auto 80px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  color: #1C1C1E;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.closing p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #8A8178;
  font-style: italic;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: rgba(253,251,248,0.2);
  backdrop-filter: blur(1px);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-logo {
  width: 32px; height: 32px;
  border-radius: 22%;
  object-fit: cover;
}

.footer-copy {
  font-size: 0.82rem;
  color: #8A8178;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
}

.footer-links span { color: rgba(138,129,120,0.3); }

/* Consolidated link hover styles */
.footer-links a,
.footer-brand a,
.inline-link {
  color: #8A8178;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-brand a:hover,
.inline-link:hover {
  color: #1C1C1E;
}

/* =============================================
   EMAIL SIGNUP FORM
============================================= */
.signup-form-wrap {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.signup-form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #8A8178;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.signup-subline {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8A8178;
  margin-bottom: 10px;
  margin-top: -4px;
}

.signup-form {
  position: relative;
  overflow: hidden;
  background: rgba(253,251,248,0.3);
  backdrop-filter: blur(1px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.signup-form:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.signup-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: calc(100% - 4px);
  height: 4px;
  background: linear-gradient(to right, #7DAF8A, transparent);
  opacity: 0.8;
  border-radius: 24px 24px 0 0;
}

.signup-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  flex: 1 1 140px;
}

.signup-field-email { flex: 2 1 200px; }

.signup-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8A8178;
  letter-spacing: 0.04em;
  margin-left: 3px;
}

.signup-field input {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #1C1C1E;
  background: rgba(253,251,248,0.8);
  border: 1px solid rgba(28,28,30,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.signup-field input::placeholder { color: #C4BDB6; }

.signup-field input:focus {
  border-color: #7DAF8A;
  box-shadow: 0 0 0 3px rgba(125,175,138,0.15);
}

.signup-field input.field-error {
  border-color: #B05555;
  box-shadow: 0 0 0 3px rgba(176,85,85,0.12);
}

.signup-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #1C1C1E;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  align-self: flex-end;
  flex-shrink: 0;
}

.signup-btn:hover { background: #6B9E78; }
.signup-btn:active { transform: scale(0.98); }
.signup-btn:disabled { background: #B8CFC0; cursor: default; }

.signup-success {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6B9E78;
  padding: 16px 0;
  text-align: center;
}

.signup-error {
  display: none;
  font-size: 0.8rem;
  color: #B05555;
  margin-top: 10px;
  text-align: left;
}

/* =============================================
   MODAL
============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,30,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #FDFBF8;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(28,28,30,0.08);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1C1C1E;
  letter-spacing: -0.01em;
}

.modal-close {
  background: rgba(138,129,120,0.12);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #8A8178;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.modal-close:hover { background: rgba(138,129,120,0.22); color: #1C1C1E; }

.modal-body {
  overflow-y: auto;
  padding: 24px 28px 28px;
  flex: 1;
}

.modal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 28px 0 10px;
}

.modal-body h3:first-of-type { margin-top: 0; }

.modal-body p {
  font-size: 0.9rem;
  color: #8A8178;
  line-height: 1.65;
  margin-bottom: 12px;
}

.modal-body p:last-child { margin-bottom: 0; }

.modal-body a { color: #6B8E6F; }
.modal-body a:hover { text-decoration: underline; }

.modal-intro-text { margin-bottom: 16px; }

.modal-lockbox {
  background: rgba(107,142,111,0.1);
  border: 1px solid rgba(107,142,111,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.modal-lockbox p {
  font-size: 0.9rem;
  color: #1C1C1E;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   FAQ ACCORDION
============================================= */
.faq-item { border-bottom: 1px solid rgba(28,28,30,0.08); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1C1C1E;
  transition: color 0.2s;
}

.faq-question:hover { color: #6B8E6F; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(138,129,120,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #8A8178;
  transition: background 0.2s, transform 0.25s, color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(107,142,111,0.15);
  color: #6B8E6F;
}

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

.faq-answer-inner {
  padding-bottom: 16px;
  font-size: 0.875rem;
  color: #8A8178;
  line-height: 1.65;
}

/* =============================================
   LEGAL PAGE
============================================= */
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  color: #1C1C1E;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-content .legal-subtitle {
  font-size: 0.9rem;
  color: #8A8178;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: clamp(1.6rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #1C1C1E;
  margin: 36px 0 10px;
  border-bottom: 1px solid ;
}

.legal-content h2:first-of-type { margin-top: 20; }

.legal-content p {
  font-size: 0.9rem;
  color: #8A8178;
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content a { color: #6B8E6F; }
.legal-content a:hover { text-decoration: underline; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8A8178;
  transition: color 0.2s;
  margin-bottom: 40px;
}

.legal-back:hover { color: #1C1C1E; }

@media (max-width: 768px) {
  .legal-content { padding: 0 16px 64px; }
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5em;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: #8A8178;
  line-height: 1.65;
  margin-bottom: 8px;
}

/* =============================================
   TEMPLATES PAGE
============================================= */
.templates-list {
  max-width: 640px;
  margin: 0 auto 96px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.template-card {
  text-align: center;
}

.template-card .use-case-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.template-card .use-case-title {
  text-align: center;
  margin-bottom: 10px;
}

.template-card .card-body {
  text-align: center;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #1C1C1E;
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.download-btn:hover { background: #6B9E78; color: #fff; }
.download-btn:active { transform: scale(0.98); }

/* =============================================
   UTILITY CLASSES
============================================= */
.text-green  { color: #7DAF8A; }
strong.text-green { color: #7DAF8A; }
.text-red    { color: #A85A5A; }
.svg-green   { color: #7DAF8A; flex-shrink: 0; }
.svg-shrink  { flex-shrink: 0; }
.svg-lockbox { flex-shrink: 0; margin-top: 1px; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  main { padding: 60px 16px 40px; }
  .hero-logo { width: 120px; height: 120px; }
  .tagline { font-size: 0.8rem; }
  .is-isnot { grid-template-columns: 1fr; gap: 20px; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal { max-height: 85vh; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 20px 20px 16px; }
}

@media (max-width: 500px) {
  .signup-fields { flex-direction: column; }
  .signup-field,
  .signup-field-email { flex: 1 1 auto; width: 100%; }
  .signup-btn { width: 100%; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}
