/* TenderInk — Main Stylesheet
 * Owns: all visual design tokens, layout, component styles
 * Does NOT own: application logic, data, route behavior
 */

/* ===== TOKENS ===== */
:root {
  --cream: #FDF6EC;
  --warm-brown: #5C3D2E;
  --soft-sage: #A8B5A0;
  --dusty-rose: #C4907C;
  --deep-ink: #2B1F1A;
  --warm-gold: #D4A853;
  --light-sage: #E8EDE5;
  --blush: #F2E0D6;
  --blush-deep: #E8C9B8;
  --muted: #8B7163;
  --border: rgba(92, 61, 46, 0.12);
  --shadow: 0 4px 24px rgba(92, 61, 46, 0.10);
  --shadow-lg: 0 12px 48px rgba(92, 61, 46, 0.16);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== BASE ===== */
body {
  background: var(--cream);
  color: var(--deep-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--warm-brown);
  letter-spacing: -0.01em;
}

.nav-logo em {
  font-style: italic;
  color: var(--dusty-rose);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-brown);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--warm-brown);
  color: var(--cream) !important;
  opacity: 1 !important;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta:hover {
  background: var(--deep-ink) !important;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(ellipse, var(--blush) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(ellipse, var(--light-sage) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--dusty-rose);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  display: block;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--warm-brown);
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--dusty-rose);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--warm-brown);
  max-width: 580px;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--warm-brown);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--deep-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 61, 46, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--warm-brown);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--dusty-rose);
  background: var(--blush);
}

/* ===== DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--border);
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dusty-rose);
  opacity: 0.5;
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 2rem;
  background: var(--light-sage);
  position: relative;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--warm-brown);
  line-height: 1.5;
  padding-left: 1.5rem;
  border-left: 3px solid var(--dusty-rose);
}

.about-description p {
  color: var(--warm-brown);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* ===== JOURNAL PREVIEW ===== */
.journal-preview {
  padding: 6rem 2rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.journal-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.journal-preview-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--dusty-rose);
  display: block;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--warm-brown);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* The journal page mock */
.journal-page {
  background: #fffdf8;
  border-radius: 6px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(92, 61, 46, 0.07);
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

/* Spiral binding visual */
.journal-binding {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  width: 2px;
  background: var(--blush-deep);
  z-index: 1;
}

.journal-binding::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 18px,
    var(--blush-deep) 18px,
    var(--blush-deep) 22px
  );
  border-radius: 2px;
}

.journal-content {
  padding: 2.5rem 2.5rem 2.5rem 4rem;
  position: relative;
  z-index: 2;
  /* Lined paper effect */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 31px,
    rgba(168, 181, 160, 0.2) 31px,
    rgba(168, 181, 160, 0.2) 32px
  );
  background-position: 0 2.5rem;
}

.journal-day-label {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--dusty-rose);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.25rem;
}

.journal-quote-block {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(196, 144, 124, 0.08);
  border-left: 3px solid var(--dusty-rose);
  border-radius: 0 4px 4px 0;
}

.journal-quote-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dusty-rose);
  display: block;
  margin-bottom: 0.5rem;
}

.journal-quote-text {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--warm-brown);
  line-height: 1.7;
}

.journal-affirmation-block {
  margin-bottom: 2rem;
}

.journal-affirmation-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-sage);
  display: block;
  margin-bottom: 0.5rem;
}

.journal-affirmation-text {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  color: var(--warm-brown);
  line-height: 1.5;
}

.journal-prompt-block {
  margin-bottom: 1.5rem;
}

.journal-prompt-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-sage);
  display: block;
  margin-bottom: 0.5rem;
}

.journal-prompt-text {
  font-size: 1rem;
  color: var(--warm-brown);
  line-height: 1.75;
}

.journal-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.25rem;
}

.journal-line {
  height: 32px;
  border-bottom: 1px dashed rgba(168, 181, 160, 0.5);
}

/* ===== CATALOG / PRODUCTS ===== */
.products {
  padding: 6rem 2rem;
  background: var(--light-sage);
}

.products-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.products-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--warm-brown);
  margin-bottom: 0.75rem;
}

.products-header p {
  font-size: 1.05rem;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.product-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.product-card:first-child::before { background: var(--dusty-rose); }
.product-card:last-child::before { background: var(--soft-sage); }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.badge-journal { background: rgba(196, 144, 124, 0.15); color: var(--dusty-rose); }
.badge-books { background: rgba(168, 181, 160, 0.25); color: #6B8F60; }
.badge-coming-soon { background: rgba(212, 168, 83, 0.15); color: #9B7A2A; }

.product-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.3rem;
  color: var(--warm-brown);
  margin-bottom: 0.75rem;
}

.product-card > p {
  font-size: 0.975rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--warm-brown);
  opacity: 0.85;
  padding-left: 1.25rem;
  position: relative;
}

.product-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--dusty-rose);
  font-size: 0.8rem;
}

/* ===== PRICING ===== */
.pricing {
  padding: 6rem 2rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.pricing::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(ellipse, var(--blush) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: var(--warm-brown);
  border-color: var(--warm-brown);
  color: var(--cream);
}

.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-period,
.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-feature {
  color: rgba(253, 246, 236, 0.9);
}

.pricing-card.featured .pricing-name {
  color: var(--warm-gold);
}

.pricing-card.featured .pricing-price {
  color: var(--cream);
}

.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-gold);
  color: var(--deep-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dusty-rose);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--warm-brown);
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pricing-feature {
  font-size: 0.875rem;
  color: var(--warm-brown);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--soft-sage);
  font-weight: 700;
}

.pricing-card.featured .pricing-feature::before { color: var(--warm-gold); }

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--warm-brown);
  transition: all 0.2s ease;
  text-decoration: none;
}

.pricing-btn:hover {
  background: var(--blush);
  border-color: var(--dusty-rose);
}

.pricing-card.featured .pricing-btn {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--warm-brown);
}

.pricing-card.featured .pricing-btn:hover {
  background: var(--blush);
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 6rem 2rem;
  background: var(--deep-ink);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(ellipse, rgba(196, 144, 124, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.philosophy-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.philosophy-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.philosophy-inner p {
  font-size: 1.05rem;
  color: rgba(253, 246, 236, 0.65);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.philosophy-accent {
  display: block;
  margin-top: 2rem;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--dusty-rose);
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  background: var(--cream);
  text-align: center;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--warm-brown);
  margin-bottom: 1.25rem;
}

.closing-inner p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  background: var(--deep-ink);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: rgba(253, 246, 236, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-text { font-size: 1rem; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .journal-content {
    padding: 2rem 1.5rem 2rem 3.5rem;
  }

  .journal-binding { left: 36px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
