/* Ivey one-pager shared base (v2, auth-page style direction) */
:root {
  /* Calmer house style (Teo 2026-10-21, from the /signup clean-up): softer ink, off-white page */
  --ink: #1f2329;
  --ink-80: rgba(31,35,41,.8);
  --bg: #f9fafb;
  --panel: #f4f5f7;
  --hairline: #e8eaee;
  --hairline-strong: #d9dce1;
  --muted: #8a9099;
  --icon-grey: #b3b8bf;
  --blue: #4f69c6;
  --blue-deep: #3d55b0;
  --blue-soft: #a1b3e9;
  --white: #fff;
  --r-chip: 6px; --r-btn: 10px; --r-card: 16px; --r-glass: 20px;
  --font: 'Instrument Sans', system-ui, sans-serif;
  --font-accent: 'Instrument Sans', system-ui, sans-serif;
  --ease-spring: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-size: 15px;
  line-height: 1.5;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
section[id] { scroll-margin-top: 96px; }

.container { max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.body { font-size: 15px; line-height: 1.5; color: var(--ink-80); }
.body-lg { font-size: 17px; line-height: 1.5; color: var(--ink-80); }
.small { font-size: 13px; line-height: 1.45; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-btn); padding: 11px 16px; font-size: 14px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: rgba(255,255,255,.88); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: rgba(10,10,10,.85); }
.btn-ghost { background: rgba(10,10,10,.25); color: var(--white); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(10,10,10,.42); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--hairline-strong); }
.btn-outline:hover { border-color: var(--hairline-strong); box-shadow: 0 6px 18px rgba(10,10,10,.07); }

.panel { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(10,10,10,.03), 0 10px 30px rgba(10,10,10,.045); }
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(10,10,10,.03), 0 8px 24px rgba(10,10,10,.04); }
.card-dark { background: var(--ink); color: var(--white); border-radius: var(--r-card); }

