/* Cake Clerb website: the v4 tokens and type from the app (Geist 16/15/13, Rusty Fantasy for titles). */
@font-face { font-family: 'Rusty Fantasy'; src: url('fonts/RustyFantasy-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #4A2A22; --cream: #FFF8F0; --paper: #FFFDF8; --cocoa: #8C6B60; --blush: #FCE1EC; --crumb: #F3E4DA;
  --butter: #F8D872; --pink: #F59AC0; --sky: #AED8F5; --lilac: #CDB8F3; --hover: #E2493B;
  --display: 'Rusty Fantasy', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Geist', system-ui, sans-serif; font-size: 17px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--ink); }
a:hover { color: var(--hover); }
img { display: block; max-width: 100%; }
summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.band { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.paper { background: var(--paper); }
.mix-lilac { background: color-mix(in srgb, var(--lilac) 42%, var(--paper)); }
.stack { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(42px, 6vw, 64px); line-height: 1; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--cocoa); }
.tag { align-self: flex-start; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.center .tag { align-self: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 248, 240, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; rotate: -6deg; }
.brand span { font-family: var(--display); font-size: 28px; line-height: 1; }
.links { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.links a { padding: 10px 12px; text-decoration: none; }
.links a.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--cream); display: flex; align-items: center; font-weight: 500; }
@media (max-width: 640px) { .links a:not(.pill) { display: none; } }

/* App Store badge */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 14px; background: #000; color: #FFF; text-decoration: none; }
.store:hover { color: #FFF; }
.store small { display: block; font-size: 11px; line-height: 1.1; }
.store b { display: block; font-size: 20px; font-weight: 500; line-height: 1.1; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(60px, 10vw, 112px); line-height: .9; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 28em; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-art .sun { position: absolute; inset: 6%; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--butter) 42%, var(--paper)) 0 10deg, color-mix(in srgb, var(--pink) 42%, var(--paper)) 0 20deg); }
.hero-art img { position: absolute; }

/* Cards */
.cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.step img { width: 120px; height: 120px; object-fit: contain; }
.step .row { display: flex; gap: 12px; align-items: baseline; }
.step .n { font-family: var(--display); font-size: 36px; line-height: 1; }
.step b { display: block; font-size: 19px; font-weight: 500; }
.step span { font-size: 16px; }
.extra { gap: 8px; }
.extra b { font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 400; }
.extra span { font-size: 16px; }

/* Sticker grids */
.board { border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--crumb); padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.board > div { aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.board img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.q { font-family: var(--display); color: var(--cocoa); line-height: 1; }
.board .q { font-size: clamp(28px, 4vw, 44px); }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.col { border-radius: 22px; background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.col .mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 14px; }
.col .mini img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.col .mini .q { width: 100%; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 253, 248, .7); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.col b { font-family: var(--display); font-size: clamp(22px, 5vw, 26px); line-height: 1.1; font-weight: 400; }
.col span { font-size: 14px; color: var(--cocoa); }
.shares { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.shares div { aspect-ratio: 1; border-radius: 22px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.shares img { width: 76%; }

/* Birthday wish */
.wish-art { position: relative; width: min(100%, 320px); aspect-ratio: 1; justify-self: center; display: flex; align-items: center; justify-content: center; }
.wish-art::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--butter) 42%, var(--paper)); }
.wish-art img { position: relative; width: 62%; rotate: -4deg; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: '★'; color: var(--pink); font-size: 13px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--crumb); }
.plan.pro { background: var(--ink); color: var(--cream); }
.plan h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.plan .price { font-size: 15px; }
.plan.free .price { color: var(--cocoa); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.plan .badge { position: absolute; top: -12px; right: 24px; padding: 4px 12px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: 13px; font-weight: 500; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 20px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--crumb); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-weight: 500; }
.faq summary::after { content: '+'; flex: none; font-size: 22px; line-height: 1; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { padding: 0 0 20px; font-size: 16px; color: var(--cocoa); }

/* Download */
.cta { position: relative; overflow: hidden; border-radius: 36px; background: var(--ink); color: var(--cream); padding: clamp(44px, 7vw, 80px) 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta > * { position: relative; }
.cta .deco { position: absolute; }
.cta h2 { font-size: clamp(44px, 7vw, 76px); line-height: .95; max-width: 11em; }
.cta .store { box-shadow: 0 0 0 1.5px rgba(255, 248, 240, .4); }
.join { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 440px; }
.join input { flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font-family: inherit; font-size: 16px; outline: none; }
.join input:focus-visible { box-shadow: 0 0 0 3px var(--butter); }
.join button { cursor: pointer; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--butter); color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 500; }
.join button:disabled { opacity: .6; cursor: default; }
.join-msg { min-height: 1.5em; font-size: 16px; }
.join-msg.done { font-family: var(--display); font-size: 26px; line-height: 1.1; }

/* Footer */
.foot { padding-top: 0; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; font-size: 15px; color: var(--cocoa); }
.foot div { display: flex; flex-direction: column; gap: 8px; }
.foot b { font-weight: 500; color: var(--ink); }
.foot .brand-name { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink); }

/* Legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: clamp(20px, 5vw, 48px) 16px; display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.6; }
.legal h1 { font-size: clamp(44px, 8vw, 60px); line-height: 1; }
.legal .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.legal .tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--blush); font-weight: 500; text-decoration: none; }
.legal .tabs a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.legal .note { padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--butter) 42%, var(--paper)); font-size: 14px; line-height: 1.5; }
.legal section { background: var(--paper); box-shadow: inset 0 0 0 1px var(--crumb); border-radius: 22px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 40px; }
.legal h3 { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .date { font-size: 13px; color: var(--cocoa); }
.legal mark { background: var(--blush); color: var(--ink); padding: 0 4px; border-radius: 4px; }
