/* Irvine Cricket — site styles built on Qwalky tokens
   Bold, energetic sports-tech vibe. Clay = primary action, Moss = secondary, Ink = body. */

* { box-sizing: border-box; }
body { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:root {
  --content-max: 1200px;
  /* riff for sports-tech: stronger contrast surfaces */
  --surface: #FFFFFF;
  --bg-deep: #14181A;
}

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: var(--fs-15); border: 1px solid transparent; transition: transform var(--dur-1) var(--ease-qwalky), background var(--dur-2) var(--ease-qwalky), box-shadow var(--dur-2) var(--ease-qwalky); white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--clay-500); color: #fff; }
.btn-primary:hover { background: var(--clay-600); }
.btn-secondary { background: var(--moss-600); color: #fff; }
.btn-secondary:hover { background: var(--moss-700); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-100); }
.btn-ghost:hover { background: var(--sand-100); }
.btn-dark { background: var(--ink-900); color: var(--sand-50); }
.btn-dark:hover { background: var(--ink-800); }
.btn-lg { padding: 16px 26px; font-size: var(--fs-16); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ----- nav ----- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(250,246,239,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ink-100); }
.nav-inner { max-width: var(--content-max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink-900); text-decoration: none; }
.brand-ball { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #D9412C, #8E1F12); position: relative; box-shadow: inset 0 -3px 6px rgba(0,0,0,.3); }
.brand-ball::before, .brand-ball::after { content: ""; position: absolute; left: 4px; right: 4px; height: 1px; background: rgba(255,255,255,.85); }
.brand-ball::before { top: 11px; }
.brand-ball::after { top: 15px; }
.nav-links { display: flex; gap: 22px; margin-left: 32px; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: var(--fs-14); }
.nav-links a:hover { color: var(--ink-900); }
.nav-spacer { flex: 1; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--moss-50); color: var(--moss-800); font-size: var(--fs-13); font-weight: 600; }
.nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--moss-600); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.nav-login { background: transparent; border: 0; color: var(--ink-700); font-weight: 500; font-size: var(--fs-14); padding: 6px 12px; border-radius: 999px; }
.nav-login:hover { background: var(--sand-100); color: var(--ink-900); }

/* ----- hero ----- */
.hero { position: relative; padding: 80px 24px 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(247,230,168,.5), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232,114,74,.18), transparent 60%); z-index: -1; }
.hero-inner { max-width: var(--content-max); margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ink-900); color: var(--butter-300); font-size: var(--fs-13); font-weight: 600; margin-bottom: 24px; }
.hero-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--clay-500); box-shadow: 0 0 0 0 var(--clay-500); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,114,74,.7); }
  70% { box-shadow: 0 0 0 12px rgba(232,114,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,114,74,0); }
}
.hero-headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: -0.03em; margin: 0 0 24px; color: var(--ink-900); text-wrap: balance; }
.hero-headline em { font-style: normal; color: var(--clay-500); }
.hero-sub { max-width: 620px; font-size: var(--fs-20); line-height: 1.45; color: var(--ink-600); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--ink-100); padding-top: 32px; }
.hero-stat { padding-right: 16px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--ink-100); padding-left: 24px; }
.hero-stat-num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -0.02em; color: var(--ink-900); }
.hero-stat-unit { font-family: var(--font-mono); font-size: var(--fs-16); color: var(--ink-400); margin-left: 4px; }
.hero-stat-label { font-size: var(--fs-13); color: var(--ink-500); margin-top: 6px; font-weight: 500; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-stat + .hero-stat { border-left: 0; padding-left: 0; }
}

/* ----- section ----- */
.section { max-width: var(--content-max); margin: 0 auto; padding: 64px 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-eyebrow { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .08em; text-transform: uppercase; color: var(--clay-600); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--ink-900); max-width: 720px; }
.section-link { font-weight: 600; color: var(--moss-700); text-decoration: none; font-size: var(--fs-14); display: inline-flex; align-items: center; gap: 4px; }

