/* ==========================================================================
   yuval yosef — guides hub. brand-aligned cream + orange + Discovery FS.
   based on the carousel design system (06-claude-design/).
   ========================================================================== */

@font-face {
  font-family: 'Discovery FS';
  src: url('/shared/fonts/Discovery_Fs-Ultralight.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Discovery FS';
  src: url('/shared/fonts/Discovery_Fs-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Discovery FS';
  src: url('/shared/fonts/Discovery_Fs-Demibold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Discovery FS';
  src: url('/shared/fonts/Discovery_Fs-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #FBF6F0;
  --bg-canvas: #f3f1ec;
  --surface: #ffffff;
  --peach: #FFE8DC;
  --peach-soft: #FFF0E5;
  --ink: #1A1410;
  --ink-soft: rgba(26, 20, 16, 0.7);
  --ink-mute: rgba(26, 20, 16, 0.55);
  --stroke: rgba(26, 20, 16, 0.08);
  --stroke-strong: rgba(26, 20, 16, 0.15);

  --orange: #FF6A00;
  --orange-glow: #FF7A1F;
  --orange-deep: #C94400;
  --orange-soft: rgba(255, 106, 0, 0.12);

  --shadow-sm: 0 8px 24px rgba(26, 20, 16, 0.04);
  --shadow-md: 0 14px 40px rgba(26, 20, 16, 0.06);
  --shadow-lg: 0 30px 80px rgba(26, 20, 16, 0.08);
  --shadow-orange: 0 14px 40px rgba(255, 106, 0, 0.30);

  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Discovery FS', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Soft orange orb glows in background — matches carousel cover style */
body::before {
  content: "";
  position: fixed;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 122, 31, 0.18) 0%,
    rgba(255, 106, 0, 0.10) 40%,
    transparent 70%);
  z-index: -2;
  pointer-events: none;
  filter: blur(40px);
}
body::after {
  content: "";
  position: fixed;
  bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 68, 0, 0.08) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
  filter: blur(40px);
}

a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.page {
  min-height: 100vh;
  padding: 80px 0 60px;
  position: relative;
}

/* ==========================================================================
   Typography (Discovery FS — only)
   ========================================================================== */

h1, h2, h3 { font-family: 'Discovery FS', sans-serif; font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); }

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 800; letter-spacing: -0.015em; }

.highlight {
  background: linear-gradient(180deg, var(--orange-glow), var(--orange-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 3px;
  background: var(--orange);
}

.subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 680px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 48px;
}

p { font-weight: 500; }
strong { font-weight: 800; color: var(--orange); }

/* ==========================================================================
   Buttons (orange filled, rounded — matches carousel CTA pills)
   ========================================================================== */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 18px 36px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-orange);
  text-decoration: none;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(255, 106, 0, 0.4);
  color: #fff;
}
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { background: var(--ink-mute); cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--stroke-strong);
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: var(--peach-soft); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--orange); }

/* ==========================================================================
   Hub — guide cards (matching carousel pricing/grid card style)
   ========================================================================== */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.guide-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.guide-card::before {
  content: "";
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 31, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.guide-card .card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange);
  background: var(--peach-soft);
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 99px;
  align-self: flex-start;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.guide-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.guide-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.guide-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}
.guide-card .card-arrow::after {
  content: "←";
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.guide-card:hover .card-arrow::after { transform: translateX(-4px); }

.guide-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg);
}
.guide-card.disabled .card-arrow { color: var(--ink-mute); }
.guide-card.disabled .card-arrow::after { content: "•"; }
.guide-card.disabled .card-tag { background: var(--stroke); color: var(--ink-mute); }

/* ==========================================================================
   Form (gating page)
   ========================================================================== */

.magnetic-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 44px 36px;
  max-width: 560px;
  margin: 40px auto 0;
  position: relative;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.magnetic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange-glow), var(--orange), var(--orange-deep));
}
.magnetic-card::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 31, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.form-subtitle {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.form-field {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--stroke);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.form-field:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface);
}
.form-field::placeholder { color: var(--ink-mute); font-weight: 500; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.form-checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--orange);
  width: 16px; height: 16px;
}

.form-error {
  color: var(--orange-deep);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 12px 0;
  min-height: 1.2em;
}

.form-success { text-align: center; padding: 32px 0; position: relative; z-index: 1; }
.form-success h2 {
  background: linear-gradient(180deg, var(--orange-glow), var(--orange-deep));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

#submit-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Read page (interactive content)
   ========================================================================== */

.read-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(251, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 32px;
}

.read-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--stroke);
}
.read-section:last-child { border-bottom: none; }

.read-section h2 { color: var(--ink); margin-bottom: 24px; }
.read-section p, .read-section li {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 500;
}
.read-section ul, .read-section ol { padding-right: 28px; }

.stat-block {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  padding: 32px 36px;
  margin: 36px 0;
  border-radius: 18px;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}
.stat-block::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 220px; height: 220px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  filter: blur(40px);
}
.stat-block .stat-num {
  font-size: 4rem; font-weight: 900;
  line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 8px;
  position: relative;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .page { padding: 48px 0 40px; }
  .container { padding: 0 20px; }
  .magnetic-card { padding: 32px 24px; }
  .guides-grid { grid-template-columns: 1fr; gap: 18px; }
  h1 { font-size: 2.4rem; }
}
