@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:         #07060A;
  --bg2:        #0E0C14;
  --fg:         #E8E4DC;
  --fg-dim:     #7A7570;
  --fg-mid:     #B5B0A8;
  --orange:     #F26B22;
  --purple:     #7A1F9C;
  --rule:       rgba(232, 228, 220, 0.10);
  --rule-bright:rgba(232, 228, 220, 0.22);
  --font-d:     'Fraunces', Georgia, serif;
  --font-m:     'JetBrains Mono', ui-monospace, monospace;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-m);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }

/* ─── Noise grain overlay ───────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ─── Gradient mesh (landing page) ─────────────────────────────────────────── */
.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mesh::before {
  content: '';
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(242,107,34,0.18) 0%, transparent 65%);
  top: -20vmax;
  left: -10vmax;
  animation: drift-a 38s ease-in-out infinite alternate;
}

.mesh::after {
  content: '';
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(122,31,156,0.22) 0%, transparent 65%);
  bottom: -15vmax;
  right: -10vmax;
  animation: drift-b 44s ease-in-out infinite alternate;
}

.mesh-accent {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(122,31,156,0.12) 0%, transparent 60%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drift-c 52s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(8vw, 5vh) scale(1.08); }
  66%  { transform: translate(-4vw, 12vh) scale(0.96); }
  100% { transform: translate(12vw, -6vh) scale(1.04); }
}

@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-10vw, -8vh) scale(1.1); }
  66%  { transform: translate(6vw, -14vh) scale(0.94); }
  100% { transform: translate(-14vw, 8vh) scale(1.06); }
}

@keyframes drift-c {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-48%, -54%) scale(1.15); }
  100% { transform: translate(-52%, -46%) scale(0.9); }
}

/* ─── Shared page wrapper ───────────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ─── Gradient rule (accent line) ──────────────────────────────────────────── */
.grad-rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--purple), transparent);
  border: none;
  margin: 0;
}

/* ─── ===== LANDING PAGE ===== ──────────────────────────────────────────────── */

.landing-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 0;
  padding: clamp(40px, 7vw, 96px) clamp(32px, 7vw, 96px);
  align-items: end;
}

.landing-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding-right: 48px;
  padding-bottom: 48px;
}

.status-label {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
}

.status-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
  50% { opacity: 0.5; box-shadow: 0 0 2px var(--orange); }
}

.logo-mark {
  width: clamp(80px, 12vw, 140px);
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.2s forwards;
}

.landing-headline {
  font-family: var(--font-d);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 600;
  font-variation-settings: 'opsz' 72, 'wght' 600;
  line-height: 1.02;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  overflow: hidden;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
}
.headline-line:nth-child(1) { animation: fade-up 0.9s var(--ease-out) 0.35s forwards; }
.headline-line:nth-child(2) { animation: fade-up 0.9s var(--ease-out) 0.5s forwards; }

.headline-em {
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'wght' 500;
  color: var(--fg);
}

.landing-rule-wrap {
  margin: 28px 0 28px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.65s forwards;
}

.landing-rule-wrap .grad-rule {
  max-width: clamp(120px, 20vw, 260px);
}

.landing-body {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--fg-mid);
  max-width: 40ch;
  line-height: 1.7;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.75s forwards;
}

/* Vertical side-label */
.side-label {
  grid-column: 2;
  grid-row: 1 / 3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  align-self: center;
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1s forwards;
}

/* Landing footer */
.landing-footer {
  grid-column: 1 / 3;
  grid-row: 2;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 1.1s forwards;
}

.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--fg); }

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

@keyframes fade-in {
  to { opacity: 1; }
  from { opacity: 0; }
}

/* ─── ===== INNER PAGES (contact, policy, terms) ===== ─────────────────────── */

/* Header band */
.inner-header {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(122,31,156,0.08) 0%, transparent 100%);
}

.inner-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.inner-logo {
  height: 36px;
  width: auto;
}

.back-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--fg); }
.back-link::before { content: '←'; font-size: 13px; }

/* Inner main content */
.inner-main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) 80px;
  width: 100%;
}

/* Page title area */
.inner-title-block {
  margin-bottom: 56px;
}

