/* conxierge.io v1 - Direction D: warm paper + aubergine, Instrument Sans */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2-variations"),
       url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* Values match the Conxierge design system tokens */
  --paper: #F3EFE8;          /* surface */
  --paper-deep: #E9E1D5;
  --ink: #1C1620;            /* ink */
  --ink-soft: #5A5260;       /* graphite */
  --aubergine: #4A1F47;      /* brand, brand-fill */
  --aubergine-deep: #35132F;
  --aubergine-tint: #EDE3EA; /* brand-tint */
  --line: #DDD5CB;           /* rule */
  --white: #FBF9F5;          /* card */

  /* Action: only the primary action in a view */
  --action: #C2305F;
  --action-hover: #A82851;
  --on-action: #F3EFE8;
  --action-dark: #C2305F;        /* on aubergine sections: same raspberry as on paper */
  --action-dark-hover: #D4416F;
  --on-action-dark: #F3EFE8;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;

  --f-body: 1.0625rem;
  --f-small: 0.9375rem;
  --f-h3: 1.25rem;
  --f-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --f-h1: clamp(2.5rem, 6vw, 4.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--f-body);
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--aubergine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--paper); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: var(--f-h1); font-stretch: 88%; letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: var(--f-h2); font-stretch: 90%; letter-spacing: -0.03em; }
h3 { font-size: var(--f-h3); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--aubergine); color: var(--white); padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--aubergine);
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
/* On aubergine (menu bar, hero): light raspberry with ink text */
.site-header .btn-primary, .hero .btn-primary { background: var(--action-dark); border-color: var(--action-dark); color: var(--on-action-dark); }
.site-header .btn-primary:hover, .hero .btn-primary:hover { background: var(--action-dark-hover); border-color: var(--action-dark-hover); }
.hero .btn-ghost { color: var(--paper); border-color: rgba(243, 239, 232, .5); }
.hero .btn-ghost:hover { background: rgba(243, 239, 232, .1); border-color: var(--paper); }
.btn-ghost { background: transparent; color: var(--aubergine); }
.btn-ghost:hover { background: var(--aubergine-tint); }
.btn-light { background: var(--action-dark); color: var(--on-action-dark); border-color: var(--action-dark); }
.btn-light:hover { background: var(--action-dark-hover); border-color: var(--action-dark-hover); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--aubergine);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: rgba(243, 239, 232, .15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: block; width: 168px; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--paper); text-decoration: none; font-size: var(--f-small); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--paper); text-decoration: underline; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: var(--f-small); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .logo { width: 132px; }
  .site-header .wrap { height: 64px; }
}

/* Hero */
.hero { background: var(--aubergine); color: var(--paper); padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero { overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-img { display: block; width: 125%; max-width: none; height: auto; margin-right: -25%; }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 5vw, 4rem); }
.hero .lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: #D9C9D3; max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-img { width: 112%; margin-left: -6%; margin-right: 0; }
}

