/* Self-hosted fonts (copied to /fonts/ on build) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --page: #fafaf8;
  --section-alt: #f3f2ee;
  --card: #ffffff;
  --line: #e8e6e1;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --tertiary: #9b9b9b;
  --accent: #e85d2a;
  --accent-hover: #d04e1f;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06);
  --max: 1140px;
  --section-pad-y: 3.5rem;
  --section-pad-y-lg: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
a:hover {
  text-decoration: none;
}

.wrap {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), 100% - 2rem);
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 4rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  flex-shrink: 0;
  max-width: min(100%, 16rem);
}
.brand-link:hover {
  opacity: 0.92;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 3.2vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-w-randevu {
  color: var(--ink);
}
.brand-w-bot {
  color: var(--accent);
}
.brand-w-az {
  color: var(--muted);
  font-size: 0.92em;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .nav-main {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-link:hover {
  color: var(--accent);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .header-actions {
    display: flex;
  }
}

.btn-nav {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.lang-select {
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: inherit;
}

.link-quiet {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.link-quiet:hover {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-panel[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .nav-panel {
    display: none !important;
  }
}

.nav-panel-link {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-panel-link:last-child {
  border-bottom: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  text-decoration: none;
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--section-alt);
  border-color: #d4d1ca;
  text-decoration: none;
  transform: scale(1.02);
}
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-cta-inverse {
  background: #fff;
  color: var(--accent);
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}
.btn-cta-inverse:hover {
  background: var(--section-alt);
  text-decoration: none;
  transform: scale(1.02);
}
.btn-cta-inverse:active {
  transform: scale(0.98);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: var(--section-pad-y-lg) 0;
  overflow: hidden;
  background: var(--page);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(232, 93, 42, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-login-hint {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--tertiary);
}
.hero-login-hint a {
  color: var(--muted);
}
.hero-login-hint a:hover {
  color: var(--accent);
}

/* Phone */
.phone-wrap {
  position: relative;
  max-width: 20rem;
  margin-inline: auto;
}

.phone {
  border-radius: 2rem;
  border: 1px solid #2a2a2a;
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  padding: 0.65rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.phone-inner {
  border-radius: 1.5rem;
  background: #f5f5f4;
  padding: 1rem;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.phone-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(232, 93, 42, 0.2);
}

.phone-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.phone-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.bubble {
  border-radius: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.bubble-bot {
  background: #e8f5e9;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bubble-user {
  margin-left: 1.5rem;
  background: #e3f2fd;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-phone-demo] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.phone-wrap.is-revealed [data-phone-demo="0"] {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.phone-wrap.is-revealed [data-phone-demo="1"] {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}
.phone-wrap.is-revealed [data-phone-demo="2"] {
  opacity: 1;
  transform: none;
  transition-delay: 0.56s;
}

.phone-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(232, 93, 42, 0.35);
}

/* —— Stats —— */
.section-stats {
  background: var(--section-alt);
  padding: var(--section-pad-y-lg) 0;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 1.75rem); /* ~28px desktop */
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— Sections —— */
.section {
  padding: var(--section-pad-y-lg) 0;
  background: var(--page);
}

.section--alt {
  background: var(--section-alt);
}

@media (max-width: 640px) {
  .section,
  .section-stats,
  .hero {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
  }
}

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.section-desc {
  margin: 0 0 3rem;
  max-width: 37.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.step-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feat-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feat-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.feat-card p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.feat-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.feat-check svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.star-svg {
  width: 16px;
  height: 16px;
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.7;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff3ed;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.t-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--tertiary);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-a {
  max-height: 24rem;
}

.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  max-width: 90%;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Final CTA */
.cta-final {
  background: var(--accent);
  padding: var(--section-pad-y-lg) 0;
  text-align: center;
}

.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-final-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

.cta-final-sub {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
}

.cta-final-note {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--tertiary);
  padding: var(--section-pad-y-lg) 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  max-width: 100%;
}
.footer-brand-link:hover {
  opacity: 0.9;
}

.brand-mark--footer {
  width: 2rem;
  height: 2rem;
}

.brand-wordmark--light .brand-w-randevu {
  color: #fff;
}
.brand-wordmark--light .brand-w-bot {
  color: var(--accent);
}
.brand-wordmark--light .brand-w-az {
  color: #9b9b9b;
}

.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 20rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-col a {
  color: var(--tertiary);
  font-size: 0.9375rem;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

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