/* Carey Creative — Marketing Check-In landing page.
   Loaded after services.css and contact.css, which supply the buttons,
   form fields, form error/thank-you behaviour and footer. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Caveat:wght@500;600&family=Archivo+Black&display=swap');

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ci {
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --accent-primary: #fea439;
  --accent-primary-hover: #f08f17;
  --accent-secondary: #4e36a6;
  --accent-secondary-hover: #6654e8;
  --ci-body: #3a3833;
  --ci-muted: #5c5a54;
  --ci-rule: #e6e1d8;
  --ci-peach: #ffd09a;
  font-family: var(--font-body);
  color: var(--ink-950);
  background: var(--paper);
}
.ci a:not(.btn) { color: var(--accent-secondary); }
.ci a:not(.btn):hover { color: var(--accent-secondary-hover); }
.ci a:focus-visible, .ci button:focus-visible { outline: 2px solid var(--accent-secondary-hover); outline-offset: 3px; }
.ci .container { max-width: 1200px; }
.ci .btn { font-family: var(--font-body); }

/* ---------- Shared pieces ---------- */
.ci-section { padding: 110px 24px; }
.ci-section--rule { border-top: 1px solid var(--ci-rule); }
.ci-section--cream { background: var(--cream-50); }
.ci-section--peach { background: var(--ci-peach); }

.ci-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 32px 72px;
  align-items: start;
}
.ci-split--center { align-items: center; gap: 56px 72px; }

.ci-kicker, .ci-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-secondary); }
.ci-kicker { letter-spacing: .14em; text-transform: uppercase; }

.ci-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.ci-h2--lg { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.ci-h2--sm { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }

.ci-body { font-size: 17px; line-height: 1.7; color: var(--ci-body); text-wrap: pretty; }
.ci-body--sm { font-size: 15px; line-height: 1.65; }
.ci-note { font-size: 13px; line-height: 1.5; color: var(--ci-muted); }
.ci-link, .ci a.ci-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.ci-header { padding: 28px 24px; }
.ci-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ci-header__logo { height: 20px; display: block; }
.ci-header .ci-link { padding: 12px 0; white-space: nowrap; }

/* ---------- Hero ---------- */
.ci-hero { padding: 48px 24px 110px; }
.ci-hero .ci-split { gap: 64px 72px; }
.ci-hero__copy { gap: 28px; align-items: flex-start; }
.ci-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ci-lede { max-width: 520px; font-size: 18px; line-height: 1.65; color: var(--ci-body); text-wrap: pretty; }
.ci-hero__cta { gap: 14px; align-items: flex-start; padding-top: 4px; }

.ci-hero__art { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.ci-hero__wash {
  position: absolute;
  inset: 0 6% 0 10%;
  border-radius: 28px;
  background: linear-gradient(135deg, #9b93f2 0%, var(--ci-peach) 100%);
  opacity: .35;
}

/* A stack of worksheet pages with the cover on top. */
.ci-stack { position: relative; display: block; width: min(78%, 380px); aspect-ratio: 8.5 / 11; }
.ci-stack--small { width: min(70%, 300px); }
.ci-stack__page { position: absolute; inset: 0; border-radius: 4px; box-shadow: 0 18px 40px rgba(11, 11, 9, .10); }
.ci-stack__page--back { background: #fbf8f3; transform: translate(34px, 18px) rotate(5deg); }
.ci-stack__page--mid { background: var(--paper); transform: translate(16px, 8px) rotate(2deg); }
.ci-stack--small .ci-stack__page--mid { transform: translate(14px, 10px) rotate(3deg); }
.ci-sheet {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-50);
  box-shadow: 0 30px 60px rgba(11, 11, 9, .18);
  transition: transform .3s var(--ease-out, ease);
}
a.ci-stack:hover .ci-sheet { transform: translateY(-6px) rotate(-1deg); }
.ci-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ci-sheet .asset-slot {
  box-sizing: border-box;
  margin: 10px;
  height: calc(100% - 20px);
  border: 1.5px dashed var(--ink-400);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--ci-muted);
}
.asset-slot__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-secondary); }
.asset-slot__desc { font-size: 13px; line-height: 1.5; }

