/* HOME PAGE — BLOCKS.
   The repeated pieces inside the bands: feature-index tiles, the three steps, file-type stamps, small cards,
   call-outs, the connected-app groups, the Planning points, the AI-app cards, the Vault panel, the phones row and
   the few tweaks the reused site.css components need here. Same tokens, ink borders and soft offset shadows as
   the rest of the site. */

/* ── Feature index ───────────────────────────────────────────────────────── */
.lp-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0;
  list-style: none; }
.lp-tile { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 18px; border: var(--border);
  border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s; }
.lp-tile:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 rgba(61, 61, 74, .18); }
.lp-tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border: var(--border); border-radius: 14px;
  background: var(--yellow); box-shadow: 2px 2px 0 rgba(61, 61, 74, .14); font-size: 1.4rem; }
.lp-index li:nth-child(6n+2) .lp-tile-ic { background: var(--pink); }
.lp-index li:nth-child(6n+3) .lp-tile-ic { background: var(--lime); }
.lp-index li:nth-child(6n+4) .lp-tile-ic { background: var(--cyan); }
.lp-index li:nth-child(6n+5) .lp-tile-ic { background: var(--purple); }
.lp-index li:nth-child(6n) .lp-tile-ic { background: var(--orange); }
.lp-tile :is(h3, h4) { min-width: 0; overflow-wrap: anywhere; margin-top: 4px; font-family: 'Bangers', cursive; font-weight: 400; letter-spacing: .035em; line-height: 1.05;
  font-size: 1.5rem; color: var(--ink-strong); }
.lp-tile p { font-size: .94rem; font-weight: 600; line-height: 1.45; }

/* The two groups of the index (2026-11-21): the core features, then the AI apps — each heading a small ink pill */
.lp-fgroup + .lp-fgroup { margin-top: 30px; }
.lp-fgroup-h { display: inline-block; margin: 0 0 14px; padding: 4px 14px; font-family: 'Bangers', cursive; font-weight: 400;
  font-size: 1.35rem; letter-spacing: .04em; color: var(--ink-strong); background: #fff; border: var(--border);
  border-radius: 999px; box-shadow: var(--shadow-sm); }
:lang(ja) .lp-fgroup-h, :lang(zh-CN) .lp-fgroup-h { font-family: inherit; font-weight: 800; letter-spacing: 0; }
.lp-fgroup-all { margin-top: 24px; text-align: center; font-weight: 900; }
.lp-fgroup-all a { color: var(--ink-strong); border-bottom: 2px solid currentColor; text-decoration: none; }

/* ── How it works: three sticky notes ───────────────────────────────────── */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); margin: 0;
  padding: 0; list-style: none; }
.lp-step { position: relative; padding: 32px 26px 26px; border: var(--border); background: var(--yellow);
  box-shadow: var(--shadow); transform: rotate(-1deg); }
.lp-step:nth-child(2) { background: var(--pink); transform: rotate(.8deg); }
.lp-step:nth-child(3) { background: var(--cyan); transform: rotate(-.6deg); }
.lp-step::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 22px; translate: -50% 0;
  border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .7); transform: rotate(-2deg); }
.lp-step-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border: var(--border);
  border-radius: 50%; background: #fff; box-shadow: 2px 2px 0 rgba(61, 61, 74, .14); font-family: 'Bangers', cursive;
  font-size: 1.6rem; color: var(--ink-strong); }
.lp-step h3 { margin-bottom: 6px; font-family: 'Bangers', cursive; font-weight: 400; letter-spacing: .035em;
  line-height: 1.05; font-size: 1.65rem; color: var(--ink-strong); }
.lp-step p { font-weight: 700; line-height: 1.5; }

/* ── File-type stamps ────────────────────────────────────────────────────── */
.lp-stamps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.lp-stamps li { padding: 3px 12px; border: var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
  font-family: 'Bangers', cursive; font-size: 1.2rem; letter-spacing: .06em; color: var(--ink-strong); }
