/* photoshoto.ai: shared styles for every page except support/ and delete-account/. */
:root {
  --ink: #0e3b45; --marigold: #f0a63a; --bg: #f6f7f6; --surface: #ffffff;
  --fg: #14211f; --muted: #5d6b69; --line: #dde3e1;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1514; --surface: #121e1d; --fg: #e8eeec; --muted: #9aa9a6; --line: #22302e; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header and navigation */
.hero, .page-head { background: linear-gradient(135deg, #0e3b45, #2f6f7e); color: #fff; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; opacity: .88; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.site-nav a.cta { opacity: 1; background: var(--marigold); color: #1c1405; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
@media (max-width: 640px) {
  .site-nav { width: 100%; gap: 4px 14px; font-size: 14px; }
}

/* Home hero */
.hero-body { padding: 48px 0 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 600px; flex: 1 1 360px; }
@media (min-width: 900px) { .hero-body { flex-wrap: nowrap; } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 13px; color: var(--marigold); margin: 0 0 12px; }
h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(34px, 7vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.lead { font-size: 19px; opacity: .9; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores a { display: block; border-radius: 9px; }
.stores a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.stores img { display: block; height: 52px; width: auto; }

/* Inner page header */
.page-head .head-body { padding: 32px 0 56px; max-width: 700px; }
.page-head h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 12px; }
.page-head .lead { margin: 0; }

/* Content */
main.wrap { padding-top: 48px; padding-bottom: 56px; }
section + section { margin-top: 56px; }
h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; }
h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.prose { max-width: 700px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card .n { display: block; color: var(--marigold); font-weight: 700; margin-bottom: 6px; }
.more { display: inline-block; margin-top: 16px; font-weight: 600; }
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: var(--muted); }
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn { background: var(--marigold); color: #1c1405; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details p { color: var(--muted); }
.note { border-left: 4px solid var(--marigold); padding: 4px 0 4px 16px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- photos and motion */

/* Inner page headers: a photo behind the brand gradient. */
.page-head.photo { background: linear-gradient(120deg, rgba(14,59,69,.94) 30%, rgba(14,59,69,.55)), var(--photo) center / cover no-repeat; }

/* Home hero: text on the left, the animated phone on the right. */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 30%, rgba(240,166,58,.28), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.qr-inline { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.qr-inline img { width: 92px; height: 92px; background: #fff; border-radius: 12px; padding: 6px; }
.qr-inline p { margin: 0; font-weight: 600; font-size: 15px; opacity: .9; max-width: 180px; }
@media (max-width: 760px), (pointer: coarse) { .qr-inline { display: none; } }

/* The phone: a selfie, then the search, then the guest's photos, on a loop. */
.phone { width: 270px; height: 550px; border-radius: 44px; background: #0b1110; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.12); flex: none; margin: 0 auto; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #f6f7f6; color: #14211f; font-size: 12px; line-height: 1.3; }
.scene { position: absolute; inset: 0; opacity: 0; animation: 12s infinite; }
.s-selfie { background: #0b1110; animation-name: sc1; }
.s-search { background: #0e3b45; animation-name: sc2; }
.s-result { animation-name: sc3; }
@keyframes sc1 { 0%, 28% { opacity: 1; } 32%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sc2 { 0%, 28% { opacity: 0; } 32%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes sc3 { 0%, 46% { opacity: 0; } 50%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.s-selfie .cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: 12s infinite camzoom; }
@keyframes camzoom { 0% { transform: scale(1.12) translateY(4%); } 20%, 100% { transform: none; } }
.s-selfie .mask { position: absolute; inset: 0; background: radial-gradient(ellipse 29% 19% at 50% 38%, transparent 98%, rgba(0,0,0,.5) 100%); }
.s-selfie .oval { position: absolute; left: 50%; top: 38%; width: 58%; height: 38%; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.85); border-radius: 50%; animation: 12s infinite ovalok; }
@keyframes ovalok { 0%, 18% { border-color: rgba(255,255,255,.85); border-style: dashed; } 22%, 100% { border-color: #4cc489; border-style: solid; } }
.s-selfie .tip { position: absolute; top: 34px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: 13px; }
.s-selfie .shutter { position: absolute; bottom: 26px; left: 50%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: #f0a63a; border: 4px solid #fff; animation: 12s infinite press; }
@keyframes press { 0%, 20% { transform: scale(1); } 22% { transform: scale(.85); } 25%, 100% { transform: scale(1); } }
.s-search { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; }
.s-search .ring { width: 96px; height: 96px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: #f0a63a; animation: spin 1s linear infinite; position: relative; }
.s-search .ring img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%; object-fit: cover; animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-search p { margin: 0; font-weight: 600; font-size: 14px; }
.s-search small { opacity: .75; }
.s-result .top { padding: 34px 14px 6px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 18px; }
.s-result .bubbles { display: flex; gap: 10px; padding: 4px 14px 8px; }
.s-result .bubble { width: 50px; text-align: center; font-weight: 600; font-size: 10px; }
.s-result .av { position: relative; width: 46px; height: 46px; margin: 0 auto 3px; }
.s-result .av img { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid #f0a63a; object-fit: cover; display: block; }
.s-result .av span { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #f0a63a; border: 2px solid #f6f7f6; display: grid; place-items: center; }
.s-result .av span svg { width: 10px; height: 10px; }
.s-result .add { width: 46px; height: 46px; margin: 0 auto 3px; border-radius: 50%; background: #e7ecea; display: grid; place-items: center; font-size: 22px; color: #14211f; }
.s-result .count { padding: 0 14px 8px; color: #5d6b69; font-size: 11px; }
.s-result .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.s-result .grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; opacity: 0; animation: 12s infinite tile; }
@keyframes tile { 0%, 50% { opacity: 0; transform: scale(.9); } 56%, 100% { opacity: 1; transform: none; } }
.s-result .grid img:nth-child(2) { animation-name: tile2; } .s-result .grid img:nth-child(3) { animation-name: tile3; }
.s-result .grid img:nth-child(4) { animation-name: tile4; } .s-result .grid img:nth-child(5) { animation-name: tile5; }
.s-result .grid img:nth-child(n+6) { animation-name: tile6; }
@keyframes tile2 { 0%, 52% { opacity: 0; transform: scale(.9); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes tile3 { 0%, 54% { opacity: 0; transform: scale(.9); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes tile4 { 0%, 56% { opacity: 0; transform: scale(.9); } 62%, 100% { opacity: 1; transform: none; } }
@keyframes tile5 { 0%, 58% { opacity: 0; transform: scale(.9); } 64%, 100% { opacity: 1; transform: none; } }
@keyframes tile6 { 0%, 60% { opacity: 0; transform: scale(.9); } 66%, 100% { opacity: 1; transform: none; } }
.s-result .toast { position: absolute; left: 12px; right: 12px; bottom: 16px; background: #14211f; color: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; opacity: 0; animation: 12s infinite toast; }
.s-result .toast b { color: #f0a63a; }
@keyframes toast { 0%, 72% { opacity: 0; transform: translateY(12px); } 76%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* A strip of event photos that drifts sideways. */
.strip { overflow: hidden; padding: 28px 0 4px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 14px; width: max-content; animation: drift 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.strip figure { position: relative; margin: 0; width: 260px; height: 190px; border-radius: 18px; overflow: hidden; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: #14211f; font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 999px; }

/* Cards with a photo or an icon on top. */
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.card.has-img:hover img { transform: scale(1.04); }
.card.has-img .card-body { padding: 20px 22px 22px; }
a.card { text-decoration: none; color: inherit; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(240,166,58,.16); color: #b8711a; display: grid; place-items: center; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .icon { color: var(--marigold); } }
.icon svg { width: 26px; height: 26px; }

/* Text beside a photo. */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.split > img { width: 100%; height: auto; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--marigold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1405' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks li strong { color: var(--fg); }

/* Fade in as sections scroll into view (only when scripts run). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scene, .s-selfie .cam, .s-selfie .oval, .s-selfie .shutter, .s-result .grid img, .s-result .toast, .strip-track, .s-search .ring, .s-search .ring img { animation: none; }
  .s-result, .s-result .grid img { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card.has-img img { transition: none; }
}