/* Portal mock (stand-in until real screenshots exist) */
.portal {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 rgba(37, 20, 31, .04), 0 32px 64px -24px rgba(20, 6, 18, .55);
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
}
.portal-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.portal-bar .dots { display: flex; gap: 6px; }
.portal-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.portal-bar .url { flex: 1; text-align: center; color: var(--ink-soft); font-size: 0.75rem; }
.portal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; }
.portal-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.portal-brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); }
.portal-user { color: var(--ink-soft); font-size: 0.8125rem; }
.portal-title { padding: 0 20px 12px; font-weight: 600; font-size: 1rem; }
.portal-list { list-style: none; margin: 0; padding: 0 12px 14px; display: grid; gap: 8px; }
.portal-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.portal-date { text-align: center; border-radius: 6px; background: var(--paper); padding: 6px 0; line-height: 1.1; }
.portal-date b { display: block; font-size: 1.125rem; }
.portal-date span { font-size: 0.6875rem; color: var(--ink-soft); }
.portal-ev b { display: block; font-weight: 600; }
.portal-ev > span:not(.alloc) { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.alloc { display: block; margin-top: 8px; height: 4px; border-radius: 4px; background: var(--paper-deep); overflow: hidden; }
.alloc i { display: block; height: 100%; background: var(--aubergine); border-radius: 4px; }
/* Portal mock stands in for a client portal, so its buttons use the neutral "your brand" ink, not the Conxierge action colour */
.portal-cta { font-size: 0.75rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--white); white-space: nowrap; }
.portal-cta.off { background: var(--paper-deep); color: var(--ink-soft); }
@media (max-width: 480px) {
  .portal-item { grid-template-columns: 44px 1fr; }
  .portal-cta { grid-column: 2; justify-self: start; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 30ch; }
.section-head p { margin-top: 16px; color: var(--ink-soft); max-width: 52ch; }

/* Problem statement */
.statement { padding-top: clamp(88px, 12vw, 152px); }
.statement .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.statement h2 { max-width: 18ch; }
.statement p { max-width: 46ch; font-size: 1.1875rem; color: var(--ink-soft); }
@media (max-width: 820px) { .statement .wrap { grid-template-columns: 1fr; } }

/* Steps: genuinely a sequence, so numbered */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--aubergine); }
.steps li { counter-increment: step; padding: 28px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 3.5rem; font-weight: 600; font-stretch: 80%; line-height: 1; color: var(--aubergine); letter-spacing: -0.04em; margin-bottom: 20px; }
.steps p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* How it works on aubergine */
.how { background: var(--aubergine); color: var(--paper); }
.section + .how, .how + .section { border-top: 0; }
.how .steps { border-top-color: var(--paper); }
.how .steps li + li { border-left-color: rgba(243, 238, 230, .2); }
.how .steps li::before { color: #D9C2D3; }
.how .steps p { color: #D9C9D3; }
@media (max-width: 820px) { .how .steps li + li { border-top-color: rgba(243, 238, 230, .2); } }

/* Features: two-column definition list, not cards */
.features-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.features { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.features div { padding: 22px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 600; font-size: 1.0625rem; }
.features dd { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--f-small); }
.features-grid .section-head { position: sticky; top: 112px; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .section-head { position: static; }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Audience */
.audience { background: var(--paper-deep); }
.audience .section-head { max-width: 46ch; }
.section + .audience, .audience + .section { border-top: 0; }
.audience-list { list-style: none; margin: 48px 0 0; padding: 0; }
.audience-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: baseline; gap: 8px clamp(32px, 6vw, 96px); padding: 24px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .audience-list li { grid-template-columns: 1fr; } }
.audience-list li:last-child { border-bottom: 1px solid var(--line); }
.audience-list b { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 600; font-stretch: 90%; letter-spacing: -0.025em; line-height: 1.15; }
.audience-list span { color: var(--ink-soft); max-width: 40ch; }
.note { margin-top: 28px; color: var(--ink-soft); font-size: var(--f-small); }

/* Trust */
.trust .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trust .body p { color: var(--ink-soft); font-size: 1.125rem; }
.trust .body p + p { margin-top: 16px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; font-weight: 500; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--aubergine); border-bottom: 2px solid var(--aubergine); transform: rotate(-45deg); }
@media (max-width: 820px) { .trust .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { margin-top: 48px; max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--aubergine); border-bottom: 2px solid var(--aubergine); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* Final CTA */
.cta-band { background: var(--aubergine); color: var(--paper); padding: clamp(72px, 10vw, 120px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.cta-band h2 { max-width: 14ch; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.cta-band p { margin-top: 16px; color: #D9C9D3; max-width: 40ch; }
.cta-band .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-band a:not(.btn) { color: var(--paper); }

/* Footer */
.site-footer { background: var(--aubergine-deep); color: #CDBAC6; padding: 56px 0 40px; font-size: var(--f-small); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo { width: 150px; }
.site-footer p { margin-top: 14px; max-width: 32ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(243, 238, 230, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Simple pages (demo, thanks, privacy, 404) */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 12ch; }
.page .lead { margin-top: 20px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 38ch; }
.expect { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: e; }
.expect li { counter-increment: e; display: grid; grid-template-columns: 32px 1fr; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.expect li::before { content: counter(e); color: var(--aubergine); font-weight: 700; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: var(--f-small); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--aubergine); outline-offset: 0; border-color: var(--aubergine); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; margin-top: 6px; }
.small { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 14px; }
.error { color: #8A1C2B; font-size: 0.8125rem; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select { border-color: #8A1C2B; }

.calendar-slot { margin-top: 32px; border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 40px 24px; text-align: center; color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose ul { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.draft-note { background: var(--aubergine-tint); border-radius: var(--radius-s); padding: 14px 16px; font-size: var(--f-small); margin: 24px 0 8px; }

/* Product mockups */
.how-img { display: block; width: 100%; max-width: 980px; height: auto; margin: 56px auto 0; }
.feat-img { display: block; width: 100%; max-width: 280px; height: auto; margin-top: 36px; }
@media (max-width: 900px) { .feat-img { max-width: 240px; margin-inline: auto; } }

/* Hero: slow, low-opacity light drifting across the aubergine (like stage light through haze) */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(40px); will-change: transform;
}
.hero::before {
  top: -8vmax; left: -22vmax;
  background: radial-gradient(closest-side, rgba(194, 48, 95, .32), rgba(194, 48, 95, 0) 70%);
  animation: hero-drift-a 26s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -38vmax; right: -22vmax;
  background: radial-gradient(closest-side, rgba(242, 138, 174, .16), rgba(242, 138, 174, 0) 70%);
  animation: hero-drift-b 34s ease-in-out infinite alternate;
}
@keyframes hero-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(30vw, 6vh) scale(1.12); } }
@keyframes hero-drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-30vw, -12vh) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

/* Subtle entrance: hero on load, key blocks as they scroll into view (only when JS is running) */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero h1, .js .hero .lead, .js .hero .actions, .js .hero-img { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero .lead { animation-delay: .12s; }
.js .hero .actions { animation-delay: .24s; }
.js .hero-img { animation-delay: .3s; animation-duration: 1.2s; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .hero h1, .js .hero .lead, .js .hero .actions, .js .hero-img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Numbered steps as round aubergine badges (How it works + demo page) */
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--aubergine); color: var(--paper);
  font-size: 1.5rem; font-weight: 600; font-stretch: normal; letter-spacing: 0; line-height: 1;
  margin-bottom: 20px;
}
.expect li { grid-template-columns: 44px 1fr; align-items: center; }
.expect li::before {
  content: counter(e); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--aubergine); color: var(--paper); font-weight: 600; font-size: .9375rem; line-height: 1;
}

/* Even line lengths: balanced headings and leads, no orphaned last words in body text */
h1, h2, h3, .lead, .cta-band p, .statement p { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }

/* Team photo: round crop already in the image, kept modest */
.team-img { display: block; width: 100%; max-width: 340px; height: auto; margin-top: 32px; }
@media (max-width: 820px) { .team-img { max-width: 260px; margin-top: 24px; } }

/* How it works: the two sides, guest portal and Backstage */
.two-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 64px; align-items: start; }
.two-sides figure { margin: 0; min-width: 0; }
.two-sides img { display: block; width: 100%; height: auto; }
.two-sides figcaption { display: grid; gap: 4px; margin-top: 8px; }
.two-sides figcaption b { font-weight: 600; font-size: 1.125rem; }
.two-sides figcaption span { color: var(--ink-soft); }
@media (max-width: 820px) { .two-sides { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; } }
