:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647067;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: rgba(23, 33, 27, 0.13);
  --orange: #d7662f;
  --rust: #9f3f25;
  --gold: #f1b851;
  --sage: #2f5d50;
  --shadow: 0 24px 70px rgba(51, 31, 19, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(241, 184, 81, 0.34), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(215, 102, 47, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff6e5 0%, #fffaf1 34%, #f8f2e8 100%);
  line-height: 1.5;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 241, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--rust), var(--orange) 55%, var(--gold));
  box-shadow: 0 10px 24px rgba(159, 63, 37, 0.22);
}
.nav nav { display: flex; gap: clamp(.65rem, 2vw, 1.25rem); font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 650; }
.nav nav a:hover { color: var(--rust); }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.product-hero { min-height: 72vh; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rust);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.055em; margin: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 6.7rem); max-width: 11ch; }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: #3d473f; max-width: 37rem; margin: 1.4rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary { color: white; background: linear-gradient(135deg, var(--rust), var(--orange)); box-shadow: 0 16px 35px rgba(159,63,37,.22); }
.button.secondary { background: rgba(255,255,255,.68); border-color: var(--line); color: var(--sage); }

.hero-card, .phone-card, .card, .offer-box, .cta-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.4rem, 3vw, 2rem); transform: rotate(1deg); }
.status-pill, .tag {
  display: inline-flex;
  width: max-content;
  padding: .42rem .7rem;
  border-radius: 999px;
  background: rgba(215, 102, 47, .12);
  color: var(--rust);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.tag.muted { background: rgba(47, 93, 80, .1); color: var(--sage); }
.hero-card h2 { margin-top: .9rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-card p { color: var(--muted); font-size: 1.08rem; }
.check-list, .x-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.check-list li, .x-list li { position: relative; padding-left: 1.8rem; color: #3e4940; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 900; }
.x-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); font-weight: 900; }

.phone-card { padding: 1rem; max-width: 420px; justify-self: center; background: #17211b; color: white; border-radius: 34px; }
.phone-top { text-align: center; padding: .8rem; color: rgba(255,255,255,.72); font-weight: 750; }
.message { margin: .8rem; padding: 1rem; border-radius: 18px; background: #253128; color: #eef7ef; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.message.warning { background: #4d2f22; }
.message.ok { background: #234238; }
.message.digest { background: #2d3440; }

.section { padding: clamp(3rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { color: #3d473f; font-size: 1.12rem; }
.prose p:first-child { margin-top: 0; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; }
.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 1.35rem; box-shadow: 0 18px 50px rgba(51,31,19,.08); }
.card.featured { border-color: rgba(215,102,47,.35); background: rgba(255,255,255,.88); }
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); }
.card a { color: var(--rust); font-weight: 850; text-decoration: none; }
.quote { font-size: 1.12rem; color: var(--ink) !important; font-weight: 700; }

.steps, .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step, .flow-item { padding: 1.2rem; border-radius: 22px; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.step span, .flow-item span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: white; font-weight: 850; margin-bottom: 1.2rem; }
.step p, .flow-item p { color: var(--muted); }

.offer-box { padding: 1.35rem; }
.offer-box h3 { margin-top: 1.35rem; }
.offer-box h3:first-child { margin-top: 0; }
.price-note { margin-top: 1.4rem; padding: 1rem; border-radius: 18px; background: rgba(241,184,81,.18); color: #5a3c12; font-weight: 800; }

.cta-panel { padding: clamp(1.5rem, 4vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 4rem; }
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-panel p:not(.eyebrow) { color: var(--muted); max-width: 48rem; }

footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

@media (max-width: 850px) {
  .nav { align-items: flex-start; }
  .nav nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero, .split, .cards.three, .cards.two, .steps, .flow { grid-template-columns: 1fr; }
  h1 { max-width: 12ch; }
  .hero { min-height: auto; }
  .hero-card { transform: none; }
  .cta-panel, footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  main, footer { width: min(100% - 1.1rem, 1180px); }
  .nav { padding: .9rem .7rem; }
  .brand span:last-child { display: none; }
  h1 { font-size: 3rem; }
  .lead { font-size: 1.06rem; }
  .button { width: 100%; }
}

/* MotionSites-inspired polish: premium motion without adding a framework. */
.motion-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,250,241,.2), rgba(241,184,81,.08), rgba(47,93,80,.06));
}
.orb {
  position: absolute;
  width: clamp(16rem, 34vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .33;
  mix-blend-mode: multiply;
  animation: float-orb 18s ease-in-out infinite alternate;
}
.orb-one { left: -8rem; top: 8rem; background: #f1b851; }
.orb-two { right: -10rem; top: 4rem; background: #d7662f; animation-duration: 22s; animation-delay: -6s; }
.orb-three { left: 42%; bottom: -14rem; background: #2f5d50; opacity: .16; animation-duration: 26s; animation-delay: -10s; }
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,33,27,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,33,27,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 72%);
  animation: grid-drift 28s linear infinite;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 7rem -6vw auto auto;
  width: min(40vw, 30rem);
  height: min(40vw, 30rem);
  border-radius: 38% 62% 58% 42%;
  background: conic-gradient(from 180deg, rgba(215,102,47,.22), rgba(241,184,81,.34), rgba(47,93,80,.16), rgba(215,102,47,.22));
  filter: blur(5px);
  opacity: .65;
  transform: translateY(var(--hero-drift, 0)) rotate(var(--hero-tilt, 0));
  z-index: -1;
  animation: morph-blob 14s ease-in-out infinite alternate;
}
.hero { position: relative; }
.hero-copy h1 {
  background: linear-gradient(105deg, #17211b 0%, #17211b 48%, #9f3f25 72%, #d7662f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.button.primary {
  position: relative;
  overflow: hidden;
}
.button.primary::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -35%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  transform: skewX(-18deg);
  animation: sheen 4.8s ease-in-out infinite;
}
.hero-card, .phone-card, .card, .offer-box, .cta-panel, .proposal-sheet {
  backdrop-filter: blur(18px) saturate(1.1);
}
.hero-card, .phone-card {
  position: relative;
  overflow: hidden;
  animation: card-hover 7s ease-in-out infinite alternate;
}
.phone-card { animation-delay: -2.5s; }
.scan-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  height: 38%;
  opacity: .22;
  transform: translateY(-120%);
  animation: scan-card 5.8s ease-in-out infinite;
}
.card, .step, .flow-item, .mini {
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.card:hover, .step:hover, .flow-item:hover, .mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(51,31,19,.14);
  border-color: rgba(215,102,47,.28);
}
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  filter: blur(8px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity .72s ease var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms),
    filter .72s ease var(--reveal-delay, 0ms);
}
@keyframes float-orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -3vh, 0) scale(1.08); }
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}
@keyframes morph-blob {
  from { border-radius: 38% 62% 58% 42%; transform: translateY(var(--hero-drift, 0)) rotate(0deg); }
  to { border-radius: 58% 42% 38% 62%; transform: translateY(var(--hero-drift, 0)) rotate(8deg); }
}
@keyframes sheen {
  0%, 54% { left: -35%; }
  72%, 100% { left: 120%; }
}
@keyframes card-hover {
  from { transform: translateY(0) rotate(.7deg); }
  to { transform: translateY(-10px) rotate(-.35deg); }
}
@keyframes scan-card {
  0%, 45% { transform: translateY(-120%); }
  70%, 100% { transform: translateY(260%); }
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.reduce-motion .reveal { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* SanteStays product page: softer, warmer, more host-friendly than the corporate shell. */
.safi-page {
  --ink: #18211b;
  --muted: #667166;
  --paper: #fff8ec;
  --orange: #dc6b32;
  --rust: #a84b2c;
  --gold: #f5c563;
  --sage: #2e6a58;
  background:
    radial-gradient(circle at 12% 4%, rgba(245, 197, 99, .45), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(46, 106, 88, .16), transparent 28rem),
    linear-gradient(180deg, #fff6e7 0%, #fffaf1 44%, #f5efe5 100%);
}
.safi-nav .brand { letter-spacing: -.03em; }
.safi-mark {
  background: linear-gradient(135deg, #2e6a58, #dc6b32 60%, #f5c563);
}
.safi-hero h1 { max-width: 12ch; }
.safi-hero .lead { text-align: left; }
.safi-page .actions { align-items: center; }
.safi-page .button { line-height: 1.1; }
.safi-phone {
  max-width: 390px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    #16221c;
  border: 10px solid #101713;
  box-shadow: 0 34px 90px rgba(24, 33, 27, .28);
}
.safi-phone .message {
  font-size: .96rem;
  line-height: 1.42;
}
.bot-bubble { background: #fff7e8; color: #1f2a22; }
.quiet-bubble { background: #28362d; color: rgba(255,255,255,.72); font-style: italic; }
.safi-demo-card { min-height: 15rem; }
.warm-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(168, 75, 44, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(245,197,99,.18)),
    rgba(255, 255, 255, .6);
  box-shadow: var(--shadow);
}
.safi-cta {
  border-color: rgba(46,106,88,.28);
  background:
    radial-gradient(circle at 88% 18%, rgba(245,197,99,.35), transparent 12rem),
    rgba(255,255,255,.82);
}
@media (max-width: 520px) {
  .safi-hero h1 { font-size: 2.82rem; }
  .safi-phone { border-width: 7px; }
}

@media print {
  .motion-backdrop, .scan-line { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
