/* ClockCycleLab — light, Facebook-style theme. See .claude/skills/brand-guidelines. */
:root {
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --line: #DADDE1;
  --text: #1C1E21;
  --muted: #65676B;
  --blue: #1877F2;
  --blue-dark: #166FE5;
  --blue-darker: #1464D8;   /* text-on-light & hover: passes WCAG AA */
  --blue-soft: #E7F3FF;
  --green: #42B72A;
  --green-text: #2E7D1E;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-darker); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); cursor: pointer; text-decoration: none !important;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--blue-dark); color: #fff; }
.btn-primary:hover { background: var(--blue-darker); }
.btn-secondary { background: var(--blue-soft); color: var(--blue-darker); }
.btn-secondary:hover { background: #DBEBFF; }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav a:not(.btn):hover { background: var(--bg); color: var(--text); text-decoration: none; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
    background: var(--bg); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 16px; background: var(--surface); box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
  /* Without JS the menu stays visible */
  .no-js .site-nav { position: static; display: flex; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue-darker); margin-bottom: .75em;
}
.eyebrow.light { color: #fff; opacity: .9; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(66, 183, 42, .2); }

/* Hero */
.hero { background: var(--bg); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 88px 0 96px; } }
.hero .eyebrow { background: var(--surface); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); color: var(--text); text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; }
.hl { color: var(--blue); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-note strong { color: var(--text); }

.hero-card {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px; max-width: 440px; justify-self: center; width: 100%;
}
.hc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.hc-head strong { display: block; }
.hc-head span { color: var(--muted); font-size: .9rem; }
.pulse { width: 100%; height: 56px; margin: 4px 0 16px; background: var(--blue-soft); border-radius: var(--radius-sm); padding: 6px 0; }
.pulse path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.2s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
.hc-list { list-style: none; margin: 0 0 16px; padding: 0; }
.hc-list li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--bg); color: var(--muted); }
.hc-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.hc-list li.done { color: var(--text); }
.hc-list li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--green); }
.hc-list li.active { color: var(--text); font-weight: 600; }
.hc-list li.active::before { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--blue); }
.hc-progress { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.hc-progress span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.hc-foot { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.hc-foot .ok { color: var(--green-text); font-weight: 600; }

/* Promises strip */
.promises { background: var(--surface); border-bottom: 1px solid var(--line); }
.promises .container { padding: 0; }
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 700px) { .promise-grid { grid-template-columns: repeat(5, 1fr); } }
.promise { background: var(--surface); padding: 22px 12px; text-align: center; }
.promise strong { display: block; color: var(--blue); font-size: 1.25rem; }
.promise span { color: var(--muted); font-size: .9rem; }
.promise:last-child { grid-column: 1 / -1; }
@media (min-width: 700px) { .promise:last-child { grid-column: auto; } }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.section:not(.alt) .card { border: 1px solid var(--line); box-shadow: none; }
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.service { transition: box-shadow .2s, transform .2s, border-color .2s; }
.service:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.service p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg); color: var(--muted); font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.why-grid .card h3 { color: var(--blue-darker); }
.why-grid .card p { color: var(--muted); margin: 0; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: relative; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Pricing */
.price-grid { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { display: flex; flex-direction: column; position: relative; }
.price h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-sub { color: var(--muted); }
.amount { font-size: 2.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin: 8px 0 16px; line-height: 1; }
.amount span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.checks li { position: relative; padding: 6px 0 6px 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231877F2' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
}
.timeline { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.section:not(.alt) .price.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .price.featured { transform: scale(1.03); } }
.badge { position: absolute; top: -13px; left: 24px; background: var(--blue-dark); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0; }

.models { margin-top: 48px; background: var(--bg); border-radius: var(--radius); padding: 28px; text-align: center; }
.model-grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 760px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
.model { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.model strong { display: block; font-size: 1.7rem; color: var(--blue-darker); }
.model small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.model span { color: var(--muted); font-size: .95rem; }

/* Estimator */
.estimator { display: grid; gap: 28px; padding: 28px; }
@media (min-width: 960px) { .estimator { grid-template-columns: 1.6fr 1fr; padding: 36px; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--bg);
  font-weight: 600; font-size: .95rem; color: var(--text); border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips label:hover span { background: #E4E6EB; }
.chips input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-darker); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.est-result { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; align-self: start; text-align: center; }
@media (min-width: 960px) { .est-result { position: sticky; top: 90px; } }
.est-label { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.est-amount { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; color: var(--blue-darker); margin-bottom: 4px; letter-spacing: -.02em; }
.est-time { color: var(--text); font-weight: 600; }
.est-fine { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* Stack & industries */
.two-col { display: grid; gap: 56px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .stack { grid-template-columns: 1fr 1fr; } }
.stack > div { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; }
.stack h3 { font-size: 1rem; margin-bottom: 4px; color: var(--blue-darker); }
.stack p { margin: 0; color: var(--muted); font-size: .92rem; }
.industries { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center;
  font-size: 1.2rem; color: var(--blue-darker); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--blue); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Contact */
.contact-section { background: linear-gradient(135deg, #1464D8 0%, #0A4FB0 100%); color: #fff; }
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-copy p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; }
.contact-points { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-points li { padding: 6px 0 6px 28px; position: relative; font-weight: 600; }
.contact-points li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; top: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: .75rem; }
.contact-mail a { color: #fff; font-weight: 700; text-decoration: underline; }
.contact-form { color: var(--text); box-shadow: var(--shadow-lg); }
.row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 119, 242, .2); }
.form-status { margin: 12px 0 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.form-status.ok { color: var(--green-text); font-weight: 600; }
.form-status.err { color: #C62828; font-weight: 600; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { font-size: .95rem; margin-bottom: 10px; }
.site-footer nav a, .footer-grid > div > a { display: block; color: var(--muted); padding: 3px 0; }
.site-footer .brand { margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--bg); padding: 48px 16px; }
.not-found .code { font-size: 5rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }

/* Reveal on scroll (progressive: only when JS adds .js) */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .5s ease, translate .5s ease, box-shadow .2s, transform .2s; }
.js .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; translate: none; }
}
