/* kaichologistics.com — the Kaicho company website (M-NEW-12).
 *
 * Plain pages, no framework: every page is complete HTML from the server and reads with JavaScript off.
 * The pages are generated from src/company/ (npm run company:build) — edit those, not the HTML.
 *
 * Tokens are Kaicho's own, so this site, kaicho.app and the business portal read as one company:
 *   ink / muted / line / mist / orange   src/index.css :root (foreground, muted-foreground, border, muted, primary)
 *   forest                               the immersive green (--immersive, the business site's header)
 *   leaf / chilli / green / teal / sun   the tiles of the Kaicho mark (public/favicon.svg)
 *   Poppins 400–700                      the same font files as the app (/fonts)
 */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Poppins-400Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Poppins-500Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Poppins-600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Poppins-700Bold.woff2") format("woff2"); }

:root {
  --ink: #212826;
  --muted: #5f6b67;
  --line: #e1ebe6;
  --mist: #f3f6f5;
  --paper: #ffffff;
  --forest: #0b2e23;
  --forest-2: #155741;
  --orange: #f15a29;
  --orange-dark: #d9481b;
  --leaf: #8dc63f;
  --chilli: #ed1c24;
  --green: #00a651;
  --teal: #1bad7e;
  --sun: #fbb040;
  --cream: #fff7e8;
  --r-tile: 22px;
  --r: 12px;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 7vw, 58px); font-weight: 700; }
h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.measure { max-width: 68ch; }
/* Links to #get-app, #partner… land below the sticky header, not under it. */
[id] { scroll-margin-top: 84px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.top .btn { margin-left: 4px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -16px rgba(11, 46, 35, 0.35); padding: 8px; display: grid; }
.menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--mist); }

@media (max-width: 960px) {
  .nav, .top .btn { display: none; }
  .menu { display: block; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, 0.08); }
.on-light .btn-line:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }

/* ---------------------------------------------------------------- store badges (official artwork) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: inline-block; line-height: 0; border-radius: 9px; }
.badges img { height: 52px; width: auto; }
/* Google's badge carries its own clear space (40 of its 250 px each side): drawn larger and pulled in by that space,
   its black shape is exactly as tall as Apple's. */
.badges .badge-play img { height: 77px; margin: -12.5px; }
/* One smart button on phones (§4.3): site.js marks the phone's system; without it both badges show. */
.os-android .badge-ios, .os-ios .badge-android { display: none; }
.get-app { display: grid; gap: 28px; grid-template-columns: 1fr auto; align-items: center; }
.qr { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--muted); }
.qr img { width: 148px; height: 148px; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.os-android .qr, .os-ios .qr { display: none; }
@media (max-width: 720px), (pointer: coarse) { .qr { display: none; } .get-app { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--forest); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero .sub { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); margin: 22px 0 30px; max-width: 34em; }
.hero .actions { margin-top: 18px; }
.hero .live { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.25); flex: none; }

/* The memorable thing: the Kaicho mark's coloured tiles, each holding an illustration (Home) or a real screen of the product. */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: var(--r-tile); padding: 18px 18px 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 0; }
.tile .who { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.95); margin-bottom: 12px; }
.tile img { border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18); aspect-ratio: 600 / 760; object-fit: cover; object-position: top; width: 100%; }
.t-leaf { background: var(--leaf); }
.t-chilli { background: var(--chilli); }
.t-teal { background: var(--teal); }
.t-orange { background: var(--orange); }
.t-sun { background: var(--sun); }
.t-sun .who { color: var(--forest); }
.t-green { background: var(--green); }
.mosaic .tile:nth-child(2) { transform: translateY(28px); }
.mosaic .tile:nth-child(4) { transform: translateY(28px); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .mosaic .tile:nth-child(2), .mosaic .tile:nth-child(4) { transform: none; }
}

/* ---------------------------------------------------------------- sections */
.band { padding: 80px 0; }
.band.mist { background: var(--mist); }
.band.cream { background: var(--cream); }
.band.forest { background: var(--forest); color: #fff; }
.band.forest .muted { color: rgba(255, 255, 255, 0.78); }
.band .intro { max-width: 46em; margin-bottom: 40px; }
.band .intro p { font-size: 18px; }
.lead { font-size: 19px; line-height: 1.6; }
.page-head { padding: 64px 0 24px; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 16px; }
@media (max-width: 600px) { .band { padding: 56px 0; } .page-head { padding: 44px 0 12px; } }

/* Three short facts, each marked with one tile colour of the mark (not a sequence, so no numbers). */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.points li { padding-top: 22px; position: relative; }
.points li::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 8px; border-radius: 4px; background: var(--leaf); }
.points li:nth-child(2)::before { background: var(--orange); }
.points li:nth-child(3)::before { background: var(--teal); }
.points li:nth-child(4)::before { background: var(--sun); }
.points p { color: var(--muted); margin: 0; }
.band.forest .points p { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 22px; } }

