/* Home page (v5): video slot, three moments, one-line compare. Uses the site's own palette and fonts.
   Source: home-v5-src/v5.css, copied to site/v5.css by home-v5.mjs. */

/* ---- Hero video slot ---- */
.v5-video-wrap { position: relative; z-index: 3; max-width: 980px; margin: clamp(44px, 7vh, 70px) auto 0; padding-bottom: clamp(36px, 5vh, 60px); }
.v5-video { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; cursor: pointer; background: #fff; border: 10px solid #fff; box-shadow: 0 30px 80px rgba(20, 40, 80, .28), 0 -8px 50px rgba(20, 40, 80, .12); transition: transform .3s, box-shadow .3s; }
.v5-video:hover { transform: translateY(-3px); box-shadow: 0 38px 90px rgba(20, 40, 80, .32), 0 -8px 50px rgba(20, 40, 80, .12); }
.v5-video:focus-visible { outline: 3px solid #1F6FEB; outline-offset: 5px; }
.v5-video img, .v5-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 14px; display: block; }
.v5-video video { object-fit: contain; object-position: center; background: #141821; }
.v5-video.v5-still, .v5-video.v5-playing { cursor: default; }
.v5-video.v5-still:hover, .v5-video.v5-playing:hover { transform: none; box-shadow: 0 30px 80px rgba(20, 40, 80, .28), 0 -8px 50px rgba(20, 40, 80, .12); }
.v5-shade { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(180deg, rgba(20, 24, 33, 0) 35%, rgba(20, 24, 33, .55) 100%); pointer-events: none; }
.v5-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: #FF5A36; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(216, 67, 31, .45), 0 0 0 12px rgba(255, 255, 255, .55); transition: transform .25s; }
.v5-play svg { margin-left: 6px; }
.v5-video:hover .v5-play { transform: scale(1.07); }
.v5-cap { position: absolute; left: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; text-align: left; color: #fff; }
.v5-cap b { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.v5-cap span { font-size: 14.5px; font-weight: 500; opacity: .92; }
.v5-time { position: absolute; right: 20px; bottom: 22px; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; color: #141414; background: rgba(255, 255, 255, .9); padding: 5px 10px; border-radius: 999px; }
.v5-note { position: absolute; right: -28px; top: -34px; transform: rotate(4deg); font-family: Caveat, cursive; font-size: 22px; line-height: 1.05; color: #1F4E6B; background: #FFF1A8; padding: 8px 12px; border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); max-width: 210px; pointer-events: none; z-index: 2; }

/* ---- Three moments ---- */
.v5-moments { background: #fff; border-radius: 28px; margin: 10px 0; }
.v5-moments > section { max-width: 1180px; margin: 0 auto; padding: 100px 24px 84px; position: relative; }
.v5-eyebrow { font-family: Caveat, cursive; font-size: 25px; color: #1F6FEB; transform: rotate(-2deg); text-align: center; margin-bottom: 4px; }
.v5-h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; text-align: center; text-wrap: balance; }
.v5-lead { text-align: center; font-size: 18px; line-height: 1.55; color: #3A3A3A; margin: 0 auto 64px; max-width: 560px; text-wrap: pretty; }
.v5-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.v5-card { position: relative; display: flex; flex-direction: column; background: #F4F1EA; border-radius: 24px; padding: 0 22px 22px; }
.v5-pain { position: relative; margin: -22px 4px 26px; padding: 22px 20px 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); transform: rotate(-1.6deg); transition: transform .3s; }
.v5-card:nth-child(2) .v5-pain { transform: rotate(1.4deg); }
.v5-card:nth-child(3) .v5-pain { transform: rotate(-1deg); }
.v5-card:hover .v5-pain { transform: rotate(0deg) translateY(-3px); }
.v5-pain::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 70px; height: 20px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(0, 0, 0, .05); }
.v5-pain q { display: block; font-family: Caveat, cursive; font-size: 27px; line-height: 1.05; color: #141414; margin-bottom: 8px; quotes: "\201C" "\201D"; }
.v5-pain p { margin: 0; font-size: 15px; line-height: 1.5; color: #2B2B2B; }
.v5-step { display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: #555; margin: 0 2px 10px; }
.v5-step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #141414; color: #fff; display: grid; place-items: center; font-family: "Instrument Serif", serif; font-size: 17px; letter-spacing: 0; }
.v5-card h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.01em; margin: 0 2px 10px; text-wrap: balance; }
.v5-card .v5-body { font-size: 16px; line-height: 1.55; color: #2B2B2B; margin: 0 2px 22px; text-wrap: pretty; }
.v5-vis { margin-top: auto; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(20, 40, 80, .12); padding: 14px; font-size: 13px; color: #141414; min-height: 214px; display: flex; flex-direction: column; gap: 8px; }
.v5-mono { font-family: "JetBrains Mono", monospace; font-variant-ligatures: none; }
.v5-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid #FF5A36; border-radius: 10px; padding: 9px 11px; box-shadow: 0 0 0 4px rgba(255, 90, 54, .12); }
.v5-search .v5-mono { font-size: 14px; }
.v5-caret { width: 2px; height: 16px; background: #FF5A36; animation: mdr-blink 1s steps(1) infinite; }
.v5-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #6B7592; background: #F0F2F7; padding: 3px 8px; border-radius: 999px; }
.v5-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; }
.v5-row:first-of-type { background: #FFF6F3; }
.v5-ft { height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 700; background: #EAF4FF; color: #1B4C82; }
.v5-ft.docx { background: #E8F0FB; color: #1F5FBF; }
.v5-fn { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-fn mark { background: #FFE08A; border-radius: 3px; padding: 0 1px; color: inherit; }
.v5-fp { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: #6B7592; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-when { font-size: 11px; color: #8A92A6; }
.v5-pageh { font-family: "Instrument Serif", serif; font-size: 24px; line-height: 1; margin: 4px 4px 0; }
.v5-rule { width: 32px; height: 3px; background: #4A9FE8; border-radius: 2px; margin: 2px 4px 2px; }
.v5-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.v5-table th { text-align: left; font-weight: 600; padding: 0 6px 6px 4px; border-bottom: 1.5px solid #141414; }
.v5-table td { padding: 7px 6px 7px 4px; border-bottom: 1px solid #EEF0F5; color: #3A4566; }
.v5-table tr:last-child td { border-bottom: 0; }
.v5-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.v5-pill.g { background: #DDEFDD; color: #1E5A1E; } .v5-pill.b { background: #DCE9FB; color: #1B4C82; } .v5-pill.y { background: #FBF3C4; color: #6B5C14; }
.v5-aloud { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #141821; color: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 12.5px; font-weight: 600; }
.v5-aloud .v5-pb { width: 26px; height: 26px; border-radius: 50%; background: #FF5A36; display: grid; place-items: center; flex: none; }
.v5-wave { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }
.v5-wave span { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .7); flex: none; }
.v5-aloud .v5-mono { font-size: 11px; color: #C9D0DE; font-weight: 500; }
.v5-types { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 2px; }
.v5-types b { font-size: 12px; font-weight: 500; color: #555; margin-right: 2px; }
.v5-types span { font-family: "JetBrains Mono", monospace; font-size: 11px; background: #F4F1EA; padding: 3px 7px; border-radius: 6px; }
.v5-changed { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #1E5A1E; background: #DDEFDD; border-radius: 999px; padding: 5px 11px; align-self: flex-start; }
.v5-changed i { width: 7px; height: 7px; border-radius: 50%; background: #4C9A4C; }
.v5-para { margin: 2px 0 0; padding: 4px 0 4px 12px; border-left: 3px solid #4C9A4C; font-size: 14px; line-height: 1.6; color: #3A4566; }
.v5-hl { background: #FFE08A; border-radius: 3px; padding: 0 2px; color: #141414; }
.v5-margin { align-self: flex-end; transform: rotate(-2deg); font-family: Caveat, cursive; font-size: 21px; line-height: 1.05; color: #1F4E6B; background: #FFF1A8; padding: 6px 11px; border-radius: 4px; box-shadow: 0 5px 12px rgba(0, 0, 0, .1); max-width: 230px; margin-top: -2px; }
.v5-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.v5-btn { font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: #F4F1EA; color: #141414; white-space: nowrap; }
.v5-btn.dark { background: #141414; color: #fff; }
.v5-local { margin: 44px auto 0; display: flex; justify-content: center; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: #141414; }
.v5-local svg { flex: none; }
.v5-local em { font-style: normal; font-family: Caveat, cursive; font-size: 23px; color: #1F6FEB; transform: rotate(-2deg); display: inline-block; }
.v5-anchor { position: absolute; top: 0; }

/* ---- One-line compare ---- */
.v5-compare { max-width: 1120px; margin: 0 auto; padding: 10px 24px 60px; }
.v5-compare-card { background: #FBF3C4; border-radius: 24px; padding: clamp(34px, 5vw, 56px) clamp(24px, 6vw, 80px); text-align: center; }
.v5-compare-card .v5-eyebrow { color: #6B5C14; }
.v5-compare-line { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(26px, 2.9vw, 38px); line-height: 1.16; letter-spacing: -.01em; margin: 6px auto 22px; max-width: 860px; text-wrap: balance; color: #141414; }
.v5-compare-line b { font-weight: 400; background: linear-gradient(transparent 62%, rgba(255, 255, 255, .85) 62%); }
.v5-compare-link { display: inline-flex; align-items: center; gap: 8px; background: #141414; color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .2s; }
.v5-compare-link:hover { transform: scale(1.03); color: #fff; }

.v5-faq-more { text-align: center; margin: 34px 0 0; font-size: 16px; color: #3A3A3A; }
.v5-faq-more a { color: #1F6FEB; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  #profiles div[style*="top: -62px"] { display: none !important; }
  .v5-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; max-width: 560px; margin: 0 auto; }
  .v5-note { right: 8px; top: -30px; font-size: 19px; }
}
@media (max-width: 600px) {
  .v5-video { border-width: 6px; border-radius: 18px; }
  .v5-video img, .v5-video video, .v5-shade { border-radius: 12px; }
  .v5-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 10px 26px rgba(216, 67, 31, .45), 0 0 0 8px rgba(255, 255, 255, .55); }
  .v5-play svg { width: 22px; height: 22px; margin-left: 4px; }
  .v5-cap { left: 12px; bottom: 10px; }
  .v5-cap b { font-size: 20px; }
  .v5-cap span, .v5-time { display: none; }
  .v5-note { display: none; }
  .v5-trust span:nth-child(even) { display: none; }
  .v5-trust { flex-direction: column; gap: 2px !important; }
  .v5-local { flex-direction: column; text-align: center; }
  .v5-moments > section { padding: 76px 18px 60px; }
  .v5-lead { margin-bottom: 52px; }
  .v5-card { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .v5-caret { animation: none; } .v5-video, .v5-play, .v5-pain { transition: none; } }
