/* Ihop: homepage sections. */
.sec-head { display: grid; gap: var(--s-4); max-width: 820px; margin-bottom: clamp(32px, 5vw, 64px); }

/* Hero */
.hero { overflow-x: clip; padding-block: clamp(32px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__demo { display: grid; justify-items: center; position: relative; }
.hero__demo::before { content: ""; position: absolute; inset: 8% -6% 4%; background: var(--sheet); border: 1px solid var(--rule); border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%; z-index: -1; transform: rotate(-4deg); }
.kinds { margin-top: clamp(32px, 5vw, 56px); display: flex; align-items: center; gap: var(--s-4); }
.kinds__l { flex: none; }
.kinds__row { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; scroll-snap-type: x proximity; }
.kinds__row::-webkit-scrollbar { display: none; }
.kinds__row .chip { scroll-snap-align: start; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__demo .phone { width: min(300px, 82vw); }
  .kinds { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .kinds__row { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

/* The map */
.map { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.map__row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 120px; gap: var(--s-5); align-items: baseline; padding-block: clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--rule); }
.map__verb { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.map__what { display: grid; gap: var(--s-2); }
.map__what h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.4vw, 32px); }
.map__what h3 .ico { width: 28px; height: 28px; color: var(--ink2); }
.map__what p { color: var(--ink2); max-width: 40em; }
.map__who { text-align: right; font-size: 14px; color: var(--ink2); }
@media (max-width: 760px) {
  .map__row { grid-template-columns: 1fr; gap: var(--s-2); }
  .map__who { text-align: left; }
}

/* Money */
.money { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.money__copy { display: grid; gap: var(--s-5); position: sticky; top: 100px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ticks li { display: flex; gap: var(--s-3); align-items: flex-start; }
.ticks .ico { color: var(--accent); margin-top: 1px; }
@media (max-width: 900px) { .money { grid-template-columns: 1fr; } .money__copy { position: static; } }

.lg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.lg-head .scr-chip { font-size: 15px; }
.lg-total { color: var(--ink); font-size: 18px; }
.lg-hint { margin: var(--s-3) 0 var(--s-2); }
.lg-list { list-style: none; margin: 0; padding: 0; }
.lg-exp { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.lg-exp__top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.lg-exp__what { font-weight: 600; }
.lg-exp__amt { font-size: 18px; }
.lg-exp__meta { font-size: 14px; color: var(--ink2); }
.lg-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lg-p { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-pill); border: 1px dashed var(--rule); background: transparent; color: var(--ink2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color var(--d-ui) ease, color var(--d-ui) ease, border-color var(--d-ui) ease, transform var(--d-tick) var(--ease-tick); }
.lg-p .ico { opacity: 0; transform: scale(.6); transition: opacity var(--d-ui) ease, transform var(--d-ui) var(--ease-tick); }
.lg-p[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.lg-p[aria-pressed="true"] .ico { opacity: 1; transform: none; color: var(--accent); }
.lg-p:active { transform: scale(.95); }
.lg-sum { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.lg-sum__h { margin-top: var(--s-3); display: flex; gap: var(--s-2); }
.lg-count { font-weight: 400; }
.lg-bars { display: grid; gap: 8px; }
.lg-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px; gap: var(--s-3); align-items: center; font-size: 15px; }
.lg-bar__track { position: relative; height: 12px; border-radius: var(--r-pill); background: var(--ground); }
.lg-bar__track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink2); opacity: .5; }
.lg-bar__fill { position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: var(--r-pill); transition: width var(--d-settle) var(--ease-settle), left var(--d-settle) var(--ease-settle); }
.lg-bar__fill.is-pos { left: 50%; background: var(--ok); }
.lg-bar__fill.is-neg { left: calc(50% - var(--w)); background: var(--accent); }
.lg-bar__v { text-align: right; font-size: 15px; }
.lg-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-pay { display: flex; justify-content: space-between; gap: var(--s-3); padding: 12px 14px; border-radius: var(--r-2); background: var(--ground); }
.lg-pay b { font-weight: 600; }

/* Live list */
.live { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.live__copy { display: grid; gap: var(--s-5); }
.live__phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.ll-phone { margin: 0; display: grid; gap: var(--s-2); }
.ll-phone:nth-child(2) { margin-top: 48px; }
.ll-phone figcaption { color: var(--ink2); }
.ll-screen { background: #F3EBDF; color: #2A211C; --ink: #2A211C; --ink2: #6B5D53; --rule: #E2D6C6; --sheet: #FBF7F1; --accent: #7B2D3B; --on-accent: #fff; border: 8px solid #0b0807; border-radius: 30px; padding: 22px 14px 16px; min-height: 420px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .ll-screen { background: #1D1714; color: #F3EBDF; --ink: #F3EBDF; --ink2: #B7A899; --rule: #3A302A; --sheet: #27201C; --accent: #C9737F; --on-accent: #1D1714; } }
.ll-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.ll-top .scr-title { font-size: 22px; }
.ll-sync { color: var(--ink2); opacity: .5; }
.ll-sync.is-on { animation: sync 900ms var(--ease-settle); color: var(--accent); }
@keyframes sync { 0% { opacity: 1; transform: rotate(0); } 100% { opacity: .5; transform: rotate(180deg); } }
.ll-aisle { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink2); margin: 10px 0 2px; }
.ll-item { width: 100%; background: none; border: 0; border-top: 1px solid var(--rule); padding: 0; text-align: left; min-height: 44px; cursor: pointer; color: inherit; font-size: 14px; }
.ll-aisle + .ll-item { border-top: 0; }
@media (max-width: 900px) { .live { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ll-top .scr-title { font-size: 18px; } .ll-screen { padding: 18px 10px 12px; border-width: 6px; border-radius: 24px; } .ll-phone:nth-child(2) { margin-top: 28px; } .ll-item { font-size: 13px; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.bento .card { display: grid; gap: var(--s-3); align-content: start; }
.bento__i { width: 32px; height: 32px; color: var(--accent); }
.bento__a { grid-column: span 4; }
.bento__b { grid-column: span 2; }
.bento__c { grid-column: span 3; }
.bento__d { grid-column: span 3; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-4); }
.wk { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-2); background: var(--ground); font-size: 14px; }
.who { font-style: normal; font-weight: 600; padding: 6px 10px; border-radius: var(--r-1); }
.who--a { background: var(--accent-soft); color: var(--accent); }
.who--b { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
@media (prefers-color-scheme: dark) { .who--a { color: #E8A9B1; } }
@media (max-width: 900px) { .bento__a, .bento__b, .bento__c, .bento__d { grid-column: span 6; grid-row: auto; } }
@media (max-width: 480px) { .weeks { grid-template-columns: 1fr 1fr; } }

/* Trust */
.trust { display: grid; gap: clamp(28px, 4vw, 48px); }
.trust__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(24px, 5vw, 72px); }
.trust__list div { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.trust__list dt { display: flex; align-items: center; gap: var(--s-3); font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: var(--s-2); }
.trust__list dt .ico { color: var(--accent); }
.trust__list dd { margin: 0; color: var(--ink2); max-width: 32em; }
@media (max-width: 760px) { .trust__list { grid-template-columns: 1fr; } }

/* Compare links */
.cmp-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cmp-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: var(--s-4); align-items: center; padding-block: var(--s-5); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.cmp-links a .e-h3 { font-family: var(--serif); font-weight: 600; }
.cmp-links a .ico { transition: transform var(--d-ui) var(--ease-settle); color: var(--accent); }
.cmp-links a:hover .ico { transform: translateX(4px); }
@media (max-width: 600px) { .cmp-links a { grid-template-columns: minmax(0, 1fr) 28px; } .cmp-links a .muted { grid-row: 2; font-size: 15px; } }

/* FAQ + CTA */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.cta__in { display: grid; gap: var(--s-5); justify-items: start; }
.cta__in > * { max-width: 760px; }
.cta .e-lead { color: var(--ink2); }

/* ===== Header: "Ni delar ___." ===== */
.hero2 { padding-block: clamp(28px, 5vw, 72px) clamp(32px, 5vw, 64px); overflow-x: clip; }
.hero2__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero2__copy { display: grid; gap: var(--s-5); }
.hero2__h { font-size: clamp(42px, 5.4vw, 84px); line-height: .98; letter-spacing: -0.028em; }
.hero2__word { display: inline-block; color: var(--accent); }
.hero2__word span { display: inline-block; }
.hero2__word.out span { animation: h2out .32s var(--ease-slide) both; }
.hero2__word.in span { animation: h2in .55s var(--ease-settle) both; }
@keyframes h2out { to { transform: translateY(-35%); opacity: 0; filter: blur(5px); } }
@keyframes h2in { from { transform: translateY(35%); opacity: 0; filter: blur(5px); } }
.hero2__sub { min-height: 4.5em; transition: opacity .3s ease; }
.hero2__sub.fade { opacity: 0; }
.store { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.store__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 14px; background: var(--ink); color: var(--ground); text-decoration: none; transition: transform var(--d-tick) var(--ease-tick), box-shadow var(--d-ui); }
.store__btn:hover { box-shadow: var(--shadow-1); text-decoration: none; }
.store__btn:active { transform: scale(.97); }
.store__btn .ico { width: 26px; height: 26px; }
.store__btn span { display: grid; line-height: 1.1; }
.store__btn small { font-size: 11.5px; opacity: .75; }
.store__btn b { font-size: 18px; font-weight: 600; }
.store__note { max-width: 34em; }

.hero2__stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; justify-self: center; width: 100%; }
.h-photo { position: absolute; left: 0; top: 0; width: 78%; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-2); }
.h-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03) sepia(.06);
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), transform 3.2s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
/* new photo: waits invisible and a little zoomed, then fades in while it settles; the old one keeps drifting as it fades */
.h-photo img.is-in { opacity: 0; transform: scale(1.06); }
.h-photo img.is-on { opacity: 1; transform: scale(1); }
.h-photo img.is-out { opacity: 0; transform: scale(1.03); transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1) .08s, transform 1.4s ease-in; }
@media (prefers-reduced-motion: reduce) { .h-photo img { transition: none; } }

/* The slider: the running chip fills from left to right, then the next one starts */
.h-kinds .chip { position: relative; overflow: hidden; isolation: isolate; }
.h-kinds .chip[aria-pressed="true"] { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.h-kinds .chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--accent) 20%, transparent); transform: scaleX(0); transform-origin: 0 50%; }
.h-kinds .chip[aria-pressed="true"]:not(.is-run)::before { transform: scaleX(1); }
.h-kinds .chip.is-run::before { animation: chipfill 2.4s linear forwards; }
.h-kinds:hover .chip.is-run::before, .h-kinds:has(:focus-visible) .chip.is-run::before { animation-play-state: paused; }
@keyframes chipfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.h-card { position: absolute; right: 0; bottom: 6%; width: 54%; min-width: 250px; border-radius: 22px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow-2); padding: 16px 16px 12px; display: grid; gap: 4px; }
.h-card.swap { animation: hcard .6s var(--ease-settle) both; }
@keyframes hcard { from { opacity: 0; transform: translateY(16px) rotate(1deg); } }
.hc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hc__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hc__ico .ico { width: 20px; height: 20px; }
.hc__head b { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1; }
.hc__head small { display: block; font-size: 12px; color: var(--ink2); }
.hc__row { display: flex; align-items: center; gap: 10px; min-height: 38px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.hc__row .amt { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc__row.is-done > span:not(.hc__box):not(.amt) { color: var(--ink2); text-decoration: line-through; }
.hc__box { width: 18px; height: 18px; border-radius: 6px; border: 1.75px solid var(--ink2); display: grid; place-items: center; flex: none; }
.hc__box.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hc__box .ico { width: 12px; height: 12px; }
.hc__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; background: var(--sand); color: #2A211C; }
.hc__av.b { background: var(--accent-soft); color: var(--accent); }
.hc__av.c { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.h-toast { position: absolute; left: 6%; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: color-mix(in srgb, var(--sheet) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--rule); box-shadow: var(--shadow-1); font-size: 13.5px; max-width: 70%; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease-tick); }
.h-toast.on { opacity: 1; transform: none; }
.h-toast img { width: 30px; height: 30px; border-radius: 8px; }
.h-toast b { display: block; font-size: 12px; color: var(--ink2); font-weight: 600; }
.h-kinds { display: flex; gap: var(--s-2); margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; padding: 4px; margin-inline: -4px; }
.h-kinds::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .hero2__in { grid-template-columns: 1fr; }
  .hero2__stage { max-width: 460px; }
  .h-kinds { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}
@media (max-width: 480px) { .h-card { min-width: 0; width: 72%; bottom: 0; } .h-toast { max-width: 80%; left: auto; right: 0; top: 4%; bottom: auto; } .hero2__sub { min-height: 6em; } .hero2__stage { aspect-ratio: 1 / 1.12; } }

/* ===== The fridge ===== */
.fridge { padding-block: clamp(64px, 9vw, 120px); background: var(--sheet); overflow: hidden; }
.fridge__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fridge__copy { display: grid; gap: var(--s-4); justify-items: start; }
.fridge__then { color: var(--ink) !important; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease-settle); }
.fridge.is-done .fridge__then { opacity: 1; transform: none; }
.fridge__again { opacity: 0; pointer-events: none; transition: opacity .4s; }
.fridge.is-done .fridge__again { opacity: 1; pointer-events: auto; }
.fridge__door { position: relative; height: 560px; border-radius: 28px; background: linear-gradient(180deg, #F7F3EC, #ECE5DA); box-shadow: inset 0 0 0 1px rgba(42,33,28,.08), var(--shadow-2); }
@media (prefers-color-scheme: dark) { .fridge__door { background: linear-gradient(180deg, #E9E2D6, #D9D0C2); } }
.fridge__door::after { content: ""; position: absolute; right: 16px; top: 14%; width: 12px; height: 34%; border-radius: 999px; background: linear-gradient(90deg, #cfc4b5, #f6efe5 45%, #c2b4a2); }
.fn { position: absolute; left: var(--x); top: var(--y); width: 200px; padding: 14px 16px; border-radius: 4px; background: #FFFDF8; color: #2A211C; font-size: 14px; display: grid; gap: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 26px -16px rgba(42,33,28,.6); transform: rotate(var(--r)); transform-origin: 50% 0; }
.fn b { font-family: var(--serif); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.fn span { color: #4A3D35; }
.fn--lines { background-image: repeating-linear-gradient(transparent 0 22px, #E9DDCC 22px 23px); background-position: 0 10px; }
.fn--yellow { background: #F2DFA6; }
.fn--green { background: #DCE6D3; }
.fn--rcpt { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 90% 100%, 80% calc(100% - 7px), 70% 100%, 60% calc(100% - 7px), 50% 100%, 40% calc(100% - 7px), 30% 100%, 20% calc(100% - 7px), 10% 100%, 0 calc(100% - 7px)); }
.fn .mag { position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #7B2D3B; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 3px 6px rgba(0,0,0,.25); }
.fn .mag--sq { border-radius: 6px; background: #2A211C; }
.fn__gone { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: #7B2D3B; border: 2px dashed rgba(123,45,59,.45); border-radius: 8px; background: transparent; opacity: 0; transition: opacity .4s ease .35s; }
/* Falling: the note swings off its magnet, then drops */
.fn.fall { animation: fall 1.35s cubic-bezier(.55,0,.75,.2) forwards; }
.fn.fall > :not(.fn__gone) { animation: fadeout .2s 1.1s forwards; }
@keyframes fall { 0% { transform: rotate(var(--r)); } 22% { transform: rotate(calc(var(--r) + 14deg)) translateY(6px); } 100% { transform: rotate(calc(var(--r) + 48deg)) translate(30px, 720px); } }
@keyframes fadeout { to { opacity: 0; } }
.fn.gone { animation: none; transform: rotate(var(--r)); background: transparent; box-shadow: none; clip-path: none; background-image: none; }
.fn.gone > :not(.fn__gone) { visibility: hidden; }
.fn.gone .fn__gone { opacity: 1; }
.fridge__phone { position: absolute; right: 7%; top: 50%; width: 300px; transform: translate(40px, -50%); opacity: 0; transition: opacity .6s ease, transform .8s var(--ease-settle); border-radius: 30px; border: 8px solid #1a1411; background: var(--ground); padding: 18px 14px 12px; box-shadow: var(--shadow-2); display: grid; gap: 2px; }
.fridge.is-done .fridge__phone { opacity: 1; transform: translate(0, -50%); }
.fp__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.fp__top b { font-family: var(--serif); font-size: 24px; }
.fp__top span { font-size: 12px; color: var(--ink2); }
.fp__row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink2); opacity: 0; transform: translateX(10px); transition: opacity .4s ease, transform .5s var(--ease-settle); }
.fp__row b { display: block; color: var(--ink); font-size: 14px; }
.fp__row .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.fridge.is-done .fp__row { opacity: 1; transform: none; }
.fridge.is-done .fp__row:nth-child(3) { transition-delay: .1s; } .fridge.is-done .fp__row:nth-child(4) { transition-delay: .2s; } .fridge.is-done .fp__row:nth-child(5) { transition-delay: .3s; } .fridge.is-done .fp__row:nth-child(6) { transition-delay: .4s; }
@media (max-width: 900px) {
  .fridge__in { grid-template-columns: 1fr; }
  .fridge__door { height: 600px; }
  .fridge__phone { right: 50%; transform: translate(50%, -40%); width: min(300px, 86%); }
  .fridge.is-done .fridge__phone { transform: translate(50%, -50%); }
}
@media (max-width: 480px) { .fn { width: 46%; font-size: 13px; padding: 12px; } .fn b { font-size: 14.5px; } .fridge__door { height: 640px; } }
@media (prefers-reduced-motion: reduce) { .fn.fall { animation: none; } }
/* Physics version of the fall (story.js drives the transforms) */
.fridge__door { overflow: hidden; perspective: 900px; }
.fn--yellow .mag, .fn--green .mag { display: none; }
.fn--yellow, .fn--green { box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 10px 18px -12px rgba(42,33,28,.5); }
.fn.is-sim { transition: none; will-change: transform; }
.fn.is-out { visibility: hidden; }
.mag-free { position: absolute; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: #7B2D3B; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 3px 6px rgba(0,0,0,.25); will-change: transform; }
.mag-free.sq { border-radius: 6px; background: #2A211C; }
.fn-ghost { position: absolute; display: grid; place-items: center; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; color: #7B2D3B; border: 2px dashed rgba(123,45,59,.45); border-radius: 8px; opacity: 0; transition: opacity .5s ease; transform: rotate(var(--r)); }
.fn-ghost.on { opacity: 1; }
.fridge__phone { z-index: 5; }
.fn-ghost { z-index: 1; }

/* ===== The fridge, in the painted kitchen =====
   .kit is tall and its stage sticks to the screen. --z (0 to 1) zooms the painting toward the fridge.
   The notes do not sit in the painting: .fridge__door is laid over the painted door every frame (fridge.js),
   and the notes are sized from the door's width, so they grow with it and the text stays sharp. */
.fridge.kit { --z: 0; overflow-anchor: none; position: relative; height: 320vh; padding: 0; background: var(--sheet); overflow: visible; }
.kit__stage { overflow-anchor: none; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.kit__world { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100svh * 1376 / 768)); aspect-ratio: 1376 / 768;
  transform: translate(-50%, -50%) scale(calc(1 + var(--z) * var(--zmax, 2.1))); transform-origin: 50% 36%; }
.kit__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the painted door's face, in the painting's own coordinates */
.kit__anchor { position: absolute; left: 40.2%; top: 12%; width: 20.2%; height: 76%; }

.kit .fridge__door { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 0; background: none; box-shadow: none;
  overflow: visible; perspective: 900px; container-type: inline-size; z-index: 2; }
.kit .fridge__door::after { display: none; }
.kit .fn { width: 27cqw; padding: 2.2cqw 2.4cqw; font-size: 1.6cqw; border-radius: .5cqw; gap: .2cqw; }
.kit .fn b { font-size: 1.95cqw; }
.kit .fn--rcpt { font-size: 1.45cqw; }
.kit .fn .mag { width: 2.6cqw; height: 2.6cqw; top: -1.1cqw; margin-left: -1.3cqw; }
.kit .fn__gone, .kit .fn-ghost { font-size: 1.6cqw; padding: 1.2cqw; border-width: .25cqw; }
.kit .mag-free { width: 2.6cqw; height: 2.6cqw; }

.kit__cap { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); margin: 0; max-width: 16ch; padding: 18px 22px 20px; border-radius: var(--r-3);
  background: rgba(251, 247, 241, .92); color: #2A211C; box-shadow: var(--shadow-2);
  font: 600 clamp(24px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -.01em;
  opacity: calc(1 - var(--z) * 3); transform: translateY(calc(var(--z) * 80px)); pointer-events: none; }
.kit__cap span { display: block; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6B5D53; margin-bottom: 12px; }

/* When you reach the door: the copy comes in on a card; when the notes have fallen, the phone with the same things */
.kit .fridge__copy { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(24px, 6vh, 64px); max-width: 430px; padding: 26px 28px 24px; border-radius: var(--r-3);
  background: rgba(251, 247, 241, .94); color: #2A211C; box-shadow: var(--shadow-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s var(--ease-settle); pointer-events: none; }
.kit.is-near .fridge__copy { opacity: 1; transform: none; pointer-events: auto; }
.kit .fridge__copy .e-h1 { color: #2A211C; font-size: clamp(30px, 3.6vw, 52px); }
.kit .fridge__copy .e-lead { color: #4A3D35; font-size: 16px; }
.kit .fridge__copy .fridge__then { color: #2A211C !important; }
.kit .fridge__copy .btn--quiet { color: #2A211C; border-color: rgba(42,33,28,.25); }
.kit .fridge__phone { right: var(--gutter); }

@media (max-width: 860px) {
  .fridge.kit { height: 300vh; }
  .kit__world { --zmax: .35; }
  .kit .fn { width: 40cqw; padding: 3.2cqw 3.4cqw; font-size: 3.2cqw; }
  .kit .fn b { font-size: 3.9cqw; } .kit .fn--rcpt { font-size: 3cqw; }
  .kit .fn .mag, .kit .mag-free { width: 5cqw; height: 5cqw; } .kit .fn .mag { top: -2cqw; margin-left: -2.5cqw; }
  .kit .fn__gone, .kit .fn-ghost { font-size: 3.2cqw; }
  .kit__cap { right: var(--gutter); max-width: none; }
  .kit .fridge__copy { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px 18px 16px; }
  .kit .fridge__copy .e-lead:first-of-type { display: none; }
  .kit .fridge__phone { right: 50%; top: 40%; }
  /* two columns on the narrow door, so the notes do not pile up */
  .kit .fn--lines { --x: 7% !important; --y: 21% !important; } .kit .fn--yellow { --x: 53% !important; --y: 20% !important; }
  .kit .fn--rcpt { --x: 8% !important; --y: 38% !important; } .kit .fn--green { --x: 52% !important; --y: 33% !important; } .kit .fn--card { --x: 30% !important; --y: 52% !important; }
  .kit:not(.is-done) .fridge__then, .kit:not(.is-done) .fridge__again { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fridge.kit { height: auto; } .kit__stage { position: relative; height: auto; aspect-ratio: 1376 / 768; min-height: 520px; }
  .kit__world { transform: translate(-50%, -50%); }
  .kit .fridge__copy { opacity: 1; transform: none; pointer-events: auto; }
}

/* ===== Header: the painted world behind it =====
   One painting holds everything people share: the house, the swing, the garden party, the road, the dog, the cottage, the boat.
   The view glides (story.js) to the thing in the headline and a ring marks it, just above the app card. */
.hero2 { position: relative; isolation: isolate; }
.hero2 > .wrap { position: relative; z-index: 1; }
.hero2__world { position: absolute; inset: 0; z-index: 0; overflow: hidden; container-type: size; pointer-events: none; }
.hw__pan { position: absolute; left: 0; top: 0; width: max(100cqw, calc(100cqh * 1376 / 768)); aspect-ratio: 1376 / 768; transform-origin: 0 0;
  transition: transform 1.6s cubic-bezier(.65, 0, .35, 1); }
.hw__pan img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (prefers-color-scheme: dark) { .hw__pan img { filter: brightness(.8) saturate(.92); } }
.hw__fade { position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 30%, color-mix(in srgb, var(--ground) 72%, transparent) 42%, transparent 58%),
              linear-gradient(180deg, var(--ground) 0%, transparent 16%), linear-gradient(0deg, color-mix(in srgb, var(--ground) 80%, transparent) 0%, transparent 18%); }
.hw__pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); border: 2px solid #FBF7F1;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); opacity: 0; transition: opacity .4s ease; }
.hw__pin.on { opacity: 1; transition-delay: 1.2s; }
.hw__pin::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #FBF7F1; opacity: 0; }
.hw__pin.on::after { animation: hwping 2s 1.3s ease-out infinite; }
@keyframes hwping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hero2 .h-card, .hero2 .h-toast { box-shadow: 0 24px 50px -24px rgba(42,33,28,.55), 0 2px 0 rgba(42,33,28,.04); }
@media (max-width: 860px) {
  .hw__fade { background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 44%, color-mix(in srgb, var(--ground) 60%, transparent) 54%, transparent 66%),
                          linear-gradient(0deg, color-mix(in srgb, var(--ground) 70%, transparent) 0%, transparent 14%); }
}
@media (prefers-reduced-motion: reduce) { .hw__pan { transition: none; } .hw__pin.on::after { animation: none; } }

/* "Det ni delar": a quiet way on to each page for that kind of thing */
.map__more { margin-top: 8px; font-size: 15px; }
.map__more a { color: var(--accent); text-underline-offset: 3px; }
.map__all { margin-top: var(--s-6); }

/* Handwriting where people write by hand: the notes on the fridge and what got forgotten. The receipt stays printed. */
.fn:not(.fn--rcpt), .fn:not(.fn--rcpt) b, .fn__gone, .fn-ghost { font-family: var(--hand); font-weight: 400; }
.fn:not(.fn--rcpt) { font-size: 16px; line-height: 1.2; }
.fn:not(.fn--rcpt) b { font-size: 19px; }
.fn__gone, .fn-ghost { font-size: 17px; }
.kit .fn:not(.fn--rcpt) { font-size: 1.95cqw; } .kit .fn:not(.fn--rcpt) b { font-size: 2.35cqw; }
.kit .fn__gone, .kit .fn-ghost { font-size: 1.95cqw; }
@media (max-width: 860px) {
  .kit .fn:not(.fn--rcpt) { font-size: 3.9cqw; } .kit .fn:not(.fn--rcpt) b { font-size: 4.6cqw; }
  .kit .fn__gone, .kit .fn-ghost { font-size: 3.8cqw; }
}

/* ===== Header: the word in the landscape =====
   Three layers in one scene: the painting (sky), the big word, and the land cut out of the same painting in front.
   The scene is always tall enough for the painting to fill it by height, so the hill line stays at the same place
   and the word can sit just behind it. story.js changes the word and glides the view sideways. */
.hero3 { position: relative; padding-bottom: clamp(28px, 4vw, 56px); }
.h3__scene { position: relative; overflow: hidden; height: max(560px, 56vw, min(100svh - 72px, 62vw + 120px)); background: #F1E6D3; }
.h3__pan { position: absolute; inset: 0; transition: transform 2.2s cubic-bezier(.65, 0, .35, 1); }
.h3__pan img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
@media (prefers-color-scheme: dark) { .h3__pan img { filter: brightness(.9) saturate(.95); } }
.h3__lede { position: absolute; z-index: 1; left: 0; right: 0; top: clamp(28px, 7vh, 80px); margin: 0; text-align: center; color: #2A211C;
  font: 500 clamp(22px, 2.4vw, 36px)/1.1 var(--serif); }
.h3__word { position: absolute; z-index: 1; left: 0; right: 0; bottom: 53%; text-align: center; white-space: nowrap; pointer-events: none;
  font: 600 clamp(92px, 22vw, 380px)/.8 var(--serif); letter-spacing: -.03em; color: #7B2D3B; }
.h3__word span { display: inline-block; transition: transform 1s cubic-bezier(.7, 0, .3, 1); }
.h3__word.sink span { transform: translateY(72%); transition-timing-function: cubic-bezier(.6, 0, .9, .4); }
.h3__word.rise span { transform: translateY(72%); transition: none; }

.h3__under { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6) clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(32px, 4.5vw, 64px); }
.h3__h { margin: 0; font-size: clamp(40px, 5.2vw, 80px); line-height: 1; letter-spacing: -.02em; }
.h3__side { display: grid; gap: var(--s-4); justify-items: start; }
.h3__sub { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 46ch; min-height: 3.1em; transition: opacity .35s ease; }
.h3__sub.fade { opacity: 0; }

/* The kinds as words, not pills: the running one gets a thin line that fills while it is shown */
.hero3 .h-kinds { margin-top: clamp(28px, 4vw, 48px); gap: 4px 26px; flex-wrap: wrap; overflow: visible; }
.hero3 .h-kinds .chip { min-height: 0; padding: 6px 0 9px; border: 0; border-radius: 0; background: none; color: var(--ink2); font-size: 17px; font-weight: 500; gap: 8px; }
.hero3 .h-kinds .chip .ico { width: 18px; height: 18px; opacity: .7; }
.hero3 .h-kinds .chip[aria-pressed="true"] { background: none; color: var(--ink); border: 0; }
.hero3 .h-kinds .chip::before { inset: auto 0 0 0; height: 2px; background: var(--accent); z-index: 0; }
.hero3 .h-kinds .chip.is-run::before { animation-duration: 4.2s; }

@media (max-width: 860px) {
  .h3__scene { height: max(480px, 118vw); }
  .h3__word { bottom: 56.5%; font-size: 24vw; }
  .h3__under { grid-template-columns: 1fr; align-items: start; }
  .hero3 .h-kinds { flex-wrap: nowrap; overflow-x: auto; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .h3__pan, .h3__word span { transition: none !important; } }

/* ===== Header, round 3: the painting behind, the text on the left on beige =====
   The header keeps the light palette in dark mode too, so the beige fade and the painting always read as one daylight scene. */
.hero2 { --ground: #F3EBDF; --sheet: #FBF7F1; --ink: #2A211C; --ink2: #5E5048; --rule: #E2D6C6; --accent: #7B2D3B; --accent-soft: #EFDFDC; --on-accent: #fff;
  background: var(--ground); color: var(--ink); color-scheme: light; }
.hero2 .hw__pan img { filter: none; }
.hero2 .hw__fade { background:
  linear-gradient(90deg, #F3EBDF 0%, #F3EBDF 33%, rgba(243,235,223,.86) 43%, rgba(243,235,223,0) 62%),
  linear-gradient(180deg, #F3EBDF 0%, rgba(243,235,223,0) 14%),
  linear-gradient(0deg, rgba(243,235,223,.9) 0%, rgba(243,235,223,0) 20%); }
@media (max-width: 860px) {
  .hero2 .hw__fade { background: linear-gradient(180deg, #F3EBDF 0%, #F3EBDF 46%, rgba(243,235,223,.7) 56%, rgba(243,235,223,0) 68%),
    linear-gradient(0deg, rgba(243,235,223,.85) 0%, rgba(243,235,223,0) 14%); }
}
/* no pulsing dot; the card says what the place is */
.hero2 .hw__pin { display: none; }
.hero2 .store__btn { background: var(--ink); color: var(--ground); }

/* The kinds as words with a thin line that fills while each one is shown */
.hero2 .h-kinds { margin-top: clamp(24px, 3.5vw, 44px); gap: 4px 26px; flex-wrap: wrap; overflow: visible; }
.hero2 .h-kinds .chip { min-height: 0; padding: 6px 0 9px; border: 0; border-radius: 0; background: none; color: var(--ink2); font-size: 17px; font-weight: 500; gap: 8px; }
.hero2 .h-kinds .chip .ico { width: 18px; height: 18px; opacity: .7; }
.hero2 .h-kinds .chip[aria-pressed="true"] { background: none; color: var(--ink); border: 0; }
.hero2 .h-kinds .chip::before { inset: auto 0 0 0; height: 2px; background: var(--accent); z-index: 0; }
.hero2 .h-kinds .chip.is-run::before { animation-duration: 4s; }
@media (max-width: 860px) { .hero2 .h-kinds { flex-wrap: nowrap; overflow-x: auto; gap: 22px; } }