/* ----- two-up CTA cards ----- */
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cta-grid-single { grid-template-columns: 1fr; }
@media (max-width: 760px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card-wide { min-height: 240px; padding: 40px 48px; }
.cta-card-wide .cta-card-title { font-size: 44px; }
.cta-card-wide .cta-card-body { max-width: 560px; font-size: var(--fs-18); }
@media (max-width: 640px) {
  .cta-card-wide { padding: 32px; min-height: 280px; }
  .cta-card-wide .cta-card-title { font-size: 32px; }
}

.cta-card { position: relative; border-radius: var(--radius-xl); padding: 36px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: pointer; transition: transform var(--dur-2) var(--ease-qwalky), box-shadow var(--dur-2) var(--ease-qwalky); border: 1px solid transparent; }
.cta-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-e2); }
.cta-card-register { background: var(--ink-900); color: var(--sand-50); }
.cta-card-register .cta-card-eyebrow { color: var(--butter-300); }
.cta-card-whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: #fff; }
.cta-card-eyebrow { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; opacity: .9; }
.cta-card-title { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.cta-card-body { font-size: var(--fs-16); line-height: 1.5; opacity: .85; margin: 0 0 24px; max-width: 380px; }
.cta-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cta-card-arrow { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; transition: transform var(--dur-2) var(--ease-qwalky); }
.cta-card:hover .cta-card-arrow { transform: translateX(4px); }
.cta-card-decoration { position: absolute; pointer-events: none; }

/* register decoration: stitched ball */
.deco-ball { right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #D9412C, #6E1810); opacity: .35; }
.deco-ball::before, .deco-ball::after { content: ""; position: absolute; left: 20px; right: 20px; height: 2px; background: rgba(255,255,255,.4); }
.deco-ball::before { top: 96px; }
.deco-ball::after { top: 110px; }

/* whatsapp decoration: bubble pattern */
.deco-bubbles { right: -20px; top: -20px; width: 200px; height: 200px; opacity: .2; }

.cta-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cta-tag { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: var(--fs-12); font-weight: 500; }
.cta-card-register .cta-tag { background: rgba(247,230,168,.15); color: var(--butter-300); }

/* ----- photos timeline ----- */
.timeline { display: flex; flex-direction: column; gap: 16px; }

/* Variant A: timeline list (default) */
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--ink-100); transition: transform var(--dur-2) var(--ease-qwalky), box-shadow var(--dur-2) var(--ease-qwalky); cursor: pointer; align-items: center; }
.tl-row:hover { transform: translateX(4px); box-shadow: var(--shadow-e1); border-color: var(--ink-200); }
.tl-date { display: flex; flex-direction: column; }
.tl-date-day { font-family: var(--font-mono); font-size: 44px; font-weight: 600; line-height: 1; color: var(--ink-900); letter-spacing: -0.04em; }
.tl-date-month { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.tl-date-weekday { font-size: var(--fs-13); color: var(--clay-600); font-weight: 600; margin-top: 4px; }
.tl-content { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: center; }
.tl-cover { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.tl-cover img, .tl-cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-cover-count { position: absolute; bottom: 8px; right: 8px; padding: 4px 10px; background: rgba(20,24,26,.78); color: #fff; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.tl-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-meta-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); line-height: 1.2; color: var(--ink-900); margin: 0; }
.tl-meta-line { font-size: var(--fs-14); color: var(--ink-500); }
.tl-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tl-tag { padding: 3px 10px; border-radius: 999px; background: var(--moss-50); color: var(--moss-800); font-size: var(--fs-12); font-weight: 600; }
.tl-tag-clay { background: var(--clay-50); color: var(--clay-700); }
.tl-tag-butter { background: var(--butter-100); color: #7B5C0F; }

@media (max-width: 760px) {
  .tl-row { grid-template-columns: 1fr; gap: 16px; }
  .tl-content { grid-template-columns: 1fr; }
  .tl-date { flex-direction: row; align-items: baseline; gap: 12px; }
  .tl-date-day { font-size: 36px; }
}

/* Variant B: cover strip */
.cs-row { position: relative; aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.cs-row svg, .cs-row img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-4) var(--ease-qwalky); }
.cs-row:hover svg, .cs-row:hover img { transform: scale(1.03); }
.cs-row-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,26,0) 30%, rgba(20,24,26,.8) 100%); }
.cs-row-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 32px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.cs-row-date { font-family: var(--font-mono); font-size: var(--fs-13); color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.cs-row-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 4px; }
.cs-row-line { font-size: var(--fs-14); opacity: .85; }
.cs-row-meta { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.cs-row-count { font-family: var(--font-mono); font-size: var(--fs-13); padding: 6px 12px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border-radius: 999px; font-weight: 600; }

/* Variant C: scorecard */
.sc-row { display: grid; grid-template-columns: 240px 1fr; background: var(--surface); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: box-shadow var(--dur-2) var(--ease-qwalky); }
.sc-row:hover { box-shadow: var(--shadow-e1); }
.sc-cover { aspect-ratio: 1; }
.sc-cover svg, .sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-body { padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: center; }
.sc-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--ink-100); padding-bottom: 12px; }
.sc-head-date { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-13); color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; }
.sc-head-id { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-400); }
.sc-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); margin: 0; color: var(--ink-900); }
.sc-stats { display: flex; gap: 28px; }
.sc-stat-num { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-28); line-height: 1; color: var(--ink-900); }
.sc-stat-label { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-400); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.sc-line { grid-column: 1 / -1; font-size: var(--fs-14); color: var(--ink-600); }

