/* ==========================================================================
   rantifin — Design System: designer-premium (Editorial, Clean, High-Contrast)
   ========================================================================== */

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-alt: #EFECE6;
  --border: #DFDCD5;
  --border-subtle: #EBE8E1;
  --text: #191817;
  --text-muted: #5E5A54;
  --text-light: #878279;
  --accent: #B85D34;
  --accent-hover: #9E4D25;
  --accent-soft: rgba(184, 93, 52, 0.08);
  --dark: #151413;
  --dark-surface: #22201E;
  --dark-text: #F7F6F3;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--dark);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 820px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text);
  font-size: 1.05rem;
}

p + p {
  margin-top: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--text);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--surface-alt);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A853;
  display: inline-block;
}

/* Specs Strip */
.specs-strip {
  padding: 3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.spec-card {
  display: flex;
  flex-direction: column;
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.spec-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.spec-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Services Section */
.section-services,
.section-pricing,
.section-process,
.section-faq,
.section-content {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 3.25rem;
}

.sub-title {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-number {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.service-features li {
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* Pricing Section */
.section-pricing {
  background: var(--surface-alt);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.highlight-card {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-header h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.price-intent {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.price-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.price-amount .number {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.price-amount .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.price-perks {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-perks li {
  font-size: 0.94rem;
  padding: 0.5rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
}

/* Process Section */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 0.85rem;
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* CTA Banner */
.section-cta-banner {
  background: var(--dark);
  color: var(--dark-text);
  padding: 4.5rem 0;
}

.section-cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.section-cta-banner p {
  color: #BFBAB2;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  background: var(--surface-alt);
  font-weight: 650;
  color: var(--text);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.info-block {
  margin-top: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-block:last-child {
  border-bottom: none;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.info-value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

/* Forms */
.site-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #FFFFFF;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.75rem;
}

/* Page Header */
.page-header {
  padding: 4rem 0 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 0.75rem;
}

/* Text & Legal Layout */
.text-layout {
  max-width: 900px;
  margin: 0 auto;
}

.content-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.info-callout,
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.info-callout h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  padding: 0.5rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
}

.quote-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.quote-card cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  font-style: normal;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.mt-xl { margin-top: 3.5rem; }
.py-xxl { padding: 6rem 0; }
.justify-center { justify-content: center; }

.addon-price {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding-top: 4.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: #B5B1A8;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.footer-meta {
  font-size: 0.82rem;
  color: #8C877D;
}

.footer-grid h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  color: #BFBAB2;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #FFFFFF;
}

.footer-address {
  font-style: normal;
  color: #BFBAB2;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-hours {
  font-size: 0.84rem;
  color: #8C877D;
  line-height: 1.5;
}

.footer-bottom-inner {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #8C877D;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #FFFFFF;
  padding: 1.25rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text p {
  color: #DFDBD2;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-grid,
  .content-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}