/* =========================================================
   APPTO — style.css
   Light theme · coral accent · capsule search nav · chat hero
   ========================================================= */

:root {
  --bg: #FBF6F4;
  --ink: #2A1A16;
  --muted: #6B5A54;
  --coral: #F2543D;
  --coral-deep: #C63D2B;
  --peach: #FAD9CE;
  --white: #FFFFFF;
  --line: #EFE1DB;
  --line-soft: #F3E8E3;
  --gray-off: #DDD1CA;
  --dark-strip: #241713;
  --shadow-soft: 0 12px 32px rgba(42, 26, 22, 0.10);
  --shadow-pill: 0 8px 24px rgba(42, 26, 22, 0.08);
}

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

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

body {
  font-size: 16px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background-color: #FBF6F4;
  color: #2A1A16;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #C63D2B;
  text-decoration: none;
}

a:hover {
  color: #F2543D;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- fade-up reveal (safe without JS) ---------- */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* =========================================================
   CAPSULE SEARCH NAV
   ========================================================= */
.capsule-nav {
  position: sticky;
  top: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  background: #FFFFFF;
  border: 1px solid #F2543D;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
}

.capsule-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #C63D2B;
  white-space: nowrap;
}

.capsule-brand:hover {
  color: #C63D2B;
}

.capsule-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid #F2543D;
  background: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}

.capsule-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #C63D2B;
  border-radius: 2px;
}

.capsule-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.capsule-links a {
  font-size: 15px;
  font-weight: 600;
  color: #C63D2B;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.capsule-links a:hover {
  background: #FAD9CE;
  color: #C63D2B;
}

.capsule-links a.active {
  background: #F2543D;
  color: #FFFFFF;
}

.capsule-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.capsule-search {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FBF6F4;
  border: 1px solid #EFE1DB;
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
}

.capsule-search input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #2A1A16;
  width: 110px;
  outline: none;
}

.capsule-search input::placeholder {
  color: #6B5A54;
}

.capsule-search button {
  border: none;
  background: #C63D2B;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.capsule-cta {
  background: #F2543D;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.capsule-cta:hover {
  background: #C63D2B;
  color: #FFFFFF;
}

/* =========================================================
   HERO — CHAT BUBBLE HERO
   ========================================================= */
.chat-hero {
  padding: 72px 0 84px;
}

.chat-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-chip {
  display: inline-block;
  background: #FAD9CE;
  color: #C63D2B;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #2A1A16;
  margin-bottom: 24px;
}

.hero-copy h1 .accent {
  color: #C63D2B;
}

.hero-copy p.hero-sub {
  font-size: 18px;
  color: #6B5A54;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #F2543D;
  color: #FFFFFF;
  border-color: #F2543D;
}

.btn-primary:hover {
  background: #C63D2B;
  border-color: #C63D2B;
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: #C63D2B;
  border-color: #C63D2B;
}

.btn-outline:hover {
  background: #FAD9CE;
  color: #C63D2B;
}

.btn-light {
  background: #FFFFFF;
  color: #C63D2B;
  border-color: #FFFFFF;
}

.btn-light:hover {
  background: #FAD9CE;
  color: #C63D2B;
}

/* ---- chat conversation (pure CSS) ---- */
.chat-window {
  max-width: 430px;
  margin-left: auto;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

.chat-row.in {
  justify-content: flex-end;
}

.chat-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2A1A16;
}

.chat-stamp {
  flex: none;
  width: 16px;
  height: 16px;
  background: #2A1A16;
  border-radius: 3px;
}

