/* =========================================================================
   Tidytarget — Page layouts (hero, features, case study, about, contact)
   ========================================================================= */

/* ---------------------------------------------------------------------- */
/* HERO                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  padding: 76px 0 40px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin: 18px 0 22px;
}
.hero-copy .lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 490px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-actions .hint { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

.hero-stats { display: flex; gap: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats .stat-num { display: block; font-size: 26px; color: var(--ink); }
.hero-stats .stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---- scatter-to-tidy visual: the signature moment ---- */
.hero-visual {
  position: relative;
  height: 460px;
}
.scatter-field {
  position: absolute;
  inset: 0;
}
.field-card {
  position: absolute;
  width: 178px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 13px 14px;
  opacity: 0;
  animation: settle 1.1s var(--ease) forwards;
}
.field-card .fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.field-card .fc-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.field-card .fc-name { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.field-card .fc-sub { font-size: 10.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.field-card .fc-bar { height: 5px; border-radius: 4px; background: var(--mist-deep); margin-top: 10px; overflow: hidden; }
.field-card .fc-bar span { display: block; height: 100%; border-radius: 4px; }

.field-card:nth-child(1) { --sx: -60px; --sy: 40px; --sr: -14deg; top: 6%; left: 4%; animation-delay: 0.15s; }
.field-card:nth-child(2) { --sx: 70px; --sy: -30px; --sr: 10deg; top: 4%; left: 54%; animation-delay: 0.3s; }
.field-card:nth-child(3) { --sx: -40px; --sy: -60px; --sr: 8deg; top: 40%; left: 2%; animation-delay: 0.45s; }
.field-card:nth-child(4) { --sx: 55px; --sy: 45px; --sr: -9deg; top: 36%; left: 55%; animation-delay: 0.6s; }
.field-card:nth-child(5) { --sx: -30px; --sy: 55px; --sr: 12deg; top: 72%; left: 6%; animation-delay: 0.75s; }
.field-card:nth-child(6) { --sx: 40px; --sy: -40px; --sr: -7deg; top: 70%; left: 56%; animation-delay: 0.9s; }

@keyframes settle {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}

.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}
.hero-visual .ring-1 { width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 60s linear infinite; }
.hero-visual .ring-2 { width: 320px; height: 320px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: rgba(76, 95, 213, 0.18); animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .field-card { animation: none; opacity: 1; transform: none; }
  .ring-1, .ring-2 { animation: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: -1; }
}
@media (max-width: 560px) {
  .field-card { width: 142px; padding: 10px 11px; }
}

/* ---- pharma industry strip (replaces any "trusted by" claims) ---- */
.pharma-strip {
  padding: 30px 0 90px;
}
.pharma-band {
  background: var(--pharma-teal-tint);
  border: 1px solid rgba(9, 95, 103, 0.16);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.pharma-band-copy { display: flex; align-items: center; gap: 16px; }
.pharma-band-copy .rx-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--pharma-teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pharma-band-copy .rx-mark svg { width: 24px; height: 24px; }
.pharma-band-copy h3 { font-size: 18.5px; margin-bottom: 3px; }
.pharma-band-copy p { font-size: 13.5px; color: var(--ink-soft); }

.pharma-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.pharma-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid rgba(9, 95, 103, 0.18);
  color: var(--pharma-teal-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 100px;
}
.pharma-badge svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .pharma-band { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------- */
/* FEATURE BLOCKS (homepage teaser + features page)                       */
/* ---------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 30px 26px;
}
.feature-card .f-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .f-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }
.feature-card .mono-tag { display: block; margin-bottom: 12px; }

.icon-meadow { background: var(--meadow-tint); color: var(--meadow-deep); }
.icon-amber { background: var(--amber-tint); color: var(--amber-deep); }
.icon-indigo { background: var(--indigo-tint); color: var(--indigo-deep); }
.icon-coral { background: var(--coral-tint); color: var(--coral); }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.feature-row.reverse .feature-row-media { order: 2; }
.feature-row-copy h3 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 16px; }
.feature-row-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.feature-row-copy .check-list { display: flex; flex-direction: column; gap: 12px; }
.feature-row-copy .check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.feature-row-copy .check-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--meadow); margin-top: 2px; }

.feature-row-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .feature-row.reverse .feature-row-media { order: 0; }
}

.mock-toolbar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--mist); }
.mock-row .mr-left { display: flex; align-items: center; gap: 10px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-name { font-size: 13px; font-weight: 600; }
.mock-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }

.mock-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mock-calendar .mc-cell { aspect-ratio: 1; border-radius: 6px; background: var(--mist); border: 1px solid var(--line); }
.mock-calendar .mc-cell.filled { background: var(--meadow-tint); border-color: rgba(23,138,93,0.25); }
.mock-calendar .mc-cell.off { background: var(--amber-tint); border-color: rgba(224,138,18,0.2); }
.mock-calendar .mc-cell.today { background: var(--indigo); }

.progress-track { height: 8px; background: var(--mist-deep); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--meadow), var(--indigo)); border-radius: 6px; }

/* ---------------------------------------------------------------------- */
/* PROCESS STRIP — a real sequence (submit -> approve -> track), so numbering is earned */
/* ---------------------------------------------------------------------- */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { padding: 0 26px; position: relative; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px; right: -2px;
  width: 24px; height: 1.5px;
  background: var(--line-strong);
}
.process-step .p-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--meadow-deep); margin-bottom: 14px; display: block; }
.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .process-strip { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .process-strip { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* MARKET / persona band                                                  */
/* ---------------------------------------------------------------------- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona-card { padding: 28px 24px; }
.persona-card .p-role { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 10px; }
.persona-card h4 { font-size: 18px; margin-bottom: 10px; }
.persona-card p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .persona-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* CASE STUDY TEASER (home) + FULL CASE STUDY (case-study.html)           */
/* ---------------------------------------------------------------------- */
.case-teaser {
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--mist);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.case-teaser::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,138,93,0.35), transparent 70%);
  top: -180px; right: -140px;
}
.case-teaser .ct-quote { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.35; margin: 18px 0 24px; }
.case-teaser .ct-person { display: flex; align-items: center; gap: 12px; }
.ct-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--meadow), var(--indigo)); flex-shrink: 0; }
.case-teaser .ct-person-name { font-weight: 600; font-size: 14.5px; }
.case-teaser .ct-person-role { font-size: 13px; color: rgba(246,248,244,0.6); }

