/* EFUEL — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

:root {
  /* EFuel brand palette */
  --white: #ffffff;
  --off: #F3F3F3;
  --off-2: #EFEFEF;
  --ink: #0B1632;
  --ink2: #55689B;
  --ink3: #898989;
  --line: #E5E4E9;
  --primary: #071191;
  --primary-dark: #060F81;
  --primary-mid: #6671EA;
  --primary-light: #E8ECFF;
  --accent: #FF515A;
  --accent-mid: #FF7279;
  --accent-light: #FFA6AB;
  --blue-sky: #829FE9;
  --gradient-primary: linear-gradient(180deg, #67B0FF 0%, #0714B0 100%);
  --gradient-soft: linear-gradient(180deg, #C1C6FF 0%, #757FFF 100%);
  --gradient-dark: linear-gradient(180deg, #1E305E 0%, #11214A 100%);
  --gradient-glass: linear-gradient(180deg, #FFFFFF 0%, #EDEDED 100%);
  /* Legacy aliases */
  --green: var(--primary);
  --green-light: var(--primary-light);
  --green-mid: var(--primary-mid);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-home {
  background: var(--white);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--ink2); }

/* ─── NAV (site header only — not in-phone tab bars) ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  width: 50px; height: 50px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer-logo .logo-mark {
  width: 26px;
  height: 26px;
  padding: 6px;
  background: var(--white);
  border-radius: 10px;
  box-sizing: content-box;
  object-fit: contain;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--ink2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-dl {
  display: flex; align-items: center; gap: 10px;
}
.btn-nav {
  background: var(--primary); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-size: 0.84rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--accent); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: all 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #FFFFFF 0%, #F3F3F3 45%, rgba(193, 198, 255, 0.18) 100%);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-left { max-width: 540px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.hero-label::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub {
  font-size: 1.05rem; line-height: 1.75; color: var(--ink2);
  max-width: 440px; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gradient-primary); color: var(--white);
  padding: 0.75rem 1.8rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(7, 17, 145, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(7, 17, 145, 0.32); }
.btn-secondary {
  background: transparent; color: var(--primary);
  padding: 0.75rem 1.8rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--primary-mid); display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 81, 90, 0.06); transform: translateY(-2px); }
.store-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  display: block;
}

/* Hero phone mockup */
.hero-right { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--gradient-soft); opacity: 0.55;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.phone-frame {
  position: relative; z-index: 2;
  width: 240px;
  height: 490px;
  background: var(--white);
  border-radius: 38px;
  border: 1.5px solid var(--line);
  box-shadow: 0 32px 80px rgba(7, 17, 145, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.phone-bar {
  height: 36px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-notch { width: 56px; height: 6px; background: var(--line); border-radius: 4px; }
.phone-body { padding: 1rem; }

/* Hero — custom EFUEL app UI (not a screenshot) */
.hero-phone-ui {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0.55rem 0.65rem 2.6rem;
  display: flex;
  flex-direction: column;
  background: var(--off);
  gap: 0.45rem;
  overflow: hidden;
}
.hero-app-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.hero-app-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.hero-app-title {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.hero-app-actions {
  display: flex;
  gap: 0.35rem;
}
.hero-app-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--primary-light);
  opacity: 0.9;
}
.hero-app-map {
  position: relative;
  flex: 1;
  min-height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f4e8 0%, #dce8fc 45%, #eef0f8 100%);
}
.hero-map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
}
.hero-map-road--h {
  top: 42%;
  left: 8%;
  right: 10%;
  height: 5px;
}
.hero-map-road--v {
  top: 15%;
  bottom: 20%;
  left: 48%;
  width: 5px;
}
.hero-map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(7, 17, 145, 0.2);
}
.hero-map-pin--1 {
  top: 22%;
  left: 28%;
  background: linear-gradient(135deg, #ff6b00 0%, #071191 100%);
}
.hero-map-pin--2 {
  top: 38%;
  right: 22%;
  background: linear-gradient(135deg, #e31e24 0%, #0033a0 100%);
}
.hero-map-pin--3 {
  bottom: 28%;
  left: 18%;
  background: var(--primary);
}
.hero-map-user {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 14px solid var(--primary);
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 2px 4px rgba(7, 17, 145, 0.35));
}
.hero-app-sheet {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 14px 14px 10px 10px;
  padding: 0.45rem 0.5rem 0.5rem;
  box-shadow: 0 -4px 16px rgba(7, 17, 145, 0.06);
}
.hero-sheet-handle {
  width: 28px;
  height: 3px;
  margin: 0 auto 0.4rem;
  background: var(--line);
  border-radius: 3px;
}
.hero-sheet-title {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.hero-sheet-title span {
  font-weight: 500;
  color: var(--ink3);
}
.hero-station-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.35rem;
  border-radius: 10px;
  margin-bottom: 0.3rem;
}
.hero-station-card:last-child { margin-bottom: 0; }
.hero-station-card--active {
  background: var(--primary-light);
  border: 1px solid rgba(102, 113, 234, 0.25);
}
.hero-station-brand {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e31e24, #0033a0);
  color: var(--white);
  font-size: 0.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-station-brand--io {
  background: linear-gradient(135deg, #ff6b00, #071191);
}
.hero-station-info { flex: 1; min-width: 0; }
.hero-station-name {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-station-meta {
  font-size: 0.46rem;
  color: var(--ink3);
  margin-top: 0.1rem;
}
.hero-station-cta {
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-primary);
  padding: 0.25rem 0.45rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.hero-app-nav {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.5rem;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  height: auto;
  padding: 0.35rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(7, 17, 145, 0.08);
  backdrop-filter: none;
}
.hero-nav-item {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--off);
  position: relative;
}
.hero-nav-item--active {
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1.5px rgba(7, 17, 145, 0.15);
}
.hero-nav-item--active::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.hero-nav-item:nth-child(2)::after {
  content: '';
  position: absolute;
  inset: 5px 6px;
  border: 1.5px solid var(--ink3);
  border-radius: 2px;
  background: transparent;
  clip-path: none;
}
.hero-nav-item:nth-child(3)::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 8px;
  background: linear-gradient(to top, var(--ink3) 35%, transparent 35%);
  border-radius: 1px 1px 0 0;
  clip-path: none;
}
.hero-nav-item:nth-child(4)::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--ink3);
  background: transparent;
  clip-path: none;
}

/* Floating badge */
.float-badge {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.6rem 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 500; color: var(--ink);
  animation: float 5s 1s ease-in-out infinite;
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.float-badge .dot--primary { background: var(--primary); }
.badge-top { top: 14%; right: -2%; }
.badge-bottom { bottom: 18%; left: -2%; }

/* ─── SECTIONS COMMON ─── */
.section { padding: 7rem 5%; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}
.section-rule { width: 40px; height: 1.5px; background: var(--gradient-primary); margin-bottom: 1rem; }
.section-head { margin-bottom: 1rem; }
.section-desc { font-size: 1rem; color: var(--ink2); max-width: 500px; line-height: 1.75; margin-bottom: 3rem; }

/* ─── CONVENIENCE ─── */
.conv { background: var(--off); }
.conv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5px; background: var(--line); border-radius: var(--radius); overflow: hidden;
}
.conv-card {
  background: var(--white); padding: 2.2rem 2rem;
  transition: background 0.25s var(--ease);
}
.conv-card:hover { background: var(--off); }
.conv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.conv-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.conv-card p { font-size: 0.875rem; color: var(--ink3); line-height: 1.6; }

/* ─── HOW IT WORKS ─── */
.hiw-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step {
  display: flex; gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.2s;
}
.hiw-step:first-child { padding-top: 0; }
.hiw-step:last-child { border-bottom: none; }
.step-num-wrap {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--off); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ink3);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hiw-step.active .step-num-wrap { background: var(--green); border-color: var(--green); color: var(--white); }
.hiw-step-text h3 { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.hiw-step-text p { font-size: 0.875rem; color: var(--ink3); line-height: 1.6; }
.hiw-step:not(.active) { opacity: 0.55; }
.hiw-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hiw-phone {
  width: 230px; height: 470px;
  background: var(--white); border-radius: 36px;
  border: 1.5px solid var(--line);
  box-shadow: 0 24px 64px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.hiw-phone-bar { height: 40px; background: var(--off); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hiw-phone-body {
  flex: 1;
  min-height: 0;
  padding: 1.2rem;
  overflow: hidden;
}
.hiw-phone.hiw-phone--screenshot {
  width: 230px;
  height: auto;
  overflow: hidden;
}
.hiw-phone--screenshot .hiw-phone-bar { display: none; }
.hiw-phone--screenshot .hiw-phone-body {
  padding: 0;
  flex: none;
  height: auto;
  overflow: visible;
}
.hiw-screenshot {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.hiw-card {
  background: var(--off); border-radius: 12px; padding: 1rem;
  margin-bottom: 0.7rem;
}
.hiw-card-title { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink3); margin-bottom: 0.4rem; }
.hiw-card-title--phone { font-size: 0.58rem; letter-spacing: 0.07em; margin-bottom: 0.6rem; }
.hiw-card-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.hiw-card-sub { font-size: 0.65rem; color: var(--ink3); margin-top: 0.2rem; }
.hiw-tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--green-light); color: var(--green);
  border-radius: 100px; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.04em; margin-top: 0.5rem;
}

/* ─── KEY FEATURES ─── */
.features { background: var(--off); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feat {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.1rem;
}
.feat h3 { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.feat p { font-size: 0.85rem; color: var(--ink3); line-height: 1.6; }

/* ─── COMING SOON ─── */
.coming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.coming-card {
  background: var(--off); border-radius: var(--radius); padding: 2.2rem;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.coming-card::after {
  content: 'Coming Soon';
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink3); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.coming-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.7rem; color: var(--ink); }
.coming-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.coming-card li {
  font-size: 0.875rem; color: var(--ink2); padding-left: 1.1rem; position: relative;
}
.coming-card li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ─── CONTACT ─── */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-info p { font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-status--error {
  background: rgba(255, 81, 90, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(255, 81, 90, 0.35);
}
.form-status--info {
  background: rgba(7, 17, 145, 0.08);
  color: var(--primary);
  border: 1px solid rgba(7, 17, 145, 0.2);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
label { font-size: 0.8rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; background: var(--off); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; color: var(--ink);
  transition: border-color 0.2s; outline: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, select:focus, textarea:focus { border-color: var(--primary-mid); background: var(--white); box-shadow: 0 0 0 3px rgba(102, 113, 234, 0.15); }
textarea { height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  background: var(--primary); color: var(--white);
  border: none; padding: 0.85rem 2rem; border-radius: 100px;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  border-top: none;
  padding: 3rem 5%;
  background: var(--gradient-dark);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.up { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--line); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #nav {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 68px;
    padding-left: clamp(1rem, 5vw, 5%);
    padding-right: clamp(1rem, 5vw, 5%);
  }
  .nav-logo { flex-shrink: 0; }
  .nav-dl { display: none; }
  .hamburger {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 4;
    gap: 0;
    margin: 0;
    padding: 0.35rem 0 1rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hamburger span { transition: transform 0.2s var(--ease), opacity 0.2s; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-right { display: none; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-visual { display: none; }
  .coming-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 600px) {
  .section { padding: 4.5rem 6%; }
  .hero { padding: 90px 6% 50px; }
  #nav { padding-left: 6%; padding-right: 6%; }
  .conv-grid { grid-template-columns: 1fr; }
}

/* ─── FIRST-VISIT SPLASH (4s) ─── */
html.splash-active body { overflow: hidden; }
html.splash-skip #splash { display: none !important; }

#splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
#splash::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(237,237,237,0.35) 40%, rgba(193,198,255,0.22) 100%);
  pointer-events: none;
}
.splash-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.35rem;
  text-align: center;
}
.splash-logo {
  width: clamp(140px, 32vw, 200px);
  height: auto;
  object-fit: contain;
  opacity: 0;
}
.splash-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.1rem, 8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-height: 1.2em;
  white-space: nowrap;
}
.splash-tagline.typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: splashCursorBlink 0.55s step-end infinite;
}
.splash-tagline em {
  font-style: normal;
  color: var(--accent);
}

#splash.splash-animate .splash-logo {
  animation: splashDissolveIn 1.1s var(--ease) forwards;
}
#splash.splash-animate {
  animation: splashOverlayOut 0.6s var(--ease) 3.4s forwards;
}

@keyframes splashDissolveIn {
  from { opacity: 0; filter: blur(14px); transform: scale(0.94); }
  to   { opacity: 1; filter: blur(0);   transform: scale(1); }
}
@keyframes splashOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes splashCursorBlink {
  50% { opacity: 0; }
}

/* ─── LEGAL PAGES ─── */
body.page-legal {
  background: var(--off);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
body.page-legal img {
  max-width: 100%;
  height: auto;
}
body.page-legal nav {
  padding-left: clamp(0.875rem, 4vw, 5%);
  padding-right: clamp(0.875rem, 4vw, 5%);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  gap: 0.5rem;
  box-sizing: border-box;
}
body.page-legal .nav-logo {
  min-width: 0;
  flex-shrink: 0;
}
body.page-legal .nav-logo .logo-mark {
  width: clamp(32px, 9vw, 50px);
  height: clamp(32px, 9vw, 50px);
}
body.page-legal .nav-back {
  font-size: clamp(0.72rem, 2.5vw, 0.875rem);
  min-width: 0;
  flex: 1 1 auto;
  max-width: 62%;
  text-align: right;
  line-height: 1.3;
  flex-shrink: 1;
  overflow-wrap: anywhere;
}
.legal-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.page-legal .legal-hero,
body.page-legal .legal-layout,
body.page-legal footer {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.page-legal h1,
body.page-legal h2,
body.page-legal h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nav-back {
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }
.nav-back::before { content: '←'; }
.legal-hero {
  padding: clamp(5.5rem, 14vw, 7.5rem) clamp(0.875rem, 4vw, 5%) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(165deg, #FFFFFF 0%, #F3F3F3 50%, rgba(193, 198, 255, 0.2) 100%);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  width: 100%;
}
.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
  overflow-wrap: break-word;
}
.legal-hero p {
  color: var(--ink2);
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  max-width: 560px;
  line-height: 1.6;
}
.legal-layout {
  max-width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(0.875rem, 4vw, 2.5rem) clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  box-sizing: border-box;
  width: 100%;
}
.legal-toc {
  position: static;
  top: auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  align-self: start;
}
.legal-toc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}
.legal-toc-panel summary {
  list-style: none;
  cursor: default;
  min-width: 0;
  overflow: hidden;
}
.legal-toc-panel summary::-webkit-details-marker { display: none; }
.legal-toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0;
  padding: 1rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.legal-toc-title::after {
  content: '';
  display: none;
}
.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: min(70vh, calc(100vh - 120px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.legal-toc-list li { min-width: 0; }
.legal-toc a {
  font-size: clamp(0.72rem, 2vw, 0.78rem);
  color: var(--ink2);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 0.2s, background 0.2s;
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
  outline: none;
}
.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3.5vw, 2.5rem) clamp(0.875rem, 3vw, 2.25rem);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.legal-content :is(p, li, h2, a, strong, em, span, ul) {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.legal-content .legal-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  line-height: 1.25;
  overflow-wrap: break-word;
}
.legal-section {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 3.2vw, 1.2rem);
  font-weight: 600;
  color: var(--primary);
  margin: clamp(1.5rem, 4vw, 2rem) 0 0.85rem;
  scroll-margin-top: calc(68px + 1.25rem);
  line-height: 1.35;
  overflow-wrap: break-word;
}
.legal-content > p {
  color: var(--ink2);
  font-size: clamp(0.86rem, 2.4vw, 0.92rem);
  line-height: 1.75;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}
.legal-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.legal-list li {
  position: relative;
  min-width: 0;
  font-size: clamp(0.84rem, 2.3vw, 0.9rem);
  line-height: 1.7;
  color: var(--ink2);
  padding-left: 0.85rem;
  border-left: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 2px;
  background: var(--primary-light);
}
.legal-list li strong { color: var(--ink); font-weight: 600; }
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.legal-content a:hover { color: var(--accent); }
body.page-legal footer {
  padding-left: clamp(1rem, 4vw, 5%);
  padding-right: clamp(1rem, 4vw, 5%);
}
body.page-legal footer .footer-inner {
  max-width: min(1160px, 100%);
  min-width: 0;
  width: 100%;
}
body.page-legal .footer-links {
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-width: 0;
  max-width: 100%;
}
body.page-legal .footer-links a {
  overflow-wrap: anywhere;
}
body.page-legal .footer-copy {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.footer-links a[aria-current="page"] { color: var(--accent-light); }

/* Legal — tablet: stack, TOC on top */
@media (max-width: 1023px) {
  .legal-toc-list {
    max-height: min(42vh, 280px);
  }
  .legal-toc-panel summary {
    cursor: pointer;
  }
  .legal-toc-title::after {
    display: inline-block;
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
    transition: transform 0.2s var(--ease);
  }
  .legal-toc-panel[open] .legal-toc-title::after {
    content: '−';
  }
}

/* Legal — phone & small tablet */
@media (max-width: 900px) {
  body.page-legal .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  body.page-legal .footer-links {
    width: 100%;
  }
}

/* Legal — phone */
@media (max-width: 639px) {
  body.page-legal nav { height: 60px; }
  .legal-hero {
    padding-top: 5rem;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
  .legal-layout {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    gap: 0.875rem;
  }
  .legal-content {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    border-radius: calc(var(--radius) - 2px);
  }
  .legal-toc-panel,
  .legal-toc-title {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
  .legal-toc-list {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .legal-section { scroll-margin-top: calc(60px + 1rem); }
  .legal-toc-list {
    max-height: min(50vh, 240px);
    padding-bottom: 0.85rem;
  }
  body.page-legal .legal-content .legal-h2 {
    font-size: 1.25rem;
  }
  body.page-legal .legal-section {
    font-size: 1rem;
  }
}

/* Legal — desktop: sidebar TOC always expanded */
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: minmax(0, min(220px, 26vw)) minmax(0, 1fr);
  }
  .legal-toc {
    position: sticky;
    top: calc(68px + 1rem);
    width: auto;
    max-width: min(220px, 26vw);
  }
  .legal-toc-panel summary {
    pointer-events: none;
    cursor: default;
  }
  .legal-toc-title::after { display: none !important; }
  .legal-toc-list {
    padding-top: 0;
    max-height: min(70vh, calc(100vh - 140px));
  }
}
.contact-dl {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact-dl-label {
  font-size: 0.8rem;
  color: var(--ink3);
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-dl-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-sm {
  font-size: 0.82rem;
  padding: 0.6rem 1.3rem;
}

/* ─── SUPPORT PAGE ─── */
.support-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 5% 5rem;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.support-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(7, 17, 145, 0.04);
}
.support-aside h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.support-aside p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.support-topics { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.support-topics li {
  font-size: 0.88rem;
  color: var(--ink2);
  padding-left: 1.1rem;
  position: relative;
}
.support-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.support-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 40px rgba(7, 17, 145, 0.04);
}
.support-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.support-card > p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.issue-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.issue-legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.issue-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.issue-option {
  position: relative;
}
.issue-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.issue-option span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--off);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.issue-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.issue-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(102, 113, 234, 0.15);
}
@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .support-main { padding: 2rem 6% 3.5rem; }
  .support-card, .support-aside { padding: 1.5rem 1.25rem; }
}
