/* ============ cakely ============ */

@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --orange: #FF711B;
  --pink: #FDBCC0;
  --ink: #333333;

  --cream: #FFF6F1;
  --orange-ink: #C94D08;   /* orange for small text on light backgrounds */
  --on-orange: #1F1F1F;    /* text on orange buttons */
  --muted: #5E5654;
  --line: rgba(51, 51, 51, .14);

  --serif: 'Kannada MN', 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em { font-family: 'Lora', Georgia, serif; } /* real italic with accents, same on every device */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange); color: var(--on-orange); }
.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 54px; padding: 0 30px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 1rem/1 var(--sans); background: var(--orange); color: var(--on-orange);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(201, 77, 8, .6); }
.btn:active { transform: translateY(-1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--orange-ink); }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.top .logo img { height: 36px; width: auto; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; }
.top nav a:not(.btn):hover { color: var(--orange-ink); }
.top .btn { min-height: 46px; padding: 0 22px; font-size: .95rem; }
.lang {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.lang:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .top nav { gap: 10px; } .top nav .hide-sm { display: none; } .top .wrap { height: 72px; } .top .logo img { height: 28px; }
  .top .btn { min-height: 40px; padding: 0 14px; font-size: .85rem; } .lang { width: 38px; height: 38px; font-size: .75rem; }
}

/* ---------- hero: candles ---------- */
.hero { position: relative; overflow: hidden; background: var(--pink); padding: clamp(120px, 13vw, 150px) 0 0; text-align: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin: 0 auto; }
.hero h1 em { color: var(--orange); }
.hero .sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 28em; margin: 26px auto 34px; }
.cta { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

.candles {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 2vw, 26px);
  margin-top: clamp(48px, 6vw, 72px);
  height: clamp(300px, 36vw, 500px);
  padding: 0 var(--gutter);
}
.candle { position: relative; flex: 0 1 190px; height: var(--h); display: flex; flex-direction: column; align-items: center; }
.candle .wick { width: 2px; height: 14px; background: var(--ink); opacity: .7; flex: none; }
.candle .body { flex: 1; width: 100%; border-radius: 999px 999px 0 0; overflow: hidden; background: #e9a9a4; }
.candle img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.candle:hover img { transform: scale(1.05); }
.flame {
  width: 22px; height: 34px; flex: none; margin-bottom: 4px;
  background: radial-gradient(circle at 50% 70%, #FFE2B8 0 20%, var(--orange) 58%);
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  transform-origin: 50% 100%;
  animation: flicker 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 113, 27, .55));
}
.candle:nth-child(2) .flame { animation-delay: -.7s; animation-duration: 3s; }
.candle:nth-child(3) .flame { animation-delay: -1.3s; animation-duration: 2.3s; }
.candle:nth-child(4) .flame { animation-delay: -.4s; animation-duration: 2.8s; }
.candle:nth-child(5) .flame { animation-delay: -1.9s; }
@keyframes flicker {
  0%, 100% { transform: rotate(-2deg) scale(1, 1); }
  25% { transform: rotate(3deg) scale(.94, 1.06); }
  50% { transform: rotate(-3deg) scale(1.04, .95); }
  75% { transform: rotate(2deg) scale(.97, 1.04); }
}
.candle { animation: rise 1.1s var(--ease) both; }
.candle:nth-child(1) { animation-delay: .15s; } .candle:nth-child(2) { animation-delay: .25s; }
.candle:nth-child(3) { animation-delay: .05s; } .candle:nth-child(4) { animation-delay: .3s; }
.candle:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1, .hero .sub, .hero .cta { animation: fade .9s var(--ease) both; }
.hero .sub { animation-delay: .1s; } .hero .cta { animation-delay: .2s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .candle:first-child, .candle:last-child { display: none; }
  .candle { flex-basis: 31%; }
  .flame { width: 16px; height: 25px; }
}

/* ---------- section basics ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 18px; }
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }

/* ---------- birthday counter ---------- */
.count-head { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .count-head { grid-template-columns: 1.15fr 1fr; gap: 72px; } }
.say { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; }
.say output { color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.slider { margin-top: 30px; }
.slider label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --p: 20%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--orange) var(--p), #F1D6D2 var(--p)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: #F1D6D2; }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--orange); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange); box-shadow: 0 4px 12px rgba(201, 77, 8, .3); transition: transform .2s;
}
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 113, 27, .3); }