/* ---------- Problem to relief ---------- */
.ci-problems { gap: 64px; }
.ci-problems__body { padding-top: 6px; }
.ci-problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 48px;
}
.ci-problem { border-top: 1px solid var(--ink-950); padding: 24px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.ci-problem__text { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.35; text-wrap: pretty; }

/* ---------- What's inside ---------- */
.ci-inside { gap: 56px; }
.ci-inside__head { gap: 20px; max-width: 760px; }
.ci-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.ci-area { gap: 20px; }
.ci-area__copy { gap: 10px; }
.ci-area__head { display: flex; align-items: baseline; gap: 12px; }
.ci-area__title { font-family: var(--font-body); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ci-area__art {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--oat-100);
  box-shadow: 0 10px 30px rgba(11, 11, 9, .06);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 22px 0;
  box-sizing: border-box;
}

.ci-responses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ci-rule);
  font-size: 14px;
  color: var(--ci-body);
}
.ci-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ci-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.ci-chip::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--ink-950); border-radius: 2px; }

/* Small illustrations of a local business's website, contact form and social post. */
.ci-area__art i { display: block; font-style: normal; }
.mock-display { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-weight: 400; line-height: 1.1; }
.mock-line { height: 3px; background: var(--ci-rule); border-radius: 2px; }

