/* WePact — shared site styles.
   Palette matches the app's real identity (forest green + coral, from the
   final logo) rather than the previous site's gold/violet scheme. */

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

/* ===== LIGHT THEME (default — clean white, matches the app's real identity) ===== */
:root {
  --green: #16462D;
  --green-deep: #0F3320;
  --coral: #D97A62;
  --coral-deep: #C05F49;
  --bg: #FFFFFF;
  --card: #FBF9F4;
  --ink: #15251B;
  --ink2: rgba(21,37,27,0.65);
  --ink3: rgba(21,37,27,0.42);
  --nav-bg: rgba(255,255,255,0.92);
  --nav-border: rgba(22,70,45,0.12);
  --card-border: rgba(22,70,45,0.10);
  --card-shadow: 0 4px 20px rgba(21,37,27,0.07);
  --how-bg: linear-gradient(135deg, rgba(22,70,45,0.06), rgba(217,122,98,0.08));
  --how-border: rgba(22,70,45,0.08);
  --input-bg: #FFFFFF;
  --input-border: rgba(22,70,45,0.25);
  --input-color: #15251B;
  --icon-green: rgba(22,70,45,0.10);
  --icon-coral: rgba(217,122,98,0.14);
  --footer-bg: rgba(22,70,45,0.07);
  --footer-border: rgba(22,70,45,0.14);
  --toggle-bg: rgba(22,70,45,0.06);
  --toggle-border: rgba(22,70,45,0.18);
}

/* ===== DARK THEME (toggle) ===== */
[data-theme="dark"] {
  --green: #4C8B54;
  --green-deep: #35743D;
  --coral: #EDA48F;
  --coral-deep: #E08A72;
  --bg: #101913;
  --card: #16231B;
  --ink: #F6F1E4;
  --ink2: rgba(246,241,228,0.68);
  --ink3: rgba(246,241,228,0.38);
  --nav-bg: rgba(16,25,19,0.90);
  --nav-border: rgba(246,241,228,0.10);
  --card-border: rgba(246,241,228,0.08);
  --card-shadow: none;
  --how-bg: linear-gradient(135deg, rgba(76,139,84,0.08), rgba(237,164,143,0.06));
  --how-border: rgba(246,241,228,0.06);
  --input-bg: rgba(246,241,228,0.06);
  --input-border: rgba(246,241,228,0.2);
  --input-color: #F6F1E4;
  --icon-green: rgba(76,139,84,0.16);
  --icon-coral: rgba(237,164,143,0.16);
  --footer-bg: rgba(246,241,228,0.05);
  --footer-border: rgba(246,241,228,0.10);
  --toggle-bg: rgba(246,241,228,0.08);
  --toggle-border: rgba(246,241,228,0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a { color: inherit; }

/* ===== NAV ===== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.4s, border-color 0.4s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.nav-logo-text { font-weight: 700; font-size: 18px; color: var(--ink); }
.nav-logo-text .we { color: var(--green); }
.nav-logo-text .pact { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.toggle-btn {
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.toggle-btn:hover { opacity: 0.75; }

.nav-cta {
  background: var(--green);
  color: #fff; border: none;
  padding: 10px 22px; border-radius: 99px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ===== FLOATING BACKGROUND (kept lightweight — no scroll-jacking, no canvas) ===== */
.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hf-item { position: absolute; opacity: 0.08; user-select: none; font-size: 2rem; }
[data-theme="dark"] .hf-item { opacity: 0.09; }
@keyframes hf-rise {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 0.08; }
  90%  { opacity: 0.05; }
  100% { transform: translateY(-120px) rotate(8deg) scale(0.9); opacity: 0; }
}
@keyframes hf-rise-slow {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.08; }
  90%  { opacity: 0.04; }
  100% { transform: translateY(-100px) rotate(-6deg); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-glow-green {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(22,70,45,0.16) 0%, transparent 70%);
  top: 15%; left: 4%; pointer-events: none;
  animation: float-glow 6s ease-in-out infinite;
}
.hero-glow-coral {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(217,122,98,0.18) 0%, transparent 70%);
  top: 15%; right: 4%; pointer-events: none;
  animation: float-glow 6s ease-in-out infinite reverse;
}
@keyframes float-glow {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 720px; }

.hero-logo {
  width: 104px; height: 104px; object-fit: contain; border-radius: 26px;
  margin: 0 auto 20px; display: block;
  animation: fade-in-up 0.8s ease forwards;
  opacity: 0;
  box-shadow: 0 12px 34px rgba(21,37,27,0.18);
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid rgba(217,122,98,0.3);
  color: var(--coral-deep); padding: 8px 20px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: var(--card-shadow);
  animation: fade-in-up 0.8s ease 0.1s forwards; opacity: 0;
}
[data-theme="dark"] .eyebrow-pill { color: var(--coral); }

.hero-title {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: clamp(40px, 7vw, 70px); line-height: 1.08;
  color: var(--ink); margin-bottom: 20px;
  animation: fade-in-up 0.8s ease 0.2s forwards; opacity: 0;
}
.hero-title .accent { color: var(--green); }
[data-theme="dark"] .hero-title .accent { color: var(--green); }