.results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.results div { padding-top: 22px; }
.results div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.results b { display: block; font: 400 clamp(2rem, 4.2vw, 3.3rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.results div:last-child b { color: var(--orange-ink); }
.results span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }

.year {
  margin-top: clamp(40px, 6vw, 64px);
  background: #fff; border-radius: 28px; padding: clamp(18px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(6px, 1.4vw, 18px);
}
.month { min-width: 0; }
.month > span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(2px, .45vw, 5px); }
.day { aspect-ratio: 1; border-radius: 50%; background: #F4E4E1; transition: background-color .35s, transform .35s var(--ease); }
.day.on { background: var(--orange); transform: scale(1.08); }
.day.on2 { background: var(--orange-ink); transform: scale(1.18); }
.year-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
@media (max-width: 720px) {
  .year { grid-template-columns: repeat(6, 1fr); row-gap: 22px; }
  .results div + div { padding-left: 12px; }
  .results span { font-size: .8rem; }
}

/* ---------- how ---------- */
.how { background: var(--ink); color: #F4EFEC; }
.how .kicker { color: var(--pink); }
.how .h2 { color: #fff; max-width: 18ch; }
.steps { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 900px) { .steps li { padding: 36px 36px 0 0; } .steps li + li { padding-left: 36px; border-left: 1px solid rgba(255,255,255,.18); } }
.steps .n { font: 400 clamp(4rem, 8vw, 6.5rem)/.9 var(--serif); color: var(--orange); display: block; margin-bottom: 22px; }
.steps h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); color: #fff; margin-bottom: 10px; }
.steps p { color: #D9D1CE; max-width: 24em; }
.how-foot { margin-top: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.how-foot p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: #fff; }

/* ---------- proof ---------- */
.proof { background: var(--pink); text-align: center; }
.big { font: 400 clamp(8rem, 30vw, 22rem)/.8 var(--serif); letter-spacing: -.05em; color: var(--orange); display: block; font-variant-numeric: tabular-nums; }
.big small { font-size: .42em; letter-spacing: 0; vertical-align: .95em; }
.proof .line { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; max-width: 19em; margin: clamp(24px, 3vw, 40px) auto 0; }
.proof .src { font-size: .82rem; margin-top: 16px; }
.facts { list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) auto 0; max-width: 1040px; display: grid; gap: 16px; text-align: left; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--cream); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.facts b { font: 400 2.6rem/1 var(--serif); color: var(--orange-ink); }
.facts p { flex: 1; }
.facts a { font-size: .78rem; color: var(--muted); text-underline-offset: 3px; }

/* ---------- final ---------- */
.final { text-align: center; }
.final .h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 12ch; margin: 0 auto 36px; }
.final .flame { display: block; margin: 0 auto 28px; }
.final .h2 em { color: var(--orange); }
.final .mini { margin-top: 24px; font-size: .95rem; color: var(--muted); }
.final .mini a { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: .92rem; background: var(--cream); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot img { height: 28px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--orange-ink); }
.foot .copy { color: var(--muted); }

/* ---------- contact ---------- */
.page { background: var(--pink); min-height: 100vh; padding: clamp(120px, 14vw, 160px) 0 clamp(64px, 8vw, 104px); }
.contact-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.contact-grid h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.contact-grid h1 em { color: var(--orange); }
.contact-grid .sub { font-size: 1.2rem; margin-top: 22px; max-width: 24em; }
.contact-grid .alt { margin-top: 28px; }
.card { background: #fff; border-radius: 30px; padding: clamp(24px, 4.5vw, 44px); box-shadow: 0 40px 80px -50px rgba(120, 40, 30, .45); }
.field { margin-bottom: 18px; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--cream); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8E8583; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 113, 27, .2); }
.field [aria-invalid="true"] { border-color: #C0392B; background: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: .85rem; }
.form-foot .btn { margin-left: auto; }
.form-error { display: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #FDECEA; color: #8E2A1F; font-size: .92rem; }
.form-error.show { display: block; }

/* ---------- thank you / 404 ---------- */
.quiet { background: var(--pink); min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 64px; }
.quiet h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); margin-top: 28px; }
.quiet h1 em { color: var(--orange); }
.quiet p { font-size: 1.2rem; max-width: 26em; margin: 20px auto 34px; }
.solo { display: inline-flex; flex-direction: column; align-items: center; animation: rise 1s var(--ease) both; }
.solo .body { width: 64px; height: 140px; border-radius: 999px 999px 0 0; background: var(--orange); }
.solo .wick { width: 2px; height: 12px; background: var(--ink); opacity: .7; }
.solo .smoke { width: 10px; height: 34px; margin-bottom: 4px; border-radius: 50%; background: linear-gradient(to top, rgba(51,51,51,.35), transparent); animation: smoke 3s ease-in-out infinite; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(10px) scaleX(1); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scaleX(2); } }

/* ---------- scroll reveal (only hides once JS opts in) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
