/* ==========================================================================
   Keshav Consultancy — coming soon
   Brand tokens follow the Keshav Consultancy brand guidelines:
   Deep Navy #0F172A · Indigo #4F46E5 · Purple #7C3AED · Green #22C55E
   Type: Sora (display / headline) · Inter (body)
   Light surface throughout, navy footer — as per the guidelines sheet.
   ========================================================================== */

:root {
  --navy:        #0F172A;
  --indigo:      #4F46E5;
  --indigo-600:  #4338CA;
  --blue:        #2563EB;   /* the mark's royal blue, between navy and violet */
  --purple:      #7C3AED;
  --green:       #22C55E;
  --green-ink:   #16A34A;   /* green that clears contrast on the light surface */

  --page:        #F5F7FB;
  --card:        #FFFFFF;
  --card-soft:   #F1F5F9;
  --line:        #E2E8F0;
  --line-strong: #CBD5E1;

  --ink:         #0F172A;
  --ink-muted:   #475569;
  --ink-faint:   #64748B;

  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md:   0 4px 16px -6px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg:   0 18px 44px -20px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.05);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius:      16px;
  --radius-sm:   10px;
  --shell:       1120px;
  --pad:         clamp(20px, 5vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 20;
  background: var(--indigo); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------------------------------------------------------------- backdrop */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.grid-layer {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 12%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 12%, #000 25%, transparent 75%);
}

.glow {
  position: absolute;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  filter: blur(130px);
}
.glow--indigo { background: var(--indigo);  top: -22rem; left: -12rem;  opacity: 0.13; }
.glow--purple { background: var(--purple);  top: -18rem; right: -16rem; opacity: 0.11; }

/* ------------------------------------------------------------------ header */

.site-header {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Width is fixed and height derives from it, so the row never reflows while
   the image loads (the <img> also carries its intrinsic width/height). */
.brand__logo {
  display: block;
  width: 136px;
  height: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.status-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* -------------------------------------------------------------------- main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: clamp(52px, 10vh, 96px) 0 clamp(44px, 7vh, 72px);
  max-width: 760px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.eyebrow--accent { color: var(--purple); margin-bottom: 14px; }

/* "Strategy. Branding. Digital. Growth." — the lockup colours each word, so
   the page does too. Light surface here, lifted variants in the footer. */
.tagline { display: inline; }
.tagline .t-strategy { color: var(--ink); }
.tagline .t-branding { color: var(--blue); }
.tagline .t-digital  { color: var(--purple); }
.tagline .t-growth   { color: var(--green-ink); }


.hero__title {
  font-size: clamp(44px, 8.5vw, 82px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.accent {
  background: linear-gradient(100deg, var(--blue) 0%, var(--indigo) 45%, var(--purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--ink-muted);
  max-width: 62ch;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------- countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
  max-width: 500px;
}

.countdown__unit {
  padding: 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 38px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
}

.countdown__label {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.countdown__note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ signup */

.signup { margin-top: 40px; max-width: 540px; }

.signup__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.signup__input::placeholder { color: var(--ink-faint); }
.signup__input:hover  { border-color: #94A3B8; }
.signup__input:focus  {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.signup__input[aria-invalid="true"] { border-color: #DC2626; }
.signup__input:disabled { background: var(--card-soft); color: var(--ink-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.85);
}
.btn--primary:hover:not(:disabled) { background: var(--indigo-600); transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.btn--ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: #94A3B8; transform: translateY(-1px); }

.signup__message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}
.signup__message--ok    { color: #15803D; }
.signup__message--error { color: #B91C1C; }

.signup__fineprint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}

.signup__link {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.signup__link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
}

.pillar {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
}
.pillar__icon svg { width: 21px; height: 21px; }
.pillar__icon--indigo { background: rgba(79, 70, 229, 0.10);  color: var(--indigo); }
.pillar__icon--purple { background: rgba(124, 58, 237, 0.10); color: var(--purple); }
.pillar__icon--green  { background: rgba(34, 197, 94, 0.12);  color: #15803D; }

.pillar__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pillar__body {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ----------------------------------------------------------------- booking */

/* Single column on purpose: Cal's month_view needs the full shell width to
   lay out a month grid without collapsing to its narrow slots view. */
.booking {
  margin: 40px 0 80px;
  scroll-margin-top: 24px;
}

.booking__intro {
  padding: clamp(28px, 3vw, 38px);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(79, 70, 229, 0.07), rgba(124, 58, 237, 0.05) 55%, transparent),
    var(--card);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.booking__copy { min-width: 0; }

.booking__title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.booking__body {
  font-size: 15.5px;
  color: var(--ink-muted);
}

.booking__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.booking__points li {
  position: relative;
  padding-left: 27px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.booking__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: inset 0 0 0 1.5px rgba(34, 197, 94, 0.55);
}

.booking__calendar { min-width: 0; }

/* The Cal embed sizes itself to its container, so the container needs a
   real height of its own or it collapses to nothing before the iframe loads. */
.cal-embed {
  width: 100%;
  min-height: 720px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.booking__fallback,
.booking__aside {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
}
.booking__fallback[hidden] { display: none; }

.booking__fallback a,
.booking__aside a {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: none;
}
.booking__fallback a:hover,
.booking__aside a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #E2E8F0;
  padding: 34px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

/* The lockup's wordmark and outer petals are near-navy and would disappear
   against the navy footer, so it sits on a light chip. */
.site-footer__chip {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: #FFFFFF;
}

.site-footer__chip .brand__logo { width: 158px; }

.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.site-footer__links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.16s ease;
}
.site-footer__links a:hover { color: #FFFFFF; }

.site-footer__legal {
  font-size: 13px;
  color: #94A3B8;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 900px) {
  .booking__intro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding-top: 22px; }
  .brand__logo { width: 116px; }
  .site-footer__chip { padding: 10px 14px; }
  .site-footer__chip .brand__logo { width: 148px; }
  .status-pill { padding: 5px 12px; font-size: 12px; }
  .site-header__cta { display: none; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; }
  .signup__row .btn { flex: 1 1 100%; }
  .cal-embed { min-height: 580px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  /* Too narrow for the lockup and the pill side by side. */
  .brand__logo { width: 100px; }
  .status-pill { padding: 5px 10px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .pillar:hover, .btn:hover { transform: none; }
}
