/* ==========================================================================
   Wrenbell — marketing site
   Go Live Marcom Private Limited

   Palette note: deliberately avoids WhatsApp brand green (#25D366) and Meta
   blue (#1877F2) in every surface, per Meta brand guidelines. No tick marks,
   check marks or phone glyphs appear anywhere in this stylesheet or markup.
   ========================================================================== */

:root {
  /* Indigo — from South Indian indigo dye. Primary ground. */
  --indigo-900: #151B3D;
  --indigo-700: #232C5C;
  --indigo-300: #7C86B8;

  /* Paper */
  --stone-50:  #F5F3EE;
  --stone-100: #EAE6DD;
  --stone-200: #D8D2C6;

  /* Marigold — accent. Used for one thing per screen. */
  --marigold: #E8A33D;
  --marigold-dim: #B87F27;

  /* Wren brown — rules, marks, secondary text on light */
  --wren: #8A5A3B;

  --ink: #22242E;
  --ink-soft: #5A5D6B;

  --danger: #A33B2E;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 68ch;
  --gutter: 1.5rem;
  --wrap: 1120px;
}

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

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

@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;
  }
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 760px; }

.band { padding-block: 4.5rem; }
.band--tight { padding-block: 3rem; }
.band--dark { background: var(--indigo-900); color: var(--stone-50); }
.band--rule { border-top: 1px solid var(--stone-200); }

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, h4, .display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
h4 { font-size: 0.95rem; letter-spacing: -0.005em; margin-bottom: 0.35rem; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }

a { color: var(--wren); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-700); }

.band--dark a { color: var(--marigold); }
.band--dark a:hover { color: #F4C784; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wren);
  margin: 0 0 1.1rem;
  display: block;
}

.band--dark .eyebrow { color: var(--marigold); }

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

.band--dark .lede { color: var(--indigo-300); }

.small { font-size: 0.9rem; color: var(--ink-soft); }
.band--dark .small { color: var(--indigo-300); }

/* Obvious pre-launch placeholder marker. Search the repo for "todo" before
   publishing — nothing with this class may survive to production. */
.todo {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(232, 163, 61, 0.22);
  border-bottom: 2px dotted var(--marigold-dim);
  padding: 0.05em 0.3em;
  color: var(--danger);
  font-weight: 600;
}

.band--dark .todo { color: #F4C784; background: rgba(232, 163, 61, 0.16); }

/* --- Header ------------------------------------------------------------- */

.masthead {
  background: var(--indigo-900);
  color: var(--stone-50);
  border-bottom: 1px solid rgba(245, 243, 238, 0.12);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  color: var(--stone-50);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.wordmark:hover { color: var(--stone-50); }

.wordmark sup {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--indigo-300);
  top: -0.6em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.nav a {
  color: var(--stone-50);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--marigold); border-bottom-color: var(--marigold); }
.nav a[aria-current="page"] { color: var(--marigold); border-bottom-color: var(--marigold); }

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: 5rem 4.5rem; }

.hero__grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 4.5rem; }
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--marigold); }

/* --- Signature: the delivery ladder ------------------------------------- */
/* Message status is the one artifact every customer of this product watches.
   Rendered as filling bars rather than tick marks — Meta brand rules forbid
   the double-tick device, and the constraint is the design. */

.ladder {
  border: 1px solid rgba(245, 243, 238, 0.16);
  padding: 1.6rem 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.025);
}

.ladder__caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-300);
  margin: 0 0 1.35rem;
}

.ladder__row { margin-bottom: 1.1rem; }
.ladder__row:last-of-type { margin-bottom: 0.4rem; }

.ladder__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--stone-50);
  margin-bottom: 0.42rem;
}

.ladder__count { color: var(--indigo-300); }

.ladder__track {
  height: 6px;
  background: rgba(245, 243, 238, 0.12);
  overflow: hidden;
}

.ladder__fill {
  display: block;
  height: 100%;
  width: var(--to);
  background: var(--marigold);
  transform-origin: left center;
  animation: ladder-fill 900ms cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  animation-delay: var(--delay, 0ms);
}

.ladder__fill--muted { background: var(--indigo-300); }

@keyframes ladder-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ladder__fill { animation: none; }
}