.inner-eyebrow {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.inner-h1 {
  font-family: var(--font-d);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  font-variation-settings: 'opsz' 48, 'wght' 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

.inner-h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 48, 'wght' 400;
}

.inner-title-block .grad-rule { max-width: 80px; }

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 40px;
}

.contact-card {
  background: rgba(232, 228, 220, 0.03);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-card:hover {
  background: rgba(232, 228, 220, 0.055);
  border-color: var(--rule-bright);
}

.contact-card:first-child { grid-column: 1 / 3; }

/* Account deletion card gets accent treatment */
.card-deletion {
  border-left: 2px solid var(--orange) !important;
}

.card-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.card-deletion .card-label { color: var(--orange); }
.card-support .card-label { color: var(--fg-dim); }
.card-feedback .card-label { color: var(--fg-dim); }
.card-company .card-label { color: var(--fg-dim); }

.card-title {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: 'opsz' 20, 'wght' 600;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-body {
  font-size: 13px;
  color: var(--fg-mid);
  line-height: 1.7;
}

.card-body p + p { margin-top: 10px; }

.card-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 228, 220, 0.3);
  transition: text-decoration-color 0.2s;
}

.card-body a:hover { text-decoration-color: var(--fg); }

.card-body strong { color: var(--fg); font-weight: 500; }

.deletion-list {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deletion-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-mid);
  line-height: 1.5;
}

.deletion-list li::before {
  content: '→';
  color: var(--orange);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.email-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(242,107,34,0.4);
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.email-action:hover {
  background: rgba(242,107,34,0.08);
  border-color: rgba(242,107,34,0.7);
  color: var(--orange) !important;
}

.sla-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(232, 228, 220, 0.04);
  border-left: 2px solid var(--rule-bright);
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ─── Legal prose pages (policy, terms) ────────────────────────────────────── */
.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-d);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  font-variation-settings: 'opsz' 22, 'wght' 600;
  color: var(--fg);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose p {
  font-size: 13.5px;
  color: var(--fg-mid);
  line-height: 1.78;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin: 12px 0 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose ul li, .prose ol li {
  font-size: 13.5px;
  color: var(--fg-mid);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.prose ul li::before {
  content: '–';
  color: var(--fg-dim);
  flex-shrink: 0;
  margin-top: 0;
}

.prose ol { counter-reset: prose-counter; }
.prose ol li::before {
  counter-increment: prose-counter;
  content: counter(prose-counter, lower-alpha) '.';
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 228, 220, 0.35);
}

.prose a:hover { text-decoration-color: var(--fg); }

.prose strong { color: var(--fg); font-weight: 500; }

/* Program cards (terms page) */
.program-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 20px 0 24px;
}

.program-card {
  background: rgba(232, 228, 220, 0.03);
  border: 1px solid var(--rule);
  padding: 24px 28px;
}

.program-card:first-child { border-left: 2px solid var(--orange); }
.program-card:last-child  { border-left: 2px solid var(--purple); }

.program-name {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 600;
  font-variation-settings: 'opsz' 17, 'wght' 600;
  color: var(--fg);
  margin-bottom: 14px;
}

.program-dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-dl dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2px;
}

.program-dl dd {
  font-size: 13px;
  color: var(--fg-mid);
  margin-left: 0;
  margin-bottom: 6px;
}

/* ─── Shared inner footer ───────────────────────────────────────────────────── */
.inner-footer {
  border-top: 1px solid var(--rule);
  max-width: 900px;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.inner-footer-nav {
  display: flex;
  gap: 20px;
}

.inner-footer-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.inner-footer-nav a:hover { color: var(--fg); }

.inner-footer-copy {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

/* ─── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Landing */
  .landing-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: flex-start;
    padding-top: clamp(48px, 12vw, 80px);
  }

  .landing-content {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }

  .side-label {
    display: none;
  }

  .landing-footer {
    grid-column: 1;
    grid-row: 2;
    margin-top: 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-nav {
    gap: 14px;
    flex-wrap: nowrap;
  }

  .footer-nav a {
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card:first-child { grid-column: 1; }

  /* Program cards */
  .program-cards {
    grid-template-columns: 1fr;
  }

  /* Inner header */
  .inner-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-nav { gap: 16px; }
  .inner-footer-nav { flex-wrap: wrap; gap: 12px; }
}
