/* Storybook theme: the whole storefront follows the "Tale of Two Invites" illustrations:
   golden-hour marigold and saffron, envelope red, sunset gold, warm cocoa night,
   chunky display type and comic-panel cards with ink outlines and hard offset shadows. */
:root {
  --ivory: #FFF4E0;        /* page: warm card stock */
  --sand: #FBD48A;         /* amber sky, light */
  --sindoor: #B3121B;      /* vermilion */
  --sindoor-deep: #8E0A12;
  --gold: #F79A1E;         /* marigold */
  --gold-text: #9A4300;    /* marigold darkened for text on cream (6:1) */
  --ink: #2A0A12;          /* plum-black outline ink */
  --ink-soft: #5E3A44;
  --card: #FFFAF0;
  --line: #2A0A12;
  --teal: #8E0A12;
  --teal-2: #A8141E;
  --taxi: #FFC23A;
  --radius: 18px;
  --hard: 5px 5px 0 var(--ink);
  --shadow: var(--hard);
  --serif: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
}
body { font-family: "Montserrat", system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65; }
button, input, select, textarea, .btn { font-family: var(--sans); }

/* Type */
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.6vw, 60px); line-height: 1; letter-spacing: .005em; }
h3 { font-family: var(--serif); font-weight: 600; }
.eyebrow { font: 800 12px/1.4 var(--sans); letter-spacing: .2em; color: var(--sindoor); }
.lede { font-size: 18px; }

/* Buttons: chunky, inked, pressable */
.btn {
  border: 2.5px solid var(--ink); font: 600 16px/1 var(--serif); letter-spacing: .01em;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--sindoor); color: #fff; }
.btn-primary:hover { background: var(--sindoor-deep); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--taxi); color: var(--ink); }

/* Header */
.site-header { background: rgba(255,244,224,.95); border-bottom: 2.5px solid var(--ink); }
.site-header.scrolled { border-color: var(--ink); }
.brand-mark { color: var(--sindoor); }
.brand-name { font: 400 26px/1 var(--display); letter-spacing: .01em; }
.brand-name small { font: 800 9.5px/1.4 var(--sans); color: var(--gold-text); }
.nav-links a { font: 600 15px var(--serif); }
.motif { color: var(--gold); }

