/* Keepsake — the final direction. Aperture's structure and restraint, with a serif voice
   for the things that matter (headlines, the couple's names, prices) and guest-credited
   photos. Warm white, warm ink, one typeface pair, nothing else competing with the photographs. */
.ui-keepsake { --bg: #fbfaf7; --bg2: #f2efe9; --bg3: #ffffff; --ink: #1c1b19; --ink2: #6b675f; --ink3: #a29d93; --line: rgba(28,27,25,.11);
  --accent: #1c1b19; --accent-ink: #fbfaf7; --focus: #2b5fd9; --ok: #2f7d4f; --bad: #c4321f;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display-weight: 400; --display-track: -.012em;
  --nav-bg: rgba(251,250,247,.82); --sheet-bg: #fff; --field-bg: #f2efe9; --field-line: transparent;
  --shadow: 0 1px 2px rgba(28,27,25,.05), 0 10px 32px rgba(28,27,25,.09); }
.ui-keepsake.v2 { letter-spacing: -.008em; }
.ui-keepsake h1, .ui-keepsake h2 { font-weight: 400; }
.ui-keepsake h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; }
.ui-keepsake .x-brand span { font-weight: 600; letter-spacing: -.02em; }

/* app screens: serif only where a name or a question is the point */
.ui-keepsake .x-cover-text h1 { font-size: clamp(52px, 12vw, 96px); line-height: .95; letter-spacing: -.015em; }
.ui-keepsake .x-cover-text p { font-size: 15px; letter-spacing: .01em; margin-top: 8px; }
.ui-keepsake .x-welcome p { font: 400 clamp(22px, 4vw, 26px)/1.3 var(--font-display); letter-spacing: -.005em; }
.ui-keepsake .x-welcome .x-keep { font: 13px var(--font); color: var(--ink2); }
.ui-keepsake .x-sheet-head h2 { font-size: 30px; }
.ui-keepsake .x-vis label b { font-family: var(--font); }
.ui-keepsake .x-gallery-head h2 { font-size: 34px; }
.ui-keepsake .x-create .step h1 { font-size: clamp(46px, 9vw, 72px); line-height: 1; letter-spacing: -.015em; }
.ui-keepsake.v2 .x-create input.x-big-input { font-size: clamp(32px, 7vw, 46px); }
.ui-keepsake.v2 .x-create input.x-big-input[type=date] { font: 500 clamp(22px, 5vw, 30px) var(--font); letter-spacing: -.02em; }
.ui-keepsake .x-auth h1 { font-size: clamp(48px, 9vw, 64px); line-height: 1; }
.ui-keepsake .x-album-head h1 { font-size: clamp(44px, 7vw, 68px); line-height: 1; }
.ui-keepsake .album-title h1 { font-size: clamp(44px, 7vw, 68px); line-height: 1; }
.ui-keepsake .x-photos-bar h2, .ui-keepsake .x-panel h2, .ui-keepsake.v2 .album .card h2 { font-size: 30px; }
.ui-keepsake .x-pass h2 { font-size: clamp(42px, 5vw, 56px); line-height: 1; }
.ui-keepsake .x-pass { --pass-bg: #1c1b19; }
.ui-keepsake .x-panel { background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.ui-keepsake .x-email textarea, .ui-keepsake .x-email input { background: var(--bg2) !important; }
.ui-keepsake .x-tabs { background: var(--bg2); }
.ui-keepsake .x-ph-cover b { font-weight: 400; font-size: 30px; }
.ui-keepsake .x-phone-screen { background: #fbfaf7; }
.ui-keepsake .x-dock::before { background: linear-gradient(to top, var(--bg) 40%, transparent); }

/* ---------- home ---------- */
.ks { overflow: hidden; }
.ks-head { text-align: center; max-width: 760px; margin: 0 auto 56px; padding: 0 22px; }
.ks-head h2 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 16px; }
.ks-head p { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink2); margin: 0; }

.ks-hero { text-align: center; padding: clamp(44px, 8vh, 88px) 22px 0; max-width: 1200px; margin: 0 auto; }
.ks-hero h1 { font-size: clamp(52px, 6.6vw, 100px); line-height: .96; letter-spacing: -.025em; margin: 0 auto 22px; max-width: 13ch; animation: x-rise 1.1s var(--ease) both .05s; }
.ks-lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--ink2); max-width: 30em; margin: 0 auto 28px; animation: x-rise 1.1s var(--ease) both .18s; }
.ks-ctas { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; animation: x-rise 1.1s var(--ease) both .3s; }
.ks-more { font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink3); padding-bottom: 2px; }
.ks-more:hover { border-color: var(--ink); }