/* A real sequence: numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.top-align { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--leaf); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 9px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------------------------------------------------------------- product proof */
.proof { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.shot figcaption, .shot .caption { font-size: 15px; }
.shot figcaption b, .shot .caption b { display: block; font-size: 17px; }
/* Follow Kaicho (Home): the whole card is one link to the profile. */
a.shot { text-decoration: none; }
a.shot:hover { border-color: var(--orange); }
.shot .phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot .phones img, .shot > img.phone { border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 600 / 1050; object-fit: cover; object-position: top; width: 100%; }
.shot img.screen { border-radius: 10px; border: 1px solid var(--line); }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 860px) { .span-6, .span-4, .span-8 { grid-column: span 12; } }
.video { margin: 0; }
.video video { width: 100%; border-radius: var(--r-tile); background: var(--forest); border: 1px solid var(--line); }
.video figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.video.phone-video video { max-width: 360px; }

/* ---------------------------------------------------------------- cities */
.cities { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.cities li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 18px; }
.on-light .cities li { background: var(--mist); }

/* ---------------------------------------------------------------- cards for audiences */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door { border-radius: var(--r-tile); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-height: 220px; }
.door p { margin: 0; flex: 1; }
.door .go { font-weight: 600; }
.door.t-sun, .door.t-leaf { color: var(--forest); }
.door.t-teal, .door.t-orange, .door.t-chilli, .door.t-forest { color: #fff; }
.door.t-forest { background: var(--forest-2); }
.door:hover .go { text-decoration: underline; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { min-height: 0; } }

/* ---------------------------------------------------------------- about */
.founders { display: flex; flex-wrap: wrap; gap: 36px; margin: 32px 0 8px; }
.founder { display: flex; align-items: center; gap: 18px; }
.founder img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--mist); }
.founder b { display: block; font-size: 19px; }
.founder span { display: block; color: var(--muted); font-size: 15px; }
.founder a { font-weight: 600; font-size: 15px; color: var(--forest-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts dt { color: var(--muted); font-size: 15px; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--forest-2); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }
.certs { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.cert { display: grid; gap: 10px; text-decoration: none; width: 220px; font-size: 15px; }
.cert img { border: 1px solid var(--line); border-radius: 10px; background: #fff; height: 156px; width: 100%; object-fit: contain; }
.cert b { display: block; }
.cert span { color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact { border: 1px solid var(--line); border-radius: var(--r-tile); padding: 24px; }
.contact p { margin: 0 0 6px; color: var(--muted); }
.contact a { font-weight: 600; color: var(--forest-2); overflow-wrap: anywhere; }
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- legal (copies of kaicho.app's pages) */
.legal { padding: 48px 0 72px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h1 + p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal section > p, .legal ul { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal footer { display: none; }
.legal .from { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; margin-bottom: 28px; }
.legal-nav a[aria-current="page"] { font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--forest); color: rgba(255, 255, 255, 0.86); padding: 56px 0 36px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand small { color: rgba(255, 255, 255, 0.7); }
.foot .badges { margin-top: 18px; }
.foot .badges img { height: 44px; }
.foot .badges .badge-play img { height: 65px; margin: -10.5px; }
.foot .legal-line { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 40px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot .cols { grid-template-columns: 1fr; } }

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .btn { padding: 0 18px; }
  .hero .sub { font-size: 17px; }
}

/* ---------------------------------------------------------------- wide screens (M-NEW-15, Joe's "Wider" mock-up) */
/* Only at 1200 px and wider: the page widens, the one top picture runs to the right edge, text stays readable. */
@media (min-width: 1200px) {
  :root { --wrap: 1320px; }
  /* A hero with one picture (For business): the picture side runs to the right edge of the screen. */
  .hero .wrap:has(img.screen) {
    max-width: none;
    margin: 0;
    padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
    padding-right: 0;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
  .hero .wrap:has(img.screen) img.screen { width: 100%; max-height: 560px; object-fit: cover; object-position: left center; border-radius: 24px 0 0 24px !important; border-right: 0; }
  /* The home page's picture tiles keep their size; they just get more room. */
  .hero .tile img { max-height: 360px; }
  .hero .sub { max-width: 34em; }
  /* Running text stays at a comfortable reading width. */
  .intro { max-width: 46em; }
  .band p { max-width: 68ch; }
  .points { gap: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
