/* Cherry App Agency — single stylesheet, mobile first. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #FF4693;          /* decorative only: below 4.5:1 on white */
  --pink-soft: #FFF0F6;
  --pink-border: #F7C8DD;
  --pink-dark: #C2185B;     /* buttons, table headers, accent text (5.9:1 on white) */
  --pink-darker: #9E1248;   /* hover states */
  --ink: #26232A;
  --ink-2: #625B66;
  --white: #FFFFFF;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(194, 24, 91, 0.08), 0 2px 6px rgba(38, 35, 42, 0.04);
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 68px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.35em; }

a { color: var(--pink-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-darker); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--pink-border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name span { color: var(--pink-dark); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.site-nav a[aria-current="page"] {
  color: var(--pink-dark);
  box-shadow: inset 0 -3px 0 var(--pink-dark);
  border-radius: 10px 10px 0 0;
}

/* Without JavaScript the nav simply wraps under the logo. With JavaScript,
   small screens get a toggle button. */
.no-js-hidden { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--pink-border);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding: 4px 0 16px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav a { padding: 12px 12px; font-size: 1.05rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--pink-dark); border-radius: 0 10px 10px 0; background: var(--pink-soft); }
  .site-nav { width: 100%; }
}
@media (max-width: 1079px) {
  html:not(.js) .site-nav { padding-bottom: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--pink-dark);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--pink-dark); color: var(--white); }
.btn-primary:hover { background: var(--pink-darker); border-color: var(--pink-darker); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--pink-dark); }
.btn-secondary:hover { background: var(--pink-soft); color: var(--pink-darker); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 519px) {
  .btn-row .btn { width: 100%; }
}
.btn-note { margin-top: 12px; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section-alt { background: var(--pink-soft); border-top: 1px solid var(--pink-border); border-bottom: 1px solid var(--pink-border); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--pink-border);
  border-radius: 999px;
  background: var(--white);
  color: var(--pink-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-soft) 100%);
  border-bottom: 1px solid var(--pink-border);
  padding: 40px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 147, 0.14), rgba(255, 70, 147, 0) 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-copy .lead { max-width: 560px; }
.hero-media img { width: 100%; max-width: 460px; margin: 0 auto; }
.hero-caption { margin-top: 8px; text-align: center; font-size: 0.85rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-media img { max-width: 520px; }
}

/* ---------- Internal page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-soft) 100%);
  border-bottom: 1px solid var(--pink-border);
  padding: 20px 0 44px;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -40px;
  width: 160px; height: 160px;
  background: url("/assets/images/cherry-logo.svg") no-repeat center / contain;
  opacity: 0.1;
  transform: rotate(-12deg);
  pointer-events: none;
}
@media (min-width: 900px) {
  .page-hero { padding: 28px 0 64px; }
  .page-hero::after { width: 300px; height: 300px; right: 4%; bottom: -60px; opacity: 0.16; }
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 720px; }
.page-meta { margin-top: 18px; font-size: 0.9rem; color: var(--ink-2); }

.breadcrumb { padding-top: 14px; }
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }
.page-hero-wrap { background: var(--white); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (min-width: 720px) { .card { padding: 28px; } }
.card h3 { margin-bottom: 0.4em; }
.card > :last-child { margin-bottom: 0; }

.path-card { display: flex; flex-direction: column; border-top: 6px solid var(--pink-dark); }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card ul { margin-bottom: 24px; }
@media (max-width: 519px) { .path-card .btn { align-self: stretch; } }
.path-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--pink-soft);
  border: 1px solid var(--pink-border);
  margin-bottom: 16px;
}
.path-icon img { width: 34px; height: 34px; }

.stat {
  background: var(--white);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-figure {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.stat-label { display: block; font-weight: 700; margin-bottom: 6px; }
.stat-note { display: block; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Notes / caveats ---------- */
.note {
  border: 1px solid var(--pink-border);
  border-left: 5px solid var(--pink-dark);
  background: var(--pink-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.98rem;
}
.section-alt .note { background: var(--white); }
.note-label {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 4px;
}
.note p { margin-bottom: 0.5rem; }
.note > :last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--pink-border);
  border-radius: var(--radius);
  background: var(--white);
  margin: 0 0 20px;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.98rem; }
caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--pink-border);
}
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
thead th {
  background: var(--pink-dark);
  color: var(--white);
  font-weight: 700;
}
tbody tr:nth-child(even) { background: var(--pink-soft); }
tbody th { font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 519px) {
  th, td { padding: 10px 12px; }
  table { font-size: 0.93rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: 60px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px; left: 24px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
@media (min-width: 720px) { .steps li::before { left: 28px; } .steps li { padding-top: 66px; } }
.steps h3 { font-size: 1.35rem; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pink-soft);
  border: 2px solid var(--pink-dark);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px; top: calc(0.42em + 4px);
  width: 4px; height: 7px;
  border: solid var(--pink-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  position: relative;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq .faq-body { padding: 0 18px 18px; color: var(--ink); }
.faq .faq-body p { margin-bottom: 0.6rem; }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  width: 110px; height: 110px;
  background: url("/assets/images/cherry-logo.svg") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}
.cta-band::before { left: -24px; top: -20px; transform: rotate(-18deg); }
.cta-band::after { right: -20px; bottom: -24px; transform: rotate(14deg); }
.cta-band > * { position: relative; }
.cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--ink-2); }
.cta-band .btn-row { justify-content: center; }
@media (min-width: 720px) { .cta-band { padding: 48px 40px; } }

/* ---------- Converter ---------- */
.converter { max-width: 640px; }
.converter label { display: block; font-weight: 700; margin-bottom: 8px; }
.converter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.converter input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 10px 16px;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  border: 2px solid var(--pink-border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.converter input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--pink-dark); }
.converter input[aria-invalid="true"] { border-color: var(--pink-dark); }
.converter .btn { flex: 0 0 auto; }
.converter-hint { font-size: 0.92rem; color: var(--ink-2); margin-top: 8px; }
.converter-result {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
  border: 1px solid var(--pink-border);
  min-height: 3.2em;
}
.converter-result strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--pink-dark); }
.converter-error { color: var(--pink-darker); font-weight: 700; }
.converter-js { display: none; }
.js .converter-js { display: block; }

/* ---------- Definition-style facts ---------- */
.facts { display: grid; gap: 0; border: 1px solid var(--pink-border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.facts div { display: grid; gap: 2px 16px; padding: 14px 18px; border-top: 1px solid var(--pink-border); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .facts div { grid-template-columns: 220px 1fr; } }

.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; } }
.aside-card { position: relative; }
@media (min-width: 960px) { .aside-card { position: sticky; top: calc(var(--header-h) + 24px); } }

.contact-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  margin: 0 0 8px;
}
.contact-number a { color: var(--ink); text-decoration: none; }
.contact-number a:hover { color: var(--pink-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 4px solid var(--pink);
  padding: 48px 0 104px; /* extra bottom space so the floating button never covers footer text */
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 0.8fr 1.2fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.disclosure { color: var(--ink-2); max-width: 440px; }
.footer-heading { font-size: 1.25rem; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li + li { margin-top: 2px; }
.footer-links a { display: inline-block; padding: 5px 0; color: var(--ink); }
.footer-links a:hover { color: var(--pink-dark); }
.footer-contact { font-weight: 700; }
.footer-small { color: var(--ink-2); font-size: 0.88rem; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--pink-border); color: var(--ink-2); font-size: 0.88rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  justify-content: center;
  border-radius: 999px;
  background: var(--pink-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(158, 18, 72, 0.3);
  border: 2px solid var(--white);
}
.wa-float:hover { background: var(--pink-darker); color: var(--white); }
/* Hidden while the page hero (which has its own call to action) is on screen. */
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float-label { display: none; }
@media (min-width: 720px) {
  .wa-float { right: 24px; bottom: 24px; padding: 0 20px 0 16px; }
  .wa-float-label { display: inline; }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found img { margin: 0 auto 16px; }
.not-found .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .wa-float, .btn-row, .nav-toggle { display: none !important; }
  .site-footer { padding-bottom: 24px; }
}

.section-subhead { margin-top: 40px; }
.nowrap { white-space: nowrap; }
.table-wrap { max-width: 880px; }
.two-col .table-wrap { max-width: none; }
@media (min-width: 720px) { .aside-card .facts div { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .hero-media img { max-width: 340px; } }
@media (max-width: 399px) {
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 1.32rem; }
  .nav-toggle { padding: 8px 12px; gap: 8px; }
}