.ks-stage { position: relative; margin: clamp(8px, 2vh, 24px) auto 0; max-width: 1440px; height: clamp(540px, 52vw, 760px); }
.ks-stage-bg { position: absolute; inset: 0 0 auto; width: 100%; height: 84%; object-fit: cover; object-position: 50% 60%; }
.ks-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(251,250,247,0) 18%, rgba(251,250,247,0) 64%, var(--bg) 84%); pointer-events: none; }
.ks-stage-phone { position: absolute; z-index: 2; left: 72%; bottom: 0; transform: translateX(-50%) rotate(4deg); animation: ks-phone 1s var(--ease) both .15s; }
.ks-stage-phone .x-phone { width: clamp(250px, 23vw, 316px); }
@keyframes ks-phone { from { opacity: 0; transform: translateX(-50%) translateY(60px) rotate(8deg); } to { opacity: 1; transform: translateX(-50%) rotate(4deg); } }
@media (max-width: 700px) { .ks-stage { height: 640px; } .ks-stage-bg { height: 60%; } .ks-stage-phone { left: 50%; transform: translateX(-50%); animation: none; } }

.ks-statement { max-width: 960px; margin: 0 auto; padding: clamp(100px, 16vh, 180px) 22px; }
.ks-statement p { font: 400 clamp(34px, 4.8vw, 62px)/1.08 var(--font-display); letter-spacing: -.015em; margin: 0; }
.ks-statement span { color: var(--ink3); }