.mock-browser {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 24px rgba(11, 11, 9, .10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mock-browser__bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #f1f3f4; border-bottom: 1px solid #e1e4e6; }
.mock-browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-200); }
.mock-browser__bar span {
  flex: 1;
  margin-left: 8px;
  height: 10px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--ci-rule);
  font-size: 7px;
  line-height: 9px;
  color: #8a867d;
  padding-left: 6px;
}
.mock-browser__nav { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; }
.mock-browser__nav b { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; color: #0e5a63; }
.mock-browser__nav em { width: 9px; height: 9px; border-radius: 2px; background: #f2c230; }
.mock-browser__nav span { display: flex; align-items: center; gap: 8px; }
.mock-browser__nav span i { width: 18px; height: 3px; background: var(--ink-200); border-radius: 2px; }
.mock-browser__nav span i.mock-pill { width: 26px; height: 9px; background: var(--ink-950); border-radius: 5px; }
.mock-browser__body { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 8px 14px 0; align-items: start; }
.mock-browser__copy { gap: 6px; }
.mock-browser__copy .mock-display { font-size: 15px; }
.mock-btn {
  margin-top: 4px;
  width: 58px;
  height: 14px;
  background: #0e5a63;
  border-radius: 7px;
  font-size: 6px;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-browser__photo {
  height: 72px;
  border-radius: 5px;
  background: #0e5a63 repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 6px, transparent 6px 12px);
}

.mock-phone {
  box-sizing: border-box;
  width: 62%;
  height: 100%;
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 8px 24px rgba(11, 11, 9, .10);
  border: 5px solid var(--ink-950);
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 12px 0;
  overflow: hidden;
}
.mock-phone .mock-display { font-size: 13px; line-height: 1.15; padding-top: 2px; }
.mock-phone__notch { align-self: center; width: 30px; height: 4px; border-radius: 2px; background: var(--ink-950); margin-top: -8px; }
.mock-label { font-size: 6px; font-weight: 600; color: var(--ci-muted); }
.mock-input { flex: none; height: 14px; border: 1px solid var(--ink-200); border-radius: 4px; }
.mock-input--focus { border: 1.5px solid #0e5a63; box-shadow: 0 0 0 2px rgba(14, 90, 99, .15); }
.mock-input--tall { height: 24px; }
.mock-send {
  flex: none;
  height: 16px;
  background: #f2c230;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-phone--social { gap: 8px; padding: 12px 10px 0; }
.mock-profile { display: flex; align-items: center; gap: 6px; }
.mock-profile b { font-size: 7px; }
.mock-profile small { font-size: 6px; color: #8a867d; }
.mock-profile .stack { gap: 2px; }
.mock-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e5a63;
  color: var(--paper);
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-post {
  flex: none;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #d8ece9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  gap: 3px;
  box-sizing: border-box;
}
.mock-phone--social .mock-display { font-size: 11px; line-height: 1.1; padding: 0; }
.mock-post small { font-size: 6px; font-weight: 600; color: #0e5a63; }
.mock-actions { display: flex; gap: 7px; align-items: center; }
.mock-actions i { width: 9px; height: 9px; border: 1.5px solid var(--ink-950); border-radius: 50%; box-sizing: border-box; }
.mock-actions i + i { border-radius: 2px; }
.mock-actions i:last-child { transform: rotate(45deg) scale(.8); }

/* ---------- Outcomes ---------- */
.ci-outcomes { gap: 24px; }
.ci-outcomes__body { max-width: 520px; color: var(--ink-950); }
.ci-outcome-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(11, 11, 9, .25); }
.ci-outcome-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 11, 9, .25);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.ci-outcome-list .ci-num { color: var(--ink-950); padding-top: 4px; }

.ci-note-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  background: var(--paper);
  border-radius: 6px;
  padding: 40px 36px 36px;
  box-shadow: 0 20px 50px rgba(11, 11, 9, .10);
  transform: rotate(-1.2deg);
}
.ci-note-card__scribble {
  position: absolute;
  top: -20px;
  right: 28px;
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-secondary);
  transform: rotate(-6deg);
}
.ci-note-card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ci-muted); line-height: 1.4; margin-bottom: 18px; }
.ci-note-card__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; }
.ci-note-card__lines { gap: 22px; padding-top: 28px; }
.ci-note-card__line { border-bottom: 1px solid var(--ink-950); height: 30px; }
.ci-note-card__line--written {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 30px;
  color: var(--accent-secondary);
  padding-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Download form ---------- */
.ci-get { max-width: 1080px; }
.ci-get__art { display: flex; justify-content: center; }
.ci .ci-form {
  border: none;
  border-radius: 14px;
  padding: 44px 40px;
  box-shadow: 0 10px 40px rgba(11, 11, 9, .06);
  gap: 22px;
}
.ci-form__head { gap: 10px; }
.ci .field__label { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-950); }
.ci .field__input { font-size: 15px; padding: 13px 14px; }
.ci-form__submit { gap: 12px; }
.ci-form__button { justify-content: center; width: 100%; padding: 16px 26px; }
.ci-form__note { font-size: 12px; line-height: 1.6; color: var(--ci-muted); }
.ci-form--sent { gap: 16px; align-items: flex-start; }
.ci-form--sent:focus { outline: none; }

/* ---------- Talk with us ---------- */
.ci-talk__body { max-width: 820px; align-items: center; gap: 26px; text-align: center; }
.ci-talk__body .ci-body { max-width: 620px; }
.ci-talk__mark { font-family: var(--font-display); font-size: 40px; line-height: .8; font-weight: 700; color: var(--accent-primary); }
.ci-talk__button { padding-top: 8px; }
.ci-promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ci-muted);
}
.ci-promises li { display: flex; align-items: center; gap: 8px; }
.ci-promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); }

/* ---------- Entrance + small screens ---------- */
.ci-hero__copy > * { animation: fade-up .8s var(--ease-out) both; }
.ci-hero__copy > :nth-child(2) { animation-delay: .1s; }
.ci-hero__copy > :nth-child(3) { animation-delay: .2s; }
.ci-hero__copy > :nth-child(4) { animation-delay: .3s; }
.ci-hero__art { animation: fade-up 1s var(--ease-out) .25s both; }

@media (max-width: 640px) {
  .ci-section { padding: 80px 20px; }
  .ci-hero { padding: 24px 20px 80px; }
  .ci .ci-form { padding: 32px 24px; }
  .ci-note-card { padding: 36px 24px 28px; }
  .ci-note-card__line--written { font-size: 21px; }
}
