/* CribVentory marketing site: the fridge door. Magnets, sticky notes, a receipt. */
@font-face { font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/bagel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/bagel-latin-ext.woff2") format("woff2");
  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-20C4; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  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-20C4; }

:root {
  --fridge: #f1f4f7;
  --paper: #ffffff;
  --ink: #111827;
  --ink-2: #3a4458;
  --cobalt: #2438ff;
  --tomato: #ff4b3e;
  --sun: #ffd23f;
  --mint: #25d9a0;
  --gum: #ff8fd0;
  --shadow: 4px 5px 0 var(--ink);
  --line: 3px solid var(--ink);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.55 var(--body); background: var(--fridge);
  /* a fridge door: faint vertical brushed lines and a soft highlight */
  background-image: linear-gradient(90deg, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(17,24,39,.04) 100%),
    repeating-linear-gradient(90deg, rgba(17,24,39,.018) 0 2px, transparent 2px 7px);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }

/* ---------- buttons: chunky, press down ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--body); text-decoration: none; color: var(--ink);
  background: var(--sun); border: var(--line); border-radius: 999px; padding: 17px 26px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--ink); transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn.cobalt { background: var(--cobalt); color: #fff; }
.btn.cobalt:hover { color: #fff; }
.btn.plain { background: var(--paper); }
.btn.small { padding: 12px 18px; font-size: 16px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(241,244,247,.9); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 26px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 12px; border: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tomato); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } .brand { font-size: 23px; } }

/* ---------- fridge-letter magnets (the memorable thing) ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 0 .55em; font-size: var(--tile, clamp(38px, 6.2vw, 80px)); line-height: 1; margin: 0; }
.letters .w { display: inline-flex; white-space: nowrap; gap: 3px; margin-block: 4px; }
.letters i { font-style: normal; font-family: var(--display); display: inline-grid; place-items: center; min-width: .78em; height: 1.02em; padding: 0 .1em;
  color: var(--ink); background: var(--c, var(--sun)); border: 3px solid var(--ink); border-radius: .2em; box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(var(--r, 0deg)); transition: transform .18s; }
.letters i:nth-child(5n+1) { --c: var(--tomato); } .letters i:nth-child(5n+2) { --c: var(--sun); } .letters i:nth-child(5n+3) { --c: var(--mint); }
.letters i:nth-child(5n+4) { --c: var(--gum); } .letters i:nth-child(5n) { --c: #8fa3ff; }
.letters i:nth-child(7n+1) { --r: -4deg; } .letters i:nth-child(7n+2) { --r: 3deg; } .letters i:nth-child(7n+3) { --r: -2deg; }
.letters i:nth-child(7n+4) { --r: 5deg; } .letters i:nth-child(7n+5) { --r: -5deg; } .letters i:nth-child(7n+6) { --r: 2deg; }
.letters i:hover { transform: rotate(calc(var(--r, 0deg) * -2)) translateY(-6px) scale(1.08); }
.letters.sm { --tile: clamp(30px, 4.6vw, 52px); }
/* one orchestrated moment: the letters drop onto the door when the page opens */
@media (prefers-reduced-motion: no-preference) {
  .letters.drop i { animation: drop .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--n, 0) * 38ms); }
  @keyframes drop { from { transform: translateY(-120px) rotate(calc(var(--r, 0deg) * 4)); opacity: 0; } to { transform: rotate(var(--r, 0deg)); opacity: 1; } }
}

/* ---------- hero ---------- */
.hero { padding: 52px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { margin: 26px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; padding: 0; list-style: none; font-weight: 700; font-size: 16px; }
.micro li { display: inline-flex; align-items: center; gap: 8px; }
.micro li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--ink); }
.stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone { width: min(300px, 70vw); border: 4px solid var(--ink); border-radius: 40px; background: var(--ink); padding: 9px; box-shadow: 8px 10px 0 var(--ink); transform: rotate(3deg); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 390/844; object-fit: cover; object-position: top; background: #fff; }
.mag { position: absolute; border: var(--line); box-shadow: var(--shadow); font-weight: 800; line-height: 1.15; color: var(--ink); padding: 12px 16px; }
.mag.a { left: -16%; top: 3%; background: var(--sun); border-radius: 18px; transform: rotate(-7deg); max-width: 190px; }
.mag.b { right: -1%; top: 40%; background: var(--mint); border-radius: 50%; width: 118px; height: 118px; display: grid; place-items: center; text-align: center; font-size: 17px; transform: rotate(8deg); padding: 6px; }
.mag.c { left: -4%; bottom: 8%; background: var(--gum); border-radius: 14px; transform: rotate(5deg); max-width: 190px; }
.mag small { display: block; font-weight: 600; font-size: 13px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; } .stage { min-height: 520px; }
  .mag.a { left: 0; top: -4%; } .mag.b { right: 0; } .mag.c { left: 0; }
}