.lp-stamp--pdf { background: var(--pink); transform: rotate(-2deg); }
.lp-stamp--docx { background: var(--cyan); transform: rotate(1.5deg); }
.lp-stamp--xlsx { background: var(--lime); transform: rotate(-1deg); }
.lp-stamp--pptx { background: var(--orange); transform: rotate(2deg); }

/* ── Small cards ─────────────────────────────────────────────────────────── */
.lp-cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 60px); }
.lp-card { padding: 16px 18px; border: var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-card h3 { margin-bottom: 4px; font-size: 1.05rem; font-weight: 900; color: var(--ink-strong); }
.lp-card p { font-size: .94rem; font-weight: 600; line-height: 1.45; }
.lp-card p a { color: var(--ink-strong); font-weight: 900; }
.lp-card-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px;
  border: var(--border-sm); border-radius: 12px; background: var(--yellow); font-size: 1.15rem; }
.lp-cards li:nth-child(3n+2) .lp-card-ic { background: var(--pink); }
.lp-cards li:nth-child(3n) .lp-card-ic { background: var(--cyan); }

/* ── Call-outs (connected apps) ──────────────────────────────────────────── */
.lp-callouts { display: grid; gap: 14px; }
.lp-callout { padding: 14px 18px; border: var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-callout h3 { margin-bottom: 4px; font-size: 1.05rem; font-weight: 900; color: var(--ink-strong); }
.lp-callout p { font-size: .95rem; font-weight: 600; line-height: 1.5; }

/* ── Connected-app groups: names as text chips (the logos are not ours) ─── */
/* Packed in columns, so a group of 4 apps does not leave a hole beside a group of 17. */
.lp-groups { columns: 3 260px; column-gap: 16px; margin-top: clamp(32px, 5vw, 52px); }
.lp-group { break-inside: avoid; margin-bottom: 16px; padding: 14px 16px 16px; border: var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.lp-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
  font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-strong); }
.lp-count { padding: 1px 9px; border: var(--border-sm); border-radius: 999px; background: var(--yellow); font-size: .78rem; }
.lp-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lp-group li { padding: 3px 10px; border: 1.5px solid rgba(61, 61, 74, .3); border-radius: 999px; background: #FAFBFD;
  font-size: .84rem; font-weight: 800; }
:lang(ja) .lp-group h3, :lang(zh-CN) .lp-group h3 { letter-spacing: 0; text-transform: none; }

/* ── Planning points ─────────────────────────────────────────────────────── */
.lp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0; list-style: none; }
.lp-points li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: var(--border-sm);
  border-radius: 14px; background: #fff; box-shadow: 2px 2px 0 rgba(61, 61, 74, .12); font-size: .98rem; font-weight: 800;
  line-height: 1.4; }
.lp-points-ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: var(--border-sm);
  border-radius: 10px; background: #EAF6FF; }

/* ── AI-app cards: the whole card is the link (stretched ::before) ──────── */
.lp-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 28px); margin: 0;
  padding: 0; list-style: none; }