.hero-sub {
  font-size: 17px; color: var(--ink2); line-height: 1.7; margin-bottom: 40px;
  animation: fade-in-up 0.8s ease 0.35s forwards; opacity: 0;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fade-in-up 0.8s ease 0.5s forwards; opacity: 0;
}

.btn-primary {
  background: var(--green);
  color: #fff; border: none; padding: 16px 34px; border-radius: 16px;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 17px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(21,37,27,0.22); }

.btn-ghost {
  background: var(--coral); color: #fff;
  border: none; padding: 16px 30px; border-radius: 16px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s; display: inline-block;
}
.btn-ghost:hover { background: var(--coral-deep); color: #fff; transform: translateY(-2px); }

/* ===== "IT'S RARELY THE BIG THINGS" ===== */
.friction-section { padding: 90px 24px; }
.friction-surface {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  border-radius: 32px; padding: 64px 32px;
}
.friction-pills {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin: 44px 0; padding: 0;
}
.friction-pills li {
  border: 1px solid var(--card-border); background: var(--bg);
  padding: 13px 26px; border-radius: 99px;
  font-size: 15px; font-weight: 500; color: var(--ink2);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.friction-pills li:hover { border-color: rgba(217,122,98,0.45); color: var(--ink); transform: translateY(-2px); }
.friction-close {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.8vw, 26px); color: var(--ink);
}

/* ===== SECTIONS / FEATURES ===== */
.section { padding: 90px 24px; max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral-deep); margin-bottom: 14px;
  border: 1px solid rgba(217,122,98,0.35); padding: 6px 14px; border-radius: 99px;
}
[data-theme="dark"] .section-tag { color: var(--coral); }

.section-title {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(28px, 4.5vw, 46px); font-weight: 300; line-height: 1.12;
  color: var(--ink); margin-bottom: 18px;
}
.section-sub { font-size: 16px; color: var(--ink2); line-height: 1.7; max-width: 460px; }

.features-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px; margin-top: 56px;
}

.feature-card {
  background: var(--card); border-radius: 24px; padding: 34px 30px;
  border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex: 1 1 300px; max-width: 340px;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity 0.3s;
  background: linear-gradient(90deg, var(--green), var(--coral));
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(217,122,98,0.35); box-shadow: 0 14px 34px rgba(21,37,27,0.10); }
.feature-card:hover::before { opacity: 1; }

.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon.ig { background: var(--icon-green); color: var(--green); }
.feature-icon.ic { background: var(--icon-coral); color: var(--coral-deep); }
[data-theme="dark"] .feature-icon.ic { color: var(--coral); }
.feature-icon svg { width: 24px; height: 24px; }

.feature-title { font-family: 'Fraunces', serif; font-style: italic; font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 11px; }
.feature-desc { font-size: 14.5px; color: var(--ink2); line-height: 1.7; }

/* ===== "A CALM, SHARED EVERYDAY" — abstract showcase, no app screenshots ===== */
.showcase-section {
  background: var(--how-bg);
  border-top: 1px solid var(--how-border); border-bottom: 1px solid var(--how-border);
  padding: 90px 24px;
}
.showcase-composition {
  position: relative; max-width: 820px; margin: 64px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  padding: 24px 12px;
}
.showcase-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
@media (max-width: 719px) { .showcase-lines { display: none; } }