.bubble {
  position: relative;
  max-width: 72%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.bubble-coral {
  background: #F2543D;
  color: #FFFFFF;
  border-bottom-left-radius: 4px;
}

.bubble-coral .tail {
  position: absolute;
  left: -9px;
  bottom: 6px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 12px solid #F2543D;
}

.bubble-white {
  background: #FFFFFF;
  color: #2A1A16;
  border: 1px solid #F2543D;
  border-bottom-right-radius: 4px;
}

.bubble-white .tail {
  position: absolute;
  right: -9px;
  bottom: 6px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #F2543D;
}

.bubble-peach {
  background: #FAD9CE;
  color: #2A1A16;
  border-bottom-right-radius: 4px;
}

.bubble-peach .tail {
  position: absolute;
  right: -9px;
  bottom: 6px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #FAD9CE;
}

.chat-row.offset-1 .bubble {
  margin-right: 24px;
}

.chat-row.offset-2 .bubble {
  margin-right: 48px;
}

/* =========================================================
   STATEMENT ROW
   ========================================================= */
.statement-row {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-row p {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #2A1A16;
  max-width: 900px;
}

.statement-row p .accent {
  color: #C63D2B;
}

/* =========================================================
   FEATURE PAIRS
   ========================================================= */
.feature-pairs {
  padding: 84px 0 64px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #2A1A16;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: #6B5A54;
  max-width: 560px;
}

.pair-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.pair-row:first-of-type {
  border-top: 1px solid var(--line);
}

.pair-icon {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
}

.pair-icon.coral {
  background: #F2543D;
  color: #FFFFFF;
}

.pair-icon.deep {
  background: #C63D2B;
  color: #FFFFFF;
}

.pair-icon.peach {
  background: #FAD9CE;
  color: #2A1A16;
}

.pair-row h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 10px;
}

.pair-row p {
  font-size: 16px;
  color: #6B5A54;
  max-width: 720px;
}

/* =========================================================
   METRIC FOUR
   ========================================================= */
.metric-four {
  padding: 48px 0 72px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item .metric-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #2A1A16;
  line-height: 1;
}

.metric-item .metric-label {
  margin-top: 12px;
  font-size: 15px;
  color: #6B5A54;
  font-weight: 600;
}

/* =========================================================
   FEATURE FLAGS
   ========================================================= */
.feature-flags {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.flag-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.flag-row:first-of-type {
  border-top: 1px solid var(--line);
}

.flag-body {
  flex: 1;
}

.flag-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 6px;
}

.flag-body p {
  font-size: 15px;
  color: #6B5A54;
  max-width: 640px;
}

.flag-switch {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  position: relative;
}

.flag-switch.on {
  background: #F2543D;
}

.flag-switch.off {
  background: #DDD1CA;
}

.flag-switch span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-accordion {
  padding: 72px 0;
}

.faq-list {
  max-width: 820px;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 700;
  color: #2A1A16;
  text-align: left;
  font-family: inherit;
}

.faq-question .faq-plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FAD9CE;
  color: #C63D2B;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question .faq-plus {
  transform: rotate(45deg);
  background: #F2543D;
  color: #FFFFFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
  color: #6B5A54;
  font-size: 16px;
  max-width: 720px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: #F2543D;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  color: #FFFFFF;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* =========================================================
   APPBAR FOOTER
   ========================================================= */
.appbar-footer {
  background: #FBF6F4;
  border-top: 4px solid #F2543D;
}

.appbar-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 56px 0;
}

.footer-brand .footer-wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #C63D2B;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #6B5A54;
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2A1A16;
  margin-bottom: 18px;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #C63D2B;
  font-weight: 600;
  font-size: 15px;
}

.footer-col ul li a:hover {
  color: #F2543D;
}

.footer-col p {
  color: #6B5A54;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.appbar-strip {
  background: #241713;
  color: #FBF6F4;
  text-align: center;
  padding: 18px 24px;
  font-size: 14px;
}

.appbar-strip a {
  color: #FAD9CE;
  font-weight: 600;
}

.appbar-strip a:hover {
  color: #FFFFFF;
}

/* =========================================================
   SECONDARY PAGES (services / contact)
   ========================================================= */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #2A1A16;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: #6B5A54;
  max-width: 640px;
  margin: 0 auto;
}

/* services */
.service-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: 1px solid var(--line);
}

.service-block h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 14px;
}

.service-block h2 .num {
  color: #C63D2B;
  margin-right: 8px;
}

.service-block p {
  font-size: 16px;
  color: #6B5A54;
  max-width: 760px;
}

.service-block ul {
  list-style: none;
  margin-top: 14px;
}

.service-block ul li {
  font-size: 16px;
  color: #2A1A16;
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F2543D;
}

.process-overview {
  padding: 64px 0;
  background: #FAD9CE;
}

.process-overview h2 {
  font-size: 30px;
  font-weight: 800;
  color: #2A1A16;
  margin-bottom: 24px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-steps .step {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
}

.process-steps .step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F2543D;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 14px;
}

.process-steps .step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 8px;
}

.process-steps .step p {
  font-size: 14px;
  color: #6B5A54;
}

/* contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 0 72px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 18px;
}

.contact-info .info-block {
  margin-bottom: 18px;
}

.contact-info .info-block h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C63D2B;
  margin-bottom: 6px;
}

.contact-info .info-block p {
  font-size: 16px;
  color: #2A1A16;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.contact-form-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2A1A16;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #2A1A16;
  background: #FBF6F4;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #F2543D;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-faq {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: #C63D2B;
  font-weight: 600;
  min-height: 20px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .chat-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chat-window {
    margin-left: 0;
    max-width: 100%;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .appbar-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .capsule-nav {
    flex-wrap: wrap;
    border-radius: 26px;
    margin: 14px 16px 0;
  }

  .capsule-toggle {
    display: block;
  }

  .capsule-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 10;
    gap: 4px;
    padding-top: 8px;
  }

  .capsule-nav.nav-open .capsule-links {
    display: flex;
  }

  .capsule-links a {
    text-align: center;
    padding: 12px;
  }

  .capsule-tools {
    margin-left: auto;
  }

  .capsule-search input {
    width: 80px;
  }
}

@media (max-width: 560px) {
  .capsule-tools {
    width: 100%;
    order: 11;
    justify-content: center;
    padding-top: 8px;
  }

  .capsule-search {
    flex: 1;
  }

  .capsule-search input {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .statement-row p {
    font-size: 26px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .pair-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pair-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

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

  .metric-item .metric-num {
    font-size: 38px;
  }

  .cta-band h2 {
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 34px;
  }
}
