/* Clearline Websites styles. Mobile-first. */
:root {
  --navy-900: #0a1a33;
  --navy-800: #0f2341;
  --navy-700: #1b3560;
  --navy-100: #e8edf5;
  --navy-50: #f4f7fb;
  --ink: #0f2341;
  --muted: #4a5873;
  --line: #d6deea;
  --white: #ffffff;
  --accent: #f5b83d;
  --accent-dark: #e0a020;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 35, 65, .06), 0 8px 24px rgba(15, 35, 65, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-underline-offset: .18em; }
a:hover { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--accent); color: var(--navy-900);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 780px; }

/* Wordmark */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  text-decoration: none; color: var(--navy-800);
  font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1;
}
.wordmark:hover { color: var(--navy-800); }
.wordmark-dot { width: .32em; height: .32em; border-radius: 2px; background: var(--accent); display: inline-block; }
.wordmark-light, .wordmark-light:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-accent { background: var(--accent); color: var(--navy-900); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy-900); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-small { min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: .7rem; padding-bottom: .5rem;
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 42px; padding: .45rem .8rem;
  border: 2px solid var(--navy-800); border-radius: 10px;
  color: var(--navy-800); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: .95rem;
}
.header-phone:hover { background: var(--navy-800); color: var(--white); }
.header-phone .icon { width: 18px; height: 18px; fill: currentColor; }
.header-cta { display: none; }