/* Comparison (the lead section): grey crumpled paper vs taxi-yellow card */
.experience { background: var(--teal); color: var(--ivory); }
.experience .eyebrow { color: var(--gold); }
.experience .lede { color: #F6D9BE; }
.experience h2 { color: #fff; }
.compare > div { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 #2A0A12; padding: 28px; }
.compare > div:first-child { background: #D9D6D2; color: var(--ink); transform: rotate(-.8deg); }
.compare > div:first-child ul { color: var(--ink-soft); }
.compare > div:first-child svg { color: var(--sindoor); }
.compare .us { background: var(--taxi); color: var(--ink); border-color: var(--ink); transform: rotate(.8deg); }
.compare .us ul { color: var(--ink); font-weight: 600; }
.compare .us svg { color: var(--ink); }
.compare h3 { font-size: 24px; }

/* Gallery cards as comic panels */
.chip { border: 2px solid var(--ink); font: 600 15px var(--serif); }
.chip[aria-pressed="true"], .chip:hover { background: var(--ink); color: var(--ivory); }
.design { border: 2.5px solid var(--ink); box-shadow: var(--hard); }
.design:nth-child(odd) { transform: rotate(-.6deg); }
.design:nth-child(even) { transform: rotate(.6deg); }
.design:hover { transform: rotate(0) translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.thumb { border-bottom: 2.5px solid var(--ink); }
.design-body h3 { font-size: 26px; }
.design-body .eyebrow { color: var(--sindoor); }
.live-frame { border-color: var(--ink); }
.sample-note { border: 2px dashed var(--ink); color: var(--ink); background: var(--taxi); font: 700 14px var(--sans); }

/* Features on warm cocoa */
.features { background: transparent; border: 0; gap: 16px; overflow: visible; }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; justify-items: center; background: var(--teal-2); border: 2.5px solid #2A0A12; border-radius: var(--radius); box-shadow: 5px 5px 0 #2A0A12; }
.feature svg { color: var(--gold); }
.feature h3 { color: #fff; }
.feature p { color: #F6DCC4; }

/* Steps: numbered marigold badges */
.steps li { padding-top: 78px; }
.steps li::before {
  content: counter(step); width: 58px; height: 58px; display: grid; place-items: center;
  font: 400 30px/1 var(--display); color: var(--ink); background: var(--gold);
  border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
}
.reassure { font: 600 22px/1.4 var(--serif); font-style: normal; color: var(--sindoor); }

/* Pricing under an amber sky */
.pricing { background: linear-gradient(180deg, #F9B44A 0%, #FCD58E 45%, var(--ivory) 100%); }
.plan { border: 2.5px solid var(--ink); box-shadow: var(--hard); }
.plan.featured { border: 3px solid var(--ink); background: #FFF3D6; box-shadow: 8px 8px 0 var(--sindoor); }
.plan .ribbon { background: var(--taxi); color: var(--ink); border: 2px solid var(--ink); font: 800 11px var(--sans); }
.plan h3 { font: 400 34px/1 var(--display); }
.price { font: 600 46px/1 var(--serif); color: var(--sindoor); }
.plan .meta { border-top: 2px dashed var(--ink); }
.addons { border: 2.5px solid var(--ink); box-shadow: var(--hard); }
.addons dl div { border-bottom: 1.5px dashed var(--ink); }

/* FAQ */
.faq details { border-bottom: 2px dashed var(--ink); }
.faq summary { font: 600 21px/1.3 var(--serif); }

/* Enquiry: sunset sky */
.enquire { background: linear-gradient(160deg, #D8420A 0%, #B3121B 50%, #8E0A12 100%); }
.enquire .eyebrow { color: var(--taxi); }
.form { border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.field input, .field select, .field textarea { border: 2px solid var(--ink); }
.field label { font: 700 14px var(--sans); }

/* Footer: plum night */
.site-footer { background: #5C0710; color: #F2D6BF; }
.site-footer h4 { color: var(--gold); }
.site-footer .brand-name { color: #fff; }

.wa-float { border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .design, .compare > div { transform: none !important; }
}

/* Preview popup: a phone-sized window over the page, never full screen */
.preview {
  padding: 0; border: 2.5px solid var(--ink); border-radius: 26px; background: var(--card);
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
  width: min(400px, calc(100vw - 48px)); max-height: calc(100dvh - 120px);
}
.preview::backdrop { background: rgba(43,26,42,.62); backdrop-filter: blur(3px); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 2.5px solid var(--ink); background: var(--taxi); }
.pv-title { font: 600 17px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-close { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); font: 600 26px/1 var(--serif); color: var(--ink); cursor: pointer; }
.pv-close:hover { background: var(--sindoor); color: #fff; }
.pv-phone { height: min(720px, calc(100dvh - 120px - 66px)); }
.pv-phone iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

/* Brand: illustrated envelope-lotus emblem with the InviteKatha wordmark */
.brand-emblem { width: auto; height: 46px; }
.brand-word { display: block; height: 26px; width: auto; }
.site-header .brand-name small { margin-top: 3px; }
.foot-brand .brand-emblem { height: 64px; padding: 8px; background: var(--ivory); border-radius: 50%; border: 2.5px solid var(--gold); box-sizing: content-box; }
.foot-brand .brand-name { font: 400 28px/1 var(--display); color: #fff; }
.nav .btn { white-space: nowrap; }
@media (max-width: 520px) { .site-header .brand-name small { display: none; } .brand-emblem { height: 40px; } .brand-word { height: 24px; } }

/* Footer: a festive send-off under a marigold garland */
.ft { position: relative; background: radial-gradient(120% 90% at 50% 0%, #B3121B 0%, #8E0A12 50%, #5C0710 100%); color: #FBE3C8; padding: 0 0 22px; font: 400 15px/1.5 var(--sans); overflow: hidden; }
.ft-garland { height: 46px; background:
    radial-gradient(circle at 50% 6px, #FFC23A 0 9px, transparent 10px) 0 0 / 34px 46px repeat-x,
    radial-gradient(circle at 50% 20px, #F79A1E 0 10px, transparent 11px) 17px 0 / 34px 46px repeat-x,
    radial-gradient(circle at 50% 34px, #E8530E 0 7px, transparent 8px) 0 0 / 34px 46px repeat-x;
  filter: drop-shadow(0 4px 0 rgba(42,13,7,.4)); }
.ft-in { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ft-cta { text-align: center; display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 64px); border-bottom: 2px dashed rgba(251,227,200,.35); }
.ft-cta h2 { color: #fff; font: 400 clamp(36px, 6vw, 64px)/1 var(--display); }
.ft-cta p:not(.ft-label) { max-width: 46ch; color: #F6D3B4; font-size: 17px; }
.ft-cta .btn { margin-top: 8px; background: var(--taxi); color: var(--ink); }
.ft-cta .btn:hover, .ft-cta .btn:focus-visible { background: #fff; color: var(--sindoor); text-decoration: none; }
.ft-label { font: 800 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--taxi); margin: 0 0 12px; }
.ft-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 36px 0 28px; }
.ft-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.ft-brand img { width: auto; height: 72px; padding: 8px; background: var(--ivory); border: 2.5px solid var(--gold); border-radius: 50%; box-sizing: content-box; }
.ft-brand span { font: 400 30px/1 var(--display); }
.ft-brand small { display: block; font: 800 10px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--taxi); margin-top: 4px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft ul a { color: #FBE3C8; text-decoration: none; font: 600 17px var(--serif); }
.ft ul a:hover { color: var(--taxi); }
.ft-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(251,227,200,.2); font-size: 13px; color: #D9B597; }
.ft-base a { color: #FBE3C8; }
.ft-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 72px; text-decoration: none; }
.ft-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 760px) {
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-base { padding-right: 72px; }
  .ft-top { margin-right: 0; }
}

/* How it works: a winding road with milestones */
.road { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: clamp(28px, 5vw, 56px); }
.road-line { position: absolute; left: 50%; top: 0; width: 200px; height: 100%; translate: -50% 0; overflow: visible; pointer-events: none; }
.road-line path { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road-line path { stroke: #F3C98B; stroke-width: 26px; }
.road-line .lane { stroke: #fff; stroke-width: 3px; stroke-dasharray: 14 12; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; }
.pin { grid-column: 2; justify-self: center; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 400 30px/1 var(--display); color: var(--ink); }
.pin svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pin-start { background: var(--taxi); }
.pin-end { background: var(--sindoor); }
.pin-end svg { stroke: #fff; fill: #fff; }
.stop-card { grid-row: 1; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); padding: 22px 24px; position: relative; }
.stop:nth-child(odd) .stop-card { grid-column: 1; transform: rotate(-1deg); }
.stop:nth-child(even) .stop-card { grid-column: 3; transform: rotate(1deg); }
.stop-card::after { content: ""; position: absolute; top: 50%; width: 30px; border-top: 3px dashed var(--ink); }
.stop:nth-child(odd) .stop-card::after { right: -33px; }
.stop:nth-child(even) .stop-card::after { left: -33px; }
.stop-tag { font: 800 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sindoor); margin-bottom: 8px; }
.stop-card h3 { font-size: 24px; margin-bottom: 8px; }
.stop-card p:not(.stop-tag) { font-size: 15px; color: var(--ink-soft); }
.stop-end .stop-card { background: var(--taxi); text-align: center; }
.stop-end .stop-card h3 { margin: 0; }
@media (max-width: 760px) {
  .road-line { left: 38px; width: 60px; }
  .stop { grid-template-columns: 76px 1fr; }
  .pin { grid-column: 1; }
  .stop:nth-child(n) .stop-card { grid-column: 2; transform: none; }
  .stop:nth-child(n) .stop-card::after { left: -20px; right: auto; width: 16px; }
}

/* Site music toggle, bottom left (WhatsApp sits bottom right) */
.music-float { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--taxi); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.music-float:hover { transform: translateY(-2px); }
.music-float svg { width: 24px; height: 24px; }
.music-float .eq { display: none; gap: 3px; align-items: end; height: 20px; }
.music-float .eq i { width: 4px; background: var(--ink); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.music-float .eq i:nth-child(2) { animation-delay: .2s; } .music-float .eq i:nth-child(3) { animation-delay: .4s; }
.music-float[aria-pressed="true"] svg { display: none; }
.music-float[aria-pressed="true"] .eq { display: flex; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 20px; } }
@media (prefers-reduced-motion: reduce) { .music-float .eq i { animation: none; height: 12px; } }

/* "More than a card": golden-hour section */
#experience { background: radial-gradient(70% 60% at 50% 0%, #FFE08A 0%, transparent 70%), linear-gradient(180deg, #FFC23A 0%, #F7A21E 100%); color: var(--ink); }
#experience .eyebrow { color: var(--sindoor); }
#experience h2 { color: var(--ink); }
#experience .lede { color: #4A0E16; }
#experience .feature { background: linear-gradient(180deg, #FFF6DC 0%, #FFE7A8 100%); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
#experience .feature svg { color: var(--sindoor); }
#experience .feature h3 { color: var(--ink); }
#experience .feature p { color: #3A1420; }

/* Wordmark from the final logo: wine-red decorative capitals edged in gold */
.logo-word { font: 900 30px/1 "Cinzel Decorative", "Cinzel", serif; letter-spacing: .02em; color: #7A0F2A; text-shadow: 0 1px 0 #E9B44C, 0 2px 0 rgba(176,112,20,.55); white-space: nowrap; }
.ft-brand span.logo-word { font: 900 40px/1 "Cinzel Decorative", "Cinzel", serif; color: #FFD27A; text-shadow: 0 2px 0 #8E0A12, 0 3px 10px rgba(0,0,0,.25); }
@media (max-width: 520px) { .site-header .logo-word { font-size: 25px; } }

/* ---------- Motion: transitions and animations across the site ---------- */
:root { --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.22,1,.36,1); }
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sindoor), var(--gold), var(--taxi)); pointer-events: none; }
.site-header { animation: hdr-in .7s var(--out) both; transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 24px -18px rgba(42,10,18,.6); }
@keyframes hdr-in { from { transform: translateY(-100%); } }
.logo-word { display: inline-block; transition: transform .35s var(--spring); }
.brand:hover .logo-word, .ft-brand:hover .logo-word { transform: scale(1.05) rotate(-1.5deg); }
.nav-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--out), color .2s; }
.nav-links a:hover { background-size: 100% 2px; }

/* Staggered entrances: children rise one after another */
.rise { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .7s var(--out), transform .7s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.rise.in, .in > .rise { opacity: 1; transform: none; }
.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.section-head .eyebrow { transition: letter-spacing 1s var(--out), opacity .8s; }
.section-head.reveal:not(.in) .eyebrow { letter-spacing: .5em; opacity: 0; }

/* Cards lift towards you, buttons press in */
.feature, .design, .plan, .stop-card, .compare > div { transition: transform .35s var(--out), box-shadow .35s var(--out), opacity .7s var(--out); }
.feature:hover, .design:hover, .plan:hover, .stop-card:hover { transform: translate(-3px, -5px); box-shadow: 9px 10px 0 var(--ink); }
.feature svg { transition: transform .45s var(--spring); }
.feature:hover svg { transform: scale(1.25) rotate(-10deg); }
.design .thumb img { transition: transform .6s var(--out); }
.design:hover .thumb img { transform: scale(1.04); }
.btn { transition: transform .2s var(--out), box-shadow .2s var(--out), background .2s, color .2s; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* Roadmap: traffic flows along the lane and pins pop in */
.road-line .lane { animation: lane-flow 1.6s linear infinite; }
@keyframes lane-flow { to { stroke-dashoffset: -26; } }
.stop .pin { transition: transform .6s var(--spring) .2s; }
.stop.reveal:not(.in) .pin { transform: scale(0); }

/* Floating buttons breathe gently; the garland sways */
.wa-float, .music-float { animation: float-bob 3.2s ease-in-out infinite; }
.music-float { animation-delay: 1.6s; }
@keyframes float-bob { 50% { translate: 0 -5px; } }
.ft-garland { animation: garland-sway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes garland-sway { 50% { transform: translateX(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .site-header, .road-line .lane, .wa-float, .music-float, .ft-garland { animation: none; }
  .rise, .reveal, .stop .pin, .section-head .eyebrow { opacity: 1; transform: none; transition: none; letter-spacing: inherit; }
  .feature:hover, .design:hover, .plan:hover, .stop-card:hover, .feature:hover svg, .design:hover .thumb img { transform: none; }
  .scroll-bar { display: none; }
}

/* Preview open: freeze the page behind; scrolling stays inside the sample */
html.pv-open, html.pv-open body { overflow: hidden; }
html.pv-open body { position: fixed; left: 0; right: 0; width: 100%; }
html.pv-open { scroll-behavior: auto; }
.preview, .preview .pv-phone { overscroll-behavior: contain; }
.preview::backdrop { touch-action: none; }

/* "Before you book": the terms couples should know before paying */
.promise { margin: 28px auto 0; max-width: 1120px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink); padding: clamp(20px, 3vw, 32px); }
.promise h3 { font: 400 clamp(1.5rem, 3vw, 2rem) var(--display); margin: 0 0 12px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.promise li { font-size: 15px; line-height: 1.6; padding-left: 16px; border-left: 3px solid var(--gold); }
.promise b { display: block; color: var(--sindoor); }
.design-actions .btn-primary[data-preview] { flex: 0 0 auto; padding-inline: 26px; }
.design-actions .btn[data-pick] { flex: 1; white-space: nowrap; }
.field .hint { display: block; font-size: 13px; color: var(--sindoor); margin-top: 6px; }

/* InviteKatha logo */
.logo-img { display: block; height: 58px; width: auto; transition: transform .35s var(--spring); }
.brand:hover .logo-img { transform: scale(1.04) rotate(-1deg); }
@media (max-width: 520px) { .logo-img { height: 42px; } }
.ft-brand img.ft-logo { height: 150px; width: auto; padding: 14px 18px; border-radius: 22px; background: var(--ivory); border: 2.5px solid var(--gold); box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .g-ctas { flex-wrap: nowrap; gap: 8px; }
  .g-ctas .btn { padding-inline: 16px; font-size: 14px; white-space: nowrap; }
}

/* Mobile pass: smaller floating buttons, room for them at the page end, centred footer logo */
@media (max-width: 520px) {
  .wa-float, .music-float { width: 46px; height: 46px; bottom: 12px; }
  .wa-float { right: 12px; } .music-float { left: 12px; }
  .wa-float svg, .music-float svg { width: 20px; height: 20px; }
  .ft { padding-bottom: 76px; }
  .ft-brand { justify-content: center; }
  .ft-brand img.ft-logo { height: 128px; }
  .form { padding-bottom: 28px; }
}
