/* ==========================================================================
   loveletter.studio: front-end styles (homepage + order form)
   All classes are prefixed "ll-" so theme styles never clash.
   Colors live in the tokens below; change them here to restyle the site.
   ========================================================================== */

:root {
	--ll-paper: #F8EAEA;
	--ll-paper-deep: #F0D6D8;
	--ll-field: #FFFBFB;
	--ll-ink: #3A0F1F;
	--ll-ink-soft: #6E4352;
	--ll-wax: #A8122C;
	--ll-wax-hover: #8C0E24;
	--ll-line: #E2BFC3;
	--ll-on-wax: #FFF5F5;
	--ll-band: #3A0F1F;
	--ll-on-band: #F8EAEA;
	--ll-serif: "Gloock", Georgia, "Times New Roman", serif;
	--ll-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ll-hand: "Homemade Apple", "Segoe Script", "Brush Script MT", cursive;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ll-paper: #230A14; --ll-paper-deep: #2E0F1B; --ll-field: #2A0D18; --ll-ink: #F6E4E6; --ll-ink-soft: #C9A6AF;
		--ll-wax: #D23A52; --ll-wax-hover: #E25469; --ll-line: #4A2030; --ll-band: #3D1424; --ll-on-band: #F6E4E6;
	}
}
:root[data-theme="dark"] {
	--ll-paper: #230A14; --ll-paper-deep: #2E0F1B; --ll-field: #2A0D18; --ll-ink: #F6E4E6; --ll-ink-soft: #C9A6AF;
	--ll-wax: #D23A52; --ll-wax-hover: #E25469; --ll-line: #4A2030; --ll-band: #3D1424; --ll-on-band: #F6E4E6;
}

/* ---------- Page base (plugin templates only) ---------- */
body.ll-page {
	margin: 0;
	background: var(--ll-paper);
	color: var(--ll-ink);
	font-family: var(--ll-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.ll-page *, body.ll-page *::before, body.ll-page *::after, .ll-order *, .ll-order *::before, .ll-order *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body.ll-page a { color: inherit; }
body.ll-page img { max-width: 100%; height: auto; }
body.ll-page :focus-visible, .ll-order :focus-visible { outline: 3px solid var(--ll-wax); outline-offset: 3px; border-radius: 4px; }
.ll-page [hidden], .ll-order [hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ll-skip { position: absolute; left: -9999px; top: 0; background: var(--ll-ink); color: var(--ll-paper) !important; padding: .6rem 1rem; z-index: 100; }
.ll-skip:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }
.ll-wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header / footer ---------- */
.ll-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ll-paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ll-line); }
.admin-bar .ll-head { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .ll-head { top: env(safe-area-inset-top, 0px); position: relative; } }
.ll-head .ll-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.ll-logo { font-family: var(--ll-serif); font-size: 1.45rem; text-decoration: none; letter-spacing: -.01em; }
.ll-logo span { color: var(--ll-wax); }
.ll-menu { display: flex; align-items: center; gap: 1.75rem; }
.ll-menu a:not(.ll-btn) { text-decoration: none; font-size: .95rem; color: var(--ll-ink-soft); }
.ll-menu a:not(.ll-btn):hover { color: var(--ll-ink); }
.ll-menu .ll-btn { min-height: 42px; padding: .5rem 1.15rem; font-size: .92rem; }
.ll-head-note { font-size: .92rem; color: var(--ll-ink-soft); }
.ll-foot { border-top: 1px solid var(--ll-line); padding-block: 2rem; font-size: .92rem; color: var(--ll-ink-soft); }
.ll-foot .ll-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.ll-foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ll-foot a { text-decoration: none; }
.ll-foot a:hover { color: var(--ll-ink); }

/* ---------- Buttons ---------- */
.ll-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; font-family: var(--ll-sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.ll-btn-wax { background: var(--ll-wax); color: var(--ll-on-wax) !important; }
.ll-btn-wax:hover { background: var(--ll-wax-hover); }
.ll-btn-wax[disabled] { opacity: .6; cursor: wait; }
.ll-btn-line { border-color: var(--ll-ink); color: var(--ll-ink) !important; background: transparent; }
.ll-btn-line:hover { background: var(--ll-ink); color: var(--ll-paper) !important; }
.ll-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ll-wax); text-decoration: underline; cursor: pointer; }

