/* ============================================
   SaltRig Pro — Coastal v4
   Richer sand base, sky + navy section rhythm,
   tight spacing, gated sample plan, IBM Plex.
   ============================================ */

:root {
  /* Backgrounds */
  --sand: #F3ECDF;
  --sand-warm: #EDE3D0;
  --sky: #DDEAF2;
  --navy: #0C2238;
  --navy-soft: #143350;
  --card: #FFFFFF;

  /* Text */
  --ink: #14293E;
  --muted: #56697C;
  --faint: #8395A6;
  --ink-on-navy: #EAF1F7;
  --muted-on-navy: #A7BACB;

  /* Accents */
  --ocean: #1B6FA8;
  --ocean-hover: #185F90;
  --ocean-press: #134E77;
  --ocean-tint: rgba(27, 111, 168, 0.10);
  --ocean-glow: rgba(27, 111, 168, 0.22);
  --sun: #E59A4E;
  --sun-deep: #C57F35;

  /* Type */
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --pad-section: clamp(3.5rem, 7vw, 5.5rem);
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(12, 34, 56, 0.05), 0 3px 8px rgba(12, 34, 56, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 34, 56, 0.06), 0 10px 28px rgba(12, 34, 56, 0.09);
  --shadow-lg: 0 4px 10px rgba(12, 34, 56, 0.08), 0 20px 48px rgba(12, 34, 56, 0.13);

  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
summary { cursor: pointer; }
::selection { background: var(--ocean); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 223, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(20, 41, 62, 0.08);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}
.logo-mark { width: 30px; height: 30px; color: var(--ocean); flex-shrink: 0; }
.logo-text { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; }
.logo-pro { color: var(--ocean); margin-left: 1px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 150ms ease;
}
.nav-link:hover { color: var(--ink); }
@media (max-width: 880px) { .site-nav .nav-link { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 4px 14px var(--ocean-glow);
}
.btn-primary:hover { background: var(--ocean-hover); box-shadow: 0 6px 20px var(--ocean-glow); }
.btn-primary:active { background: var(--ocean-press); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 41, 62, 0.3);
}
.btn-outline:hover { border-color: var(--ocean); color: var(--ocean); background: rgba(255,255,255,0.5); }

.btn-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-light:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 var(--pad-section);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 78% -10%, rgba(229, 154, 78, 0.16), transparent 60%),
    radial-gradient(ellipse 90% 70% at 25% -20%, rgba(27, 111, 168, 0.14), transparent 65%),
    linear-gradient(180deg, var(--sky) 0%, var(--sand) 72%);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-title {
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  animation: rise 650ms ease 80ms backwards;
}
.hero-accent { color: var(--ocean); font-style: italic; }
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: rise 650ms ease 180ms backwards;
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  animation: rise 650ms ease 280ms backwards;
}
.hero-fine {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  margin-bottom: 2.75rem;
  animation: rise 650ms ease 340ms backwards;
}
.hero-trust {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
  animation: rise 650ms ease 420ms backwards;
}
.trust-item { display: flex; flex-direction: column; gap: 1px; }
.trust-num { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ocean); }
.trust-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: var(--pad-section) 0; }
.section-sky { background: var(--sky); }
.section-warm { background: var(--sand-warm); }
.section-navy {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(27, 111, 168, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--ink-on-navy);
}
.section-navy .section-title { color: #fff; }
.section-navy .section-sub { color: var(--muted-on-navy); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.75rem;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ocean);
  display: inline-block;
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.section-label-sun { color: var(--sun); }
.section-title {
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 0.9rem;
}
.section-sub {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-tint);
  color: var(--ocean);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card-icon svg { width: 21px; height: 21px; }
.card-title { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.012em; margin-bottom: 0.5rem; }
.card-body { color: var(--muted); font-size: 0.93rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.step {
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--sun); }
.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sun-deep);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.step-title { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.012em; margin-bottom: 0.5rem; }
.step-body { color: var(--muted); font-size: 0.93rem; }