.ks-how { background: var(--bg2); padding: clamp(90px, 13vh, 150px) 0; }
.ks-steps { list-style: none; margin: 0 auto; padding: 0 22px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ks-steps li { background: var(--bg3); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.ks-steps li:nth-child(2) { transition-delay: .1s; } .ks-steps li:nth-child(3) { transition-delay: .2s; }
.ks-step-text { padding: 26px 30px 34px; }
.ks-step-text span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font: 400 18px var(--font-display); margin-bottom: 14px; }
.ks-steps h3 { font-size: 22px; margin: 0 0 8px; }
.ks-steps p { color: var(--ink2); margin: 0; font-size: 16.5px; }
.ks-art { height: 240px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #fdfcfa, #f5f2ec); }
.ks-art-card img { width: 64%; border-radius: 10px; box-shadow: 0 20px 40px -12px rgba(28,27,25,.28); transform: rotate(-4deg) translateY(10px); }
.ks-art-pick img { position: absolute; width: 36%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 30px -10px rgba(28,27,25,.32); border: 3px solid #fff; }
.ks-art-pick img:nth-child(1) { transform: translate(-58%, 6%) rotate(-8deg); }
.ks-art-pick img:nth-child(2) { transform: translate(0, -4%); z-index: 2; }
.ks-art-pick img:nth-child(3) { transform: translate(58%, 8%) rotate(7deg); }
.ks-art-pick i { position: absolute; z-index: 3; top: 30px; right: calc(50% - 72px); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/28px var(--font); text-align: center; font-style: normal; }
.ks-art-zip div { width: 72%; background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 20px 40px -14px rgba(28,27,25,.22); }
.ks-art-zip b { display: block; font: 400 26px/1.1 var(--font-display); }
.ks-art-zip small { display: block; color: var(--ink2); font-size: 13px; margin: 4px 0 18px; }
.ks-art-zip em { display: block; font-style: normal; text-align: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .ks-steps { grid-template-columns: 1fr; max-width: 520px; } }

.ks-live { padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); }
.ks-marquee { position: relative; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ks-row { display: flex; gap: 14px; width: max-content; animation: ks-scroll 80s linear infinite; }
.ks-row.rev { animation-direction: reverse; animation-duration: 95s; }
.ks-row figure { position: relative; margin: 0; flex-shrink: 0; }
.ks-row img { height: clamp(210px, 22vw, 300px); aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; display: block; }
.ks-row figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; }
@keyframes ks-scroll { to { transform: translateX(-50%); } }

.ks-bento { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) and (min-width: 761px) { .ks-bento { grid-template-columns: 1fr 1fr; } .ks-bento .ks-tile:last-child { grid-column: 1 / -1; } }
.ks-tile { position: relative; background: var(--bg2); border-radius: 28px; padding: 34px; min-height: 420px; overflow: hidden; display: flex; flex-direction: column; }
.ks-tile h3 { font: 400 clamp(30px, 2.8vw, 38px)/1.02 var(--font-display); letter-spacing: -.015em; margin: 0 0 12px; }
.ks-tile p { color: var(--ink2); font-size: 17.5px; margin: 0; max-width: 26em; }
.ks-bento .ks-tile:nth-child(even) { transition-delay: .1s; }
.ks-tile-photo { padding: 0; justify-content: flex-end; color: #fff; }
.ks-tile-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ks-tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), transparent 25%, transparent 45%, rgba(0,0,0,.72)); }
.ks-tile-photo div { position: relative; z-index: 2; padding: 40px; }
.ks-tile-photo h3 { color: #fff; } .ks-tile-photo div p { color: rgba(255,255,255,.85); }
.ks-credit { position: absolute; z-index: 2; top: 22px; left: 26px; font: italic 400 17px var(--font-display) !important; color: rgba(255,255,255,.85) !important; }
.ks-toggle { margin-top: auto; align-self: center; display: inline-flex; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -10px rgba(28,27,25,.22); font-size: 16px; font-weight: 500; }
.ks-toggle span { padding: 12px 20px; border-radius: 10px; color: var(--ink2); }
.ks-toggle span.on { background: var(--ink); color: #fff; }
.ks-tv { margin: auto auto -10px; width: 92%; aspect-ratio: 16/10; background: #111; border-radius: 12px; border: 8px solid #262522; position: relative; display: grid; place-items: center; overflow: hidden; box-shadow: 0 24px 40px -16px rgba(0,0,0,.4); }
.ks-tv > img:first-child { height: 100%; width: auto; }
.ks-tv-qr { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 4px; }
.ks-card-img { width: 58%; margin: auto auto -70px; border-radius: 10px; box-shadow: 0 24px 50px -16px rgba(28,27,25,.3); transform: rotate(-3deg); }
@media (max-width: 760px) { .ks-bento { grid-template-columns: 1fr; } .ks-tile { min-height: 400px; padding: 32px; } .ks-tile-photo div { padding: 32px; } }


.ks-pricing { padding: clamp(110px, 16vh, 170px) 22px 0; }
.ks-plans { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ks-plan { border-radius: 28px; padding: 36px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; background: var(--bg3); }
.ks-plan-full { background: var(--bg2); box-shadow: none; }
.ks-plan h3 { font-size: 18px; margin: 0; }
.ks-price { font: 400 72px/1 var(--font-display); letter-spacing: -.02em; margin: 10px 0 24px; }
.ks-price small { font: 400 17px var(--font); color: var(--ink2); letter-spacing: -.01em; }
.ks-plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.ks-plan li { padding-left: 28px; position: relative; }
.ks-plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.ks-plan .x-btn { margin-top: auto; }
.ks-plan:nth-child(2) { transition-delay: .1s; }
.ks-fine { text-align: center; color: var(--ink2); font-size: 14px; margin: 24px 0 0; }
@media (max-width: 700px) { .ks-plans { grid-template-columns: 1fr; } }

.ks-close { margin-top: clamp(110px, 16vh, 180px); text-align: center; }
/* Text sits above the photograph, never on it, so the button can't cover anyone. */
.ks-close-text { padding: 0 22px clamp(36px, 6vh, 64px); }
.ks-close h2 { font-size: clamp(52px, 7.6vw, 104px); line-height: .95; letter-spacing: -.025em; margin: 0 0 34px; }
.ks-close-photo { position: relative; height: clamp(360px, 46vw, 640px); overflow: hidden; }
.ks-close-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.ks-close-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(251,250,247,0) 30%, rgba(251,250,247,0) 80%, var(--bg)); }
@media (max-width: 760px) {
  .ks-tile-photo { min-height: 600px; }
  .ks-tile-photo > img { object-position: 50% 8%; }
  .ks-tile-photo::after { background: linear-gradient(rgba(0,0,0,.25), transparent 22%, transparent 52%, rgba(0,0,0,.78)); }
  .ks-close-photo { height: 420px; }
  .ks-close-photo img { object-position: 50% 70%; }
}
@media (min-width: 900px) { .ks-hero h1 { max-width: 17ch; } }
/* The two privacy choices, drawn as the guest sees them in the upload sheet. */
.ks-vis { margin-top: auto; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ks-vis span { display: block; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.35; color: var(--ink2); }
.ks-vis span.on { box-shadow: inset 0 0 0 2px var(--ink); }
.ks-vis svg { display: block; margin-bottom: 8px; color: var(--ink); }
.ks-vis b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
/* Phones: get the guest page mockup, including its Add button, onto the first screen. */
@media (max-width: 700px) {
  .ks-hero { padding-top: 16px; }
  .ks-hero h1 { font-size: 44px; margin-bottom: 14px; }
  .ks-lede { font-size: 17px; margin-bottom: 16px; }
  .ks-note { display: none; }
  .ks-stage { height: 500px; margin-top: 4px; }
  .ks-stage-bg { height: 70%; }
  .ks-stage-phone .x-phone { width: 210px; }
}
/* Desktop: give the hero room to breathe; the small print reads as a footnote, well below the buttons. */
@media (min-width: 701px) {
  .ks-hero { padding-top: clamp(60px, 10vh, 112px); }
  .ks-hero h1 { margin-bottom: 30px; }
  .ks-lede { margin-bottom: 40px; }
  .ks-note { margin-top: 34px; font-size: 13px; letter-spacing: .01em; color: var(--ink2); }
  .ks-stage { margin-top: clamp(36px, 6vh, 64px); }
}