.site-nav { order: 3; width: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .6rem; list-style: none; margin: 0; padding: .15rem 0 .2rem; white-space: nowrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .86rem; display: inline-block; padding: .3rem 0; }
.site-nav a:hover { color: var(--navy-800); text-decoration: underline; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(245,184,61,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 3.25rem 0 3.5rem;
  scroll-margin-top: 120px;
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: #d3dced; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero-note { color: #b9c6dc; font-size: .95rem; margin: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800;
  color: var(--navy-700); margin-bottom: .75rem;
}
.eyebrow-light { color: var(--accent); }
.lead { font-size: 1.15rem; }

/* Hero phone illustration */
.hero-visual { display: none; justify-content: center; }
.phone {
  width: 230px; padding: 10px; border-radius: 34px;
  background: #1f3a66; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone-screen {
  background: var(--white); border-radius: 26px; padding: 14px; min-height: 400px;
  display: flex; flex-direction: column; gap: 12px;
}
.ph-bar { height: 10px; width: 50%; border-radius: 6px; background: var(--navy-100); margin: 0 auto 4px; }
.ph-hero { background: var(--navy-50); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-line { display: block; height: 10px; border-radius: 6px; background: var(--navy-100); }
.ph-hero .ph-line { background: #cdd7e6; }
.ph-line-lg { width: 85%; height: 14px; background: var(--navy-800) !important; }
.ph-line-md { width: 65%; }
.ph-line-sm { width: 45%; }
.ph-btn { align-self: flex-start; margin-top: 6px; background: var(--accent); color: var(--navy-900); font-weight: 800; font-size: .75rem; padding: 6px 12px; border-radius: 8px; }
.ph-row { display: flex; gap: 6px; }
.ph-chip { flex: 1; text-align: center; font-size: .68rem; font-weight: 700; color: var(--navy-700); background: var(--navy-50); border: 1px solid var(--line); border-radius: 8px; padding: 5px 0; }
.ph-map {
  height: 110px; border-radius: 12px; position: relative;
  background:
    linear-gradient(90deg, transparent 46%, #ffffff 46%, #ffffff 54%, transparent 54%),
    linear-gradient(0deg, transparent 58%, #ffffff 58%, #ffffff 66%, transparent 66%),
    linear-gradient(135deg, #dbe7d6, #cfe0ea);
}
.ph-pin { position: absolute; left: 50%; top: 38%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e5484d; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Sections */
.section { padding: 4rem 0; scroll-margin-top: 110px; }
.section-alt { background: var(--navy-50); }
.section-dark { background: var(--navy-800); color: var(--white); }
.section-intro { color: var(--muted); max-width: 40em; font-size: 1.08rem; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

.feature-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.feature-icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--navy-800); color: var(--accent);
}

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: none; }
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--accent); color: var(--navy-900); font-weight: 800; font-size: 1.15rem;
}

/* Example designs */
.examples-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.example { margin: 0; display: flex; flex-direction: column; }
.example figcaption { margin-top: .75rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; background: var(--navy-100); color: var(--navy-800); padding: .25rem .55rem; border-radius: 999px; }
.mock {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--white); font-size: .82rem;
  flex: 1; display: flex; flex-direction: column;
}
.mock p { margin: 0; }
.mock-bar { display: flex; gap: 5px; padding: 8px 10px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c7cfdc; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 10px 14px; }
.mock-nav strong { font-size: .85rem; }
.mock-call { font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff; }
.mock-hero { padding: 22px 14px; color: #fff; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mock-h { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.mock-p { opacity: .92; }
.mock-btn { align-self: flex-start; margin-top: 6px; font-weight: 800; font-size: .75rem; padding: 6px 12px; border-radius: 6px; background: #fff; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 16px; }
.mock-tiles span { text-align: center; font-weight: 700; font-size: .72rem; padding: 14px 4px; border-radius: 8px; }

.mock-landscape .mock-nav strong { color: #24502c; }
.mock-landscape .mock-call { background: #2f6b3a; }
.mock-landscape .mock-hero { background: linear-gradient(135deg, #2f6b3a, #4c8b4f); }
.mock-landscape .mock-btn { color: #24502c; }
.mock-landscape .mock-tiles span { background: #eaf3e6; color: #24502c; }

.mock-clean .mock-nav strong { color: #155e75; }
.mock-clean .mock-call { background: #0e7490; }
.mock-clean .mock-hero { background: linear-gradient(135deg, #0e7490, #2a9bb8); }
.mock-clean .mock-btn { color: #155e75; }
.mock-clean .mock-tiles span { background: #e3f4f8; color: #155e75; }

.mock-salon .mock-nav strong { color: #6b2848; font-family: Georgia, "Times New Roman", serif; }
.mock-salon .mock-call { background: #8a3a5f; }
.mock-salon .mock-hero { background: linear-gradient(135deg, #6b2848, #a0587a); }
.mock-salon .mock-h { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.mock-salon .mock-btn { color: #6b2848; }
.mock-salon .mock-tiles span { background: #f7e9ef; color: #6b2848; }

/* Pricing */
.pricing-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.price-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-700); }
.price { margin: .25rem 0 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.price-amount { font-size: clamp(2.1rem, 7vw, 2.75rem); font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; line-height: 1.1; }
.price-unit { color: var(--muted); font-weight: 600; }
.price-card-main { border-top: 5px solid var(--accent); }
.price-card { border-top-width: 5px; }
.price-card:not(.price-card-main) { border-top-color: var(--navy-800); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent);
}
.checklist li::after {
  content: ""; position: absolute; left: .38rem; top: .48em;
  width: .3rem; height: .55rem; border: solid var(--navy-900); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* FAQ */
.faq-list { margin-top: 1.75rem; display: grid; gap: .75rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; position: relative;
  border-radius: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--navy-700); line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { background: var(--navy-50); }
.faq-list details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-inner { display: grid; gap: 2rem; align-items: center; }
.section-dark .lead { color: #d3dced; }
.contact-card {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #b9c6dc; font-weight: 700; }
.contact-list a { color: var(--white); font-weight: 700; font-size: 1.15rem; word-break: break-all; }
.contact-list a:hover { color: var(--accent); }
.privacy-note { color: #b9c6dc; font-size: .92rem; margin: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c6dc; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-tag { margin: .6rem 0 0; }
.footer-contact { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
.footer-base { position: relative; margin-top: 1.75rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; }
.footer-base::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-base p { margin: 0; }

/* Tablet and up */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: inline-flex; }
  .hero-visual { display: flex; }
}

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; padding-top: .8rem; padding-bottom: .8rem; }
  .site-nav { order: 0; width: auto; overflow: visible; margin-left: auto; }
  .site-nav ul { gap: 1.4rem; padding: 0; justify-content: flex-end; flex-wrap: nowrap; }
  .header-actions { margin-left: 1rem; }
  .hero { padding: 5rem 0 5.5rem; scroll-margin-top: 80px; }
  .section { padding: 5.5rem 0; scroll-margin-top: 72px; }
  .hero-inner { grid-template-columns: 1.35fr 1fr; gap: 3rem; }
  .phone { width: 260px; }
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .feature-grid > li { grid-column: span 2; }
  /* Center a short last row only when there are exactly 5 cards (now 6, so all rows are full). */
  .feature-grid > li:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
  .feature-grid > li:nth-child(5):last-child { grid-column: 4 / span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .examples-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 900px; }
  .contact-inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-contact { align-items: flex-end; }
}

/* Not found page */
.notfound { min-height: 70vh; display: flex; align-items: center; }

.page-404 { background: var(--navy-900); }

/* Checkout pages */
.page-checkout { background: var(--navy-900); }
.checkout-main { padding: 3rem 0 4rem; background: var(--navy-50); min-height: 70vh; }
.checkout-intro { color: var(--muted); margin-bottom: 1.5rem; }
.checkout-card { padding: 1.5rem; }
.checkout-message { margin: 0 0 1rem; }
.checkout-message:empty { display: none; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Footer links */
.footer-links a { color: var(--white); font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

/* Service Agreement page */
.terms-hero { padding: 3rem 0 3.25rem; }
.terms-hero h1 { margin-bottom: .4em; }
.terms-updated { color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.terms-hero .lead { margin: 0; }
.terms-body { padding: 2.5rem 0 4rem; background: var(--navy-50); }
.terms-intro { color: var(--muted); margin-bottom: 1.5rem; }
.terms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.terms-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--shadow); scroll-margin-top: 120px;
}
.terms-item h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; margin-bottom: .6rem; }
.terms-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--navy-900); font-weight: 800; font-size: .95rem; letter-spacing: 0;
}
.terms-item p { color: var(--muted); margin: 0 0 .75em; }
.terms-item p:last-child { margin-bottom: 0; }
.terms-item a { font-weight: 700; word-break: break-word; }
.terms-item a[href^="tel:"] { white-space: nowrap; }

@media (min-width: 900px) {
  .terms-hero { padding: 4rem 0 4.25rem; }
  .terms-body { padding: 3.5rem 0 5rem; }
  .terms-item { padding: 1.5rem 1.75rem 1.4rem; }
  .terms-item h2 { font-size: 1.3rem; }
}
