/* Rankline Digital — med spa theme */
:root{
  --ivory: #F6F2EC;
  --paper: #FFFFFF;
  --field: #FBF9F6;
  --ink: #1F1B1A;
  --muted: #5E5753;
  --faint: #6E6762;
  --line: #E4DDD3;
  --line-strong: #CFC6BA;
  --sage: #2F554D;
  --sage-dark: #1F3B35;
  --sage-soft: #E6EDE9;
  --forest: #23403A;
  --forest-2: #2C4D46;
  --forest-line: #3B5F57;
  --mint-text: #D9E2DE;
  --gold: #A8834F;        /* decorative / large text only */
  --gold-deep: #7A5C30;   /* small text and badges */
  --champagne: #D9C29A;   /* on dark green */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: var(--sage); }
a:hover{ color: var(--sage-dark); }
img, svg{ display: block; max-width: 100%; }
h1, h2, h3{ margin: 0; text-wrap: balance; }
:focus-visible{ outline: 2px solid var(--sage); outline-offset: 3px; }

.wrap{ max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 520px){ .wrap{ padding-left: 16px; padding-right: 16px; } }

.skip{ position: absolute; left: -9999px; top: 0; background: var(--sage); color: #fff; padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus{ left: 16px; top: 16px; color: #fff; }

.eyebrow{ margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.serif{ font-family: var(--font-serif); }
.h2{ font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin-top: 14px; }
.section-head{ max-width: 680px; margin-bottom: 44px; }
.section-head p.lead{ margin: 14px 0 0; color: var(--muted); font-size: 17px; }

/* Buttons */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 27px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s ease, border-color .15s ease; }
.btn-primary{ background: var(--sage); color: #fff; }
.btn-primary:hover{ background: var(--sage-dark); color: #fff; }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover{ border-color: var(--ink); color: var(--ink); }
.btn-light{ background: var(--ivory); color: var(--forest); }
.btn-light:hover{ background: #fff; color: var(--forest); }

/* Header */
.site-header{ border-bottom: 1px solid var(--line); background: var(--ivory); }
.site-header nav{ min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 10px; padding-bottom: 10px; }
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover{ color: var(--ink); }
.brand svg{ width: 30px; height: 30px; flex-shrink: 0; }
.brand-name{ font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span{ font-weight: 400; color: var(--muted); }
.navlinks{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.navlinks a{ color: var(--muted); text-decoration: none; }
.navlinks a:hover{ color: var(--ink); }
.navlinks a.nav-cta{ background: var(--sage); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.navlinks a.nav-cta:hover{ background: var(--sage-dark); color: #fff; }
.nav-phone{ color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.nav-phone:hover{ color: var(--ink); border-color: var(--ink); }
@media (max-width: 760px){
  .navlinks a:not(.nav-cta){ display: none; }
  .site-header nav{ flex-wrap: nowrap; }
}
@media (max-width: 420px){
  .brand{ gap: 8px; }
  .brand-name{ font-size: 18px; white-space: nowrap; }
  .site-header nav{ gap: 10px; }
  .brand svg{ width: 26px; height: 26px; }
  .navlinks a.nav-cta{ padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}

/* Hero */
.hero{ padding-top: clamp(56px, 8vw, 88px); padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy{ flex: 1 1 480px; min-width: 0; }
.hero h1{ margin: 18px 0 22px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }
.hero .lede{ margin: 0 0 32px; font-size: 19px; color: var(--muted); max-width: 34em; }
.actions{ display: flex; flex-wrap: wrap; gap: 12px; }

.flow{ flex: 1 1 420px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.flow-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.flow-head span:first-child{ font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.flow-head span:last-child{ font-size: 12px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.flow-step{ display: flex; gap: 14px; align-items: flex-start; background: var(--ivory); border-radius: 18px; padding: 16px 18px; }
.flow-step .ic{ width: 40px; height: 40px; border-radius: 12px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-step .ic svg{ width: 20px; height: 20px; stroke: var(--sage); }
.flow-step b{ display: block; font-weight: 600; }
.flow-step small{ display: block; font-size: 14px; color: var(--muted); }
.flow-step.done{ background: var(--forest); color: var(--ivory); }
.flow-step.done .ic{ background: var(--sage); }
.flow-step.done .ic svg{ stroke: var(--ivory); }
.flow-step.done small{ color: var(--mint-text); }

/* Strip */
.strip{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap{ padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; font-family: var(--font-serif); font-size: 19px; color: var(--muted); }
.strip .dot{ color: var(--gold); }

/* Sections */
.section{ padding-top: clamp(72px, 9vw, 104px); padding-bottom: clamp(72px, 9vw, 104px); }
.row{ display: flex; flex-wrap: wrap; gap: 20px; }

.problem{ flex: 1 1 300px; min-width: 0; border-top: 2px solid var(--sage); padding-top: 22px; }
.problem h3{ margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.problem p{ margin: 0; color: var(--muted); }

.card{ flex: 1 1 260px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; }
.card .ic{ width: 44px; height: 44px; border-radius: 14px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card .ic svg{ width: 22px; height: 22px; stroke: var(--sage); }
.card h3{ margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p{ margin: 0; color: var(--muted); font-size: 15px; }

/* Setter (dark) */
.setter{ background: var(--forest); color: var(--ivory); }
.setter .wrap{ display: flex; flex-wrap: wrap; gap: 56px; }
.setter-copy{ flex: 1 1 420px; min-width: 0; }
.setter .eyebrow{ color: var(--champagne); }
.setter h2{ margin: 14px 0 20px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.setter-copy p{ margin: 0 0 18px; color: var(--mint-text); font-size: 18px; }
.setter-copy .btn{ margin-top: 12px; }
.setter-grid{ flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px){ .setter-grid{ grid-template-columns: 1fr; } }
.setter-item{ background: var(--forest-2); border-radius: 18px; padding: 22px; }
.setter-item h3{ margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.setter-item p{ margin: 0; font-size: 14px; color: var(--mint-text); }

/* Process */
.process{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.process li{ flex: 1 1 230px; min-width: 0; }
.process .num{ font-family: var(--font-serif); font-size: 36px; color: var(--gold); line-height: 1; }
.process h3{ margin: 14px 0 6px; font-size: 18px; font-weight: 700; }
.process p{ margin: 0; color: var(--muted); font-size: 15px; }

/* Panels */
.panel{ background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 40px 48px; }
.trust-quote{ flex: 1 1 420px; min-width: 0; margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 500; align-self: center; }
.checks{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li{ display: flex; gap: 12px; }
.checks svg{ width: 20px; height: 20px; stroke: var(--sage); flex-shrink: 0; margin-top: 3px; }
.trust .checks{ flex: 1 1 380px; min-width: 0; }

/* Team */
.member{ flex: 1 1 420px; min-width: 0; display: flex; gap: 22px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
@media (max-width: 460px){ .member{ flex-direction: column; } }
.avatar{ width: 76px; height: 76px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 26px; flex-shrink: 0; }
.avatar.alt{ background: #F1E7D8; color: var(--gold-deep); }
.member-name{ font-family: var(--font-serif); font-size: 22px; font-weight: 500; }
.member-role{ font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-top: 2px; }
.member p{ margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-copy{ flex: 1 1 360px; min-width: 0; }
.contact-copy h2{ margin: 14px 0 14px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 3.8vw, 38px); line-height: 1.15; }
.contact-copy > p{ margin: 0 0 28px; color: var(--muted); }
.contact-info{ display: flex; flex-direction: column; gap: 6px; }
.contact-info a{ color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-info a:hover{ color: var(--sage); }
.contact-info span{ color: var(--faint); }
.form{ flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px){ .form{ grid-template-columns: 1fr; } }
.form .full{ grid-column: 1 / -1; }
.form label{ display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea{ font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus{ outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47,85,77,0.15); }
.form textarea{ resize: vertical; min-height: 96px; }
.form .btn{ width: 100%; padding: 16px; }
.form-note{ margin: 0; font-size: 13px; line-height: 1.55; color: var(--faint); }
.form-note a{ color: var(--muted); }
.hp{ position: absolute; left: -9999px; }

/* Footer */
.site-footer{ border-top: 1px solid var(--line); }
.site-footer .wrap{ padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--faint); }
.site-footer nav{ display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a{ color: var(--muted); text-decoration: none; }
.site-footer a:hover{ color: var(--ink); }

/* Simple centered pages (thank-you, 404) */
.center-page{ min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.center-card{ max-width: 520px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(32px, 6vw, 48px); text-align: center; }
.center-card svg{ width: 52px; height: 52px; margin: 0 auto 20px; }
.center-card h1{ font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 6vw, 38px); line-height: 1.15; margin-bottom: 12px; }
.center-card p{ color: var(--muted); margin: 0 0 28px; }
.center-card .small{ display: block; margin-top: 18px; color: var(--faint); font-size: 14px; }
.center-card .small a{ color: var(--ink); }

/* Legal pages */
.legal{ padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(56px, 8vw, 88px); }
.legal article{ max-width: 72ch; }
.legal h1{ font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 8px; }
.legal .updated{ color: var(--faint); font-size: 15px; margin: 0 0 32px; }
.legal h2{ font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.3; margin: 36px 0 10px; }
.legal p, .legal li{ color: var(--muted); }
.legal p{ margin: 0 0 14px; }
.legal ul{ margin: 0 0 14px; padding-left: 20px; }
.legal li{ margin-bottom: 6px; }
.legal strong{ color: var(--ink); font-weight: 600; }
.callout{ background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 16px; }
.callout p{ margin: 0; color: var(--ink); }