.ct-stats { display: flex; flex-direction: column; gap: 22px; }
.ct-stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(246,248,244,0.14); }
.ct-stat:last-child { border-bottom: none; padding-bottom: 0; }
.ct-stat .stat-num { font-size: 34px; color: var(--amber); }
.ct-stat .stat-desc { font-size: 13.5px; color: rgba(246,248,244,0.7); }

@media (max-width: 900px) { .case-teaser { grid-template-columns: 1fr; padding: 36px 24px; } }

.cs-hero { padding: 64px 0 20px; }
.cs-meta-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 30px 0 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta-item .mono-tag { display: block; margin-bottom: 6px; }
.cs-meta-item div.value { font-weight: 600; font-size: 15px; }

.cs-section { max-width: 760px; margin: 0 auto; padding: 52px 0; }
.cs-section h2 { font-size: 27px; margin-bottom: 18px; }
.cs-section p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 18px; }
.cs-section p strong { color: var(--ink); font-weight: 600; }

.cs-pull {
  border-left: 3px solid var(--meadow);
  padding: 4px 0 4px 26px;
  margin: 34px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.cs-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.ba-card { padding: 24px; border-radius: var(--radius-md); }
.ba-card.before { background: var(--coral-tint); border: 1px solid rgba(232,90,79,0.2); }
.ba-card.after { background: var(--meadow-tint); border: 1px solid rgba(23,138,93,0.22); }
.ba-card .ba-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 12px; display: block; }
.ba-card.before .ba-label { color: var(--coral); }
.ba-card.after .ba-label { color: var(--meadow-deep); }
.ba-card ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
@media (max-width: 700px) { .cs-before-after { grid-template-columns: 1fr; } }

.cs-metric-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0 10px; }
.cs-metric { text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.cs-metric .stat-num { font-size: 30px; display: block; color: var(--meadow-deep); }
.cs-metric .stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 700px) { .cs-metric-band { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------------- */
/* ABOUT page                                                              */
/* ---------------------------------------------------------------------- */
.about-hero { padding: 70px 0 20px; max-width: 780px; }
.about-hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin: 18px 0 20px; }
.about-hero p { font-size: 18px; color: var(--ink-soft); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 28px 24px; }
.value-card .v-mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--line-strong); margin-bottom: 16px; }
.value-card h4 { font-size: 17px; margin-bottom: 9px; }
.value-card p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

.timeline { max-width: 640px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding-bottom: 40px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 104px; top: 26px; bottom: -14px; width: 1.5px; background: var(--line-strong); }
.tl-item .tl-year { font-family: var(--font-mono); font-weight: 600; color: var(--meadow-deep); font-size: 14px; padding-top: 3px; }
.tl-item h4 { font-size: 16.5px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--ink-soft); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); margin-bottom: 14px; background: linear-gradient(135deg, var(--meadow-tint), var(--indigo-tint)); position: relative; overflow: hidden; }
.team-photo::after { content: attr(data-initials); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); opacity: 0.5; }
.team-card h5 { font-size: 15px; margin-bottom: 3px; }
.team-card span { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* CONTACT page                                                            */
/* ---------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: flex-start; }
.contact-info h1 { font-size: clamp(32px, 4vw, 44px); margin: 16px 0 18px; }
.contact-info > p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 36px; }

.contact-channel { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.cc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--meadow-tint); color: var(--meadow-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-icon svg { width: 18px; height: 18px; }
.contact-channel h5 { font-size: 14.5px; margin-bottom: 3px; }
.contact-channel p, .contact-channel a { font-size: 13.5px; color: var(--ink-soft); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--meadow); background: var(--surface); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-card { padding: 26px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h4 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* Bottom CTA band (shared)                                                */
/* ---------------------------------------------------------------------- */
.cta-band {
  background: var(--meadow-deep);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,166,48,0.25), transparent 45%), radial-gradient(circle at 85% 80%, rgba(76,95,213,0.3), transparent 45%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  color: var(--mist);
}
.cta-band h2 { color: var(--mist); font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 16px; }
.cta-band p { color: rgba(246,248,244,0.78); font-size: 16.5px; max-width: 480px; margin: 0 auto 30px; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 44px 24px; } }

.count-up { display: inline-block; }
