/* Warashi home: "the spirit that looks after your Mac" (Bento redesign, owner's choice, 2026-11-23).
   Loaded after site.css, which holds the tokens, faces, header, footer, buttons and reveals.
   One idea per tile: a real screenshot or one number with one sentence. Four parts, each with its own colour:
   Know (ochre), Care (matcha), Clean (clay), Rest (indigo). Bricolage Grotesque speaks, Instrument Sans reads.
   Everything follows the visitor's theme; the tinted tiles keep their colour in both. */

.home { --tile: var(--face); --tile-edge: color-mix(in srgb, var(--ink) 9%, transparent); --radius: 26px; --gap: 16px;
  --t-indigo: #3B5A86; --t-matcha: #5E7A33; --t-clay: #B9572F; --t-ink: #1D1B18; }
:root[data-theme="dark"] .home { --tile-edge: color-mix(in srgb, var(--ink) 10%, transparent); --t-indigo: #34507A; --t-matcha: #4E6A2A; --t-clay: #A44F2B; --t-ink: #0F0E0C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home { --tile-edge: color-mix(in srgb, var(--ink) 10%, transparent); --t-indigo: #34507A; --t-matcha: #4E6A2A; --t-clay: #A44F2B; --t-ink: #0F0E0C; } }

.home h2 { font-size: clamp(34px, 4.8vw, 62px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.home .lead { color: var(--sub); }
.home .chapter { padding: clamp(80px, 10vw, 130px) 0 0; position: relative; }
.home .chapter + .chapter { border-top: 0; }
.home .head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.home #faq { padding-bottom: clamp(80px, 10vw, 130px); }

/* ---------- hero ---------- */
.b-hero { padding: clamp(124px, 14vw, 170px) 0 0; text-align: center; }
.b-news { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-edge); color: var(--sub); text-decoration: none; font-size: 14px; }
.b-news b { background: var(--matcha); color: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.b-hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .96; letter-spacing: -.055em; max-width: 11.5em; margin: 26px auto 24px; }
.b-spirit { display: inline-block; width: .86em; height: .86em; vertical-align: -.08em; margin: 0 .04em; border-radius: .22em;
  background: url("../img/spirit.svg") center / cover; transform: rotate(-6deg); box-shadow: 0 .08em .25em -.06em rgba(40, 20, 10, .35);
  transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .b-hero h1:hover .b-spirit { transform: rotate(4deg) translateY(-.04em); } }
.b-hero .lead { max-width: 36em; margin: 0 auto; font-size: clamp(17.5px, 1.6vw, 21px); }
.b-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.b-ctas .btn { padding: 15px 26px; font-size: 16.5px; }
.b-fine { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }

/* ---------- the bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: var(--gap); text-align: left; }
.b-overview { margin-top: clamp(48px, 6vw, 72px); }
.tile { position: relative; margin: 0; padding: 24px 26px; border-radius: var(--radius); background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; }
.tile p { margin: 0; color: var(--sub); font-size: 15px; line-height: 1.5; }
.tile .eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.b-big { font: 800 clamp(28px, 2.9vw, 40px)/1.02 var(--display) !important; letter-spacing: -.04em; color: var(--ink) !important; margin: 0 0 4px !important; }
.b-mid { font-size: clamp(21px, 1.9vw, 26px) !important; letter-spacing: -.03em; line-height: 1.12 !important; }
.b-huge { font-size: clamp(54px, 6vw, 84px) !important; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.b-huge small { font: 600 .3em var(--sans); color: var(--sub); letter-spacing: 0; margin-left: 4px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.rows-2 { grid-row: span 2; } .rows-3 { grid-row: span 3; }

/* Tinted tiles keep their colour in both themes. */
.tone-indigo, .tone-matcha, .tone-clay, .tone-ink, .tone-black { box-shadow: none; }
.tone-indigo { background: var(--t-indigo); } .tone-matcha { background: var(--t-matcha); } .tone-clay { background: var(--t-clay); }
.tone-ink { background: var(--t-ink); } .tone-black { background: #0A0A0A; }
:is(.tone-indigo, .tone-matcha, .tone-clay, .tone-ink, .tone-black) :is(p, figcaption) { color: rgba(255, 250, 240, .74); }
:is(.tone-indigo, .tone-matcha, .tone-clay, .tone-ink, .tone-black) .eyebrow { color: rgba(255, 250, 240, .6); }
:is(.tone-indigo, .tone-matcha, .tone-clay, .tone-ink, .tone-black) .b-big, :is(.tone-indigo, .tone-matcha, .tone-clay, .tone-ink, .tone-black) figcaption b { color: #FFFAF0 !important; }

/* A screenshot tile: the window sits in from the top left and runs off the edge, like a desk seen from above. */
.shot-tile { padding: 0; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); justify-content: flex-end; min-height: 300px; }
.shot-tile .themed { position: absolute; left: 28px; top: 28px; right: 0; border-radius: 14px 0 0 0; overflow: hidden;
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--ink) 16%, transparent), 0 30px 70px -30px rgba(30, 20, 10, .45);
  transition: transform .8s var(--ease); }
.shot-tile .themed img { border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .shot-tile:hover .themed { transform: translate(-4px, -4px); } }
.shot-tile figcaption { position: relative; z-index: 1; margin: 0; padding: 60px 26px 22px; font-size: 15px; color: var(--sub);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 92%, transparent) 46%); }
.shot-tile figcaption b { color: var(--ink); font-weight: 600; }
.b-wide .themed { left: 8%; right: 8%; top: 36px; border-radius: 14px 14px 0 0; }

