/* OPTIMA V2 Shared Editorial Stylesheet
 * Preserves OPTIMA's locked Royal Purple, Warm Cream, Antique Gold palette
 * and Gloock + DM Sans + Plus Jakarta Sans typography across all V2 pages.
 */
:root {
  --paper: #F7F5F0;
  --cream: #FAF6ED;
  --surface: #FFFFFF;
  --ink: #1B2120;
  --muted: #586360;
  --line: #E5E1D8;
  --purple-deep: #240B3F;
  --purple-dark: #18072B;
  --purple-mid: #3A1463;
  --purple: #4B1D7A;
  --purple-soft: #F3EDF9;
  --purple-line: #D8C9EC;
  --gold: #C49A4E;
  --gold-bright: #D8AF60;
  --gold-light: #E7C88B;
  --gold-pale: #FAF0D7;
  --gold-dark: #8E6B2D;
  --gold-soft: #F8F2E4;
  --display: "Gloock", Georgia, serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 18px 48px rgba(24, 7, 43, 0.08);
  --shadow-float: 0 28px 72px rgba(24, 7, 43, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow-light {
  color: var(--gold-light);
}
h1, h2, .serif {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.h1-hero {
  font-size: clamp(2.3rem, 4.5vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
@media (min-width: 900px) {
  .h1-hero { white-space: nowrap; }
}
.h1-sub {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
}
.h2-sec {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.12;
  color: var(--purple-deep);
}
.h2-light { color: var(--cream); }
.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 620px;
}
.lead-light { color: rgba(250, 246, 237, 0.84); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-cream {
  background: var(--cream);
  color: var(--purple-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.btn-cream:hover { background: #FFFFFF; }
.btn-gold {
  background: linear-gradient(135deg, #C49A4E 0%, #D8AF60 55%, #B88B3D 100%);
  color: var(--purple-dark);
  box-shadow: 0 10px 26px rgba(196, 154, 78, 0.34);
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-purple {
  background: var(--purple-deep);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(36, 11, 63, 0.22);
}
.btn-purple:hover { background: var(--purple-mid); }
.btn-outline-light {
  background: rgba(250, 246, 237, 0.08);
  color: var(--cream);
  border-color: rgba(250, 246, 237, 0.35);
}
.btn-outline-light:hover { background: rgba(250, 246, 237, 0.16); border-color: var(--gold-light); }
.btn-outline-dark {
  background: transparent;
  color: var(--purple-deep);
  border-color: rgba(36, 11, 63, 0.28);
}
.btn-outline-dark:hover { background: var(--purple-soft); border-color: var(--purple); }

/* Sections */
.sec { padding: 72px 0; }
.sec-lg { padding: 92px 0; }
.sec-cream { background: var(--cream); }
.sec-white { background: var(--surface); }
.sec-soft { background: var(--purple-soft); }
.sec-dark {
  background: radial-gradient(circle at 80% 15%, rgba(196, 154, 78, 0.16), transparent 48%),
              linear-gradient(160deg, var(--purple-dark) 0%, var(--purple-deep) 56%, var(--purple-mid) 100%);
  color: var(--cream);
}
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head-center .lead { margin-left: auto; margin-right: auto; }

/* Full-Bleed Photographic Hero */
.hero-photo {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--purple-dark);
  color: var(--cream);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-photo.hero-home-fixed {
    height: clamp(640px, calc(100svh - 175px), 780px);
    min-height: 640px;
    max-height: 780px;
  }
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(20, 6, 38, 0.94) 0%, rgba(30, 9, 54, 0.84) 48%, rgba(24, 7, 43, 0.42) 100%);
  z-index: 1;
}
.hero-photo-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 48px;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 920px; }
.hero-copy .eyebrow { margin-bottom: 12px; }
.hero-copy p.hero-sub {
  margin-top: 20px;
  font-size: 1.06rem;
  line-height: 1.64;
  color: rgba(250, 246, 237, 0.86);
  max-width: 540px;
  min-height: 5.2em;
}

/* Signature OPTIMA Edge Rails + Flowing Gold Compass Star */
.optima-edge-rails {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 66px 0 0 0;
  z-index: 45;
}
@media (min-width: 1260px) {
  .optima-edge-rails { display: block; }
}
.optima-edge-rail {
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(75, 29, 122, 0.12) 0%, rgba(75, 29, 122, 0.42) 15%, rgba(75, 29, 122, 0.42) 85%, rgba(75, 29, 122, 0.12) 100%);
  overflow: visible;
}
.optima-edge-rail.left { left: 22px; }
.optima-edge-rail.right { right: 22px; }
.optima-edge-star {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  filter: drop-shadow(0 0 7px rgba(216, 175, 96, 0.72));
  will-change: transform, opacity;
  animation: optimaStarFlow 12s cubic-bezier(0.35, 0.05, 0.25, 1) infinite;
}
.optima-edge-star::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 2px;
  height: 44px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(216, 175, 96, 0) 0%, rgba(216, 175, 96, 0.65) 100%);
  border-radius: 2px;
}
.optima-edge-star svg {
  display: block;
  animation: optimaStarSpin 12s linear infinite;
}
@keyframes optimaStarFlow {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: 0.96; }
  88%  { opacity: 0.92; }
  100% { transform: translate3d(0, calc(100vh - 118px), 0); opacity: 0; }
}
@keyframes optimaStarSpin {
  0%   { transform: rotate(0deg) scale(0.92); }
  50%  { transform: rotate(45deg) scale(1.06); }
  100% { transform: rotate(90deg) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .optima-edge-star, .optima-edge-star svg { animation: none; opacity: 0.85; }
}

/* Interactive Vertical Outcome Rail (encoded.ai hero signature) */
.outcome-rail {
  margin: 24px 0 22px;
  padding-left: 18px;
  border-left: 2px solid rgba(250, 246, 237, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outcome-item {
  position: relative;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.46);
  padding: 2px 0;
  transition: color 0.2s ease;
}
.outcome-item.active {
  color: var(--gold-pale);
}
.outcome-item.active::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--gold-bright);
  border-radius: 2px;
}

/* Hero Bottom Trust Strip */
.hero-trust {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(250, 246, 237, 0.16);
  background: rgba(18, 5, 34, 0.72);
  backdrop-filter: blur(10px);
}
.hero-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.88);
  border-bottom: 1px solid rgba(250, 246, 237, 0.1);
}
.hero-trust-item:last-child { border-bottom: none; }
.hero-trust-icon { color: var(--gold-bright); font-size: 1rem; }
@media (min-width: 760px) {
  .hero-trust-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-trust-item { border-bottom: none; border-right: 1px solid rgba(250, 246, 237, 0.14); padding: 18px 16px; }
  .hero-trust-item:last-child { border-right: none; }
}

/* 5-Card Photographic Outcome Grid */
.photo-cards-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .photo-cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .photo-cards-5 { grid-template-columns: repeat(5, 1fr); } }
.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  background: var(--purple-deep);
  box-shadow: var(--shadow-card);
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 7, 43, 0.08) 28%, rgba(24, 7, 43, 0.9) 100%);
}
.photo-card-body {
  position: relative;
  z-index: 2;
  padding: 20px 18px;
  color: var(--cream);
}
.photo-card-body h3 {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--gold-pale);
}
.photo-card-body p {
  font-size: 0.85rem;
  line-height: 1.48;
  color: rgba(250, 246, 237, 0.86);
}

