/* Refrakt shared design system — used by subpages */

:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --grey-700: #4a4a4a;
  --grey-600: #6b6b6b;
  --grey-400: #9a9a9a;
  --grey-200: #e6e6e6;
  --grey-100: #f2f2f2;
  --white: #ffffff;
  --cream: #fbf8f6;
  --pink-50: #fef2f3;
  --pink-100: #fde4e8;
  --pink-200: #fbd0d7;
  --pink-300: #f7b8c2;
  --orange-300: #ffb07a;
  --orange-400: #ff8c42;
  --orange-500: #f76a2a;
  --gradient: linear-gradient(135deg, #fde4e8 0%, #ffd4b8 50%, #ff8c42 100%);
  --gradient-soft: linear-gradient(180deg, #fef2f3 0%, #fff7f0 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 200;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* NAV (shared) */
.rf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.rf-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.rf-logo {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.rf-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
}
.rf-nav-links { display: flex; gap: 40px; font-size: 13px; font-weight: 300; color: var(--grey-600); }
.rf-nav-links a:hover { color: var(--black); }
.rf-nav-cta {
  font-size: 13px; font-weight: 400;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .25s;
  color: var(--ink);
}
.rf-nav-cta:hover { background: var(--ink); color: var(--white); }

/* PAGE HERO (subpages) */
.rf-page-hero {
  padding: 160px 40px 80px;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}
.rf-page-hero-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.rf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 24px;
}
.rf-eyebrow-line { width: 28px; height: 1px; background: var(--orange-400); }
.rf-page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 20px;
}
.rf-page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink-300), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-page-hero .rf-lede {
  font-size: 18px; font-weight: 300;
  color: var(--grey-600);
  max-width: 640px; margin: 0 auto;
}

/* SECTION primitives */
.rf-section { padding: 100px 40px; }
.rf-section.alt { background: var(--cream); }
.rf-section-inner { max-width: 1080px; margin: 0 auto; }
.rf-section-inner.narrow { max-width: 760px; }

.rf-h2 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
}
.rf-h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink-300), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.rf-p {
  font-size: 16px; font-weight: 300;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.rf-p strong { color: var(--ink); font-weight: 400; }

/* BUTTONS */
.rf-btn-primary {
  display: inline-block;
  padding: 15px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.01em;
  transition: transform .2s, box-shadow .2s;
}
.rf-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(247,106,42,0.5); }
.rf-btn-ghost {
  display: inline-block;
  padding: 15px 24px;
  font-size: 14px; font-weight: 300;
  color: var(--grey-600);
}
.rf-btn-ghost:hover { color: var(--black); }

/* FORM */
.rf-form-card {
  background: rgba(255, 250, 247, 0.6);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 44px 40px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -28px rgba(247, 106, 42, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.04);
}
.rf-form-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 32px;
  margin-top: 32px;
}
.rf-form-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.rf-form-section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.rf-form-section-desc {
  font-size: 13px; font-weight: 300;
  color: var(--grey-600);
  margin-bottom: 22px;
}
.rf-field {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.rf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.rf-field label,
.rf-field-row label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 8px;
}
.rf-field label .req,
.rf-field-row label .req { color: var(--orange-500); }
.rf-input, .rf-select, .rf-textarea {
  font-family: inherit;
  font-size: 15px; font-weight: 300;
  color: var(--ink);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.rf-input:focus, .rf-select:focus, .rf-textarea:focus {
  outline: none;
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}
.rf-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.rf-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.rf-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.rf-check:hover { border-color: var(--orange-300); background: rgba(255,255,255,0.75); }
.rf-check input { margin-top: 3px; accent-color: var(--orange-500); }
.rf-check-text { font-size: 13px; font-weight: 300; color: var(--ink); line-height: 1.4; }
.rf-check input:checked + .rf-check-text { color: var(--ink); font-weight: 400; }
.rf-form-actions {
  display: flex; justify-content: flex-end; gap: 14px;
  margin-top: 32px;
}

/* FOOTER (shared) */
.rf-footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 60px 40px 40px;
  font-size: 13px; font-weight: 300;
}
.rf-foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.rf-foot-inner .rf-logo { color: var(--white); }
.rf-foot-inner .rf-logo .rf-logo-dot { background: var(--gradient); }
.rf-foot-links { display: flex; gap: 36px; }
.rf-foot-links a { color: inherit; }
.rf-foot-links a:hover { color: var(--white); }
.rf-foot-fine {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1280px; margin-left: auto; margin-right: auto;
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-align: center; letter-spacing: 0.05em;
}
.rf-foot-mini-link {
  font-size: 11px; color: rgba(255,255,255,0.5);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; background: none; border: none;
  font-family: inherit;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 1000;
  background: rgba(20, 20, 22, 0.92);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  animation: cookieSlideUp .35s ease-out;
}
.cookie-banner.show { display: block; }
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px; align-items: center;
}
.cookie-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 680px;
}
.cookie-text a { color: var(--orange-300); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-btn {
  font-size: 13px; font-weight: 400;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ck-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
}
.ck-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ck-btn-primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.ck-btn-primary:hover { background: var(--orange-300); border-color: var(--orange-300); color: var(--black); }

/* COOKIE PREFS MODAL */
.cookie-prefs {
  position: fixed; inset: 0;
  z-index: 1100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-prefs.show { display: flex; }
.cookie-prefs-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-prefs-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 520px; width: 100%;
  padding: 36px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3);
  max-height: 90vh; overflow-y: auto;
}
.cookie-prefs-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 26px;
  color: var(--black);
  margin-bottom: 8px;
}
.cp-desc {
  font-size: 14px; font-weight: 300;
  color: var(--grey-600);
  margin-bottom: 28px;
}
.cp-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.cp-row-text strong {
  display: block;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.cp-row-text p {
  font-size: 12px; font-weight: 300;
  color: var(--grey-600); line-height: 1.5;
}
.cp-toggle {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cp-toggle input {
  position: absolute; opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  margin: 0;
}
.cp-slider {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  transition: background .2s;
}
.cp-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cp-toggle input:checked + .cp-slider { background: var(--orange-400); }
.cp-toggle input:checked + .cp-slider::before { transform: translateX(18px); }
.cp-toggle.disabled .cp-slider { background: var(--orange-300); opacity: 0.65; }
.cp-toggle.disabled input { cursor: not-allowed; }
.cp-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 28px;
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .rf-nav { padding: 16px 20px; }
  .rf-nav-links { display: none; }
  .rf-page-hero { padding: 130px 20px 60px; }
  .rf-section { padding: 70px 20px; }
  .rf-form-card { padding: 28px 22px; }
  .rf-field-row, .rf-checks { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-inner { grid-template-columns: 1fr; gap: 14px; }
  .cookie-actions { justify-content: stretch; }
  .ck-btn { flex: 1; text-align: center; padding: 10px 12px; }
  .rf-foot-inner { flex-direction: column; text-align: center; }
  .rf-foot-links { flex-wrap: wrap; justify-content: center; }
}
