/* Aisleful Memories landing page (/memories). Dusk plum and amber for the day, paper and sage for afterwards.
   Type is Fraunces for headings and Onest for text, both self-hosted in fonts.css. */
:root {
  --ink: #1d1216; --cream: #fff3e4; --plum: #22102d; --plum2: #341a42; --plum3: #482657;
  --amber: #ffb627; --pink: #ff7da1; --coral: #b03015; --paper: #efe7d3; --paper2: #e3d9bd; --sage: #45602f; --sage-ink: #1f2b22;
  --serif: "Fraunces", Georgia, serif; --sans: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(1160px, 100% - 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--cream); background: var(--plum); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.s-paper :focus-visible, .s-sage :focus-visible { outline-color: #1a44b8; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -.03em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; }
em { font-style: italic; color: var(--amber); }
.s-paper em, .s-sage em { color: var(--coral); }
.s-sage em { color: var(--sage); }
.kicker { margin: 0 0 18px; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.s-paper .kicker { color: var(--coral); }
.s-sage .kicker { color: var(--sage); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; color: #e7d4e6; max-width: 38em; margin: 22px 0 0; }
.s-paper .lede { color: #5a4036; }
.s-sage .lede { color: #3f4a3b; }
.fine { font-size: .875rem; color: #cdb6cf; margin: 14px 0 0; }
.s-paper .fine { color: #6b5247; }

/* Buttons: flat, one ticket-style accent */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.go { background: var(--amber); color: var(--ink); }
.btn.go:hover { background: #ffc752; }
.btn.line { border-color: currentColor; color: var(--cream); }
.btn.line:hover { background: rgba(255, 243, 228, .12); }
.s-paper .btn.line { color: var(--plum); }
.s-paper .btn.line:hover { background: rgba(34, 16, 45, .08); }
.btn.dark { background: var(--plum); color: var(--cream); }
.btn.dark:hover { background: var(--plum2); }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(34, 16, 45, .88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 243, 228, .1); }
.bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand img { height: 30px; width: auto; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bar nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .92rem; color: #e7d4e6; }
.bar nav a:hover { background: rgba(255, 243, 228, .1); color: var(--cream); }
.bar nav .btn { min-height: 42px; padding: 0 18px; color: var(--ink); margin-left: 6px; }
@media (max-width: 640px) { .bar nav a.hide-s { display: none; } }
.bar nav a, .bar nav .btn { white-space: nowrap; }
@media (max-width: 420px) { .bar .wrap { gap: 8px; } .brand img { height: 26px; } .bar nav { gap: 2px; } .bar nav a { padding: 10px 9px; } .bar nav .btn { padding: 0 14px; font-size: .88rem; margin-left: 2px; } }

/* Sections */
section { position: relative; padding: clamp(72px, 11vw, 140px) 0; scroll-margin-top: 64px; }
.s-dusk { background: var(--plum); color: var(--cream); }
.s-dusk2 { background: var(--plum2); color: var(--cream); }
.s-paper { background: var(--cream); color: #2a1a16; }
.s-sage { background: var(--paper); color: var(--sage-ink); }
.head { max-width: 46rem; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -120px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255, 125, 161, .55), rgba(255, 182, 39, .28) 45%, transparent 70%); pointer-events: none; }
@media (max-width: 899px) { .hero::before { width: 520px; height: 520px; right: -200px; top: auto; bottom: -160px; opacity: .6; } }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 16px 8px 8px; border: 1px solid rgba(255, 243, 228, .22); border-radius: 999px; font-size: .9rem; color: #e7d4e6; text-decoration: none; }
.badge b { background: var(--amber); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.badge:hover { border-color: var(--amber); }
.badge { max-width: 100%; line-height: 1.35; }
.badge b { flex: none; white-space: nowrap; }
@media (max-width: 520px) { .badge { font-size: .85rem; padding: 7px 14px 7px 7px; border-radius: 24px; } }

/* The phone */
.device { position: relative; justify-self: center; width: min(310px, 78vw); }
.phone { position: relative; z-index: 1; border-radius: 40px; padding: 12px; background: #120817; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #3a2346; }
.screen { border-radius: 30px; background: var(--plum2); padding: 18px 14px 16px; }
.scr-h { display: flex; align-items: center; justify-content: space-between; font: 600 .95rem var(--sans); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255, 182, 39, .18); color: var(--amber); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
.count { margin: 10px 0 12px; font-size: .85rem; color: #d2bfd3; }
.count b { font: 520 1.7rem/1 var(--serif); color: var(--cream); margin-right: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 10px; opacity: 0; transform: scale(.85); animation: pop .6s var(--ease) forwards; animation-delay: calc(var(--n) * 140ms + 400ms); }
.add { margin-top: 14px; text-align: center; padding: 12px; border-radius: 14px; background: var(--amber); color: var(--ink); font: 600 .88rem var(--sans); }
.qr { position: absolute; z-index: 2; left: -44px; bottom: -34px; width: 128px; padding: 10px 10px 8px; border-radius: 14px; background: var(--cream); color: var(--ink); font: 600 .72rem/1.25 var(--sans); text-align: center; transform: rotate(-6deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.qr img { width: 100%; height: auto; margin-bottom: 6px; }
.toast { position: absolute; z-index: 2; right: -18px; top: -16px; padding: 10px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); font: 600 .78rem/1.3 var(--sans); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transform: rotate(4deg); animation: float 5s ease-in-out infinite; }
@media (max-width: 899px) { .qr { left: -10px; } .toast { right: -6px; } .device { margin-bottom: 30px; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes float { 50% { translate: 0 -8px; } }

/* How it works */
.steps { display: grid; gap: 18px; margin-top: 56px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px 28px 32px; border-radius: 22px; background: #fff; border: 1px solid #ead9c5; counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 520 3.2rem/1 var(--serif); color: var(--coral); letter-spacing: -.04em; margin-bottom: 26px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: #5a4036; }
.step svg { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; color: var(--plum); }

/* Photo reel */
.reel-sec { padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.reel-sec h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.reel { display: flex; gap: 14px; margin-top: 28px; width: max-content; animation: slide 70s linear infinite; }
.reel.rev { animation-direction: reverse; animation-duration: 85s; }
.reel:hover { animation-play-state: paused; }
.reel figure { margin: 0; width: 220px; flex: none; }
.reel img { width: 220px; height: 220px; object-fit: cover; border-radius: 16px; background: var(--plum3); }
.reel figcaption { margin-top: 8px; font-size: .82rem; color: #cdb6cf; }
.reel-wrap + .reel-wrap { margin-top: 10px; }
@keyframes slide { to { transform: translateX(-50%); } }
.note { margin-top: 22px; font-size: .85rem; color: #cdb6cf; }

/* Features */
.bento { display: grid; gap: 16px; margin-top: 52px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento .wide { grid-column: span 2; } .bento .full { grid-column: 1 / -1; } }
.tile { padding: 28px 26px 30px; border-radius: 22px; background: var(--plum2); border: 1px solid rgba(255, 243, 228, .1); }
.tile h3 { margin-bottom: 10px; }
.tile p { margin: 0; color: #e0cde1; font-size: 1rem; }
.tile.key { background: var(--amber); color: var(--ink); border-color: transparent; }
.tile.key p { color: #3b2800; }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font: 600 .68rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 182, 39, .16); color: var(--amber); }
.tile.key .tag { background: rgba(29, 18, 22, .12); color: var(--ink); }

/* After */
.after { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .after { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.shelf { position: relative; height: 470px; }
.shelf figure { position: absolute; margin: 0; width: 58%; padding: 10px 10px 30px; background: #fffaf0; border-radius: 6px; box-shadow: 0 18px 40px rgba(31, 43, 34, .22); }
.shelf img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
.shelf figcaption { position: absolute; left: 12px; bottom: 7px; font: 500 .8rem var(--serif); font-style: italic; color: #4c5747; }
.shelf figure:nth-child(1) { left: 0; top: 0; rotate: -5deg; }
.shelf figure:nth-child(2) { right: 0; top: 60px; rotate: 4deg; }
.shelf figure:nth-child(3) { left: 14%; top: 250px; rotate: 2deg; width: 50%; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #b7cb9b; }
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); border: 3px solid var(--paper); }
.timeline h3 { font-size: 1.3rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: #3f4a3b; }
.timeline small { display: block; margin-bottom: 4px; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }

/* Pricing */
.plans { display: grid; gap: 18px; margin-top: 52px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 24px; background: var(--plum2); border: 1px solid rgba(255, 243, 228, .12); }
.plan.best { background: var(--cream); color: #2a1a16; border-color: transparent; }
.plan h3 { font-size: 1.5rem; }
.price { margin: 18px 0 4px; font: 520 3.2rem/1 var(--serif); letter-spacing: -.04em; }
.price small { font: 500 .82rem var(--sans); letter-spacing: 0; opacity: .7; }
.sum { margin: 0 0 18px; opacity: .85; }
.ticks { list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid currentColor; border-color: rgba(255, 243, 228, .18); display: grid; gap: 10px; }
.plan.best .ticks { border-color: rgba(34, 16, 45, .15); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); rotate: -45deg; }
.plan.best .ticks li::before { border-color: var(--coral); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.best .btn.go { background: var(--plum); color: var(--cream); }
.plan.best .btn.go:hover { background: var(--plum2); }
.plans-note { margin-top: 28px; text-align: center; color: #d2bfd3; }

/* Planner strip */
.strip { padding: 40px 0; background: var(--plum3); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; justify-content: space-between; }
.strip p { margin: 0; font: 520 clamp(1.3rem, 3vw, 1.8rem)/1.2 var(--serif); letter-spacing: -.02em; max-width: 30em; }

/* FAQ */
.faq { max-width: 52rem; margin-top: 48px; }
details { border-top: 1px solid #d9c9b3; }
details:last-child { border-bottom: 1px solid #d9c9b3; }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 520 1.25rem/1.3 var(--serif); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 1.8rem/1 var(--sans); color: var(--coral); transition: rotate .25s var(--ease); }
details[open] summary::after { rotate: 45deg; }
details div { padding: 0 0 24px; max-width: 42rem; color: #4a3a33; }

/* Close + footer */
.close { text-align: center; }
.close h2 { max-width: 14em; margin-inline: auto; }
.close .lede { margin-inline: auto; }
.close .row { justify-content: center; }
footer.site { background: #170a20; color: #cdb6cf; padding: 36px 0 90px; font-size: .92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--cream); text-decoration: underline; }
footer.site .copy { margin-left: auto; opacity: .8; }
/* The legal links, business line and Cookie settings button are added by js/legal.js, outside .wrap, so they are laid out here. */
footer.site .footer-legal { width: var(--wrap); margin: 24px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 243, 228, .14); font-size: .85rem; line-height: 1.6; }
footer.site .legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer.site .legal-links a, footer.site .legal-links button { color: #cdb6cf; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
footer.site .legal-links a:hover, footer.site .legal-links button:hover { color: var(--cream); }
footer.site .legal-business { color: #a893ab; }
footer.site .legal-business a { color: inherit; }
footer.site .legal-business a:hover { color: var(--cream); }

/* Sticky mobile CTA */
.m-cta { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-radius: 999px; background: var(--amber); color: var(--ink); font: 600 .98rem var(--sans); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); translate: 0 140%; transition: translate .35s var(--ease); }
.m-cta.on { translate: 0 0; }
.m-cta span { font-weight: 500; opacity: .75; }
@media (min-width: 900px) { .m-cta { display: none; } footer.site { padding-bottom: 36px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel { animation: none; width: auto; overflow-x: auto; }
  .grid img { animation: none; opacity: 1; transform: none; }
  .chip::before, .toast { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
