/* Demo photo: https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1
   Local square crop, served without third-party requests. */
/* Home only: the shared layout and other pages keep their own styles. */
.home-page { --home-ink: #1c1c1e; background: #f5f5f7; color: var(--home-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100svh; }
.home-page a { -webkit-tap-highlight-color: transparent; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.home-wrap { width: min(var(--page-width), calc(100% - 48px)); margin-inline: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.home-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--home-ink); text-decoration: none; font-size: 27px; font-weight: 800; letter-spacing: -1.2px; }
.home-logo img { width: 40px; height: 40px; }
.home-how-link { padding-block: 12px; color: #636368; text-decoration: none; font-size: 13px; font-weight: 600; }
.home-how-link span { padding-left: 10px; color: var(--brand); }
.home-hero { display: grid; grid-template-columns: 1.16fr 1fr; gap: 32px; align-items: center; padding-block: 25px 65px; }
.home-eyebrow { margin: 0 0 21px; font-size: 11px; font-weight: 700; letter-spacing: 1.35px; color: #636368; }
.home-imessage-label { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #55555a; font-size: 14px; font-weight: 500; letter-spacing: -.2px; }
.home-imessage-label img { display: block; border-radius: 9px; }
.home-eyebrow > span { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.home-intro h1 { font-size: clamp(46px, 5.5vw, 62px); line-height: 1.04; letter-spacing: -2.9px; font-weight: 700; margin: 0 0 23px; }
.home-intro h1 em { color: var(--brand); font-style: normal; }
.home-lead { max-width: 355px; font-size: 16px; line-height: 1.7; color: #636368; margin: 0 0 28px; }
.home-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.home-store { display: inline-flex; align-items: center; min-height: 48px; border-radius: 7px; text-decoration: none; transition: transform .18s; }
.home-store:hover { transform: translateY(-2px); }
.home-store img { display: block; width: auto; height: 44px; }
.home-store + .home-store img { height: 38px; }
.home-platforms { color: #647185; font-size: 11px; margin: 13px 0 0; }
.home-preview, .home-preview * { -webkit-user-select: none; user-select: none; }
.home-preview img { -webkit-user-drag: none; }
.home-preview { width: 100%; max-width: 370px; justify-self: end; background: #fff; border: 1px solid #e2e3e7; border-radius: 36px; padding: 9px; box-shadow: 0 24px 65px #1823380d, 0 2px 6px #18233805; overflow: hidden; }
.home-chat-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 9px 15px; border-bottom: 1px solid #f0f0f2; }
.home-glass-control { width: 43px; height: 43px; display: grid; place-items: center; background: #f5f5f7bd; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px #0000000a, inset 0 0 1px #00000024; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.home-glass-control svg { width: 23px; height: 23px; stroke: #1c1c1e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.home-contact { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #1c1c1e; }
.home-contact-avatar { width: 39px; height: 39px; background: linear-gradient(#aab4c0, #84909f); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 400; }
.home-contact-chevron { color: #8e8e93; padding-left: 3px; }
.home-chat-body { padding: 0 11px; }
.home-chat-time { margin: 13px 0 17px; text-align: center; color: #79797e; font-size: 10px; line-height: 1.5; font-weight: 600; }
.home-chat-time span { font-weight: 400; }
.home-bubble { position: relative; width: fit-content; max-width: 85%; padding: 9px 13px; margin: 0 0 11px; border-radius: 19px; font-size: 14px; line-height: 1.3; letter-spacing: -.2px; }
.home-bubble-in { background: #e9e9eb; color: #1c1c1e; border-bottom-left-radius: 6px; }
.home-bubble-out { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.home-bubble::before { content: ''; position: absolute; bottom: 0; width: 11px; height: 13px; background: inherit; }
.home-bubble-in::before { left: -4px; border-bottom-right-radius: 10px; }
.home-bubble-out::before { right: -4px; border-bottom-left-radius: 10px; }
.home-bubble::after { content: ''; position: absolute; bottom: -1px; width: 7px; height: 15px; background: #fff; border-radius: 0 0 50% 50%; }
.home-bubble-in::after { left: -7px; }
.home-bubble-out::after { right: -7px; }
.home-puzzle-card { width: 88%; padding: 9px; border: 1px solid #e6e6e9; border-radius: 19px; background: #f2f2f4; }
.home-card-brand { display: inline-flex; align-items: center; gap: 5px; color: #3a3a3c; }
.home-mini-logo { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; }
.home-mini-logo img { display: block; width: 100%; height: 100%; }
.home-chat-caption { font-size: 9px; color: #79797e; margin: 5px 0 13px 8px; }
.home-composer { display: flex; align-items: center; gap: 9px; padding: 8px 8px 4px; }
.home-composer-plus { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #f0f0f2; color: #55555a; }
.home-composer-plus svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.home-composer-field { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 1px solid #d8d8dc; border-radius: 22px; padding: 8px 10px 8px 13px; color: #8e8e93; font-size: 13px; line-height: 1; }
.home-composer-field svg { height: 19px; width: 19px; fill: none; stroke: #79797e; stroke-width: 1.6; stroke-linecap: round; }
.home-puzzle-top, .home-puzzle-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; color: #636368; }
.home-puzzle-top { margin-bottom: 12px; font-weight: 600; }
.home-timer { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; background: var(--brand-soft); color: var(--brand); border-radius: 6px; font-variant-numeric: tabular-nums; }
.home-timer svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.home-puzzle { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--brand-soft); position: relative; }
.home-puzzle > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-puzzle.is-interactive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.home-tile { padding: 0; border-radius: 3px; background-image: url('/assets/images/home-lake.jpg'); background-size: 300% 300%; background-repeat: no-repeat; position: relative; min-width: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.home-tile:hover, .home-tile:active { background-color: transparent; }
.home-tile.is-dragging { z-index: 3; cursor: grabbing; box-shadow: 0 8px 20px #11182040; pointer-events: none; }
.home-tile.is-target { box-shadow: inset 0 0 0 3px var(--brand); }
.home-puzzle .home-tile:focus-visible { outline-offset: -4px; z-index: 2; }
.home-puzzle.is-solved { gap: 0; }
.home-puzzle.is-solved .home-tile { border-radius: 0; cursor: default; }
.home-puzzle.is-expired .home-tile { background-image: none; background-color: #d9e7f8; }
.home-puzzle-bottom { margin-top: 12px; font-size: 9px; }
.home-example { text-transform: uppercase; font-size: 8px; letter-spacing: .8px; }
.home-progress { color: var(--brand); font-weight: 600; }
.home-demo-hint { text-align: center; font-size: 10px; color: #636368; margin: 12px 12px 8px; min-height: 30px; line-height: 1.5; }
.home-replay { display: block; margin: 2px auto 0; background: transparent; color: var(--brand); padding: 10px 14px; font-size: 12px; }
.home-replay[hidden] { display: none; }
.home-replay:hover { background: #d8e8ff; }
.home-how { border-top: 1px solid #dfe7ef; padding-block: 43px 51px; scroll-margin-top: 24px; }
.home-section-heading .home-eyebrow { font-size: 9px; margin-bottom: 9px; }
.home-page h2 { font-size: 31px; letter-spacing: -1.1px; line-height: 1.2; margin: 0; font-weight: 700; }
.home-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.home-step-number { font-size: 12px; font-weight: 650; color: var(--brand); }
.home-steps h3 { margin: 10px 0 8px; font-size: 16px; letter-spacing: -.3px; }
.home-steps p { margin: 0; color: #636368; font-size: 13px; line-height: 1.75; }
.home-outro { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #fff; border: 1px solid #e7e7eb; padding: 34px; border-radius: 28px; }
.home-outro .home-eyebrow { color: var(--brand); font-size: 9px; margin-bottom: 10px; }
.home-outro h2 { font-size: 25px; letter-spacing: -.8px; }
.home-footer { display: flex; justify-content: space-between; gap: 15px; padding-block: 30px max(30px, env(safe-area-inset-bottom)); color: #647185; font-size: 10px; }
.home-footer nav { display: flex; gap: 20px; }
.home-footer a { color: #636368; text-decoration: none; padding-block: 12px; }
.home-footer a:hover, .home-how-link:hover { color: var(--brand); }
@media (max-width: 760px) {
    .home-wrap { width: calc(100% - 40px); }
    .home-header { padding-block: 20px; }
    .home-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 15px 40px; }
    .home-intro { text-align: center; }
    .home-imessage-label, .home-stores { justify-content: center; }
    .home-intro h1 { font-size: clamp(39px, 10.8vw, 58px); letter-spacing: -1.9px; margin-bottom: 17px; }
    .home-intro .home-eyebrow { margin-bottom: 17px; font-size: 11px; }
    .home-lead { margin: 0 auto 23px; max-width: 365px; font-size: 15px; line-height: 1.65; }
    .home-preview { width: min(100%, 370px); margin-inline: auto; justify-self: center; }
    .home-how { padding-block: 32px; }
    .home-page h2 { font-size: 27px; }
    .home-steps { gap: 24px; grid-template-columns: 1fr; margin-top: 27px; }
    .home-steps li { position: relative; padding-left: 37px; }
    .home-step-number { position: absolute; left: 0; top: 2px; }
    .home-steps h3 { margin-top: 0; }
    .home-steps p { max-width: 430px; }
    .home-outro { flex-direction: column; text-align: center; padding: 27px 14px; gap: 22px; }
    .home-outro h2 { font-size: 25px; }
    .home-footer { flex-direction: column; align-items: center; gap: 12px; padding-top: 25px; }
}
@media (max-width: 359px) {
    .home-wrap { width: calc(100% - 32px); }
    .home-store img { height: 36px; }
    .home-store + .home-store img { height: 32px; }
    .home-stores { gap: 8px; }
    .home-logo { font-size: 24px; }
    .home-logo img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-store { transition: none; }
    .home-store:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) { .home-glass-control { background: #f2f2f7; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .home-glass-control, .home-composer-field, .home-puzzle-card { border-color: #79797e; } .home-chat-time, .home-chat-caption, .home-demo-hint { color: #3a3a3c; } }