/* ---------- sections ---------- */
section { padding: 76px 0; position: relative; }
.head { margin-bottom: 40px; }
.head .lead { margin-top: 14px; }

/* sticky-note wall */
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px 22px; }
.note { grid-column: span 4; padding: 26px 24px 24px; border: var(--line); box-shadow: var(--shadow); border-radius: 6px 6px 22px 6px;
  transform: rotate(var(--r, -1deg)); position: relative; }
.note::before { content: ""; position: absolute; top: -13px; left: 50%; width: 74px; height: 24px; background: rgba(255,255,255,.7); border: 2px solid var(--ink); transform: translateX(-50%) rotate(-2deg); }
.note:nth-child(1) { background: var(--sun); --r: -2deg; } .note:nth-child(2) { background: var(--gum); --r: 1.5deg; grid-column: span 4; }
.note:nth-child(3) { background: var(--mint); --r: -1deg; } .note:nth-child(4) { background: #bcc8ff; --r: 2deg; grid-column: span 6; }
.note:nth-child(5) { background: #ffb4ab; --r: -1.5deg; grid-column: span 6; }
.note h3 { font-size: 27px; margin-bottom: 12px; }
.note p { margin: 0; font-weight: 600; }
.note .fix { margin-top: 14px; padding-top: 12px; border-top: 3px dashed var(--ink); font-weight: 800; }
@media (max-width: 900px) { .wall { grid-template-columns: 1fr; } .note, .note:nth-child(n) { grid-column: auto; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; padding: 0; list-style: none; margin: 0; }
.steps li { display: grid; gap: 18px; justify-items: start; }
.steps .num { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: var(--line); box-shadow: var(--shadow); font: 400 34px/1 var(--display); background: var(--cobalt); color: #fff; }
.steps li:nth-child(2) .num { background: var(--tomato); color: var(--ink); } .steps li:nth-child(3) .num { background: var(--mint); color: var(--ink); }
.steps .phone { width: min(250px, 100%); transform: rotate(var(--r, -2deg)); box-shadow: 6px 8px 0 var(--ink); }
.steps li:nth-child(2) .phone { --r: 2deg; } .steps li:nth-child(3) .phone { --r: -1deg; }
.steps h3 { margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* feature magnets: mixed shapes */
.magnets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.m { border: var(--line); box-shadow: var(--shadow); padding: 26px; position: relative; transform: rotate(var(--r, 0deg)); }
.m h3 { margin-bottom: 10px; } .m p { margin: 0; font-weight: 600; }
.m .tag { position: absolute; top: -16px; right: 18px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.m.big { grid-column: span 3; background: var(--cobalt); color: #fff; border-radius: 28px 28px 70px 28px; --r: -.6deg; }
.m.big p { color: #e9ecff; }
.m.t1 { grid-column: span 3; background: var(--sun); border-radius: 70px 28px 28px 28px; --r: .8deg; }
.m.t2 { grid-column: span 2; background: var(--mint); border-radius: 28px; --r: -1deg; }
.m.t3 { grid-column: span 2; background: var(--gum); border-radius: 50px; --r: 1.2deg; }
.m.t4 { grid-column: span 2; background: #ffb4ab; border-radius: 28px 60px 28px 28px; --r: -.8deg; }
.m.t5 { grid-column: span 3; background: var(--paper); border-radius: 28px; --r: .6deg; }
.m.t6 { grid-column: span 3; background: #bcc8ff; border-radius: 28px 28px 28px 70px; --r: -.7deg; }
@media (max-width: 900px) { .magnets { grid-template-columns: 1fr; } .m, .m.big, .m.t1, .m.t2, .m.t3, .m.t4, .m.t5, .m.t6 { grid-column: auto; } }

/* the insurance band */
.band { background: var(--tomato); border-block: var(--line); }
.band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.band h2 { margin-bottom: 18px; }
.band p { font-weight: 600; }
.clip { background: var(--paper); border: var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 22px 24px; transform: rotate(2deg); }
.clip b { display: block; font: 400 24px/1.1 var(--display); margin-bottom: 12px; }
.clip ul { list-style: none; margin: 0; padding: 0; font-weight: 700; }
.clip li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 2px dashed var(--ink); }
.clip li:last-child { border: 0; }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; } }

/* privacy magnet */
.private h2 { margin-bottom: 18px; }
.private .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.lock { justify-self: center; width: min(320px, 80%); aspect-ratio: 1; display: grid; place-items: center; background: var(--mint); border: var(--line); border-radius: 50%; box-shadow: 8px 10px 0 var(--ink); font: 400 clamp(28px, 4vw, 40px)/1.05 var(--display); text-align: center; padding: 28px; transform: rotate(-5deg); }
@media (max-width: 900px) { .private h2 { margin-bottom: 18px; }
.private .wrap { grid-template-columns: 1fr; } }

/* the receipt */
.receipt-wrap { display: grid; place-items: center; }
.receipt { width: 100%; background: var(--paper); border: var(--line); padding: 34px 32px 44px; font-family: "Courier New", ui-monospace, monospace; transform: rotate(-1.5deg);
  --z: 12px; box-shadow: none; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) 100% repeat-x; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) 100% repeat-x; }
.receipt h3 { font: 400 32px/1 var(--display); text-align: center; }
.receipt .rule { border-top: 3px dashed var(--ink); margin: 18px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; padding: 3px 0; }
.receipt .price { font: 400 70px/1 var(--display); text-align: center; margin: 6px 0 2px; }
.receipt .per { text-align: center; font-weight: 700; margin-bottom: 18px; }
.receipt .btn { width: 100%; justify-content: center; font-family: var(--body); }
.receipt .fine { text-align: center; font-size: 14px; margin: 14px 0 0; max-width: none; }
.stamp { z-index: 3; position: absolute; right: -10px; top: -22px; background: var(--tomato); border: var(--line); border-radius: 50%; width: 104px; height: 104px; display: grid; place-items: center; text-align: center; font: 400 19px/1 var(--display); transform: rotate(14deg); box-shadow: var(--shadow); }
.receipt-box { position: relative; width: min(100%, 460px); filter: drop-shadow(7px 9px 0 var(--ink)); }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 860px; }
details { background: var(--paper); border: var(--line); border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 800 20px/1.3 var(--body); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); font: 800 20px/1 var(--body); transition: rotate .15s; }
details[open] summary::after { content: "–"; background: var(--mint); }
details > div { padding: 0 22px 20px; } details > div p:last-child { margin: 0; }

/* inner pages */
.page-hero { padding: 54px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 68px); max-width: 17ch; }
.page-hero .lead { margin-top: 18px; }
.crumbs { font-size: 15px; font-weight: 700; margin-bottom: 18px; } .crumbs a { color: var(--ink-2); }
.prose { max-width: 760px; } .prose h2 { font-size: clamp(28px, 4vw, 42px); margin: 50px 0 14px; } .prose h3 { margin: 30px 0 8px; font-size: 26px; }
.prose ul { padding-left: 1.1em; } .prose li { margin-bottom: 8px; }
.callout { background: var(--sun); border: var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 20px 22px; margin: 28px 0; font-weight: 600; }
.callout p:last-child { margin: 0; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); margin: 22px 0; font-size: 17px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 2px solid var(--ink); }
.tbl tr:last-child td { border-bottom: 0; } .tbl th { background: var(--sun); font-weight: 800; }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 8px; }
.more a { display: block; padding: 20px; background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); text-decoration: none; color: var(--ink); font-weight: 800; }
.more a span { display: block; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
.more a:hover { background: var(--sun); }
.endcta { background: var(--cobalt); color: #fff; border-block: var(--line); text-align: center; }
.endcta h2 { margin-bottom: 14px; } .endcta p { margin-inline: auto; color: #e9ecff; font-weight: 600; }
.endcta .cta-row { justify-content: center; }

/* footer */
footer { background: var(--ink); color: #cfd6e4; padding: 54px 0 34px; }
footer a { color: #fff; } footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
footer h4 { margin: 0 0 12px; font: 400 22px/1 var(--display); color: var(--sun); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer .legal { margin-top: 34px; padding-top: 20px; border-top: 2px solid #2b3550; font-size: 15px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { body { font-size: 17px; } section { padding: 56px 0; } .btn { padding: 15px 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.ph { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.ph.solo { grid-template-columns: 1fr; }
.ph .phone { margin-inline: auto; }
.btn { white-space: nowrap; }
section[id] { scroll-margin-top: 80px; }
@media (max-width: 900px) { .ph { grid-template-columns: 1fr; } .ph .phone { width: min(260px, 70vw); } }
