/* thatnewone shared styles - matched to app design */
:root {
  /* Navy/midnight palette to match app */
  --bg: #0e1a2e;
  --bg-soft: #152238;
  --bg-card: #1a2842;
  --bg-elevated: #1f2d4a;
  --ink: #0a1322;

  /* Accent: pink-to-purple gradient */
  --purple: #a855f7;
  --magenta: #c084fc;
  --pink: #ec4899;
  --pink-soft: #f0a3d4;
  --gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);

  /* Supporting */
  --mint: #6ee7b7;
  --mint-soft: rgba(110, 231, 183, 0.15);

  /* Text */
  --text: #e8eef7;
  --text-soft: #9ba9c2;
  --text-faint: #5e6b85;
  --text-label: #6b7a96;

  /* Lines */
  --line: rgba(155, 169, 194, 0.12);
  --line-strong: rgba(155, 169, 194, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(168, 85, 247, 0.08), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(236, 72, 153, 0.08), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
::selection { background: var(--purple); color: white; }
a { color: var(--magenta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink-soft); }
img, svg { max-width: 100%; height: auto; }

.display { font-family: 'Playfair Display', serif; font-weight: 400; letter-spacing: -0.01em; font-style: italic; }
.italic { font-style: italic; }

/* === NAV === */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(14, 26, 46, 0.85);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 400; font-style: italic; font-size: 1.4rem;
  letter-spacing: -0.01em; color: var(--text);
}
.logo a { color: var(--text); }
.logo a:hover { color: var(--magenta); }
.logo .dot { color: var(--pink); font-style: normal; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: white; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  font-weight: 600; font-size: 0.85rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.4);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -4px rgba(236, 72, 153, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(155, 169, 194, 0.05);
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: none;
}

/* === SHARED PAGE LAYOUT === */
.page-hero { padding: 9rem 1.5rem 3rem; max-width: 1100px; margin: 0 auto; }
.page-hero .eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-label); font-weight: 600; margin-bottom: 1.25rem;
  display: inline-block;
}
.page-hero h1.display {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1; margin-bottom: 1.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.page-hero h1 .italic { font-style: italic; }
.page-hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--text-soft);
  max-width: 38rem;
  line-height: 1.6;
}

.page-content { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--magenta);
  letter-spacing: -0.01em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}
.page-content p {
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.page-content ul, .page-content ol { margin: 0 0 1.5rem 1.25rem; color: var(--text-soft); }
.page-content li { margin-bottom: 0.5rem; line-height: 1.65; }
.page-content strong { color: var(--text); font-weight: 600; }
.page-content em { color: var(--magenta); font-style: italic; }
.page-content blockquote {
  border-left: 2px solid var(--magenta);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
}
.page-content a { color: var(--magenta); border-bottom: 1px solid rgba(192, 132, 252, 0.3); }
.page-content a:hover { color: var(--pink-soft); border-bottom-color: var(--pink-soft); }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.last-updated {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* === FOOTER === */
footer.site-footer {
  padding: 3.5rem 1.5rem 2rem;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
footer h5 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-label); margin-bottom: 1.25rem; font-weight: 600;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.7rem; }
footer a {
  color: var(--text-soft); text-decoration: none;
  font-size: 0.9rem; border: none;
}
footer a:hover { color: var(--magenta); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem; max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-faint);
  flex-wrap: wrap; gap: 1rem;
}

/* === FORM === */
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-label);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ba9c2' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === ANIMATION === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* === RESPONSIVE === */
@media (max-width: 1100px) { .footer-inner { gap: 2rem; } }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { display: none; }
  .page-hero { padding-top: 6.5rem; }
}

@media (max-width: 640px) {
  nav.site-nav { padding: 0.85rem 1rem; }
  .logo { font-size: 1.2rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.78rem; }
  .page-hero { padding: 6rem 1.25rem 2.5rem; }
  .page-content { padding: 2rem 1.25rem 4rem; }
  .page-content p { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  footer.site-footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; font-size: 0.75rem; }
  .callout { padding: 1.25rem; }
  .last-updated { margin-bottom: 2rem; }
}

@media (max-width: 900px) {
  .form-row input, .form-row select, .form-row textarea { font-size: 1rem; padding: 1rem 1.1rem; }
  .btn { min-height: 44px; padding: 0.95rem 1.5rem; }
}