/* Hero tiles */
.b-battery { flex-direction: row; align-items: center; gap: 22px; }
.b-ring { --v: 80; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--matcha) calc(var(--v) * 1%), color-mix(in srgb, var(--ink) 8%, transparent) 0); }
.b-ring i { width: 80px; height: 80px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; font: 800 23px var(--display); font-style: normal; letter-spacing: -.03em; color: var(--ink); }
.b-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 12px 0 10px; gap: 2px; }
.b-bar span { width: var(--w); background: var(--c); }
.b-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px !important; }
.b-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.b-count { font-size: clamp(40px, 4vw, 56px) !important; font-variant-numeric: tabular-nums; }
.b-check { justify-content: space-between; }
.b-app { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 600; font-size: 17px !important; margin: 4px 0 2px !important; }
.b-app em { margin-left: auto; font-style: normal; color: var(--beni); font-variant-numeric: tabular-nums; }
.b-spark { width: 100%; height: 56px; margin: 6px 0 8px; }
.b-spark path { fill: color-mix(in srgb, var(--clay) 80%, transparent); }
.b-term pre { margin: 6px 0 0; font: 13.5px/1.65 var(--mono); color: #EDE7DB; white-space: pre; overflow-x: auto; }
.b-term pre b { color: #FFFAF0; font-weight: 500; }
.b-term pre i { color: #A3B86A; font-style: normal; }
.b-term > p:last-child { margin-top: auto; padding-top: 14px; }

/* "Instead of six": the apps it replaces, struck through. */
.b-instead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: var(--gap); padding: 20px 26px; border-radius: var(--radius);
  background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); text-decoration: none; color: var(--ink); text-align: left; }
.b-instead-lead { font: 800 22px var(--display); letter-spacing: -.03em; }
.b-names { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1; color: var(--faint); font-size: 15.5px; }
.b-names s { text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--clay) 70%, transparent); }

/* ---------- the four parts ---------- */
.b-part { padding: clamp(96px, 12vw, 160px) 0 0; }
.b-head { max-width: 800px; margin-bottom: clamp(30px, 4vw, 44px); }
.b-head h2 { margin: 14px 0 16px; }
.b-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.b-chip::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.b-notch { justify-content: flex-end; padding: 0; }
.b-notch img { position: absolute; top: 0; left: 50%; width: 120%; max-width: none; transform: translateX(-50%); }
.b-notch figcaption { position: relative; padding: 0 24px 22px; font-size: 15px; }
.b-log ul { list-style: none; margin: 6px 0 0; padding: 0; }
.b-log li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; padding: 10px 0; border-top: .5px solid var(--rule); color: var(--ink); font-size: 15px; }
.b-log li:first-child { border-top: 0; }
.b-log time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.b-log small { grid-column: 2; color: var(--sub); font-size: 13.5px; }
.b-price { justify-content: center; }
.b-advisor { justify-content: center; }
.b-groups ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.b-groups li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 11%, transparent); }
.b-groups li b { color: var(--ink); font-weight: 600; }
.b-groups li span { grid-column: 1; color: var(--sub); font-size: 14px; }
.b-groups li em { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 800 20px var(--display); font-style: normal; letter-spacing: -.03em; color: var(--c); }
.b-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-list li { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 14px; color: var(--ink); }
.b-dev .b-chip::before { background: var(--ink); }
.b-private ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: var(--ink); font-size: 15px; }
.b-private li::before { content: "✓"; color: var(--matcha); font-weight: 700; margin-right: 8px; }
.b-light-weight .tile:not(.b-private) { justify-content: center; }
.b-faq .tile h3 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.025em; }
.b-faq { grid-auto-rows: auto; }

/* ---------- the films ---------- */
.home .films { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.home .films figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); }
.home .films video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.home .films figcaption { padding: 14px 22px 16px; margin: 0; color: var(--sub); font-size: 14.5px; }

