/*
 * Delegyn Shift — informational site.
 *
 * Tokens, font stack, radius and shadow scale are lifted verbatim from
 * ~/Desktop/delegyn-website/styles.css so this reads as the same company rather than a
 * near-miss. Class naming follows the same BEM-ish convention (`.btn--primary`,
 * `.grid--features`) for the same reason: whoever edits one should recognise the other.
 *
 * No build step and no webfont on purpose. It is an informational site — a toolchain would
 * make copy edits a deployment, and a font download would cost a layout shift on the one
 * page that has to load instantly on an agency director's phone.
 */

:root {
  /* Brand palette — identical values to the Delegyn site. */
  --purple: #534ab7;
  --purple-light: #7f77dd;
  --indigo: #26215c;
  --indigo-2: #221c52;
  --indigo-3: #2e2868;
  --teal: #27b488;
  --teal-deep: #1d9e75;
  /* AA-safe teal for small text on light. The lighter steps are not. */
  --teal-ink: #0f7351;
  --lavender: #eeedfe;
  --ink: #2c2c2a;
  --surface: #f1efe8;
  --white: #ffffff;

  --ink-soft: #56555f;
  --line: #e4e2f3;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(38, 33, 92, 0.06), 0 6px 18px rgba(38, 33, 92, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 33, 92, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 16, 48, 0.3);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Anchors land below the sticky header rather than under it. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--indigo);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75em;
}

.eyebrow--teal {
  color: var(--teal-ink);
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.narrow {
  max-width: 68ch;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.875rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(83, 74, 183, 0.32);
}

.btn--primary:hover {
  background: #4840a6;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--lavender);
}

/* Full-width, for the primary action at the foot of a pricing card. */
.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.875rem;
}

.btn--ondark {
  background: var(--white);
  color: var(--indigo);
  box-shadow: none;
}

.btn--ondark:hover {
  background: var(--lavender);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--indigo);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand span {
  color: var(--purple);
}

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__links a:not(.btn) {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}

.nav__links a:not(.btn):hover {
  background: var(--lavender);
}

/* Links collapse on small screens; the CTA never does. */
@media (max-width: 760px) {
  .nav__links a:not(.btn) {
    display: none;
  }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tint {
  background: var(--lavender);
}

.section--dark {
  background: linear-gradient(165deg, var(--indigo-3) 0%, var(--indigo) 60%, var(--indigo-2) 100%);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .lead,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.76);
}

.section--dark .eyebrow {
  color: var(--purple-light);
}

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

.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background:
    radial-gradient(900px 420px at 8% -8%, var(--lavender), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, #e2f7f0, transparent 65%);
}

/* Two columns from 900px up. Below that the visual drops below the copy rather than
   shrinking into illegibility. */
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/*
 * A stylised week, not a screenshot.
 *
 * It uses the product's real colour language — teal is covered, sand is open, clay is a
 * call-off — so somebody who signs up recognises the grid rather than meeting a different
 * design. A mocked-up screenshot would age the moment the UI moves and would imply data
 * that does not exist.
 */
.weekcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.1rem;
  max-width: 460px;
  margin-inline: auto;
}

.weekcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.weekcard__title {
  font-weight: 800;
  font-size: 0.9375rem;
}

.weekcard__meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.weekcard__row {
  display: grid;
  grid-template-columns: 4.6rem repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.weekcard__day {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.weekcard__house {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.2;
}

.chip {
  display: block;
  border-radius: 7px;
  padding: 0.3rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip--filled {
  background: #c2ede0;
  color: #0b5a40;
}

.chip--open {
  background: #fdf0d8;
  color: #7a5a1a;
  border: 1px dashed #d9b978;
}

.chip--off {
  background: #fadbdb;
  color: #8f2222;
  border: 1px solid #e79a9a;
}

.weekcard__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.weekcard__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/*
 * On a phone the card has the full column width, so the type can breathe. At the desktop
 * sizes above it is a compact aside beside the headline; at 10px on a handset it was just
 * texture. Same card, read at the size each screen actually allows.
 */
@media (max-width: 899px) {
  .chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .weekcard__day,
  .weekcard__legend {
    font-size: 0.75rem;
  }

  .weekcard__house {
    font-size: 0.8125rem;
  }

  .weekcard__row {
    grid-template-columns: 4.9rem repeat(3, minmax(0, 1fr));
  }
}

.swatch {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
  flex: none;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero__points {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.hero__points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- Grids and cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: var(--purple);
  margin-bottom: 0.9rem;
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__icon--teal {
  background: #e2f7f0;
  color: var(--teal-ink);
}

/* ---------- Pricing ---------- */

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.25rem 0 0.75rem;
}

.price__amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price__unit {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.price-card--feature {
  border-color: var(--purple-light);
  border-width: 2px;
}

.price-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.price-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.worked-example {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--lavender);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.worked-example table {
  width: 100%;
  border-collapse: collapse;
}

.worked-example td {
  padding: 0.2rem 0;
}

.worked-example td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.worked-example tr:last-child td {
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  font-weight: 800;
}

.badge-soon {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid #e0dccb;
  color: #7a6a3f;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--purple);
  font-weight: 700;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ---------- CTA band and footer ---------- */

.cta-band {
  text-align: center;
}

.cta-band .btn {
  margin-top: 0.5rem;
}

.footer {
  background: var(--indigo-2);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0;
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ---------- Motion ---------- */

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

  .btn {
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