/* Video orb (Alven's mix-blend device, tinted Ivey blue) */
.orb { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(120% 120% at 30% 25%, #dbe7ff 0%, #839ade 45%, #4f69c6 75%, #143bab 100%); }
.orb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.35) translateZ(0); }
.orb-tint { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: color;
  background: linear-gradient(152deg, #a1b3e9 21%, #3d55b0 79%); }

/* Brand mark as the mask: the fluid video plays inside the Ivey K */
.orb-k {
  border-radius: 0;
  background: none;
  -webkit-mask-image: url("img/coppice-mark-white-mark-centered.svg");
  mask-image: url("img/coppice-mark-white-mark-centered.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: visible;
}
.orb-k video { transform: scale(1.15); }
.orb-k .orb-tint { border-radius: 0; }

.korb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  flex: none;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 3px rgba(10,10,10,.10), 0 8px 24px rgba(10,10,10,.08);
}
.korb .orb-k { width: 76%; height: 76%; }
.orb-glow { box-shadow: 0 0 6px rgba(79,105,198,.6); }

/* Legacy CSS-only orb kept as fallback for old fragments */
.orb-css { position: relative; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(120% 120% at 30% 25%, #eaf1ff 0%, #beccf3 22%, #5a74cf 48%, #4f69c6 68%, #143bab 100%);
  box-shadow: 0 0 18px rgba(79,105,198,.4), inset 0 0 18px rgba(255,255,255,.25); }
.orb-css::after { content: ""; position: absolute; left: 16%; top: 10%; width: 36%; height: 28%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); filter: blur(2px); }

/* Scroll reveal system */
/* Smoother (Teo 2026-10-21): GPU-only properties, translate3d, one easing, no filter transition except the blur style */
[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); backface-visibility: hidden;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform; }
[data-reveal-style="scale"] { transform: translateY(32px) scale(.94); }
[data-reveal-style="left"] { transform: translateX(-72px); }
[data-reveal-style="blur"] { transform: translate3d(0, 32px, 0); }
[data-reveal-style="tilt"] { transform: perspective(1200px) translateY(72px) rotateX(8deg); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Sticky scrollytelling pins (desktop only) */
.pin-inner { }
@media (min-width: 980px) {
  .pin-wrap-220 { height: 220vh; }
  .pin-wrap-350 { height: 350vh; }
  .pin-wrap-220 .pin-inner, .pin-wrap-350 .pin-inner {
    position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
}

.sec { margin-top: 96px; }
@media (min-width: 980px) { .sec { margin-top: 160px; } }

/* NAV */
.nav { position: fixed; left: 50%; top: 32px; transform: translateX(-50%); z-index: 50;
  display: none; align-items: center; gap: 32px; padding: 6px 6px 6px 16px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: navEnter .8s var(--ease-spring) .05s both; }
@media (min-width: 980px) { .nav { display: flex; } }
@keyframes navEnter { from { opacity: 0; transform: translate(-50%, -90px); } to { opacity: 1; transform: translate(-50%, 0); } }
.nav-brand { display: flex; align-items: center; color: var(--white); font-size: 17px; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: .18em; }
.nav-brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; letter-spacing: -0.02em; color: var(--white); transition: color .3s; white-space: nowrap; }
.nav-links a:hover { color: rgba(255,255,255,.65); }
.nav-links a.active { color: var(--blue-soft); }
.nav.scrolled, .mnav.scrolled { background: rgba(10,10,10,.72); }
/* Below the hero the desktop nav turns light: frosted pale pill, ink text (Teo 2026-10-21, like alven.ai) */
.nav.scrolled { background: rgba(236,239,243,.88); border-color: rgba(10,10,10,.06); }
.nav.scrolled .nav-brand, .nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a:hover { color: var(--blue); }
.nav.scrolled .nav-links a.active { color: var(--blue); }
.nav-brand, .nav-links a { transition: color .35s ease; }
.nav { transition: background-color .35s ease, border-color .35s ease; }
.mnav.scrolled { background: rgba(236,239,243,.9); border-bottom: 1px solid rgba(10,10,10,.06); }
.mnav.scrolled .mnav-brand { color: var(--ink); }
.mnav, .mnav-brand { transition: background-color .35s ease, color .35s ease; }

.mnav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(10,10,10,.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mnav-brand { display: flex; align-items: center; color: var(--white); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.mnav-brand img { width: 20px; height: 20px; border-radius: 5px; }
@media (min-width: 980px) { .mnav { display: none; } }

/* HERO (shared by index + enterprise) */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: flex-end; overflow: hidden; padding-bottom: 32vh; }
.hero-sm { min-height: max(620px, 88svh); padding-bottom: 24vh; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(0); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,10,.34) 0%, rgba(10,10,10,.16) 45%, rgba(10,10,10,0) 78%); }
.hero-inner { position: relative; width: 100%; z-index: 2; }
.hero-copy { max-width: 560px; color: var(--white); animation: heroLeft .9s var(--ease-spring) .15s both; }
@keyframes heroLeft { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.hero-copy, .hero-orbcard { will-change: transform, opacity; backface-visibility: hidden; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4); margin-bottom: 16px; }
.hero-eyebrow svg { flex: none; }
.hero-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.4); margin-bottom: 16px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px 6px 8px;
  background: rgba(10,10,10,.4); border: 1px solid rgba(255,255,255,.15); color: var(--white); font-size: 14px; margin-bottom: 22px; }