/* ---------- Sample plan ---------- */
.plan-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.plan-header {
  padding: 1.25rem 1.6rem;
  background: linear-gradient(180deg, var(--sky) 0%, var(--card) 130%);
  border-bottom: 1px solid rgba(20, 41, 62, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
}
.plan-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.12);
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-primary { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.plan-meta { display: flex; flex-direction: column; text-align: right; font-family: var(--mono); }
.plan-meta-label {
  font-size: 0.66rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.plan-meta-value { font-size: 0.84rem; font-weight: 500; }

.plan-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.plan-block { text-align: left; }
.plan-block-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ocean);
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.plan-block p { font-size: 0.96rem; line-height: 1.65; }

.plan-locked {
  border: 1px dashed rgba(20, 41, 62, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(221, 234, 242, 0.4), rgba(221, 234, 242, 0.15));
}
.plan-locked-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.2rem;
}
.plan-locked-row + .plan-locked-row { border-top: 1px dashed rgba(20, 41, 62, 0.12); }
.lock-icon { width: 15px; height: 15px; color: var(--faint); flex-shrink: 0; }
.plan-locked-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 500;
}

.plan-footer {
  padding: 1.1rem 1.6rem;
  background: var(--sand);
  border-top: 1px solid rgba(20, 41, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.plan-footer-text { font-weight: 600; font-size: 0.98rem; }

/* ---------- Compare ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  text-align: left;
}
.compare-col-muted {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 41, 62, 0.1);
}
.compare-col-featured {
  background: var(--card);
  border: 2px solid var(--ocean);
  box-shadow: var(--shadow-md);
}
.compare-head {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 41, 62, 0.1);
}
.compare-head-primary { color: var(--ocean); border-bottom-color: rgba(27, 111, 168, 0.25); }
.compare-list { display: flex; flex-direction: column; gap: 0.8rem; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.5;
}
.compare-col-muted .compare-list li { color: var(--muted); }
.mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}
.mark-x { background: rgba(20, 41, 62, 0.08); color: var(--faint); }
.mark-check { background: var(--ocean-tint); color: var(--ocean); }
@media (max-width: 660px) {
  .compare-col-featured { order: -1; }
}

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.09);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.tier-featured {
  border: 2px solid var(--ocean);
  box-shadow: var(--shadow-lg);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 1.7rem;
  background: var(--sun);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(229, 154, 78, 0.35);
}
.tier-head { margin-bottom: 1.25rem; }
.tier-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.tier-price { display: flex; align-items: baseline; gap: 0.45rem; margin-bottom: 0.6rem; }
.price-amount { font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.price-period { color: var(--muted); font-size: 0.95rem; }
.tier-tagline { color: var(--muted); font-size: 0.9rem; }
.tier-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.tier-features li {
  font-size: 0.94rem;
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.5;
}
.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 11px;
  height: 2px;
  background: var(--ocean);
  border-radius: 2px;
}

/* ---------- Anatomy ---------- */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}
.anatomy-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  text-align: left;
}
.anatomy-num {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--sun-deep);
  font-weight: 500;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.6rem;
}
.anatomy-title { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.anatomy-body { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid rgba(20, 41, 62, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 180ms ease;
}
.faq-item[open] { border-color: var(--ocean); box-shadow: var(--shadow-sm); }
.faq-q {
  font-weight: 600;
  font-size: 0.99rem;
  letter-spacing: -0.008em;
  padding: 1rem 3rem 1rem 1.25rem;
  list-style: none;
  position: relative;
  text-align: left;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--ocean);
  line-height: 1;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: left;
}

/* ---------- Final CTA ---------- */
.section-cta {
  background:
    radial-gradient(ellipse 75% 60% at 50% 115%, rgba(27, 111, 168, 0.5), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--ink-on-navy);
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-title {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1rem;
}
.cta-sub { color: var(--muted-on-navy); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cta-fine { font-family: var(--mono); font-size: 0.8rem; color: var(--muted-on-navy); opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo-footer { color: #fff; }
.logo-footer .logo-text { color: #fff; }
.footer-copy { color: var(--muted-on-navy); font-size: 0.85rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 236, 223, 0.96);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-top: 1px solid rgba(20, 41, 62, 0.1);
  z-index: 40;
  box-shadow: 0 -6px 24px rgba(12, 34, 56, 0.08);
}
@media (max-width: 880px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .plan-header { flex-direction: column; }
  .plan-meta { text-align: left; }
  .plan-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