@media (max-width: 640px) {
  .sc-row { grid-template-columns: 1fr; }
  .sc-cover { aspect-ratio: 16/9; }
}

/* ----- venue ----- */
.venue { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; } }
.venue-card { background: var(--surface); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-e1); }
.venue-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-28); margin: 0 0 4px; }
.venue-sub { color: var(--ink-500); font-size: var(--fs-15); margin-bottom: 24px; }
.venue-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.venue-list li { display: grid; grid-template-columns: 24px 100px 1fr; gap: 12px; align-items: start; font-size: var(--fs-14); color: var(--ink-700); }
.venue-list .lbl { color: var(--ink-400); font-weight: 500; }
.venue-list .ico { font-size: 18px; line-height: 1; }
.venue-schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.venue-day { padding: 8px 4px; border-radius: 8px; background: var(--sand-100); text-align: center; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-500); }
.venue-day.active { background: var(--moss-600); color: #fff; font-weight: 600; }
.venue-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; position: relative; background: var(--sand-100); }
.venue-map svg { width: 100%; height: 100%; display: block; }
.venue-map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); }
.venue-map-pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--clay-500); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.venue-map-pin-pulse { position: absolute; inset: -8px; border-radius: 50%; background: var(--clay-500); opacity: .3; animation: pinpulse 2s infinite; }
@keyframes pinpulse { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(2.5); opacity: 0; } }
.venue-map-label { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 10px 14px; border-radius: 10px; font-size: var(--fs-13); font-weight: 600; color: var(--ink-900); }
.venue-map-label small { display: block; color: var(--ink-500); font-weight: 400; }

/* ----- footer ----- */
.footer { background: var(--ink-900); color: var(--sand-100); margin-top: 80px; padding: 56px 24px 32px; }
.footer-inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-tag { color: var(--ink-300); font-size: var(--fs-14); max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-13); color: var(--ink-300); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--sand-200); font-size: var(--fs-14); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--butter-300); }
.footer-bottom { max-width: var(--content-max); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--ink-700); display: flex; justify-content: space-between; align-items: center; color: var(--ink-400); font-size: var(--fs-13); flex-wrap: wrap; gap: 12px; }