.showcase-card {
  position: relative; z-index: 1;
  background: var(--card); border: 1px solid var(--card-border);
  box-shadow: 0 10px 28px rgba(21,37,27,0.10);
  border-radius: 20px; padding: 22px 18px 20px; width: 146px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-card:hover { box-shadow: 0 18px 36px rgba(21,37,27,0.16); z-index: 5; }
.showcase-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.showcase-icon svg { width: 20px; height: 20px; }
.showcase-icon.ig { background: var(--icon-green); color: var(--green); }
.showcase-icon.ic { background: var(--icon-coral); color: var(--coral-deep); }
[data-theme="dark"] .showcase-icon.ic { color: var(--coral); }
.showcase-label { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; font-weight: 600; color: var(--ink); }

@media (min-width: 720px) {
  .showcase-card { margin: 0 -16px; }
  .showcase-card.c1 { transform: rotate(-4deg) translateY(14px); }
  .showcase-card.c2 { transform: rotate(2deg) translateY(-16px); z-index: 2; }
  .showcase-card.c3 { transform: rotate(-2deg) translateY(8px); z-index: 3; }
  .showcase-card.c4 { transform: rotate(3deg) translateY(-12px); z-index: 2; }
  .showcase-card.c5 { transform: rotate(-3deg) translateY(6px); }
  .showcase-card:hover { transform: translateY(-6px) rotate(0deg) scale(1.04); }
}
@media (max-width: 719px) {
  .showcase-composition { gap: 16px; }
  .showcase-card { width: 128px; margin: 0; }
}

/* ===== CTA / WAITLIST ===== */
.cta-section { padding: 90px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-blob {
  position: absolute; width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(22,70,45,0.08) 0%, rgba(217,122,98,0.06) 50%, transparent 80%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.cta-logo { width: 68px; height: 68px; object-fit: contain; margin: 0 auto 20px; display: block; border-radius: 16px; }
.cta-title { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(28px, 5vw, 44px); font-weight: 300; color: var(--ink); margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: var(--ink2); margin-bottom: 32px; line-height: 1.7; }

.wl-field-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.wl-field-group input[type="email"] {
  padding: 17px 24px; border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg); color: var(--input-color);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15.5px;
  outline: none; width: 300px; max-width: 100%; transition: border-color 0.2s;
}
.wl-field-group input[type="email"]:focus { border-color: var(--green); }
.wl-field-group input::placeholder { color: var(--ink3); }
.wl-submit {
  background: var(--green);
  color: #fff; border: none;
  padding: 17px 32px; border-radius: 14px;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 16.5px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.wl-submit:hover { background: var(--green-deep); transform: translateY(-2px); }
.wl-submit:disabled { cursor: default; opacity: 0.8; transform: none; }
.wl-note { font-size: 12px; color: var(--ink3); margin-top: 14px; }
.wl-status { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--green); }
[data-theme="dark"] .wl-status { color: var(--green); }
.wl-status.error { color: var(--coral-deep); }

.cta-secondary-link {
  display: inline-block; margin-top: 22px;
  background: var(--coral); color: #fff;
  padding: 13px 28px; border-radius: 14px; border: none;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-secondary-link:hover { background: var(--coral-deep); color: #fff; transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--footer-bg); border-top: 1px solid var(--footer-border);
  padding: 52px 24px 44px; text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.footer-logo-text { font-weight: 700; font-size: 16px; }
.footer-logo-text .we { color: var(--green); }
.footer-logo-text .pact { color: var(--coral); }
.footer-tagline { font-size: 13px; color: var(--ink2); margin-bottom: 20px; }
.footer-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { font-size: 13.5px; font-weight: 600; color: var(--ink); opacity: 0.78; text-decoration: none; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-meta { font-size: 12px; color: var(--ink2); }

/* ===== SCROLL REVEAL ===== */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LEGAL PAGES ===== */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}
.legal-back {
  background: var(--toggle-bg); color: var(--ink);
  border: 1px solid var(--toggle-border); padding: 8px 18px;
  border-radius: 99px; font-size: 13px; cursor: pointer; font-weight: 600;
  text-decoration: none; display: inline-block;
}
.legal-container { max-width: 780px; margin: 0 auto; padding: 44px 24px 80px; }
.lang-toggle { display: flex; gap: 8px; margin-bottom: 36px; }
.lang-btn {
  padding: 8px 20px; border-radius: 99px; border: 1px solid var(--toggle-border);
  background: transparent; color: var(--ink2); cursor: pointer; font-size: 13px;
  font-family: inherit; transition: all 0.2s;
}
.lang-btn.active { background: linear-gradient(135deg, var(--green), var(--coral)); color: #fff; border-color: transparent; }

.legal-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 10px; }
[data-theme="dark"] .legal-eyebrow { color: var(--coral); }
.legal-title { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(28px, 5vw, 42px); font-weight: 300; color: var(--ink); margin-bottom: 8px; }
.legal-subtitle { font-size: 15px; color: var(--ink2); margin-bottom: 14px; }
.legal-meta { font-size: 12px; color: var(--ink3); margin-bottom: 2px; }
.legal-divider { width: 60px; height: 2px; background: linear-gradient(90deg, var(--green), var(--coral)); border-radius: 2px; margin: 24px 0 36px; }

.legal-block { margin-bottom: 30px; }
.legal-block h2 {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.legal-block h2::before { content: ''; display: inline-block; width: 4px; height: 17px; background: linear-gradient(180deg, var(--green), var(--coral)); border-radius: 2px; flex-shrink: 0; }
.legal-block h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.legal-block p { font-size: 14px; line-height: 1.8; color: var(--ink2); margin-bottom: 10px; }
.legal-block ul { padding-left: 20px; margin-bottom: 12px; }
.legal-block ul li { font-size: 14px; line-height: 1.8; color: var(--ink2); margin-bottom: 6px; }

.legal-table-wrap { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; font-size: 13px; line-height: 1.5; border: 1px solid var(--card-border); color: var(--ink2); vertical-align: top; }
.legal-table th { background: var(--card); font-weight: 700; color: var(--ink); }

.legal-lang-block[hidden] { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  nav.site-nav { padding: 12px 16px; }
  .toggle-btn { padding: 7px 10px; font-size: 12px; }
  .nav-cta { padding: 9px 16px; font-size: 12px; }
  .wl-field-group { flex-direction: column; align-items: center; }
  .wl-field-group input[type="email"] { width: 100%; }
  .legal-container { padding: 36px 18px 64px; }
  .friction-surface { padding: 44px 20px; border-radius: 24px; }
}
