/* Rework prototype: home below the hero, Tema, builder, Kelola. Follows boards 21, 22, 24 and 28. */

/* shared: names in the sans, darker body text, stacked section heads */
.shot-name, .occasion-name { font-family: var(--font-sans); font-style: normal; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.section-head { display: block; margin-bottom: var(--s-32); }
.section-head h2 { max-width: 28ch; }
.section-head p { margin-top: var(--s-12); max-width: 62ch; color: var(--tengah); }
main > .section { padding-block: 72px; }
main > section.band-mist { padding-block: 72px; }

/* theme gallery: a list of themes on one side, the chosen theme large on the other */
.shots { position: relative; display: block; padding-right: calc(50% + var(--s-12)); }
.shot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-16); align-items: center; padding: var(--s-16) var(--s-16) var(--s-16) var(--s-24); background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.shot + .shot { margin-top: var(--s-12); }
.shot.on { background: #FDE9C4; border-color: var(--plum); }
.shot .phone { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: calc(50% - var(--s-12)); height: auto; aspect-ratio: auto; margin: 0; padding: var(--s-32) var(--s-32) 0; border: 0; border-radius: 32px; background: linear-gradient(#FFFBF2, #F9D48A); box-shadow: none; overflow: hidden; }
.shot.on .phone { display: flex; justify-content: center; }
.shot .phone-screen { width: min(330px, 100%); height: auto; aspect-ratio: auto; border-radius: 24px 24px 0 0; box-shadow: 0 20px 48px rgba(31, 42, 87, 0.28); overflow: hidden; }
.shot .phone-screen img { width: 100%; height: auto; margin-top: -56px; }
.shot-name { font-size: 20px; }
.shot-for { color: var(--tengah); font-size: 15px; }
.shot a { min-height: var(--tap); padding-inline: var(--s-16); background: #fff; border: 1px solid var(--control-line); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.shots-hint { display: none; }

/* HOME: three steps as cards with a small picture */
.steps { gap: var(--s-16); }
.step { align-content: start; padding: var(--s-16) var(--s-16) var(--s-24); background: #fff; border-radius: var(--r-panel); box-shadow: 0 8px 24px rgba(31, 42, 87, 0.06); }
.step::before { display: none; }
.step h3 { padding-inline: var(--s-8); }
.step h3::before { content: counter(step) ". "; }
.step > p { padding-inline: var(--s-8); color: var(--tengah); font-size: 15px; }
.step-art { display: grid; gap: var(--s-8); align-content: center; min-height: 176px; margin-bottom: var(--s-4); padding: var(--s-16); background: var(--mist); border-radius: 16px; }
.step-art i { display: block; padding: 8px 12px; background: #fff; border-radius: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink); }
.step-art .links { margin: 0; }
.step-art .links span { background: #fff; padding: 9px 12px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-8); min-height: 144px; }
.swatches b { border-radius: 12px; border: 1px solid var(--line); }
.swatches b:nth-child(1) { background: #FAF8F5; border-bottom: 10px solid #A16207; }
.swatches b:nth-child(2) { background: #F5EFE6; border-bottom: 10px solid #8C5A2B; }
.swatches b:nth-child(3) { background: #F3F7F3; border-bottom: 10px solid #B08A2E; }
.swatches b:nth-child(4) { background: #FDF7F7; border-bottom: 10px solid #A4566E; }
.swatches b:nth-child(5) { background: #FFFBF2; border-bottom: 10px solid #1F6FB2; }

/* HOME: six features, picture on top */
.features-cards { display: block; }
.features-cards .features-head { position: static; margin-bottom: var(--s-32); }
.features-cards .features-head h2 { max-width: 22ch; }
.features-cards .features-head p { max-width: 62ch; color: var(--tengah); }
.features-cards .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); }
.features-cards .feature { display: grid; grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: none; gap: var(--s-16); align-items: stretch; padding: var(--s-12) var(--s-12) var(--s-24); border: 1px solid var(--line); border-radius: var(--r-panel); }
.features-cards .feature > div:first-child { order: 2; padding-inline: var(--s-12); }
.features-cards .feature h3 { font-size: 19px; }
.features-cards .feature p { color: var(--tengah); font-size: 15px; }
.features-cards .frag { order: 1; display: grid; align-content: center; min-height: 168px; padding: var(--s-16); border-radius: 16px; }
.features-cards .frag p { margin: 0; color: var(--ink); font-size: 14px; }
.features-cards .frag .frag-name { font-size: 28px; color: var(--plum); }
.features-cards .frag .frag-warn { margin-top: var(--s-8); padding-top: var(--s-8); font-size: 13px; }
.features-cards .frag-cd { grid-template-columns: repeat(4, 1fr); }
.features-cards .frag-cd b { color: #9A5B00; }
.features-cards .frag-rsvp span { font-size: 14px; padding: 8px 12px; }

/* HOME: occasions, three then two */
.occasions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.occasion { grid-column: span 2; position: relative; align-content: start; padding: var(--s-24); box-shadow: none; border: 1px solid var(--line); }
.occasion:nth-child(n+4) { grid-column: span 3; }
.occasion-name { font-size: 22px; line-height: 1.2; }
.occasion p { color: var(--tengah); }
.occasion a { color: var(--ink); }
.occasion a::after { content: " \2192"; color: var(--janur-text); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-48); }
.faq-wrap .section-head { margin: 0; }
.faq-wrap .section-head h2 { max-width: 12ch; }
.faq details p { color: var(--tengah); }

/* TEMA: head in the middle, swatch notes as rows */
.tema-page main > section.band-plum:first-child .page-head { text-align: center; padding-block: var(--s-24) var(--s-48); }
.tema-page .page-head h1 { max-width: none; }
.tema-page .page-head .lead { margin-inline: auto; color: var(--tengah); }
.theme-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-notes .occasion, .theme-notes .occasion:nth-child(n+4) { grid-column: auto; background: #fff; border: 0; }
.theme-notes .occasion:last-child { grid-column: 1 / -1; }
.theme-notes .occasion-name::before { content: ""; display: block; width: 22px; height: 22px; margin-bottom: var(--s-12); margin-right: 44px; border-radius: 50%; background: var(--a); border: 1px solid var(--line); box-shadow: 18px 0 0 -1px var(--b), 36px 0 0 -1px var(--c); }
[data-t="modern"] { --a: #FAF8F5; --b: #22201C; --c: #A16207; }
[data-t="batik"] { --a: #F5EFE6; --b: #2B1D12; --c: #8C5A2B; }
[data-t="islami"] { --a: #F3F7F3; --b: #12281C; --c: #B08A2E; }
[data-t="floral"] { --a: #FDF7F7; --b: #3A2A31; --c: #A4566E; }
[data-t="ceria"] { --a: #FFFBF2; --b: #20262E; --c: #1F6FB2; }

/* KELOLA */
.kelola-page main > section.band-plum:first-child .page-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--s-48); align-content: center; align-items: center; padding-block: var(--s-48) var(--s-64); }
.kelola-page .page-head h1 { align-self: end; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; max-width: 13ch; }
.kelola-page .page-head .lead { align-self: start; margin-top: var(--s-16); font-size: 18px; max-width: 42ch; color: var(--tengah); }
.kelola-art { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: auto; }
.kelola-page main > .section { padding-block: var(--s-32) var(--s-64); }
.m-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); }
.m-head h2 { font-size: 34px; }
.m-head .btn-row { gap: var(--s-8); }
.kelola-page #m-root > * + * { margin-top: var(--s-24); }
.m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); }
.m-tile { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: var(--s-16); padding: var(--s-16) var(--s-24); border: 1px solid var(--line); border-radius: var(--r-panel); }
.m-tile::before { content: ""; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px; background: #FDE9C4 var(--ic) center / 26px no-repeat; }
.m-tile b { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--plum); }
.m-tile span { font-size: 14px; color: var(--tengah); }
.m-open { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A57' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.m-come { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A57' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.m-wish { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A57' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 0 1-13 8l-5 1 1-5a9 9 0 1 1 17-4Z'/%3E%3C/svg%3E"); }
/* Same three columns as the tiles, so the side box lines up with the third tile. */
.m-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); align-items: start; }
.m-wishes { grid-column: span 2; }
.m-side { display: grid; gap: var(--s-16); }
.m-side h3, .m-wishes h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.m-wishes > * + * { margin-top: var(--s-16); }
.m-box { display: grid; gap: var(--s-12); padding: var(--s-24); border: 1px solid var(--line); border-radius: var(--r-panel); }
.m-box h3 { font-size: 20px; }
.m-box .btn { width: 100%; }
.m-note { font-size: 14px; color: var(--tengah); }
.m-wishes .b-guests { gap: var(--s-12); }
.m-wishes .b-guest { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px var(--s-12); align-items: center; background: #fff; border: 1px solid var(--line); }
.m-ava { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FDE9C4; font-size: 14px; font-weight: 600; color: var(--ink); }
.m-wishes .b-guest-dup { grid-column: 2; font-size: 13px; font-weight: 600; color: var(--janur-text); }
.m-wishes .b-guest-actions { grid-column: 3; grid-row: 1 / span 2; }
.m-wishes .b-guest-actions .btn { min-height: var(--tap); padding-inline: var(--s-16); font-size: 14px; }
.m-wishes .b-guest > p:not(.b-guest-dup) { grid-column: 1 / -1; order: 5; margin-top: var(--s-12); }
.m-wishes .b-guest.is-hidden { background: var(--mist); border-style: dashed; }

@media (max-width: 1040px) {
  .occasions .occasion, .occasions .occasion:nth-child(n+4) { grid-column: 1 / -1; }
  .features-cards .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-cols { grid-template-columns: minmax(0, 1fr); }
  .m-wishes { grid-column: auto; }
  .m-side { order: -1; }
}
@media (max-width: 880px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-24); }
  .step-art { min-height: 0; }
  .swatches { min-height: 96px; }
}
@media (max-width: 720px) {
  .shots { padding: 380px 0 0; }
  .shot .phone { bottom: auto; left: 0; width: 100%; height: 364px; padding: var(--s-24) var(--s-24) 0; border-radius: 24px; }
  .shot .phone-screen img { margin-top: -72px; }
  .shot { padding: var(--s-12) var(--s-12) var(--s-12) var(--s-16); }
  .shot-name { font-size: 18px; }
  .kelola-page main > section.band-plum:first-child .page-head { grid-template-columns: minmax(0, 1fr); padding-block: var(--s-24) var(--s-32); }
  .kelola-page .page-head h1 { font-size: 36px; }
  .kelola-page .page-head .lead { font-size: 17px; }
  .kelola-art { grid-column: 1; grid-row: auto; width: min(280px, 100%); margin: var(--s-24) auto 0; }
  .m-head h2 { font-size: 28px; }
  .theme-notes { grid-template-columns: minmax(0, 1fr); }
  .m-tiles { grid-template-columns: minmax(0, 1fr); }
  .features-cards .feature-list { grid-template-columns: minmax(0, 1fr); }
  .features-cards .feature { grid-row: auto; grid-template-rows: none; }
  .m-head .btn-row { width: 100%; }
  .m-head .btn-row .btn { flex: 1 1 0; padding-inline: var(--s-8); }
  .m-wishes .b-guest { grid-template-columns: 44px minmax(0, 1fr); }
  .m-wishes .b-guest-actions { grid-column: 1 / -1; grid-row: auto; order: 6; margin-top: var(--s-8); }
}