/* ----- modal ----- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,24,26,.55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 24px; animation: fadein var(--dur-3) var(--ease-qwalky); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--sand-50); border-radius: var(--radius-xl); width: 100%; max-width: 480px; overflow: hidden; box-shadow: var(--shadow-e3); animation: modalpop var(--dur-3) var(--ease-qwalky); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
@keyframes modalpop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-wide { max-width: 640px; }
.modal-head { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); margin: 0 0 6px; letter-spacing: -0.01em; }
.modal-sub { color: var(--ink-500); font-size: var(--fs-14); margin: 0; }
.modal-close { background: transparent; border: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-500); }
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }
.modal-body { padding: 24px 28px; overflow-y: auto; }
.modal-foot { padding: 16px 28px 24px; border-top: 1px solid var(--ink-100); background: var(--white); }

/* ---------- let's play ---------- */
.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.play-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-md); padding: 20px; }
.play-card.disabled { background: var(--sand-100); opacity: .65; }
.play-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.play-card-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--clay-50); color: var(--clay-600); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.play-card.disabled .play-card-icon { background: #fff; color: var(--ink-400); }
.play-card-title { font-weight: 700; font-size: var(--fs-15); color: var(--ink-900); }
.play-card-desc { font-size: var(--fs-13); color: var(--ink-500); margin: 0 0 14px; line-height: 1.5; }
.play-card select { width: 100%; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-200); font-family: inherit; font-size: var(--fs-14); color: var(--ink-900); background: #fff; }
.play-card-soon { display: inline-block; font-size: var(--fs-12); color: var(--ink-500); background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-sm); padding: 4px 10px; }
.play-link-bar { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.play-link-bar input { flex: 1; min-width: 200px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-200); font-family: var(--font-mono); font-size: var(--fs-13); color: var(--ink-700); background: var(--sand-50); }

.play-active-banner { position: sticky; top: 0; z-index: 1000; background: var(--butter-300); border-bottom: 1px solid var(--ink-100); padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-14); font-weight: 600; color: var(--ink-900); }
.play-active-banner .btn { min-height: 36px; padding: 6px 16px; }

/* ----- forms ----- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: var(--fs-13); font-weight: 600; color: var(--ink-700); }
.form-hint { font-size: var(--fs-12); color: var(--ink-400); }
.form-input { padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--ink-200); background: #fff; font-family: var(--font-body); font-size: var(--fs-15); color: var(--ink-900); transition: border var(--dur-2) var(--ease-qwalky), box-shadow var(--dur-2) var(--ease-qwalky); }
.form-input:focus { outline: 0; border-color: var(--moss-600); box-shadow: 0 0 0 3px var(--moss-50); }
.form-input.has-error { border-color: var(--color-danger); }
.form-error { font-size: var(--fs-12); color: var(--color-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-checkbox { display: flex; gap: 8px; align-items: start; font-size: var(--fs-13); color: var(--ink-600); }

/* whatsapp form theme */
.modal-whatsapp .modal-head { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding-bottom: 24px; }
.modal-whatsapp .modal-title { color: #fff; }
.modal-whatsapp .modal-sub { color: rgba(255,255,255,.85); }
.modal-whatsapp .modal-close { color: rgba(255,255,255,.85); }
.modal-whatsapp .modal-close:hover { background: rgba(255,255,255,.15); color: #fff; }

/* success state */
.success-block { text-align: center; padding: 16px 8px; }
.success-ring { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--moss-50); display: grid; place-items: center; position: relative; }
.success-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--moss-200); animation: ring 1s var(--ease-qwalky); }
@keyframes ring { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); margin: 0 0 8px; }
.success-body { color: var(--ink-500); font-size: var(--fs-15); margin: 0 0 8px; }
.success-email { font-family: var(--font-mono); background: var(--ink-100); padding: 4px 8px; border-radius: 6px; color: var(--ink-900); font-size: var(--fs-13); }

