/* Version D homepage: Apple-style product tiles. Shared tokens, bar, buttons and footer live in
   /apple.css (loaded first); this file is the homepage layout only. Loads after styles.css + apple.css. */

/* Tiles: full-width bands with 12px white gaps, like the Apple homepage */
.tile { padding-block: 56px 0; text-align: center; background: var(--ground); overflow: hidden; }
.tile + .tile { margin-top: 12px; }
.tile-gray { background: var(--tile-gray); }
.tile-hero { padding-block: clamp(64px, 9vw, 110px) clamp(56px, 7vw, 96px); }
.tile-inner { width: min(980px, 100% - 2.5rem); margin-inline: auto; display: grid; justify-items: center; gap: .4rem; }
.tile-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.07; }
.tile-title-xl { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.06; max-width: 15ch; text-wrap: balance; }
.tile-sub { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; color: var(--ink); max-width: 34ch; text-wrap: balance; }
.tile-hero .tile-sub { color: var(--muted); max-width: 52ch; margin-top: .6rem; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.tile-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.1rem; }
.tile-note { margin-top: .7rem; font-size: .88rem; color: var(--muted); }

/* Product logos as tile names */
.tile-logo { display: flex; justify-content: center; }
.tile-logo .tf-logo { font-size: inherit; gap: .16em; }
.tile-logo .tf-icon { width: .92em; height: auto; }
.tile-logo .tf-word { font-size: inherit; font-weight: 700; }
.tile-logo .ek-logo { height: 1.1em; width: auto; }
.tile-title .wordmark-ltr b { color: inherit; font-weight: 600; }

/* The demo is the tile's "product image" */
.tile-visual { width: min(820px, 100% - 2.5rem); margin: 44px auto 0; padding-bottom: 64px; text-align: start; }
.tile-visual-narrow { width: min(560px, 100% - 2.5rem); }
.tile-visual .booking, .tile-visual .rsvp-invite, .tile-visual .rsvp-panel { background: var(--screen); border: 0; box-shadow: var(--soft-shadow); }
.tile-white .tile-visual .rsvp-invite, .tile-white .tile-visual .rsvp-panel { background: var(--tile-gray); box-shadow: none; }
.tile-visual .rsvp { grid-template-columns: 1.15fr 1fr; align-items: start; }
.tile-visual .booking .btn-primary { background: var(--btn); color: #fff; border-radius: 980px; box-shadow: none; }

/* Dark tile: SuperRTL, with the lens demo on a dark screen */
.tile-dark {
  background: var(--tile-dark); color: #F5F5F7;
  --ink: #F5F5F7; --muted: #A1A1A6; --screen: #1C1C1E; --edge: rgba(255, 255, 255, .1);
  --broken: #C3C9D6; --math: #A9BCFF; --code-bg: rgba(255, 255, 255, .06); --code-ink: #D9DFEC;
  --lens-ring: rgba(255, 255, 255, .55); --lens-glow: rgba(41, 151, 255, .18);
  --accent-soft: rgba(41, 151, 255, .14); --accent-line: rgba(41, 151, 255, .35); --hover: rgba(255, 255, 255, .1);
}
.tile-dark .tile-sub { color: #F5F5F7; }
.tile-dark .tile-note { color: #A1A1A6; }
.tile-visual-lens { width: min(720px, 100% - 2.5rem); }
.tile-visual-lens .device { padding: 0; }
.tile-visual-lens .screen { border-color: rgba(255, 255, 255, .1); }
.tile-visual-lens .device-label, .tile-visual-lens .hint { color: #A1A1A6; }

/* Services: Apple's two-up grid of tiles */
#services { padding-block: 96px 12px; }
#services .section-head { text-align: center; margin-inline: auto; max-width: 760px; margin-bottom: 48px; }
#services .section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
#services .section-head p { margin-inline: auto; max-width: 46ch; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
#services .container { width: 100%; }
.services { grid-template-columns: 1fr 1fr; gap: 12px; }
.svc { border-radius: 0; background: var(--tile-gray); border: 0; justify-items: center; text-align: center; padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px); gap: .5rem; }
.svc .lead-icon { width: 2.6rem; height: 2.6rem; color: var(--ink); margin-bottom: .4rem; }
.svc h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc p { color: var(--muted); max-width: 36ch; }
.svc-feature { grid-row: auto; grid-column: 1 / -1; background: var(--tile-gray); }
.svc-feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.setup { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1rem; }
.setup li { border: 0; padding: .55rem 1rem .55rem .7rem; border-radius: 980px; background: var(--screen); gap: .5rem; }
.setup .icon { width: 1.6rem; height: 1.6rem; padding: .3rem; background: transparent; color: var(--ink); }
.svc-wide { grid-column: 1 / -1; grid-template-columns: 1fr; justify-items: center; background: var(--tile-dark); color: #F5F5F7; box-shadow: none; }
[data-theme="dark"] .svc-wide { background: #161617; }
.svc-wide .lead-icon, .svc-wide p { color: #F5F5F7; }
.svc-wide p { opacity: .8; }
.btn-onaccent { background: var(--btn); color: #fff; border-radius: 980px; }
.services-cta { justify-content: center; padding-block: 40px 0; }
.services-cta .btn-primary { background: var(--btn); color: #fff; border-radius: 980px; box-shadow: none; }

/* Principles and contact */
#principles { padding-block: 96px; }
#principles h2 { text-align: center; font-size: clamp(2rem, 4vw, 3rem); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.principle, .principle:last-child { display: grid; grid-template-columns: 1fr; gap: .6rem; border: 0; padding: 0; text-align: center; justify-items: center; }
.principle h3 { font-size: 1.35rem; flex-direction: column; gap: .5rem; }
.principle h3 .icon { color: var(--ink); width: 2rem; height: 2rem; }
.principle p { font-size: 1rem; color: var(--muted); }
#contact { padding-block: 0 12px; }
.contact { border-radius: 0; background: var(--tile-gray); justify-items: center; text-align: center; padding: 72px 24px; }
#contact .container { width: 100%; }
.mail a { color: var(--accent); text-decoration: none; }
.mail a:hover { text-decoration: underline; }
.copy { background: var(--screen); border-color: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .tile-inner > * { animation: tile-in .7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .tile-inner > *:nth-child(2) { animation-delay: .06s; }
  .tile-inner > *:nth-child(3) { animation-delay: .12s; }
  @keyframes tile-in { from { opacity: .3; transform: translateY(16px); } }
}

@media (max-width: 760px) {
  .tile { padding-top: 44px; }
  .tile-visual { margin-top: 32px; padding-bottom: 44px; }
  .tile-visual .rsvp { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Vercel Web Interface Guidelines pass ──
   https://vercel.com/design/guidelines (interactions, content, design sections) */

/* The real cursor stays visible over the lens demo */
.screen { cursor: crosshair; }
/* Hover raises contrast (Vercel): homepage-only buttons */
.btn-onaccent:hover, .services-cta .btn-primary:hover { background: #0062C4; border-color: #0062C4; }
/* Inline validation in the booking demo */
.slot-error { font-size: .9rem; font-weight: 600; color: #B42318; }
[data-theme="dark"] .slot-error { color: #FF8A80; }
.slot-error[hidden] { display: none; }
/* Touch screens: every control is at least 44px */
@media (pointer: coarse) {
  .stepper button { width: 44px; height: 44px; }
  .copy, .rsvp-reset { min-height: 44px; }
  .mail a { display: inline-flex; align-items: center; min-height: 44px; }
}