/* Contrast Split (From Friction to Momentum) */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 820px) { .contrast-grid { grid-template-columns: 1fr 1fr; } }
.contrast-box {
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  border: 1px solid var(--line);
}
.contrast-box.before {
  background: var(--surface);
}
.contrast-box.after {
  background: linear-gradient(155deg, var(--purple-deep) 0%, var(--purple-mid) 100%);
  color: var(--cream);
  border-color: rgba(216, 175, 96, 0.35);
  box-shadow: var(--shadow-card);
}
.contrast-box h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contrast-box.before h3 { color: var(--muted); }
.contrast-box.after h3 { color: var(--gold-light); }
.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contrast-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  line-height: 1.5;
}
.contrast-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 2px;
}
.before .contrast-mark { background: #EFECE5; color: #7C7870; }
.after .contrast-mark { background: rgba(216, 175, 96, 0.22); color: var(--gold-pale); }

/* Feature / Pillar Cards */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(24, 7, 43, 0.04);
}
.card-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--purple-deep);
  margin-bottom: 10px;
}
.card p { font-size: 0.94rem; color: var(--muted); line-height: 1.58; }

/* Editorial Split (Image + Copy) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--purple-deep);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Member Portrait Cards (encoded.ai pricing & results signature) */
.story-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.story-card-img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center top;
}
.story-card-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 18px;
}
.story-quote {
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink);
}
.story-meta strong { display: block; font-size: 0.9rem; color: var(--purple-deep); }
.story-meta span { font-size: 0.8rem; color: var(--muted); }

/* Activate / Pricing Hero + Floating Overlapping Price Box */
.pricing-hero {
  position: relative;
  background: var(--purple-dark);
  color: var(--cream);
  padding: 68px 0 180px;
  overflow: hidden;
}
.pricing-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.68;
}
.pricing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, var(--purple-dark) 36%, rgba(24, 7, 43, 0.72) 64%, rgba(24, 7, 43, 0.25) 100%);
}
.pricing-hero-inner { position: relative; z-index: 2; max-width: 540px; }