/* ----- day detail full-page ----- */
.day-page { min-height: 100vh; background: var(--sand-50); animation: fadein var(--dur-4) var(--ease-qwalky); }
.day-head { background: var(--ink-900); color: var(--sand-50); padding: 32px 24px 80px; position: relative; overflow: hidden; }
.day-head-bg { position: absolute; inset: 0; opacity: .25; filter: blur(40px); }
.day-head-inner { max-width: var(--content-max); margin: 0 auto; position: relative; }
.day-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-300); background: transparent; border: 0; padding: 8px 12px; border-radius: 999px; font-size: var(--fs-14); font-weight: 500; margin-bottom: 24px; margin-left: -12px; }
.day-back:hover { background: rgba(255,255,255,.08); color: #fff; }
.day-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 720px) { .day-head-grid { grid-template-columns: 1fr; align-items: start; } }
.day-eyebrow { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--butter-300); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.day-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 6vw, 64px); line-height: 1; margin: 0 0 12px; letter-spacing: -0.03em; }
.day-sub { color: var(--ink-300); font-size: var(--fs-18); margin: 0; }
.day-head-stats { display: flex; gap: 24px; }
.day-head-stat { padding-right: 24px; }
.day-head-stat + .day-head-stat { border-left: 1px solid rgba(255,255,255,.12); padding-left: 24px; }
.day-head-stat-num { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-32); line-height: 1; color: #fff; }
.day-head-stat-lbl { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-400); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.day-body { max-width: var(--content-max); margin: -64px auto 0; padding: 0 24px 80px; position: relative; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .day-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .day-grid { grid-template-columns: 1fr; } }
.day-photo { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-100); cursor: pointer; position: relative; transition: transform var(--dur-2) var(--ease-qwalky); }
.day-photo:hover { transform: scale(1.02); }
.day-photo:hover .day-photo-overlay { opacity: 1; }
.day-photo svg, .day-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-photo.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 480px) { .day-photo.feature { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; } }
.day-photo-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,24,26,.7)); opacity: 0; transition: opacity var(--dur-2) var(--ease-qwalky); display: flex; align-items: end; padding: 12px; color: #fff; font-size: var(--fs-13); font-weight: 500; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,24,26,.94); z-index: 200; display: grid; place-items: center; padding: 24px; animation: fadein var(--dur-3) var(--ease-qwalky); }
.lightbox-img { max-width: min(1100px, 92vw); max-height: 80vh; border-radius: var(--radius-md); overflow: hidden; }
.lightbox-img svg, .lightbox-img img { width: 100%; height: auto; display: block; }
.lightbox-close { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,.1); border: 0; width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; width: 56px; height: 56px; border-radius: 50%; color: #fff; display: grid; place-items: center; }
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: var(--fs-13); }

/* ----- comments ----- */
.comments { margin-top: 56px; max-width: 760px; }
.comments-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.comments-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); margin: 0; }
.comments-count { font-family: var(--font-mono); color: var(--ink-400); font-size: var(--fs-14); }
.comment-composer { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 24px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--moss-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-15); }
.comment-textarea { width: 100%; border: 0; resize: vertical; min-height: 48px; font-family: inherit; font-size: var(--fs-15); color: var(--ink-900); background: transparent; outline: 0; }
.comment-textarea::placeholder { color: var(--ink-400); }
.comment-composer-foot { grid-column: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--ink-100); }
.comment-composer-hint { font-size: var(--fs-12); color: var(--ink-400); }
.comment-login-prompt { background: var(--sand-100); border: 1px dashed var(--ink-200); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 24px; }
.comment-login-prompt p { margin: 0 0 12px; color: var(--ink-600); }

.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.comment-body { background: var(--white); border-radius: var(--radius-lg); padding: 14px 16px; border: 1px solid var(--ink-100); }
.comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-name { font-weight: 600; font-size: var(--fs-14); color: var(--ink-900); }
.comment-time { font-size: var(--fs-12); color: var(--ink-400); font-family: var(--font-mono); }
.comment-text { font-size: var(--fs-15); color: var(--ink-700); line-height: 1.5; margin: 0; }

/* ----- toast ----- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink-900); color: #fff; padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-e2); z-index: 300; display: flex; gap: 10px; align-items: center; font-size: var(--fs-14); animation: toastin var(--dur-3) var(--ease-qwalky); }
@keyframes toastin { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss-400); }
