/* Carana site. Serif display headlines, Inter for everything else; white page, Warm Neutral panels, Deep Teal accents. */
@font-face { font-family: Inter; src: url("fonts/Inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif.woff2") format("woff2"); font-display: swap; }

:root {
  --serif: "Instrument Serif", Georgia, serif; --serif-wt: 400; --serif-ls: -.01em;
  --page: #FFFFFF; --panel: #F6F5F1; --panel-2: #EEF3F0; --card: #FFFFFF;
  --ink: #141718; --body: #3B4644; --muted: #5E6B68; --teal: #0B5351; --teal-hover: #083F3E; --mint: #8FC7B5;
  --gold: #F2A900; --amber: #A85200; --line: #D9E0DC; --field: #B7C8C1; --error: #B42318;
  --radius-xl: clamp(28px, 4vw, 56px); --shadow: 0 1px 2px rgb(20 23 24 / .04), 0 12px 40px rgb(20 23 24 / .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 18px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif, h1, h2, .manifesto p { font-family: var(--serif); font-weight: var(--serif-wt); letter-spacing: var(--serif-ls); }

/* Hero: one soft rounded panel, like a sheet of paper on the page */
.hero { margin: clamp(8px, 1.4vw, 20px); padding: 0 clamp(16px, 4vw, 56px) clamp(28px, 4vw, 48px); border-radius: var(--radius-xl);
  background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, var(--panel) 60%, #EFEEE8 100%); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: clamp(18px, 3vw, 32px) 0; }
.brand img { width: clamp(130px, 12vw, 150px); height: auto; }
.pill-btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.pill-btn:hover { background: var(--teal-hover); }
.pill-btn.big { margin-top: 28px; padding: 15px 28px; font-size: 17px; }
.hero-copy { text-align: center; padding: clamp(16px, 5vh, 56px) 0 clamp(28px, 4vh, 40px); }
h1 { margin: 0; font-size: clamp(46px, 7.2vw, 104px); line-height: 1; }
h1 span { display: block; text-wrap: balance; }
h1 .accent { color: var(--teal); }
.sub { margin: 18px auto 0; max-width: 32em; font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); }

.stage { position: relative; max-width: 1080px; margin: 0 auto; }
.diagram { margin: 0; border-radius: clamp(20px, 3vw, 40px); background: #FFFFFF; box-shadow: var(--shadow); padding: clamp(12px, 2vw, 28px) clamp(8px, 2vw, 28px) 4px; }
.diagram svg { display: block; width: 100%; height: auto; }


/* One big sentence with small symbols set into it */
.manifesto { max-width: 1180px; margin: 0 auto; padding: clamp(96px, 16vh, 180px) clamp(16px, 4vw, 48px); text-align: center; }
.manifesto p { margin: 0; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.12; text-wrap: balance; }
.chip { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -.16em; margin: 0 .04em; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.chip svg { width: 52%; height: 52%; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip .gold { fill: var(--gold); stroke: none; }
.chip img { width: 58%; height: auto; }
.nw { white-space: nowrap; }
.c-mark { background: #032A2B; box-shadow: none; }
.c-rise { background: var(--teal); } .c-rise svg { stroke: #fff; }

/* Feature rows: a picture tile and a few words */
.row { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.row.flip .tile { order: 2; }
.copy h2 { margin: 0 0 14px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.copy p { margin: 0; color: var(--body); max-width: 26em; }
.tile { border-radius: clamp(24px, 3vw, 44px); background: var(--panel); padding: clamp(28px, 5vw, 64px); display: grid; place-items: center; min-height: clamp(260px, 30vw, 380px); }
.t-gaps, .t-method { background: var(--panel-2); }
.card { width: min(100%, 340px); background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 22px 18px; font-size: 14.5px; }
.card-k { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-k b { color: var(--teal); }
.card-f { margin: 12px 0 0; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 600; }
.mini-chart { width: 100%; height: auto; }
.mini-chart .base { stroke: var(--muted); stroke-dasharray: 4 4; }
.mini-chart text { font: 600 11px Inter, sans-serif; fill: var(--muted); }
.mini-chart .grow { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.mini-chart .tip { fill: var(--gold); }
.gaps, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gaps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FBF7F1; }
.gaps i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.gaps span { line-height: 1.35; }
.bench { display: grid; gap: 10px; }
.brow { display: grid; grid-template-columns: 76px 1fr 20px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.brow i { height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--mint) calc(var(--w) * 100%), #E6EBE7 0); transition: background .6s; }
.brow em { font-style: normal; font-weight: 700; color: #fff; background: var(--teal); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; opacity: 0; }
.brow.win { background: #DCEEE7; } .brow.win i { background: linear-gradient(90deg, var(--teal) calc(var(--w) * 100%), #E6EBE7 0); } .brow.win em { opacity: 1; }
.checks li { position: relative; padding: 9px 12px 9px 40px; border-radius: 12px; background: #F4F7F5; }
.checks li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--teal); }
.checks li::after { content: ""; position: absolute; left: 18px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }

/* Contact */
.contact { max-width: 760px; margin: 0 auto; padding: clamp(96px, 14vh, 160px) clamp(16px, 4vw, 48px) clamp(48px, 8vh, 96px); text-align: center; scroll-margin-top: 16px; }
.contact h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.lede { margin: 18px auto 36px; max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.form-card { text-align: left; background: var(--panel); border-radius: clamp(24px, 3vw, 40px); padding: clamp(22px, 4vw, 44px); }
form#contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: span 2; }
label { font-size: 15px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
#contact-form input, #contact-form textarea { font: inherit; font-size: 17px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--field); border-radius: 14px; padding: 12px 14px; }
#contact-form textarea { resize: vertical; }
#contact-form input:focus-visible, #contact-form textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { margin: 0; color: var(--error); font-size: 15px; }
.err:empty, .status:empty { display: none; }
.btn { justify-self: start; grid-column: span 2; margin-top: 6px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font: 600 16px/1.2 Inter, sans-serif; cursor: pointer; }
.btn:hover { background: var(--teal-hover); }
button:disabled { opacity: .6; cursor: progress; }
.status { grid-column: span 2; margin: 0; font-size: 16px; }

/* Footer: the wordmark, large */
.foot { padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 48px) 40px; }
.wordmark { width: 100%; max-width: 1320px; height: auto; margin: 0 auto; }
.foot-row { max-width: 1320px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; color: var(--muted); font-size: 15px; }
.foot-row a { color: var(--teal); font-weight: 600; text-decoration: none; }


/* Living motion on the tiles (the hero diagram has its own) */
@keyframes t-grow { 0%, 12% { stroke-dashoffset: 100; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes t-tip { 0%, 50% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes t-fix { 0%, 20% { background: var(--amber); } 32%, 100% { background: var(--teal); } }
@keyframes t-tick { 0%, 10% { opacity: .25; } 22%, 100% { opacity: 1; } }
.mini-chart .grow { animation: t-grow 5s ease-out infinite; }
.mini-chart .tip { animation: t-tip 5s ease-out infinite; }
.gaps i { animation: t-fix 6s calc(var(--i) * 1s) ease infinite; }
.checks li { animation: t-tick 6s calc(var(--i) * .6s) ease infinite; }

@media (max-width: 860px) {
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .tile { order: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  form#contact-form { grid-template-columns: 1fr; }
  .field.wide, .btn, .status { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini-chart .grow, .mini-chart .tip, .gaps i, .checks li { animation: none; }
  .gaps i { background: var(--teal); }
}

/* How-it-works diagram (caraana-diagram.svg, inlined). Without .js (no JS or reduced motion) it shows the finished picture.
   .js holds it at the start; .play (added when scrolled into view) runs the story once and holds the end. */

.diagram svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .diagram { overflow-x: auto; } .diagram svg { min-width: 760px; } }
.cdg .leak-on { opacity: 0; }
.cdg.js * { animation-play-state: paused; }
.cdg.play * { animation-play-state: running; }
@keyframes cdg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdg-out { to { opacity: 0; } }
@keyframes cdg-grow { from { transform: scaleX(0); } }
@keyframes cdg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cdg-flow { to { stroke-dashoffset: -12; } }
@keyframes cdg-ring { from { r: 7; opacity: .9; } to { r: 18; opacity: 0; } }
.cdg.js .s0 { animation: cdg-in 0.36s calc(var(--i, 0) * 0.04s) both; }
.cdg.js .s1 { animation: cdg-in 0.42s 0.48s both; }
.cdg.js .s2 { animation: cdg-in 0.36s 0.96s both; }
.cdg.js .s3 { animation: cdg-in 0.36s 2.16s both; }
.cdg.js .s5 { animation: cdg-in 0.36s 3.48s both; }
.cdg.js .s7 { animation: cdg-in 0.36s 5.04s both; }
.cdg.js .wire { animation: cdg-flow 0.72s linear 3; }
.cdg.js .s3 .wire { animation-delay: 2.16s; } .cdg.js .s5 .wire { animation-delay: 3.48s; } .cdg.js .s7 .wire { animation-delay: 5.04s; }
.cdg.js .leak-on { animation: cdg-in 0.24s calc(1.68s + var(--i) * 0.18s) both, cdg-out 0.24s calc(4.68s + var(--i) * 0.15s) forwards; }
.cdg.js .leak-on .ring { animation: cdg-ring 0.72s calc(1.68s + var(--i) * 0.18s) 4 both; }
.cdg.js .leak-off { animation: cdg-in 0.24s calc(4.74s + var(--i) * 0.15s) both; }
.cdg .bar { transform-box: fill-box; transform-origin: left center; }
.cdg.js .bar { animation: cdg-grow 0.42s calc(2.64s + var(--i) * 0.12s) cubic-bezier(.22, 1, .36, 1) both; }
.cdg.js .best { animation: cdg-in 0.24s 3.18s both; }
.cdg.js .fit { animation: cdg-in 0.24s calc(3.96s + var(--i) * 0.15s) both; }
.cdg .rise { stroke-dasharray: 100; }
.cdg.js .rise { animation: cdg-draw 0.72s 5.52s ease-out both; }
.cdg.js .tip { animation: cdg-in 0.24s 6.24s both; }
/* Live phase (added by caraana.js after the opening): data keeps flowing, and a find → benchmark → deploy → fix → measure cycle repeats. */
.cdg .packets { display: none; }
.cdg.live .packets { display: inline; }
.cdg.live .wire { animation: cdg-flow 1.56s linear infinite; }
.cdg .lleak .on, .cdg .lleak .off { opacity: 0; transition: opacity .45s; }
.cdg .lleak.show .on { opacity: 1; }
.cdg .lleak.fixed .on { opacity: 0; }
.cdg .lleak.fixed .off { opacity: 1; }
.cdg .lleak.show .ring { animation: cdg-ring 1.3s ease-out infinite; }
.cdg.live .leak { opacity: 0; transition: opacity 1.2s; }
.cdg #bm-hl, .cdg #bm-check { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.cdg .bar { transition: transform .8s cubic-bezier(.22, 1, .36, 1), fill .4s; }
.cdg #bm-cat { transition: opacity .3s; }
.cdg #bm-cat.swap { opacity: 0; }
.cdg .fit rect, .cdg .fit text { transition: fill .4s; }
.cdg .fit.glow rect { fill: #0B5351; }
.cdg .fit.glow text { fill: #FFFFFF; }
@keyframes cdg-breathe { 50% { fill-opacity: .35; } }
.cdg.live .node ellipse { animation: cdg-breathe 4.5s ease-in-out infinite; }
.cdg.paused *, .cdg.paused { animation-play-state: paused !important; }
