/* ============================================
   RYNTA — Clean Shared Stylesheet
   Mobile-first, single source of truth
   ============================================ */

/* --- CSS Variables --- */
:root {
  --charcoal: #1C1C1E;
  --charcoal-light: #2A2A2C;
  --parchment: #F5F0EB;
  --copper: #C87941;
  --sage: #A8A399;
  --glass-bg: rgba(245, 240, 235, 0.05);
  --glass-border: rgba(245, 240, 235, 0.1);
  --success: #5B8C5A;
  --white: #ffffff;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 72px;
  --max-width: 1280px;
  --radius: 1rem;
  --radius-pill: 9999px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--parchment);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* --- Typography --- */
.font-serif { font-family: var(--font-serif); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

.section-py { padding: 4rem 0; }
@media (min-width: 1024px) {
  .section-py { padding: 6rem 0; }
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--parchment);
}
.nav-links {
  display: none;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--sage);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--copper); }
.nav-cta {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.nav-cta .login {
  color: var(--sage);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.nav-cta .login:hover { color: var(--parchment); }

/* Hamburger */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--parchment);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 102;
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile Menu */
#mobileMenu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--charcoal);
  z-index: 101;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
#mobileMenu.active { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 103;
}
#mobileMenu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--parchment);
}
#mobileMenu a.btn-nav-cta {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--copper);
  color: var(--charcoal);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { opacity: 0.95; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 121, 65, 0.35); }
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  background: var(--copper);
  color: var(--charcoal);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary-sm:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200, 121, 65, 0.3); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--glass-border);
  color: var(--parchment);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 121, 65, 0.15);
}

/* --- Pricing Toggle --- */
.toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  user-select: none;
  flex-wrap: wrap;
}
.toggle-label {
  font-size: 0.9375rem;
  color: var(--sage);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.toggle-label.active { color: var(--parchment); }
.toggle-track {
  width: 56px;
  height: 30px;
  background: var(--charcoal-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.toggle-track.active {
  background: var(--copper);
  border-color: var(--copper);
}
.toggle-knob {
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.toggle-track.active .toggle-knob { transform: translateX(24px); }
.save-badge {
  display: inline-block;
  background: var(--copper);
  color: var(--charcoal);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
.p-card {
  background: var(--parchment);
  color: var(--charcoal);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.p-card.popular { border: 2px solid var(--copper); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: var(--charcoal);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.p-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.p-card .props {
  color: var(--sage);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.p-card .price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.p-card .price span {
  font-size: 1rem;
  color: var(--sage);
  font-weight: 400;
}
.p-card .setup {
  color: var(--sage);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.p-card ul {
  text-align: left;
  margin-bottom: 2rem;
  flex: 1;
}
.p-card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
}
.p-card ul li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  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='%235B8C5A' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
}
.p-card .btn-primary,
.p-card .btn-secondary { width: 100%; justify-content: center; }

.price-row { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-bottom: 0.25rem; }
.annual-price, .monthly-price { display: block; }
.annual-price.hidden, .monthly-price.hidden { display: none !important; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-q {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}
.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--sage);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { content: "\2013"; color: var(--copper); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--sage);
  font-size: 0.9375rem;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* --- Footer --- */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}
.footer-brand p {
  color: var(--sage);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--parchment);
}
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--sage);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--sage); font-size: 0.75rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { color: var(--sage); font-size: 0.875rem; transition: color 0.2s; }
.social-links a:hover { color: var(--copper); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  background: var(--charcoal-light);
  color: var(--parchment);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
}
.form-group input::placeholder { color: var(--sage); }

/* --- Auth Pages --- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(var(--nav-height) + 1rem);
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--charcoal-light);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
}
@media (max-width: 480px) {
  .auth-box { padding: 1.5rem; }
}
.auth-box h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.auth-box p {
  color: var(--sage);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--sage);
  font-size: 0.875rem;
}
.auth-footer a { color: var(--copper); }

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Pricing Page Mobile Enterprise Layout --- */
@media (max-width: 767px) {
  .pricing-hero {
    padding-top: 80px !important;
    padding-bottom: 1.5rem !important;
  }
  .pricing-hero h1 {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
  }
  .pricing-hero p {
    font-size: 0.9375rem !important;
    margin-bottom: 0 !important;
  }
  .pricing-trust-row {
    gap: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    justify-content: center !important;
  }
  .pricing-trust-row > div {
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  .pricing-trust-row > div svg,
  .pricing-trust-row > div span:first-child {
    font-size: 0.875rem !important;
  }
  .pricing-banner {
    padding: 0.625rem 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }
  .pricing-banner p {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
  }
  .pricing-banner svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cookie Banner --- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal-light);
  border-top: 1px solid var(--glass-border);
  z-index: 200;
  padding: 1rem;
}
.cc-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cc-desc { font-size: 0.875rem; color: var(--sage); flex: 1; }
.cc-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cc-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--parchment);
  transition: all 0.2s;
}
.cc-btn:hover { border-color: var(--copper); }
.cc-btn-accept {
  background: var(--copper);
  color: var(--charcoal);
  border-color: var(--copper);
}
@media (max-width: 767px) {
  .cc-container { flex-direction: column; align-items: stretch; }
  .cc-actions { width: 100%; }
  .cc-actions button { flex: 1; min-hei