/* Fonts used in the client-approved Figma artwork; OFL notices are in assets/fonts. */
@font-face { font-family: Mitr; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/mitr-300-thai.woff2") format("woff2"); unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
@font-face { font-family: Mitr; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/mitr-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Mitr; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mitr-400-thai.woff2") format("woff2"); unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
@font-face { font-family: Mitr; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mitr-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Mitr; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/mitr-600-thai.woff2") format("woff2"); unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
@font-face { font-family: Mitr; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/mitr-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fahkwang; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fahkwang-500-latin.woff2") format("woff2"); }
@font-face { font-family: Fahkwang; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fahkwang-600-latin.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-500-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  font-family: Mitr, "Segoe UI", Tahoma, sans-serif;
  color: #514638;
  background: #e8e2d8;
  line-height: 1.55;
  --paper: #f5f0e5;
  --cream: #fff9eb;
  --ink: #514638;
  --muted: #857761;
  --brown: #91795a;
  --brown-dark: #705b42;
  --campaign-background: url("/assets/dream-background.webp");
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { display: none; }
main { min-height: 100vh; }
.experience {
  position: relative;
  width: min(100%, 402px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 68px 28px 38px;
  background: var(--paper);
  box-shadow: 0 12px 42px #332c2330;
  overflow: hidden;
}
#sender-page { background: linear-gradient(180deg, #f8f2e3a8, #f8f2e3b8), var(--campaign-background) center top / cover no-repeat; }
.campaign-mark { display: grid; justify-items: center; text-align: center; }
.brand-logo { display: block; width: 117px; max-width: 100%; height: auto; }
.campaign-wordmark { display: block; width: 232px; max-width: 100%; height: auto; margin-top: 22px; }
.recipient-campaign-mark { display: block; width: 242px; max-width: 100%; height: auto; margin-top: 50px; }
.hero { text-align: center; margin: 60px 0 62px; }
.eyebrow { margin: 0; color: var(--brown); font: 600 16px/1.16 Fahkwang, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 5px 0 18px; color: #806b50; font-size: 19px; font-weight: 400; line-height: 1.2; }
.hero p:last-child { max-width: 330px; margin: 30px auto 0; color: #685d4e; font-size: 13px; line-height: 1.7; }
.hero p:last-child strong { display: inline-block; margin-bottom: 8px; font-weight: 600; }
.experience:has(#sender-message-step:not([hidden])) .hero p:last-child,
.experience:has(#share-area:not([hidden])) .hero p:last-child { display: none; }
.sleep-icon { display: block; width: 100px; height: 75px; margin: 12px auto 0; }
.experience-panel { width: 100%; }
form { display: grid; gap: 19px; }
.form-step { display: grid; gap: 19px; }
.experience label:not(.checkbox) { display: block; font-size: 15px; font-weight: 400; }
label > input:not([type=checkbox]), label > textarea, label > select { display: block; margin-top: 7px; }
.required { color: #8b674d; }
input, textarea, select { width: 100%; border: 1px solid #d8d0bf; border-radius: 24px; background: var(--cream); color: var(--ink); padding: 15px 17px; outline-color: var(--brown-dark); font-size: 16px; }
textarea { border-radius: 25px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a69a86; opacity: 1; font-size: 14px; font-weight: 300; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #705b42; outline-offset: 3px; }
.primary, .secondary, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 55px; border-radius: 28px; padding: 12px 20px; text-align: center; text-decoration: none; font-weight: 600; }
.primary { border: 1px solid var(--brown); color: white; background: var(--brown); }
.experience .primary { font-size: 16px; font-weight: 400; }
.primary:hover { background: var(--brown-dark); }
.secondary, .button-link { border: 1px solid #aa9678; color: var(--brown-dark); background: #fffcf3b3; }
.secondary:hover { background: #fff9eb; }
.text-button { border: 0; background: transparent; color: var(--brown-dark); text-decoration: underline; padding: 9px; }
.form-step > .primary { margin-top: 6px; }
.form-step h2 { margin: 0 0 16px; color: var(--brown-dark); text-align: center; font-size: 17px; }
#sender-message-step { padding-top: 3px; }
#sender-message { min-height: 200px; background: #fff9eb; }
.status { min-height: 1.5em; margin: 16px 0 0; color: #9b483b; font-size: 14px; text-align: center; }
.status.ok { color: #36593f; }
.fine-print { color: #827560; font-size: 12px; line-height: 1.6; }
.share-area { display: grid; gap: 13px; justify-items: center; margin-top: 35px; padding: 28px 16px; border-radius: 28px; background: #fff9ebbf; text-align: center; }
.share-area:not([hidden]), .recipient-intro:not([hidden]) .message-card, .claim-complete:not([hidden]) .complete-card { animation: card-reveal 1.1s ease-out both; }
@keyframes card-reveal { from { opacity: 0; } to { opacity: 1; } }
.share-area h2, .share-area p { margin: 0; }
.share-area h2 { font-size: 21px; }
.share-area > p:not(.eyebrow):not(.fine-print) { font-size: 14px; }
.success-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 4px; border: 1px solid #af9a7d; border-radius: 50%; color: var(--brown); font-size: 24px; }

.recipient-experience { padding: 0; }
.recipient-intro { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 68px 28px 8px; color: #fff9e9; text-align: center; background: linear-gradient(180deg, #515852b8 0%, #69706b9c 56%, #e9e3d489 100%), var(--campaign-background) center top / cover no-repeat; }
.recipient-intro h1 { margin: 60px 0 12px; font: 500 24px/1.2 Fahkwang, sans-serif; letter-spacing: .02em; }
.message-card { display: grid; align-content: space-between; width: 100%; min-height: 200px; margin: 56px 0 32px; padding: 18px 20px 20px; border-radius: 28px; color: #675b4d; background: #fff9ebd8; }
.message-card p { margin: 0; font-size: 14px; }
.message-card blockquote { margin: 10px 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 18px; font-weight: 300; line-height: 1.9; }
.recipient-intro > .eyebrow { margin: auto 0 18px; color: #614e37; font: 500 12px/1.2 Montserrat, sans-serif; letter-spacing: .14em; }
.recipient-intro > .primary { flex-shrink: 0; }
.claim-area { padding: 68px 28px 36px; background: linear-gradient(180deg, #535b58c2 0, #777c78ad 180px, #faf2e2e8 380px, #faf2e2e8 100%), var(--campaign-background) center top / cover no-repeat; }
.claim-area h2 { margin: 42px 0 24px; font-size: 17px; text-align: center; }
.claim-area form { gap: 18px; }
.privacy-summary { padding: 17px 18px; border: 1px solid #d8d0bf; border-radius: 18px; background: #fff9ebd9; font-size: 14px; line-height: 1.7; }
.privacy-summary h3 { margin: 0 0 9px; color: var(--brown-dark); font-size: 14px; }
.privacy-summary h3 span { display: block; color: #9b483b; font-size: 12px; font-weight: 500; }
.privacy-summary p { margin: 0 0 8px; }
.privacy-summary p:last-child { margin-bottom: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brown); }
.claim-complete { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 68px 28px 10px; text-align: center; background: linear-gradient(180deg, #535b58bd 0%, #69706b9e 50%, #efe7d895 100%), var(--campaign-background) center top / cover no-repeat; }
.complete-card { margin-top: 60px; padding: 24px 22px 18px; border-radius: 28px; color: var(--ink); background: #fff9ebd9; }
.claim-complete h2 { margin: 0; font-size: 16px; }
.claim-complete p { margin: 12px 0 22px; font-size: 13px; }
.claim-complete > .primary { margin-top: 38px; }
.gift-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #d8d0bf; text-align: left; font: 500 18px Fahkwang, sans-serif; }
.gift-item small { display: block; margin-top: 2px; font: 11px Mitr, "Segoe UI", Tahoma, sans-serif; }
.gift-item > img { flex: none; width: 40px; height: 48px; }
.recipient-save { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 68px 28px 24px; text-align: center; color: #fff9e9; background: linear-gradient(180deg, #515852b8 0%, #69706b9c 56%, #e9e3d489 100%), var(--campaign-background) center top / cover no-repeat; }
.recipient-save h1 { margin: 60px 0 12px; font: 500 24px/1.2 Fahkwang, sans-serif; letter-spacing: .02em; }
.recipient-save .message-card { min-height: 200px; margin: 56px 0 0; }
.save-wordmark { display: block; width: 232px; max-width: 100%; height: auto; margin: 90px auto 0; }
.save-tagline { margin: 0 0 48px; color: var(--brown-dark); font-size: 14px; }
.download-button { display: grid; place-items: center; width: 62px; height: 48px; margin-top: auto; border: 0; border-radius: 24px; background: #fff9eb85; color: #705b42; }
.download-button:hover { background: #fff9ebcf; }
.recipient-experience { background: linear-gradient(142deg, #b6ae9f 0%, #c9c5ba 42%, #f4ebd9 100%); }
.recipient-experience > .status { padding: 0 22px 25px; }

.admin { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; }
.admin h1 { margin: 0 0 30px; font: 34px Georgia, serif; }
.admin h2 { margin: 0; font-size: 21px; }
.admin .card { max-width: 430px; padding: 26px; border-radius: 22px; background: #fffaf0; }
.admin-section-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 40px 0 10px; }
.admin-section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats-grid > div { display: grid; gap: 12px; padding: 20px; border: 1px solid #d8d0bf; border-radius: 18px; background: #fffaf0; }
.stats-grid span { color: var(--muted); font-size: 13px; }
.stats-grid strong { font: 32px Georgia, serif; }
.toolbar, .pager { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 18px 0; }
.toolbar label { min-width: 190px; }
.toolbar input, .toolbar select { border-radius: 13px; }
.toolbar .secondary, .toolbar .button-link, .pager .secondary { width: auto; min-height: 48px; border-radius: 13px; }
.pager { justify-content: center; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid #d8d0bf; border-radius: 14px; background: #fffaf0; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 12px; border-bottom: 1px solid #e2dacd; text-align: left; vertical-align: top; }
th { background: #eee5d5; font-size: 13px; }
td { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
td select { min-width: 125px; border-radius: 10px; padding: 6px 8px; }
footer { display: none; }

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .experience { box-shadow: none; padding: 60px 25px 32px; }
  .recipient-experience { padding: 0; }
  .hero { margin-top: 47px; }
  .claim-area { padding: 68px 25px 32px; }
  .admin { padding: 28px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