/* ---------- compare: the drawer as a receipt ---------- */
.home .receipt { padding: 8px 28px 4px; border-radius: var(--radius); background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); }
.home .receipt ul { list-style: none; margin: 0; padding: 0; }
.home .r-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 128px; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: .5px solid var(--rule); font-size: 15px; }
.home .r-head { font: 500 12.5px/1.3 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 18px 0 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.home .r-head span:last-child, .home .r-price { text-align: right; }
.home .r-what { color: var(--ink); font-weight: 500; }
.home .r-app { color: var(--sub); }
.home .r-price { color: var(--ink); font: 700 16.5px/1.2 var(--display); letter-spacing: -.01em; }
.home .r-price small { font-family: var(--sans); letter-spacing: 0; }
.home .r-price small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); margin-top: 2px; }
.home .r-only .r-app { color: var(--clay); font-weight: 500; }
.home .r-only .r-price { color: var(--faint); }
.home .r-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: -1px; padding: 18px 0 20px; }
.home .r-total .r-what { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; }
.home .r-total .r-price { font: 800 28px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.home .r-total .r-price small { font: 500 12.5px/1.3 var(--sans); letter-spacing: 0; margin-top: 6px; }
.home .compare-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.home .compare-sum > div { padding: 26px; border-radius: var(--radius); background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); }
.home .compare-sum .big { font: 800 clamp(40px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.05em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.home .compare-sum .big small { display: block; font: 500 14px/1.3 var(--sans); color: var(--sub); letter-spacing: 0; margin-top: 10px; }
.home .compare-sum p { margin: 0; color: var(--sub); font-size: 15.5px; }
.home .compare-sum .us { background: color-mix(in srgb, var(--clay) 10%, var(--tile)); }
.home .compare-sum .us .big { color: var(--clay); }
.home .compare-note { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- maker and finale ---------- */
.home .maker { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius); background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); }
.home .maker img { border-radius: 18px; }
.home .maker h2 { font-size: clamp(30px, 3.6vw, 46px); }
.home .signature { font: italic 400 34px/1 var(--serif); color: var(--clay); margin: 14px 0 0; letter-spacing: -.01em; }
.home #maker { padding-bottom: clamp(80px, 10vw, 130px); }
.home .finale { padding: clamp(100px, 13vw, 170px) 0 clamp(90px, 11vw, 130px); text-align: center; position: relative; }
.home .finale .icon { width: 100px; height: 100px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8); }
.home .finale h2 { font-size: clamp(40px, 6vw, 80px); }
.home .finale .lead { margin: 0 auto; }
.home .ctas { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; margin-top: 34px; }
.home .ctas .btn { padding: 16px 28px; font-size: 17px; }
.home .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent); }
@media (hover: hover) and (pointer: fine) { .home .btn.ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
.home .finale .launch-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: 36px; }
.home .finale .ph-badge { display: inline-block; margin-top: 0; opacity: .85; }
.home .finale .macpip-badge { display: inline-block; line-height: 0; }
.home .finale .macpip-badge img { height: 54px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .span-2, .span-3 { grid-column: span 6; } .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; }
  .b-overview .shot-tile, .b-part .shot-tile { min-height: 420px; }
  .b-private ul { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .home { --gap: 12px; }
  .bento { grid-auto-rows: auto; }
  .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .shot-tile { min-height: 0; }
  .shot-tile .themed { position: relative; left: auto; top: auto; margin: 18px 0 0 18px; }
  .b-wide .themed { margin: 18px 18px 0; }
  .shot-tile figcaption { padding: 16px 20px 20px; background: none; }
  .b-notch img { position: relative; left: auto; width: 100%; transform: none; }
  .b-notch figcaption { padding-top: 14px; }
  .tile { padding: 20px; }
  .b-battery { flex-direction: row; }
  .b-instead { padding: 18px 20px; }
  .home .films, .home .compare-sum { grid-template-columns: 1fr; }
  .home .receipt { padding: 4px 20px 2px; }
  .home .r-head { display: none; }
  .home .r-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; }
  .home .r-what { grid-column: 1; }
  .home .r-app { grid-column: 1; grid-row: 2; font-size: 13.5px; }
  .home .r-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .home .r-total .r-app { display: none; }
  .home .maker { grid-template-columns: 1fr; }
  .home .maker img { max-width: 240px; }
  .b-ctas .btn, .home .ctas .btn { width: 100%; }
}

/* The Checkup tile is narrow: longer languages ("Wszystko w porządku.") get a smaller size and may break. */
.b-check .b-big { font-size: clamp(20px, 1.85vw, 30px) !important; hyphens: auto; overflow-wrap: break-word; }