/* ---------- Headings ---------- */
.ll-page h2, .ll-title { font-family: var(--ll-serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; }
.ll-page h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ll-intro { color: var(--ll-ink-soft); max-width: 52ch; margin: 0 0 3rem; font-size: 1.1rem; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.ll-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.ll-hero .ll-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ll-hero h1 { font-family: var(--ll-serif); font-weight: 400; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 1.4rem; }
.ll-lede { font-size: 1.2rem; color: var(--ll-ink-soft); max-width: 36ch; margin: 0 0 2rem; }
.ll-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.ll-stage { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.ll-envelope { --env: #E8A9B4; position: relative; width: min(360px, 82vw); aspect-ratio: 360 / 236; margin-top: 7rem; background-color: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; border: 0; padding: 0; cursor: pointer; perspective: 900px; }
.ll-env-back { position: absolute; inset: 0; background: var(--env); border-radius: 6px; box-shadow: 0 24px 40px -18px rgba(58, 15, 31, .45); transition: background .45s; z-index: 1; }
.ll-letter { position: absolute; left: 6%; right: 6%; top: 6%; height: 88%; background: #FFFDFB; border-radius: 3px; padding: 7% 8%; text-align: left; color: #3A0F1F; transition: transform .7s cubic-bezier(.3, .7, .2, 1) .25s; box-shadow: 0 2px 6px rgba(58, 15, 31, .12); z-index: 2; }
.ll-letter-text { display: block; font-family: var(--ll-hand); font-size: clamp(.68rem, 2.4vw, .86rem); line-height: 2.1; }
.ll-env-pocket { position: absolute; inset: 0; background: color-mix(in srgb, var(--env) 88%, #3A0F1F); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); border-radius: 6px; transition: background .45s; z-index: 3; }
.ll-env-flap { position: absolute; inset: 0 0 auto 0; height: 60%; background: color-mix(in srgb, var(--env) 80%, #3A0F1F); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; transition: transform .5s ease, background .45s, z-index 0s .25s; z-index: 4; }
.ll-seal { position: absolute; left: 50%; top: 54%; display: grid; place-items: center; font-family: var(--ll-serif); font-size: 1.2rem; z-index: 5; }
.ll-envelope.ll-open .ll-env-flap { transform: rotateX(180deg); z-index: 1; }
.ll-envelope.ll-open .ll-seal { opacity: 0; }
.ll-envelope.ll-open .ll-letter { transform: translateY(-58%); }
.ll-stage .ll-hint { font-size: .9rem; color: var(--ll-ink-soft); margin: 0; }

.ll-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.ll-sw-label { width: 100%; text-align: center; font-size: .95rem; color: var(--ll-ink-soft); margin: 0 0 .2rem; }
.ll-swatch { position: relative; }
.ll-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ll-swatch span:not(.screen-reader-text) { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c) center / cover no-repeat; border: 2px solid var(--ll-paper); box-shadow: 0 0 0 1px var(--ll-line); transition: box-shadow .2s; }
.ll-swatch input:checked + span { box-shadow: 0 0 0 3px var(--ll-ink); }
.ll-swatch input:focus-visible + span { outline: 3px solid var(--ll-wax); outline-offset: 3px; }
.ll-env-name { min-height: 1.5em; font-weight: 600; margin: -.4rem 0 0; }

.ll-how { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--ll-line); }
.ll-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.ll-route::before { content: ""; position: absolute; top: 27px; left: 28px; right: 12%; border-top: 2px dashed var(--ll-line); }
.ll-route li { position: relative; }
.ll-stamp { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ll-paper); border: 2px solid var(--ll-ink); border-radius: 50%; font-family: var(--ll-serif); font-size: 1.4rem; margin-bottom: 1.25rem; position: relative; }
.ll-route h3 { font-family: var(--ll-serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 .4rem; }
.ll-route p { margin: 0; color: var(--ll-ink-soft); font-size: 1rem; max-width: 28ch; }

.ll-arrives { background: var(--ll-paper-deep); padding-block: clamp(4rem, 8vw, 6.5rem); }
.ll-arrives .ll-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ll-list { list-style: none; padding: 0; margin: 0; }
.ll-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--ll-line); }
.ll-list li:first-child { border-top: 1px solid var(--ll-line); }
.ll-list strong { display: block; font-family: var(--ll-serif); font-weight: 400; font-size: 1.3rem; }
.ll-list span { color: var(--ll-ink-soft); }
.ll-polaroids { position: relative; height: 340px; margin: 0; }
.ll-polaroid { position: absolute; width: 46%; aspect-ratio: 4 / 5; background: #FFFDFB; padding: 4% 4% 14%; box-shadow: 0 14px 28px -12px rgba(58, 15, 31, .4); }
.ll-polaroid i { display: block; width: 100%; height: 100%; }
.ll-polaroid:nth-child(1) { left: 6%; top: 8%; transform: rotate(-7deg); }
.ll-polaroid:nth-child(1) i { background: linear-gradient(160deg, #F2B6A0, #C7607A); }
.ll-polaroid:nth-child(2) { left: 30%; top: 0; transform: rotate(3deg); z-index: 2; }
.ll-polaroid:nth-child(2) i { background: linear-gradient(200deg, #9DB0C9, #3D4E78); }
.ll-polaroid:nth-child(3) { left: 52%; top: 12%; transform: rotate(9deg); }
.ll-polaroid:nth-child(3) i { background: linear-gradient(170deg, #E9D6A6, #A57F49); }

.ll-updates { background: var(--ll-band); color: var(--ll-on-band); padding-block: clamp(4rem, 8vw, 6rem); }
.ll-updates .ll-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ll-updates p { color: color-mix(in srgb, var(--ll-on-band) 78%, transparent); max-width: 46ch; }
.ll-timeline { list-style: none; margin: 0; padding: 0; }
.ll-timeline li { position: relative; padding: 0 0 1.4rem 2rem; }
.ll-timeline li::before { content: ""; position: absolute; left: 0; top: .4rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ll-on-band); }
.ll-timeline li.ll-done::before { background: var(--ll-on-band); }
.ll-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 1.55rem; bottom: .2rem; border-left: 2px solid color-mix(in srgb, var(--ll-on-band) 30%, transparent); }
.ll-timeline strong { display: block; font-weight: 600; }
.ll-timeline span { font-size: .95rem; color: color-mix(in srgb, var(--ll-on-band) 70%, transparent); }

.ll-faq { padding-block: clamp(4rem, 8vw, 6.5rem); }
.ll-faq .ll-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); }
.ll-faq details { border-bottom: 1px solid var(--ll-line); }
.ll-faq details:first-of-type { border-top: 1px solid var(--ll-line); }
.ll-faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.ll-faq summary::-webkit-details-marker { display: none; }
.ll-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--ll-serif); font-size: 1.6rem; color: var(--ll-wax); transition: transform .2s; }
.ll-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ll-faq details p { margin: 0 0 1.3rem; color: var(--ll-ink-soft); max-width: 60ch; }

.ll-closing { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; border-top: 1px solid var(--ll-line); }
.ll-closing h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.ll-closing p { color: var(--ll-ink-soft); margin: 0 auto 2rem; max-width: 40ch; }

/* ==========================================================================
   Order form
   ========================================================================== */
.ll-order-page { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.ll-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: .5rem; }
.ll-order-page .ll-lede { margin-bottom: 2rem; max-width: 50ch; font-size: 1.1rem; }
.ll-order { color: var(--ll-ink); font-family: var(--ll-sans); }
.ll-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ll-alert { background: color-mix(in srgb, var(--ll-wax) 12%, var(--ll-field)); border-left: 4px solid var(--ll-wax); padding: .9rem 1.1rem; border-radius: 8px; margin: 0 0 1.5rem; font-weight: 600; }

.ll-progress { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(var(--ll-steps, 8), minmax(0, 1fr)); gap: .35rem; counter-reset: llstep; }
.ll-progress li { counter-increment: llstep; font-size: .8rem; line-height: 1.3; color: var(--ll-ink-soft); border-top: 3px solid var(--ll-line); padding-top: .5rem; }
.ll-progress li::before { content: counter(llstep) ". "; }
.ll-progress li.ll-is-done { border-color: var(--ll-ink-soft); }
.ll-progress li.ll-is-current { border-color: var(--ll-wax); color: var(--ll-ink); font-weight: 600; }

.ll-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ll-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ll-step legend { font-family: var(--ll-serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; padding: 0; margin-bottom: .4rem; }
.ll-help { color: var(--ll-ink-soft); margin: 0 0 1.5rem; max-width: 54ch; }
.ll-amount { background: var(--ll-paper-deep); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1.5rem; }
.ll-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.ll-field { grid-column: 1 / -1; margin-bottom: 1.35rem; min-width: 0; }
.ll-field.ll-half { grid-column: span 1; }
.ll-field > label, .ll-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.ll-opt { font-weight: 400; color: var(--ll-ink-soft); }
.ll-hint { display: block; font-size: .9rem; color: var(--ll-ink-soft); margin-top: .35rem; }
.ll-order input[type="text"], .ll-order input[type="email"], .ll-order input[type="tel"], .ll-order textarea, .ll-order select {
	width: 100%; font: inherit; color: var(--ll-ink); background: var(--ll-field);
	border: 1.5px solid var(--ll-line); border-radius: 10px; padding: .75rem .9rem; min-height: 48px; margin: 0; box-shadow: none;
}
.ll-order input:focus, .ll-order textarea:focus, .ll-order select:focus { outline: none; border-color: var(--ll-wax); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ll-wax) 22%, transparent); }
.ll-field.ll-has-error input, .ll-field.ll-has-error textarea, .ll-field.ll-has-error select, .ll-field.ll-has-error .ll-drop { border-color: var(--ll-wax); }
.ll-err { display: block; color: var(--ll-wax); font-size: .9rem; font-weight: 600; margin-top: .35rem; }
.ll-err:empty { display: none; }
.ll-order textarea { min-height: 300px; resize: vertical; line-height: 1.7; }
.ll-counter { text-align: right; font-size: .9rem; color: var(--ll-ink-soft); margin-top: .35rem; }

.ll-drop { position: relative; display: grid; place-items: center; text-align: center; gap: .3rem; border: 2px dashed var(--ll-line); border-radius: 14px; padding: 2rem 1rem; background: var(--ll-field); cursor: pointer; transition: border-color .2s, background .2s; }
.ll-drop-sm { padding: 1.4rem 1rem; }
.ll-drop:hover, .ll-drop.ll-is-over { border-color: var(--ll-wax); background: color-mix(in srgb, var(--ll-wax) 6%, var(--ll-field)); }
.ll-drop span { font-size: .9rem; color: var(--ll-ink-soft); }
.ll-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ll-thumbs { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .75rem; }
.ll-thumbs:empty { display: none; }
.ll-thumbs li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ll-paper-deep); }
.ll-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ll-thumbs button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(58, 15, 31, .85); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ll-count { font-size: .9rem; color: var(--ll-ink-soft); margin: .6rem 0 0; }
.ll-receipt { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: .75rem; border: 1px solid var(--ll-line); border-radius: 12px; background: var(--ll-field); }
.ll-receipt img { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; }
.ll-receipt div { display: grid; gap: .3rem; font-size: .95rem; overflow-wrap: anywhere; }

.ll-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ll-choice { position: relative; display: block; }
.ll-choice input, .ll-pay input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ll-card { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .5rem; border: 1.5px solid var(--ll-line); border-radius: 12px; background: var(--ll-field); text-align: center; transition: border-color .2s, box-shadow .2s; height: 100%; }
.ll-mini { width: 72px; aspect-ratio: 3 / 2; border-radius: 4px; background: var(--c); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ll-mini::after { content: ""; position: absolute; inset: 0 0 auto; height: 60%; background: color-mix(in srgb, var(--c) 82%, #3A0F1F); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ll-mini-img { width: 100%; max-width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.ll-name { font-weight: 600; font-size: .95rem; }
.ll-choice input:checked + .ll-card, .ll-pay input:checked + .ll-pay-card { border-color: var(--ll-ink); box-shadow: 0 0 0 2px var(--ll-ink); }
.ll-choice input:focus-visible + .ll-card, .ll-pay input:focus-visible + .ll-pay-card { outline: 3px solid var(--ll-wax); outline-offset: 3px; }
.ll-choices-text { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.ll-pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; margin-bottom: .25rem; }
.ll-pay { position: relative; display: block; }
.ll-pay-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1.5px solid var(--ll-line); border-radius: 12px; background: var(--ll-field); height: 100%; transition: border-color .2s, box-shadow .2s; }
.ll-pay-head { display: flex; justify-content: space-between; align-items: center; }
.ll-pay-tick { opacity: 0; color: var(--ll-wax); font-weight: 700; }
.ll-pay input:checked + .ll-pay-card .ll-pay-tick { opacity: 1; }
.ll-qr { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; margin: .3rem auto; padding: 6px; }
.ll-pay-line { font-size: .95rem; color: var(--ll-ink-soft); }
.ll-pay-num { font-weight: 600; color: var(--ll-ink); letter-spacing: .02em; }

.ll-review { margin: 0 0 1.5rem; border-top: 1px solid var(--ll-line); }
.ll-review .ll-row { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ll-line); align-items: start; }
.ll-review dt { font-weight: 600; margin: 0; }
.ll-review dd { margin: 0; color: var(--ll-ink-soft); overflow-wrap: anywhere; white-space: pre-line; }
.ll-consent { display: flex; gap: .75rem; align-items: flex-start; }
.ll-consent input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--ll-wax); flex: none; }
.ll-consent label { font-weight: 400; }
.ll-links a { color: var(--ll-wax); }

.ll-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ll-line); }
.ll-nav #ll-back[hidden] ~ .ll-btn { margin-left: auto; }

