/* Claverflow Solutions landing page. Same colours and fonts as the app and the promo videos. */
@font-face { font-family: "Bricolage Grotesque"; src: url(assets/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url(assets/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: "Onest"; src: url(assets/fonts/onest.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url(assets/fonts/onest-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }

:root {
  --night: #0D1713; --night2: #15231D; --text: #F1F5EF; --muted: #A9B8B0;
  --rice: #F3F5F1; --ink: #18211E; --ink2: #56625D; --leaf: #1E5B41; --leaf-soft: #DDEBE1; --lime: #D8E04A;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 Onest, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--lime); color: var(--night); padding: 10px 16px; border-radius: 999px; z-index: 10; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

/* Buttons: a pill with its icon in its own circle */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; transition: transform .5s var(--spring), background-color .5s var(--spring); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--spring); }
.btn:hover .ic { transform: translate(3px, -2px) scale(1.06); }
.btn-lime { background: var(--lime); color: var(--night); }
.btn-lime .ic { background: var(--night); color: var(--lime); }
.btn-night { background: var(--night); color: var(--text); padding-left: 28px; font-size: 18px; }
.btn-night .ic { background: var(--lime); color: var(--night); width: 48px; height: 48px; }
.btn-ghost { color: var(--text); padding: 8px 24px 8px 8px; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost .ic { background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-sm { font-size: 15px; padding: 6px 6px 6px 18px; gap: 10px; }
.btn-sm .ic { width: 32px; height: 32px; }

.pill { display: inline-block; font-size: 14px; font-weight: 500; color: var(--lime); padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(216,224,74,.35); }
.pill-soft { color: var(--leaf); background: var(--leaf-soft); border: 0; }

/* Opening section */
.hero { position: relative; overflow: clip; padding: 24px 20px 0; background:
  radial-gradient(60% 50% at 15% 10%, rgba(47,138,95,.35), transparent 70%),
  radial-gradient(40% 40% at 90% 70%, rgba(216,224,74,.10), transparent 70%); }
.island { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 22px var(--display); }
.brand svg { color: var(--lime); }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; margin-left: auto; margin-right: 12px; }
.nav-links a { color: #C9D4CE; text-decoration: none; transition: color .4s var(--spring); }
.nav-links a:hover { color: var(--text); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding: 96px 0 150px; }
.hero-copy { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 { font-size: clamp(52px, 6.6vw, 96px); line-height: .95; font-weight: 800; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.lead { font-size: 20px; color: var(--muted); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cascade { flex: 1 1 380px; min-width: 0; position: relative; min-height: 640px; }
.phone { position: absolute; padding: 7px; border-radius: 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 33px; background: var(--night2); }
.phone-back { right: 0; top: 0; width: 56%; --r: 5deg; }
.phone-front { left: 0; top: 70px; width: 58%; --r: -4deg; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(4,10,7,.55); }
.cascade .phone { transform: rotate(var(--r)); }
.wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; }
.flowline { stroke-dasharray: 120 120; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -240; } }

/* The one load moment: the opening section rises in */
.rise { animation: rise 1s var(--spring) both; animation-delay: var(--d, 0s); }
.cascade .rise { animation-name: rise-tilt; }
@keyframes rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(48px) rotate(var(--r)); } to { opacity: 1; transform: rotate(var(--r)); } }

/* Moving band of business types */
.band { background: var(--lime); color: var(--night); padding: 22px 0; overflow: hidden; }
.marq { display: flex; width: max-content; animation: slide 38s linear infinite; font: 700 30px var(--display); white-space: nowrap; }
.marq li { display: flex; align-items: center; }
.marq li::after { content: ""; width: 34px; height: 20px; margin: 0 40px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 20' fill='none' stroke='%230D1713' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 10c4-6 9 6 15 0s11-6 15 0'/%3E%3C/svg%3E"); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 140px 20px; }
.light { background: var(--rice); color: var(--ink); }
.section h2, .head h2 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.head h2 { max-width: 11em; }
.head p { font-size: 18px; max-width: 26em; }
.light .head p, .light p { color: var(--ink2); }

/* Services: a mosaic of nested cards */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.shell { padding: 8px; border-radius: 36px; background: rgba(24,33,30,.04); border: 1px solid rgba(24,33,30,.06); }
.core { height: 100%; border-radius: 28px; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.b-pos { grid-column: span 8; grid-row: span 2; }
.b-pos .core { padding: 40px; gap: 18px; box-shadow: 0 30px 60px rgba(30,91,65,.08); }
.b-auto { grid-column: span 4; grid-row: span 2; }
.b-third { grid-column: span 4; }
.b-half { grid-column: span 6; }
.h-lg { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.bento h3 { font-size: 24px; font-weight: 800; }
.bento .h-lg { font-size: 36px; }
.shot { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid #E4E9E3; }
.b-third .shot { margin-bottom: 8px; }
.shot-wide { aspect-ratio: 16 / 9; object-position: top left; margin-top: auto; }
.shell-leaf { background: rgba(30,91,65,.1); border-color: rgba(30,91,65,.14); }
.core-leaf { background: var(--leaf); color: var(--text); padding: 36px; gap: 18px; box-shadow: inset 0 1px 1px rgba(255,255,255,.15); }
.light .core-leaf p { color: var(--leaf-soft); }
.steps-mini { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.steps-mini li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.08); }
.steps-mini span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--night); font-weight: 700; display: grid; place-items: center; }
.light .core-leaf .lime-text { color: var(--lime); font-weight: 600; margin-top: auto; }
.plain { border-radius: 28px; border: 1px solid rgba(24,33,30,.1); padding: 32px; display: flex; flex-direction: column; gap: 10px; }

/* Videos */
.watch { padding-bottom: 180px; }
.videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.videos figure { display: flex; flex-direction: column; gap: 18px; }
.videos .low { margin-top: 56px; }
.vshell { position: relative; padding: 6px; border-radius: 34px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.vshell video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: var(--night2); cursor: pointer; }
.sound { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(13,23,19,.7); pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1F5EF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 20px; }
.vshell.on .sound { background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1713' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
figcaption { display: flex; flex-direction: column; gap: 4px; }
figcaption strong { font: 700 22px var(--display); }
figcaption span { font-size: 15px; color: var(--muted); }

/* Paper vs Claverflow */
.compare { display: flex; flex-wrap: wrap; gap: 20px; }
.compare > * { flex: 1 1 420px; min-width: 0; }
.compare h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.paper { padding: 44px; border-radius: 32px; border: 1px dashed #A9B8B0; display: flex; flex-direction: column; gap: 22px; color: var(--ink2); }
.paper ul, .ticks { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.compare .shell-leaf { border-radius: 40px; }
.core-night { background: var(--night); color: var(--text); padding: 40px; gap: 22px; border-radius: 32px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8E04A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E"); }

/* How it works */
#how h2 { margin-bottom: 64px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.how li { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; }
.num { font: 800 88px/.9 var(--display); color: var(--lime); }
.how h3 { font-size: 26px; font-weight: 700; }
.how p { color: var(--muted); }

/* Closing call to action */
.contact { padding: 0 20px 120px; }
.cta-shell { padding: 8px; border-radius: 48px; background: rgba(216,224,74,.12); border: 1px solid rgba(216,224,74,.2); }
.cta { border-radius: 40px; background: var(--lime); color: var(--night); padding: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: .95; font-weight: 800; letter-spacing: -.035em; max-width: 10em; }
.cta p { font-size: 20px; max-width: 28em; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 0 20px 48px; font-size: 15px; color: var(--muted); }
.brand-sm { font-weight: 600; color: var(--text); }

/* Sections fade up as they scroll in (script.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--spring), transform .9s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1023px) {
  .b-pos, .b-auto { grid-column: span 12; grid-row: auto; }
  .b-third { grid-column: span 6; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 88px 16px; }
  .hero { padding: 16px 12px 0; }
  .nav-links { display: none; }
  .hero-grid { padding: 64px 4px 120px; gap: 48px; }
  .cascade { min-height: 0; flex-basis: 100%; display: flex; justify-content: center; }
  .cascade .phone { position: relative; transform: none; left: auto; top: auto; width: min(260px, 72%); animation-name: rise; }
  .phone-back { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .b-pos .core, .core-leaf { padding: 28px; }
  .videos { gap: 16px; }
  .videos .low { margin-top: 32px; }
  figcaption strong { font-size: 18px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .paper, .core-night { padding: 32px; }
  .compare h2 { font-size: 32px; }
  .contact { padding: 0 12px 88px; }
  .marq { font-size: 22px; }
  .marq li::after { margin: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .marq, .flowline { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
