/* ==================== BEAUTY ON CLOUD - LANDING (index.css) ====================
   Works standalone OR with /styles/tokens.css.

   If tokens.css is loaded before this file, this file will override the accent
   colors for the landing pages while keeping global neutrals consistent.
   =========================================================================== */

/* ==================== ROOT & GLOBAL ==================== */

:root {
  /* Landing palette (premium + readable) */
  --landing-bg: #25a739;
  --landing-bg-alt: #f3f1ee;

  --landing-surface: #ffffff;
  --landing-surface-2: rgba(255, 255, 255, 0.80);

  --landing-text: #171717;
  --landing-text-soft: #5f5f5f;

  --landing-border: rgba(0, 0, 0, 0.08);

  /* Accents for landing pages */
  --landing-accent: #81da84;
  --landing-accent-soft: rgba(129, 218, 132, 0.18);

  --landing-accent-2: #1f6f5b;
  --landing-accent-2-soft: rgba(31, 111, 91, 0.12);

  --landing-danger: #c0392b;

  --landing-radius-lg: 18px;
  --landing-radius-xl: 26px;

  --landing-shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.10);
  --landing-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.12);

  --gap-section: 5rem;

  /* ---------------------------
     Shared token mapping
     ---------------------------
     If tokens.css is present, these override the shared token variables for
     landing pages only. If tokens.css is not present, these are still usable
     because we define everything we reference below anyway.
  */
  --bg: var(--landing-bg);
  --bg-alt: var(--landing-bg-alt);

  --surface: var(--landing-surface);
  --surface-2: var(--landing-surface-2);

  --text: var(--landing-text);
  --text-soft: var(--landing-text-soft);

  --border: var(--landing-border);

  --accent: var(--landing-accent);
  --accent-soft: var(--landing-accent-soft);

  --accent-2: var(--landing-accent-2);
  --accent-2-soft: var(--landing-accent-2-soft);

  --danger: var(--landing-danger);

  --radius-lg: var(--landing-radius-lg);
  --radius-xl: var(--landing-radius-xl);

  --shadow-soft: var(--landing-shadow-soft);
  --shadow-card: var(--landing-shadow-card);

  /* Focus ring (plays nice with tokens.css too) */
  --focus-ring: 0 0 0 4px rgba(31, 111, 91, 0.16);
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* same visual identity you had */
  background: radial-gradient(circle at top left, #ffffff, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utility container */
.container {
  width: min(1120px, 100% - 2.75rem);
  margin-inline: auto;
}

/* Generic text styles */
h1,
h2,
h3,
h4 {
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus styling (safe + accessible) */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 10px;
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.92rem 1.75rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e3c79a);
  color: #1c140a;
  box-shadow: 0 14px 30px rgba(176, 141, 87, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 45px rgba(176, 141, 87, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.22);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(176, 141, 87, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ==================== HEADER & NAV ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 249, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.95rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #e9d7b8, var(--accent), #2aa184, #e9d7b8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c140a;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-highlight {
  color: var(--accent-2);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  color: var(--text-soft);
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 26px;
  height: 20px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #1b1b1b;
  content: "";
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

.nav-toggle:checked+.nav-toggle-label span {
  transform: rotate(45deg);
}

.nav-toggle:checked+.nav-toggle-label span::before {
  top: 0;
}

.nav-toggle:checked+.nav-toggle-label span::after {
  top: 0;
  transform: rotate(-90deg);
}

/* ==================== HERO ==================== */

.hero {
  padding-block: 3.8rem 3.4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.eyebrow-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block: 1.4rem 0.8rem;
}

.hero-note {
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.meta-badge {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.09);
  border: 1px solid rgba(176, 141, 87, 0.22);
  color: #2b2011;
  font-weight: 600;
}

/* Hero side panel */
.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at -20% -10%, rgba(176, 141, 87, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.hero-links {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.95rem;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease;
}

.panel-link strong {
  color: var(--accent-2);
}

.panel-link::after {
  content: "↗";
  font-size: 0.78rem;
  opacity: 0.55;
}

.panel-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

.panel-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 1.1rem 0 1rem;
}

.panel-mini-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}

/* ==================== GENERIC SECTIONS ==================== */

.section {
  padding-block: var(--gap-section);
}

.section-alt {
  padding-block: var(--gap-section);
  background: linear-gradient(to bottom, var(--bg-alt), rgba(243, 241, 238, 0.35));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: 1.7rem;
}

.section-header p {
  font-size: 0.98rem;
}

/* ==================== HOW IT WORKS ==================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.3rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top right, rgba(31, 111, 91, 0.10), transparent 55%);
  transition: opacity 0.25s ease;
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(31, 111, 91, 0.10);
  border: 1px solid rgba(31, 111, 91, 0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  color: var(--accent-2);
  font-weight: 800;
}

/* ==================== SPLIT SECTIONS ==================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.6rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 3fr);
}

.split-content p {
  font-size: 0.98rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.3rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.82rem;
  color: var(--accent);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.small-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Visual mockups */
.split-visual {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-mockup {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.83rem;
  min-width: 220px;
  max-width: 260px;
}

.card-mockup.secondary {
  position: absolute;
  bottom: -18px;
  right: -18px;
  transform: scale(0.92);
  opacity: 0.96;
  background: rgba(255, 255, 255, 0.86);
}

.card-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.card-line {
  display: block;
  color: var(--text-soft);
}

.card-pill {
  display: inline-flex;
  align-items: center;
  margin-block: 0.5rem 0.3rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.25);
  background: rgba(176, 141, 87, 0.09);
  font-size: 0.75rem;
  color: #2b2011;
  font-weight: 650;
}

.card-line.subtle {
  font-size: 0.78rem;
}

/* ==================== ABOUT ==================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.about-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ==================== CONTACT ==================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.8fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(0, 0, 0, 0.52);
  font-weight: 700;
}

.contact-list a {
  font-weight: 650;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent-2);
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.86rem;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 650;
}

input,
select,
textarea {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 111, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
  background: rgba(0, 0, 0, 0.02);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-note {
  font-size: 0.78rem;
  margin-top: 0.65rem;
  color: rgba(0, 0, 0, 0.58);
}

.contact-note a {
  color: var(--accent-2);
  font-weight: 650;
}

/* ==================== FOOTER ==================== */

.site-footer {
  padding-block: 2.6rem 1.7rem;
  background: #f2efe9;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.footer-brand .brand-text {
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: var(--text-soft);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  font-size: 0.88rem;
}

.footer-links h4 {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.62);
}

/* ==================== ANIMATIONS ==================== */

.section,
.hero-inner {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}

.hero-inner {
  animation-delay: 0.08s;
}

.section:nth-of-type(1) {
  animation-delay: 0.12s;
}

.section:nth-of-type(2) {
  animation-delay: 0.18s;
}

.section:nth-of-type(3) {
  animation-delay: 0.24s;
}

.section:nth-of-type(4) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-reverse .split-visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-block: 0.7rem;
  }

  .main-nav {
    position: fixed;
    inset: 62px 0 auto;
    width: 100%;
    background: rgba(251, 250, 249, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.6rem 1.1rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked~.main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.contact-note.subtle {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.85;
}