/* Preview panel */
.ll-preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--ll-paper-deep); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.ll-preview h2 { font-family: var(--ll-serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 1.25rem; }
.ll-env-front { --env: #E8A9B4; position: relative; width: 100%; aspect-ratio: 360 / 236; background: var(--env) center / cover no-repeat; border-radius: 6px; box-shadow: 0 22px 36px -18px rgba(58, 15, 31, .5); transition: background-color .45s; color: #3A0F1F; overflow: hidden; }
.ll-env-front.ll-dark { color: #F6E4E6; }
.ll-env-front.ll-has-img .ll-address { background: rgba(255, 253, 251, .88); color: #3A0F1F; border-radius: 6px; padding: .4rem .6rem; }
.ll-stamp-box { position: absolute; top: 8%; right: 6%; width: 15%; aspect-ratio: 4 / 5; border: 2px dashed currentColor; opacity: .55; border-radius: 3px; display: grid; place-items: center; font-family: var(--ll-serif); font-size: clamp(.9rem, 2.4vw, 1.3rem); margin: 0; background: transparent; }
.ll-address { position: absolute; left: 28%; right: 7%; top: 42%; font-family: var(--ll-hand); font-size: clamp(.6rem, 1.5vw, .8rem); line-height: 1.9; overflow: hidden; }
.ll-to { opacity: .7; }
.ll-empty { opacity: .45; }
.ll-env-label { margin: 1rem 0 1.25rem; font-weight: 600; text-align: center; }
.ll-summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ll-line); }
.ll-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--ll-line); font-size: .95rem; }
.ll-summary li span:first-child { color: var(--ll-ink-soft); }
.ll-summary li span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ll-privacy-note { font-size: .88rem; color: var(--ll-ink-soft); margin: 1rem 0 0; }