.lp-app { position: relative; display: flex; flex-direction: column; overflow: hidden; border: var(--border);
  border-radius: 22px; background: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.lp-app:hover { transform: translate(-2px, -3px); box-shadow: 7px 8px 0 rgba(61, 61, 74, .18); }
.lp-app-media { position: relative; padding: 20px 22px 0; border-bottom: var(--border); background: var(--pink); }
.lp-app--recruiting .lp-app-media { background: var(--cyan); }
.lp-app--seo .lp-app-media { background: var(--lime); }
.lp-app--builder .lp-app-media { background: var(--orange); }
.lp-app-media img { display: block; width: 100%; height: auto; border: var(--border); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: #F6F8FB; }
.lp-badge { position: absolute; top: 30px; right: 32px; padding: 2px 10px; border: var(--border-sm); border-radius: 999px;
  background: #fff; box-shadow: 2px 2px 0 rgba(61, 61, 74, .14); font-size: .78rem; font-weight: 900; }
.lp-app-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.lp-app h3 { font-family: 'Bangers', cursive; font-weight: 400; letter-spacing: .035em; line-height: 1.05;
  font-size: 1.7rem; color: var(--ink-strong); }
.lp-app p { font-weight: 600; line-height: 1.5; }
.lp-more { align-self: flex-start; margin-top: auto; padding-bottom: 1px; border-bottom: 2px solid currentColor;
  color: var(--ink-strong); font-weight: 900; text-decoration: none; }
.lp-more::after { content: " →"; }
.lp-more::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── Control band: picture + six cards, then the Vault panel ────────────── */
.lp-vault { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 3vw, 36px); border: var(--border);
  border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.lp-vault-text > p { margin-bottom: 18px; font-weight: 700; line-height: 1.55; }
.lp-vault .lp-frame { box-shadow: 6px 6px 0 rgba(61, 61, 74, .14); }

/* ── Phones row ──────────────────────────────────────────────────────────── */
.lp-phones { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 4vw, 48px); margin: 0;
  padding: 8px 0 0; list-style: none; }
.lp-phones li { width: min(240px, 28vw); }
.lp-phones li:nth-child(1) { transform: rotate(-3deg) translateY(14px); }
.lp-phones li:nth-child(3) { transform: rotate(3deg) translateY(14px); }
.lp-phones .lp-phone { max-width: none; }

.lp-ext { margin-top: clamp(48px, 7vw, 88px); }
.lp-row--themes .carousel { min-width: 0; }
.lp-faq { margin-inline: auto; }

/* Two rows with their own proportions — from tablet width up only, so the one-column phone layout of .lp-row
   (layout.css) still applies below. */
@media (min-width: 921px) {
  .lp-row--control { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .lp-row--themes { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* The closing banner is tilted: kept inside the gutters so its corners never poke past the screen edge. */
.lp-cta { width: min(1050px, calc(100% - 2 * var(--lp-gutter))); }

/* The pricing band is the live markup (site.css styles it); here its heading only joins the centred rhythm. */
.lp-pricing > .kicker { display: table; margin-inline: auto; }
.lp-pricing > h2, .lp-pricing > .lead { margin-inline: auto; text-align: center; }
.lp-pricing > .table-note { margin-inline: auto; text-align: center; }

/* ── Narrower screens ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .lp-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .lp-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-vault { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .lp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; }
  .lp-cards--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-apps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* Three phones side by side would be thumbnails: they become a row you swipe, inside its own box. */
  .lp-phones { justify-content: flex-start; gap: 14px; overflow-x: auto; padding: 8px 4px 18px;
    scroll-snap-type: x mandatory; }
  .lp-phones li { flex: 0 0 64%; width: auto; scroll-snap-align: center; transform: none; }
}
@media (max-width: 560px) {
  .lp-cards--2, .lp-points { grid-template-columns: minmax(0, 1fr); }
  /* The index turns into a compact two-column grid of icon + name; each section below says the rest. */
  .lp-index { gap: 10px; }
  .lp-tile { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .lp-tile-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; font-size: 1.1rem; }
  .lp-tile :is(h3, h4) { margin-top: 0; font-size: 1.15rem; }
  .lp-tile p { display: none; }
  :lang(ja) .lp-tile :is(h3, h4), :lang(zh-CN) .lp-tile :is(h3, h4) { font-size: 1rem; }
}
@media (max-width: 420px) {
  /* Two columns of ~90px text would split "Dashboards" or "StickyCopilot" mid-word: one column of short rows. */
  .lp-index { grid-template-columns: minmax(0, 1fr); }
  .lp-app-media { padding: 14px 14px 0; }
  .lp-badge { top: 22px; right: 22px; }
}