.ladder__foot {
  margin: 1.3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 243, 238, 0.14);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--indigo-300);
  max-width: none;
}

/* --- Buttons ------------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn--primary { background: var(--marigold); color: var(--indigo-900); }
.btn--primary:hover { background: #F4C784; color: var(--indigo-900); }

.btn--ghost { background: transparent; color: var(--stone-50); border-color: rgba(245, 243, 238, 0.35); }
.btn--ghost:hover { border-color: var(--marigold); color: var(--marigold); }

.btn--dark { background: var(--indigo-900); color: var(--stone-50); }
.btn--dark:hover { background: var(--indigo-700); color: var(--stone-50); }

/* --- Definition rows ---------------------------------------------------- */

.rows { margin-top: 2.5rem; border-top: 1px solid var(--stone-200); }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--stone-200);
}

@media (min-width: 780px) {
  .row { grid-template-columns: 15rem 1fr; gap: 0 3rem; }
}

.row p { margin: 0; }
.row__note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem !important; }

.band--dark .rows { border-top-color: rgba(245, 243, 238, 0.18); }
.band--dark .row { border-bottom-color: rgba(245, 243, 238, 0.18); }
.band--dark .row__note { color: var(--indigo-300); }

/* --- Cards / grid ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}

@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border-left: 2px solid var(--wren);
  padding: 0.15rem 0 0.15rem 1.25rem;
}

.card p { margin: 0; font-size: 0.98rem; }
.band--dark .card { border-left-color: var(--marigold); }

/* --- Entity block (Meta verification cross-check) ----------------------- */

.entity {
  border: 1px solid var(--stone-200);
  background: #FFFDF9;
  padding: 1.75rem;
}

.entity dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 2rem;
}

@media (min-width: 640px) {
  .entity dl { grid-template-columns: 11rem 1fr; gap: 0.85rem 2rem; }
}

.entity dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.22rem;
}

.entity dd { margin: 0; font-family: var(--mono); font-size: 0.92rem; line-height: 1.5; }

/* --- Legal documents ---------------------------------------------------- */

.doc { padding-block: 3.5rem 4.5rem; }

.doc__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--ink-soft);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--stone-200);
  padding-block: 0.9rem;
  margin-block: 1.75rem 2.5rem;
}

.doc h2 {
  font-size: 1.28rem;
  margin-top: 2.75rem;
  margin-bottom: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--stone-200);
}

.doc h2:first-of-type { border-top: none; padding-top: 0; }

.doc h3 { margin-top: 1.9rem; }

.doc ul, .doc ol { max-width: var(--measure); padding-left: 1.3rem; margin: 0 0 1.1rem; }
.doc li { margin-bottom: 0.55rem; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.94rem;
  font-family: var(--sans);
}

.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.doc th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}

.callout {
  border-left: 3px solid var(--marigold);
  background: #FFFDF9;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.toc {
  font-family: var(--sans);
  font-size: 0.93rem;
  border: 1px solid var(--stone-200);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }

@media (max-width: 620px) { .toc ol { columns: 1; } }

.toc li { margin-bottom: 0.35rem; break-inside: avoid; }

/* --- Forms -------------------------------------------------------------- */

.field { margin-bottom: 1.25rem; max-width: 32rem; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--stone-200);
  background: #FFFDF9;
  color: var(--ink);
}

.field textarea { min-height: 8rem; resize: vertical; }

.field__hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* --- Footer ------------------------------------------------------------- */

.colophon {
  background: var(--indigo-900);
  color: var(--indigo-300);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9rem;
}

.colophon__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 243, 238, 0.14);
}

@media (min-width: 760px) {
  .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

.colophon h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 0.9rem;
}

.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.5rem; }
.colophon a { color: var(--stone-50); text-decoration: none; }
.colophon a:hover { color: var(--marigold); text-decoration: underline; }
.colophon p { color: var(--indigo-300); }

.colophon__legal {
  padding-top: 2rem;
  font-size: 0.82rem;
  line-height: 1.7;
}

.colophon__legal p { max-width: 80ch; margin-bottom: 0.7rem; }
.colophon__legal p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--marigold);
  color: var(--indigo-900);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-weight: 600;
  z-index: 10;
}

.skip:focus { left: 1rem; top: 1rem; position: fixed; }
