/* The home page's own blocks, on top of cyber-monday/bf.css (the shared look: colours, type, header, buttons,
   footer). Everything here uses bf.css's tokens, so the two pages cannot drift apart in colour or radius. */

.muted { color: var(--muted); }
.h2 .muted { color: var(--teal); }
.live .h2 .muted, .band .h2 .muted { color: inherit; opacity: .7; }
.hero .h1 .l { display: block; }

/* Text beside a picture; .split--flip puts the picture first on wide screens. */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split .sec__head { margin-bottom: 28px; }
/* Beside a picture a headline gets half the width, so it takes the smaller size bf.css gives such rows: each
   authored line then fits on one line and nothing wraps by itself. */
.split .h2 { font-size: clamp(22px, 2.4vw, 34px); }
.boxed.split .h2 { font-size: clamp(22px, 2.4vw, 34px); }
/* Phones: sized to the longest authored line ("Makers, workshops, shops."), measured at 375px. */
@media (max-width: 640px) {
  .home .h2 { font-size: min(5.3vw, 23px); }
  .home .hero .h1 { font-size: min(6.8vw, 28px); }
  .home .boxed .h2 { font-size: min(5vw, 22px); }
}
/* Japanese has no spaces, so a headline line that is too wide breaks between any two characters. Sized so each
   authored line (16 characters) fits from 641px up; on phones it may still wrap, but only between phrases. */