.pricing-float-wrap {
  position: relative;
  z-index: 5;
  margin-top: -136px;
  padding-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 780px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px 34px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(36, 11, 63, 0.08);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--gold);
  padding-top: 52px;
  overflow: hidden;
}
.price-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #A97E34 0%, #D8AF60 50%, #A97E34 100%);
  color: var(--purple-dark);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
}
.price-card h2 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.48rem;
  color: var(--purple-deep);
  margin-bottom: 4px;
}
.price-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.price-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.price-amount {
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--purple-deep);
  line-height: 1;
}
.price-unit {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.price-save-callout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-dark);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.1;
}
.price-billed {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 20px;
  margin-bottom: 20px;
}
.price-cta { width: 100%; margin-bottom: 24px; }
.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--ink);
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.44;
}
.price-check {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid rgba(196, 154, 78, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Secondary Pricing Strip (Free Forever + $19 Compatibility Dossier) */
.tier-strip {
  max-width: 880px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 780px) { .tier-strip { grid-template-columns: 1fr 1fr; } }
.tier-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.tier-mini-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier-mini h3 { font-size: 1.04rem; font-weight: 700; color: var(--purple-deep); }
.tier-mini-price { font-weight: 700; color: var(--gold-dark); font-size: 0.96rem; white-space: nowrap; }
.tier-mini p { font-size: 0.87rem; color: var(--muted); line-height: 1.5; }

/* Guarantee Seal */
.guarantee-seal {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-deep), var(--purple));
  border: 2.5px solid var(--gold-bright);
  color: var(--gold-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: 0 14px 32px rgba(36, 11, 63, 0.25);
  flex-shrink: 0;
}
.guarantee-seal strong { font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.guarantee-seal span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }

/* FAQ Accordion */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--purple-deep);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.62;
}

/* Blueprint Intake Card (Live /api/blueprint) */
.intake-shell {
  background: var(--surface);
  border: 1px solid var(--purple-line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-float);
}
@media (min-width: 760px) { .intake-shell { padding: 40px 38px; } }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-deep);
}
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #D7D1C5;
  background: #FCFBF8;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.field input[type="date"],
.field input[type="time"] {
  display: block;
  height: 48px;
  padding: 11px 14px;
  line-height: 23px;
}
.field input[type="date"]::-webkit-date-and-time-value,
.field input[type="time"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  line-height: 23px;
  min-height: 23px;
}
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23240B3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: #FFFFFF;
}
.city-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--purple-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(24, 7, 43, 0.16);
  z-index: 30;
  overflow: hidden;
  display: none;
}
.city-suggest.open { display: block; }
.city-opt {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #F0ECE3;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.city-opt:last-child { border-bottom: none; }
.city-opt:hover { background: var(--purple-soft); }
.city-opt small { color: var(--muted); font-size: 0.76rem; }
.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 22px;
}
.form-status.err { color: #B42318; }
.form-status.ok { color: #166534; }

/* OPTIMA Circular Loop Diagram (how-it-works.html) */
.loop-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.loop-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.loop-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.loop-svg {
  width: 260px;
  height: 260px;
  max-width: 100%;
  overflow: visible;
}
.loop-orbit-spin {
  transform-origin: 140px 140px;
  animation: optimaLoopOrbit 22s linear infinite;
}
@keyframes optimaLoopOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.loop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: 0 10px 28px rgba(24, 7, 43, 0.05);
  position: relative;
}
.loop-card .card-num { display: flex; align-items: center; gap: 8px; }
.loop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(216, 175, 96, 0.22);
  flex-shrink: 0;
}
@media (min-width: 960px) {
  .loop-stage {
    grid-template-columns: 1fr 290px 1fr;
    gap: 28px;
  }
  .loop-svg { width: 280px; height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .loop-orbit-spin { animation: none; }
}

/* Final Dark CTA Band */
.cta-band {
  text-align: center;
  padding: 84px 0;
  background: radial-gradient(circle at 50% 0%, rgba(216, 175, 96, 0.18), transparent 55%),
              linear-gradient(160deg, var(--purple-dark) 0%, var(--purple-deep) 60%, var(--purple) 100%);
  color: var(--cream);
  border-top: 1px solid rgba(216, 175, 96, 0.25);
}
.cta-band .lead { margin: 16px auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* ============================================================
   GLOBAL MOBILE-FIRST APP POLISH (iPhone / Android 360px-767px)
   ============================================================ */
html, body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea {
  touch-action: manipulation;
}
@media (max-width: 767px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 26px; }
  .h1-sub { font-size: clamp(1.95rem, 8.2vw, 2.55rem); line-height: 1.08; }
  .h2-sec { font-size: clamp(1.55rem, 6.8vw, 2.1rem); line-height: 1.14; }
  .lead { font-size: 0.98rem; line-height: 1.56; }

  .hero-photo { min-height: 360px !important; }
  .hero-photo-inner { padding: 36px 0 42px; }
  .hero-sub { font-size: 0.98rem; line-height: 1.54; }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-row .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .card { padding: 22px 18px; }
  .intake-shell { padding: 22px 18px; border-radius: 18px; }
  .price-card { padding: 24px 20px; }
  .price-amount { font-size: 2.35rem; }
  .tier-mini { padding: 20px 18px; flex-direction: column; align-items: stretch; gap: 14px; }
  .tier-mini .btn { width: 100%; justify-content: center; }

  input, select, textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  .pricing-hero { padding: 36px 0 76px; }
  .pricing-float-wrap { margin-top: -54px; }

  .cta-band {
    padding: 56px 0 calc(56px + env(safe-area-inset-bottom, 0px));
  }
  #optima-footer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
}