@media (min-width: 980px) { .hero-pill { display: none; } }
.hero-h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-h1 em { font-family: var(--font); font-style: normal; font-weight: 400; letter-spacing: 0; color: inherit; }
.hero-sub { margin-top: 20px; max-width: 470px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-div { width: 1px; height: 22px; background: rgba(255,255,255,.35); }
.hero-trial { font-size: 14px; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-orbcard { display: none; }
@media (min-width: 980px) {
  .hero-orbcard { position: absolute; right: 108px; top: auto; bottom: 32vh; z-index: 2;
    display: flex; width: 253px; flex-direction: column; align-items: center; gap: 40px;
    padding: 40px 0 24px; border-radius: var(--r-glass);
    background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: heroRight .9s var(--ease-spring) .25s both; }
}
@keyframes heroRight { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.hero-foot { position: absolute; left: 24px; bottom: 32px; z-index: 2; color: rgba(255,255,255,.9);
  font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.4); animation: heroLeft .9s var(--ease-spring) .45s both; }
@media (min-width: 980px) { .hero-foot { left: calc(50% - 658px); } }

/* PHONE. Three things were wrong below 980px. The trades line pinned left with
   no right bound, so it ran under the edge of the screen and lost its last
   words. The CTA row wrapped mid-way, leaving a divider dangling at the end of
   one line and the trial text orphaned on the next. And the two buttons split a
   326px content width between them, so neither read as the primary action.
   The row becomes a grid: the primary CTA gets its own full-width line, then a
   single bar underneath, "First bid free, no card | Book an enterprise demo".
   The trial text is the column that gives (minmax(0,1fr)), so on a narrow phone
   it wraps to two lines rather than pushing the demo link off screen.
   (Teo 2026-08-14) */
@media (max-width: 979px) {
  .hero-foot { right: 24px; }
  .hero-ctas {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) 1px auto;
    grid-template-areas: "primary primary primary" "trial rule demo";
    gap: 18px 12px; }
  .hero-ctas .btn-light { grid-area: primary; width: 100%; padding: 14px 16px; }
  .hero-trial { grid-area: trial; line-height: 1.35; }
  .hero-div { grid-area: rule; height: 18px; }
  /* The demo action reads as a link in the bar, not a second button competing
     with the primary, but keeps a 32px+ tap target. */
  .hero-ctas .btn-ghost {
    grid-area: demo; justify-self: end; min-height: 32px; padding: 8px 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 0; text-shadow: 0 1px 8px rgba(0,0,0,.4);
    text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: rgba(255,255,255,.45); }
  .hero-ctas .btn-ghost:hover { background: none; }
  /* A 20px line of text is not a tappable target on a phone. */
  .mnav { padding: 10px 20px; }
  .mnav-brand { min-height: 40px; }
  .mnav .btn { min-height: 40px; padding: 12px 18px; }
}
/* A 38% black scrim over a white hero renders as a grey band with white text
   on it, which is the enterprise page's phone nav. Light-hero pages opt into a
   solid bar instead. */
.mnav-solid { background: rgba(10,10,10,.9); }

/* PRODUCT SHOWCASE */
.show-card { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 9 / 16; background: var(--panel); }
@media (min-width: 980px) { .show-card { aspect-ratio: 1288 / 731; } }
.show-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.show-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.show-btn { color: rgba(10,10,10,.5); padding: 6px; border-radius: 8px; transition: color .3s;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.6)); }
.show-btn:hover { color: rgba(10,10,10,.85); }
.show-btn svg { display: block; }
.show-btn .alt { display: none; }
.show-btn.on .base { display: none; }
.show-btn.on .alt { display: block; }
.show-progress { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(0,0,0,.1); z-index: 2; }
.show-progress span { display: block; height: 100%; width: 0%; background: rgba(10,10,10,.55); }
.show-cap { margin-top: 14px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .nav, .hero-copy, .hero-orbcard, .hero-foot { animation: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
  .pin-wrap-220, .pin-wrap-350 { height: auto; }
  .pin-wrap-220 .pin-inner, .pin-wrap-350 .pin-inner { position: static; min-height: 0; display: block; }
}

/* HEILY TYPE + BUTTON PASS (Teo 2026-11-04): every page uses the hero's look,
   light 400-weight headings at a smaller size, and the square-ish 6px buttons. */
.h2, h2, h3, .ft-cta-head { font-weight: 400 !important; letter-spacing: -0.02em; }
.h2 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; }
.ft-cta-head { font-size: clamp(24px, 2.3vw, 30px) !important; }
.btn { border-radius: 6px !important; min-height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.btn-light { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
/* New Ivey mark (Teo 2026-11-06): the fluid now plays inside the rounded gradient tile instead of the K */
.orb-k { -webkit-mask-image: none; mask-image: none; border-radius: 23% !important; }
.orb-k .orb-tint { border-radius: 23%; mix-blend-mode: color;
  background: linear-gradient(135deg, #e4eafb 0%, #a1b3e9 36%, #5a74cf 70%, #4f69c6 80%, #5870c2 100%); }
.orb-k::after { content: ""; position: absolute; inset: 0; border-radius: 23%; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(214,222,246,1) 45%, rgba(150,165,215,1) 100%); }
/* replace the K fluid with the wavy gradient tile */
.orb-k { background: url("img/coppice-mark-wavy.svg") center / cover no-repeat !important; overflow: hidden; }
.orb-k video, .orb-k .orb-tint, .orb-k::after { display: none !important; }
/* new mark is a rounded tile, never a circle, and has no white disc around it (Teo 2026-11-06) */
.hw-ava { border-radius: 23% !important; overflow: hidden; background: none !important; box-shadow: none !important; border: 0 !important; }
.hw-ava img { width: 100% !important; height: 100% !important; border-radius: 23% !important; object-fit: cover; }
.korb { border-radius: 23% !important; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.korb::before, .korb::after { display: none !important; }
.korb .orb-k { width: 100% !important; height: 100% !important; }