html[lang="ja"] .hero .h1 .l { word-break: auto-phrase; }
@media (min-width: 641px) { html[lang="ja"] .home .hero .h1 { font-size: min(64px, 5.2vw); } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.pic { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.pic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.pic--tall img { aspect-ratio: 4 / 5; }

/* Name and one line under it, as the price page's included items. */
.rows { display: grid; gap: 10px; }
.rows li { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 18px 14px 46px; position: relative; }
.rows li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.rows__name { display: block; font-weight: 700; }
.rows__name small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.rows--dark li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.rows--dark li::before { background-color: #e3a868; }
.rows--dark .rows__name small { color: rgba(243,237,228,.7); }
.live-cta { margin-top: 26px; }

/* Five parts, one system: the product information feeding every part. */
.system { display: grid; gap: 12px; }
.system a { text-decoration: none; }
.system__src, .system__host { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-md); }
.system__src { background: var(--ink); color: #fff; }
.system__src span:last-child { color: rgba(255,255,255,.7); font-size: 14px; }
.t-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.system__parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.system__parts a, .system__host { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; transition: border-color .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
.system__parts a:hover, .system__host:hover { border-color: var(--teal); transform: translateY(-2px); }
.system b { font-size: 16px; }
.system__parts span, .system__host span { font-size: 13px; color: var(--muted); }
.system__host { background: var(--teal-soft); border-color: var(--teal-line); }

/* Picture panels: the drawn mock-ups sit on a soft coloured ground, as on the offer cards. */
.vis { position: relative; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); border: 1.5px solid; display: grid; gap: 16px; overflow: hidden; }
.vis--teal { background: var(--teal-soft); border-color: var(--teal-line); }
.vis--ember { background: var(--ember-soft); border-color: var(--ember-line); }
.vis--ember .mock { font-size: 14px; max-width: 420px; justify-self: center; width: 100%; }
.vis--ember .chat { padding: 18px; gap: 12px; }
.chat__src { font-size: 11px; color: var(--muted); }
.chat__src::before { content: "▤ "; }
.vis--photo { border: 0; min-height: 360px; align-content: center; justify-items: center; }
.vis__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wm { font-weight: 700; }

/* Two designs: A full-bleed photo, B text beside a photo. */
.browser--b { width: 78%; justify-self: end; margin-top: -40px; position: relative; }
.site-a { position: relative; }
.site-a img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.site-a__nav { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; padding: 8px 12px; color: #fff; z-index: 1; }
.site-a__title { position: absolute; left: 12px; bottom: 12px; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.site-b { display: grid; grid-template-columns: 1fr 1fr; }
.site-b img { width: 100%; height: 100%; object-fit: cover; }
.site-b__copy { padding: 12px; display: grid; gap: 6px; align-content: center; }
.site-b__copy span { height: 6px; border-radius: 4px; background: var(--line); }
.site-b__copy em { justify-self: start; font-style: normal; font-weight: 700; color: #fff; background: var(--teal); padding: 5px 9px; border-radius: 8px; margin-top: 4px; }

/* The live studio screenshot inside the dark band, with the phone view over it. */
.live.split { align-items: center; }
.live-shot { position: relative; display: block; border-radius: 14px; overflow: visible; margin-bottom: 28px; }
.live-shot > img:first-child { border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.live-shot__phone { position: absolute; right: 12px; bottom: -28px; width: 22%; border-radius: 12px; border: 3px solid #0d0b09; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.live-shot:hover .live-shot__phone { transform: translateY(-8px); }

.posts--home { padding: 12px; }
.posts--home figure img { border-radius: 10px; }
.posts__note { padding: 0 12px 12px; font-size: 12px; color: var(--muted); }

.host { position: relative; background: #fff; border-radius: var(--r-md); padding: 16px; width: min(340px, 100%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); display: grid; gap: 12px; font-size: 14px; }
.host__head { display: flex; gap: 12px; align-items: center; }
.host__head img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.host__head div { display: grid; }
.host__head span { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--teal); font-weight: 700; }
.host__head svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.host__rows { display: grid; gap: 6px; }
.host__rows li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.host__rows em { font-style: normal; font-weight: 700; color: var(--teal); }

.scene--photo { overflow: hidden; }
.scene--photo img { width: 100%; height: 100%; object-fit: cover; }
.mail small { font-size: 10px; color: var(--muted); }
.step .h3 { font-size: 19px; }

.col--pic { gap: 12px; }
.col--pic img { border-radius: var(--r-sm); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.col--pic p { color: var(--muted); font-size: 15px; }

.faq__pic { margin-top: 28px; }
@media (max-width: 900px) { .faq__pic { display: none; } }

/* The offer band: a glass pill on the hero photograph, a soft ember strip below the questions. */
.offer-band { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 16px; border-radius: 999px; font-size: 13px; line-height: 1.35; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); transition: background-color .2s; }
.offer-band:hover { background: rgba(255,255,255,.26); }
.offer-band b { color: var(--sun); }
.offer-band svg { flex: none; width: 12px; height: 12px; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.offer-band:hover svg { transform: translateX(3px); }
.offer-band--end { margin-top: 24px; color: var(--ember); background: var(--ember-soft); border-color: var(--ember-line); border-radius: var(--r-md); backdrop-filter: none; }
.offer-band--end:hover { background: #ffe4d6; }
.offer-band--end b { color: var(--ink); }
[dir="rtl"] .offer-band svg { transform: scaleX(-1); }
[dir="rtl"] .offer-band:hover svg { transform: scaleX(-1) translateX(3px); }

.seg-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; }
.seg-list li { padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.dir-link { margin-top: 18px; }

/* Eleven sample websites (tools/build_samples.py): a browser-shaped card each, the picture is the sample's first screen.
   Flex, not grid: eleven never fills the last row, so that row is centred instead of leaving a hole at its end. */
.samples { --per: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.samples > li { flex: 0 0 calc((100% - (var(--per) - 1) * 20px) / var(--per)); min-width: 0; }
.sample { display: grid; gap: 4px; height: 100%; padding: 10px 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sample img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line); }
.sample__name { font-weight: 700; font-size: 17px; padding-inline: 6px; }
.sample__line { font-size: 14px; color: var(--muted); padding-inline: 6px; }
.sample:hover, .sample:focus-visible { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 40px -28px rgba(0,0,0,.5); }
@media (max-width: 1000px) { .samples { --per: 2; } }
@media (max-width: 520px) { .samples { --per: 1; } }

/* Other customisers we built: a small panel of four live links. */
.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.other { display: grid; gap: 4px; height: 100%; align-content: start; padding: 10px 10px 14px; border-radius: var(--r-md); background: var(--soft); color: var(--ink); text-decoration: none; transition: transform .2s, background-color .2s; }
.other img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.other b { font-size: 16px; padding-inline: 4px; }
.other span { font-size: 14px; color: var(--muted); padding-inline: 4px; }
.other small { justify-self: start; margin: 6px 4px 0; font-size: 12px; font-weight: 600; color: var(--teal); }
.other:hover, .other:focus-visible { transform: translateY(-3px); background: var(--line); }
@media (max-width: 1000px) { .others { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .others { grid-template-columns: 1fr; } }

/* The dashboard picture: the panel demo in its light theme. */
.dash-shot { position: relative; margin: 0; }
.dash-shot img { width: 100%; border-radius: 14px; border: 1.5px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.dash-shot figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
#dashboard .btn-row { margin-top: 24px; }

/* About: what castomo does, then the company's facts. */
.about__text { display: grid; gap: 12px; color: var(--muted); margin-bottom: 24px; max-width: 60ch; }
.about__facts { align-self: center; }