/* Success */
.ll-success { max-width: 560px; margin: 1rem auto 0; text-align: center; }
.ll-sealed { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--ll-wax); color: var(--ll-on-wax); display: grid; place-items: center; font-family: var(--ll-serif); font-size: 1.8rem; box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--ll-wax) 70%, #000); }
.ll-success h2 { font-family: var(--ll-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .75rem; }
.ll-order-no { font-family: var(--ll-serif); font-size: 1.6rem; margin: .25rem 0 1.25rem; }
.ll-success p { color: var(--ll-ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.ll-hero .ll-wrap, .ll-arrives .ll-wrap, .ll-updates .ll-wrap, .ll-faq .ll-wrap, .ll-layout { grid-template-columns: 1fr; }
	.ll-route { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
	.ll-route::before { display: none; }
	.ll-menu a:not(.ll-btn) { display: none; }
	.ll-polaroids { height: 300px; max-width: 460px; }
	.ll-preview { position: static; order: -1; }
	.ll-progress li { font-size: 0; }
	.ll-progress li::before { font-size: .8rem; }
	.ll-progress li.ll-is-current { font-size: .8rem; }
}
@media (max-width: 560px) {
	.ll-route { grid-template-columns: 1fr; }
	.ll-hero .ll-actions .ll-btn { flex: 1 1 100%; }
	.ll-fields { grid-template-columns: 1fr; }
	.ll-field.ll-half { grid-column: 1 / -1; }
	.ll-choices { grid-template-columns: repeat(2, 1fr); }
	.ll-review .ll-row { grid-template-columns: 1fr auto; }
	.ll-review dd { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.ll-page *, .ll-page *::before, .ll-page *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Pricing ---------- */
.ll-price-note { display: inline-block; margin: 0 0 .6rem; padding: .3rem .75rem; border-radius: 999px; background: var(--ll-paper-deep); font-size: .9rem; font-weight: 600; }
.ll-fee-line { margin: .3rem 0 0; font-weight: 600; color: var(--ll-wax); font-size: .95rem; }
.ll-amount { padding: .9rem 1.1rem; }
.ll-amount-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.ll-amount-total { border-top: 1px solid var(--ll-line); margin-top: .35rem; padding-top: .55rem; font-size: 1.05rem; }
.ll-review .ll-row-total dt, .ll-review .ll-row-total dd { color: var(--ll-ink); font-weight: 700; }

/* ---------- v1.1: photos, add-ons, notes, totals ---------- */
.ll-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ll-file:focus-visible + .ll-drop { outline: 3px solid var(--ll-wax); outline-offset: 3px; }
.ll-add-photo { margin-top: .9rem; min-height: 44px; font-size: .95rem; }
.ll-thumb-tag { position: absolute; left: 6px; bottom: 6px; padding: .1rem .5rem; border-radius: 999px; background: rgba(255, 253, 251, .92); color: #3A0F1F; font-size: .75rem; font-weight: 600; }
.ll-note { margin: .6rem 0 0; padding: .7rem .9rem; border-left: 4px solid var(--ll-wax); border-radius: 8px; background: color-mix(in srgb, var(--ll-wax) 9%, var(--ll-field)); font-size: .92rem; font-weight: 600; }
.ll-counter.ll-over { color: var(--ll-wax); font-weight: 700; }
.ll-addons { display: grid; gap: .75rem; }
.ll-addon { position: relative; display: block; }
.ll-addon input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ll-addon-card { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1.5px solid var(--ll-line); border-radius: 12px; background: var(--ll-field); transition: border-color .2s, box-shadow .2s; }
.ll-addon-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.ll-addon-body { display: grid; gap: .2rem; flex: 1; min-width: 0; }
.ll-addon-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ll-addon-price { font-weight: 700; color: var(--ll-wax); white-space: nowrap; }
.ll-addon-desc { font-size: .92rem; color: var(--ll-ink-soft); }
.ll-addon-tick { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 2px solid var(--ll-line); border-radius: 6px; color: transparent; font-weight: 700; }
.ll-addon input:checked + .ll-addon-card { border-color: var(--ll-ink); box-shadow: 0 0 0 2px var(--ll-ink); }
.ll-addon input:checked + .ll-addon-card .ll-addon-tick { background: var(--ll-wax); border-color: var(--ll-wax); color: var(--ll-on-wax); }
.ll-addon input:focus-visible + .ll-addon-card { outline: 3px solid var(--ll-wax); outline-offset: 3px; }
.ll-summary .ll-sum-total span { color: var(--ll-ink) !important; font-weight: 700; font-size: 1.05rem; }
.ll-from-price { margin: 1rem 0 0; font-size: .95rem; color: var(--ll-ink-soft); }
.ll-from-price strong { color: var(--ll-ink); }

/* ==========================================================================
   v1.2: wax seals, flipping preview, inventory
   ========================================================================== */
/* Registering --seal lets the color itself animate smoothly */
@property --seal { syntax: "<color>"; inherits: true; initial-value: #A8122C; }

.ll-wax {
	--seal: #A8122C;
	position: relative; display: grid; place-items: center; flex: none;
	width: 46px; aspect-ratio: 1;
	border-radius: 47% 53% 45% 55% / 54% 46% 54% 46%;
	background:
		radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, 0) 26%),
		radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, 0) 40%),
		radial-gradient(circle at 50% 52%, var(--seal) 0 60%, color-mix(in srgb, var(--seal) 70%, #000) 100%);
	box-shadow: 0 3px 6px rgba(0, 0, 0, .28), inset 0 -3px 5px color-mix(in srgb, var(--seal) 55%, #000), inset 0 2px 3px rgba(255, 255, 255, .35);
	color: color-mix(in srgb, var(--seal) 52%, #000);
	font-family: var(--ll-serif); font-size: .95rem; line-height: 1;
	transition: --seal .6s ease;
}
.ll-wax::after { content: ""; position: absolute; inset: 19%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--seal) 62%, #000); box-shadow: 0 1px 0 rgba(255, 255, 255, .35), inset 0 1px 2px rgba(0, 0, 0, .25); opacity: .7; }
.ll-wax > span { position: relative; z-index: 1; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.ll-wax-lg { width: 22%; font-size: clamp(1rem, 2.6vw, 1.5rem); }
.ll-wax.ll-press { animation: ll-press .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes ll-press {
	0% { transform: scale(1.35) rotate(-10deg); opacity: .4; }
	55% { transform: scale(.92) rotate(3deg); opacity: 1; }
	80% { transform: scale(1.04) rotate(-1deg); }
	100% { transform: scale(1) rotate(0); }
}
.ll-seal-img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; }
.ll-choices-seal { grid-template-columns: repeat(4, 1fr); margin-top: .25rem; }
.ll-choices + .ll-err, .ll-choices-seal { margin-bottom: .2rem; }
.ll-field[data-type="wax_seal"] { margin-top: .6rem; }
.ll-choices-seal .ll-choice input:checked + .ll-card .ll-wax { animation: ll-press .6s cubic-bezier(.2, .8, .2, 1); }

/* Homepage demo seal uses the same wax look */
.ll-seal { width: 48px; height: 48px; margin-left: -24px; border-radius: 47% 53% 45% 55% / 54% 46% 54% 46%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, 0) 26%), radial-gradient(circle at 50% 52%, var(--seal, #A8122C) 0 60%, color-mix(in srgb, var(--seal, #A8122C) 70%, #000) 100%); box-shadow: 0 3px 6px rgba(0, 0, 0, .3), inset 0 -3px 5px color-mix(in srgb, var(--seal, #A8122C) 55%, #000); color: color-mix(in srgb, var(--seal, #A8122C) 52%, #000); transition: --seal .6s ease, opacity .25s; }
.ll-seal.ll-press { animation: ll-press .6s cubic-bezier(.2, .8, .2, 1); }
.ll-swatches-seal .ll-swatch span:not(.screen-reader-text) { border-radius: 47% 53% 45% 55% / 54% 46% 54% 46%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 30%), var(--c); }

/* Flipping preview: front = address, back = flap + wax seal */
.ll-env-flip { --env: #E8A9B4; position: relative; width: 100%; aspect-ratio: 360 / 236; perspective: 1100px; }
.ll-env-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.ll-env-flip.ll-show-back .ll-env-inner { transform: rotateY(180deg); }
.ll-env-face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--env-img, linear-gradient(transparent, transparent)) center / cover no-repeat, var(--env); box-shadow: 0 22px 36px -18px rgba(58, 15, 31, .5); transition: background-color .45s; color: #3A0F1F; }
.ll-env-inner .ll-env-front { aspect-ratio: auto; }
.ll-env-back { transform: rotateY(180deg); display: grid; place-items: center; }
.ll-back-flap { position: absolute; inset: 0 0 auto 0; height: 58%; background: color-mix(in srgb, var(--env) 84%, #3A0F1F); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ll-env-back::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(58, 15, 31, .12) 50%, transparent calc(50% + 1px)) left bottom / 50% 60% no-repeat, linear-gradient(to top left, transparent calc(50% - 1px), rgba(58, 15, 31, .12) 50%, transparent calc(50% + 1px)) right bottom / 50% 60% no-repeat; }
.ll-has-img .ll-back-flap, .ll-has-img .ll-env-back::before { display: none; }
.ll-env-back .ll-wax-lg { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.ll-env-back .ll-wax-lg.ll-press { animation: ll-press-center .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes ll-press-center {
	0% { transform: translate(-50%, -50%) scale(1.35) rotate(-10deg); opacity: .4; }
	55% { transform: translate(-50%, -50%) scale(.92) rotate(3deg); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.ll-env-flip.ll-dark .ll-env-front { color: #F6E4E6; }
.ll-env-flip.ll-has-img .ll-address { background: rgba(255, 253, 251, .88); color: #3A0F1F; border-radius: 6px; padding: .4rem .6rem; }
.ll-env-label { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .75rem; align-items: baseline; }
.ll-flip-btn { font-size: .9rem; }

/* Inventory states */
.ll-stock { display: block; font-size: .78rem; font-weight: 600; color: var(--ll-wax); }
.ll-stock-out { color: var(--ll-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.ll-soldout { cursor: not-allowed; }
.ll-soldout input { cursor: not-allowed; }
.ll-soldout .ll-card, .ll-soldout .ll-addon-card { opacity: .45; filter: grayscale(1); background: var(--ll-paper-deep); }
.ll-soldout .ll-name, .ll-soldout .ll-addon-head strong { text-decoration: line-through; }
@media (max-width: 560px) { .ll-choices-seal { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ll-wax.ll-press, .ll-seal.ll-press, .ll-env-back .ll-wax-lg.ll-press, .ll-choices-seal .ll-choice input:checked + .ll-card .ll-wax { animation: none; } .ll-env-inner { transition: none; } }

/* ==========================================================================
   v1.3: real envelope + seal photos, copy button, Extras
   Uploaded photos (transparent PNG) replace the drawn envelope/seal in the big
   displays only; choice buttons and swatches stay drawn.
   ========================================================================== */

/* Homepage demo with an envelope photo: letter rises from behind the PNG */
.ll-env-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 3; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(58, 15, 31, .35)); }
.ll-envelope.ll-has-img .ll-env-back, .ll-envelope.ll-has-img .ll-env-pocket, .ll-envelope.ll-has-img .ll-env-flap { display: none; }
.ll-envelope.ll-has-img .ll-letter { left: 13%; right: 13%; top: 14%; height: 72%; }
.ll-envelope.ll-has-img.ll-open .ll-letter { transform: translateY(-64%); }
.ll-envelope.ll-has-img .ll-seal { top: calc(55% - 24px); }
.ll-envelope.ll-has-img.ll-open .ll-seal { opacity: 1; }

/* Seal photo (homepage) */
.ll-seal-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.ll-seal.ll-seal-has-photo { width: 18%; height: auto; aspect-ratio: 1; margin-left: -9%; top: 41.5%; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.ll-seal.ll-seal-has-photo .ll-seal-letter { display: none; }

/* Order preview with photos */
.ll-env-flip.ll-has-img .ll-env-face { background: var(--env-img) center / contain no-repeat; box-shadow: none; overflow: visible; filter: drop-shadow(0 16px 18px rgba(58, 15, 31, .35)); }
.ll-env-flip.ll-has-img .ll-env-back .ll-wax-lg { top: 55%; }
.ll-wax-img { display: block; width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; }
.ll-wax.ll-wax-photo { background: none; box-shadow: none; border-radius: 0; width: 24%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.ll-wax.ll-wax-photo::after, .ll-wax.ll-wax-photo > span { display: none; }

/* Copy button beside account numbers */
.ll-pay-num { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ll-copy { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .3rem .7rem; border: 1.5px solid var(--ll-line); border-radius: 999px; background: var(--ll-paper); color: var(--ll-ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.ll-copy:hover { border-color: var(--ll-wax); }
.ll-copy.ll-copied { background: var(--ll-wax); border-color: var(--ll-wax); color: var(--ll-on-wax); }

/* Extras heading inside the Add-ons step */
.ll-extras-label { margin-top: .6rem; padding-top: 1.4rem; border-top: 1px solid var(--ll-line); font-family: var(--ll-serif); font-weight: 400; font-size: 1.35rem; }
