/* Oramya — temporary pre-launch site */

:root {
  --ivory: #FAF6F0;
  --teal: #2E7D6F;
  --sunrise: #E8A87C;
  --ink: #1A2E35;
  --sage: #CBD5D3;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --measure: 36rem;
  --gutter: 1.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--teal); }
h3 { font-size: 1.375rem; color: var(--teal); }

p { margin: 0 0 1.1rem; }

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar with wordmark */
.bar { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--teal);
  text-decoration: none;
}
.wordmark:hover { color: var(--teal); }

/* Teal surfaces: hero and waitlist */
.surface {
  background: var(--teal);
  color: var(--ivory);
}
.surface h1,
.surface h2 { color: var(--ivory); }
.surface a { color: var(--ivory); }
.surface :focus-visible { outline-color: var(--ivory); }
.surface .wordmark { color: var(--ivory); }

/* Hero */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
}
.hero > .wrap { width: 100%; }
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 4rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 10ch;
}
.hero .subhead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  line-height: 1.4;
  max-width: 26ch;
  margin-bottom: 2.5rem;
}
.hero .invite {
  max-width: 30ch;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sage);
  margin-bottom: 1.75rem;
}

/* Buttons: sunrise fill, ink text */
.button {
  display: inline-block;
  background: var(--sunrise);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: 0;
}
.button:hover { background: #F0B994; color: var(--ink); }
.surface .button,
.surface .button:hover { color: var(--ink); }

/* Plain sections */
.section { padding: 5.5rem 0; }
.section + .section { border-top: 1px solid var(--sage); }

/* Pricing */
.plans {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 1.75rem;
}
.plan {
  border: 1px solid var(--sage);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  background: #FFFDF9;
}
.plan h3 { margin-bottom: 0.5rem; }
.price {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.plan p:last-child { margin-bottom: 0; }
.note { max-width: 32rem; }

@media (min-width: 44rem) {
  .pricing .wrap { max-width: 48rem; }
  .plans { grid-template-columns: 1fr 1fr; }
}

/* Waitlist */
.waitlist { padding: 5.5rem 0; }
.fine {
  font-size: 0.9375rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Simple text pages */
.page { padding-top: 3rem; padding-bottom: 5rem; }
.page h1 {
  font-size: clamp(2.25rem, 7vw, 3rem);
  color: var(--teal);
}
.page h2 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
}
.prelaunch {
  border-left: 4px solid var(--teal);
  background: #FFFDF9;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 1rem;
}
.prelaunch p { margin: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--sage);
  padding: 2.5rem 0 3rem;
  font-size: 0.9375rem;
}
.footer p { margin-bottom: 1rem; }
.footer p:last-child { margin-bottom: 0; }

/* Text for screen readers only */
.skip-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.button { position: relative; }

/* ============================================================
   ANIMATION LAYER — MODERN (smooth, no typewriter)
   ============================================================ */

/* --- 1. Animated mesh gradient behind hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(46, 125, 111, 0.9), transparent 60%),
    radial-gradient(35% 45% at 80% 20%, rgba(232, 168, 124, 0.55), transparent 65%),
    radial-gradient(50% 60% at 60% 80%, rgba(203, 213, 211, 0.35), transparent 70%),
    radial-gradient(30% 40% at 10% 85%, rgba(232, 168, 124, 0.35), transparent 70%);
  animation: mesh 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes mesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}
.hero > .wrap { position: relative; z-index: 2; }

/* --- 2. Orbs --- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.orb-1 { width: 460px; height: 460px; background: var(--teal);    top: -140px; left: -130px;  opacity: 0.22; animation: drift-a 22s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--sunrise); bottom: -120px; right: -110px; opacity: 0.22; animation: drift-b 26s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; background: var(--sage);    top: 38%; right: 8%;          opacity: 0.16; animation: drift-c 32s ease-in-out infinite; }
@keyframes drift-a { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(70px,50px) scale(1.08);} 66%{transform:translate(35px,-35px) scale(0.95);} }
@keyframes drift-b { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-80px,-50px) scale(1.1);} }
@keyframes drift-c { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-50px,70px) scale(0.94);} }

.hero, .waitlist, main, .footer { position: relative; z-index: 1; }

/* --- 3. Smooth headline reveal (no typewriter) --- */
.hero h1.reveal-headline {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  animation: headlineIn 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}
@keyframes headlineIn {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- 4. Word-by-word subhead with proper spacing --- */
.hero .subhead .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  margin-right: 0.28em;
  animation: wordUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero .subhead .word:last-child {
  margin-right: 0;
}
@keyframes wordUp {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- 5. Glass feature chips --- */
.hero .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.hero .chip {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ivory);
  background: rgba(250, 246, 240, 0.10);
  border: 1px solid rgba(250, 246, 240, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  animation: chipIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero .chip:nth-child(1) { animation-delay: 1.35s; }
.hero .chip:nth-child(2) { animation-delay: 1.48s; }
.hero .chip:nth-child(3) { animation-delay: 1.61s; }
@keyframes chipIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- 6. CTA with animated conic border --- */
.button.cta {
  position: relative;
  padding: 0.95rem 1.85rem;
  z-index: 1;
}
.button.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--sunrise),
    #F0B994,
    var(--sage),
    var(--sunrise)
  );
  z-index: -1;
  animation: spinBorder 5s linear infinite;
  filter: blur(0.5px);
  opacity: 0.85;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spinBorder {
  to { --angle: 360deg; }
}
@supports not (background: conic-gradient(from var(--angle,0deg), red, blue)) {
  .button.cta::before {
    background: var(--sunrise);
    animation: none;
    opacity: 0.5;
  }
}

/* --- 7. Breathing dot next to wordmark --- */
.wordmark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--sunrise);
  vertical-align: middle;
  animation: pulseDot 2.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.22); }
}

/* --- 8. Sticky mini-nav --- */
.mini-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sage);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mini-nav.is-shown { transform: translateY(0); }
.mini-nav .mini-wordmark {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--teal);
  text-decoration: none;
}
.mini-nav .mini-cta {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--sunrise);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.mini-nav .mini-cta:hover { background: #F0B994; transform: translateY(-1px); }

/* --- 9. Scroll-triggered rise --- */
[data-animate="rise"] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
[data-animate="rise"].is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }

/* --- 10. Section underline draw --- */
.section h2, .waitlist h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}
.section h2::after, .waitlist h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--sunrise);
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}
.section h2.is-visible::after, .waitlist h2.is-visible::after { width: 64px; }

/* --- 11. Button hover lift --- */
.button {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              background-color 0.4s ease, box-shadow 0.4s ease;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(232, 168, 124, 0.32);
}

/* --- 12. Pricing card hover --- */
.plan {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s ease, border-color 0.5s ease;
}
.plan:hover {
  box-shadow: 0 16px 40px rgba(46, 125, 111, 0.12);
  border-color: var(--teal);
}

/* --- 13. Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--sunrise), var(--teal));
  z-index: 100; transition: width 0.1s linear; pointer-events: none;
}

/* --- 14. Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .orb, .breath, .hero::before,
  .hero h1.reveal-headline,
  .hero .subhead .word,
  .hero .chip,
  .wordmark::after,
  .scroll-progress { animation: none !important; }

  .hero h1.reveal-headline,
  .hero .subhead .word,
  .hero .chip,
  [data-animate="rise"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .section h2::after, .waitlist h2::after {
    transition: none !important;
    width: 64px !important;
  }
  .button, .plan { transition: none !important; }
}