/* OWNR HAUS (ownr.haus) — shared styles. Layout lives inline in the built pages (copied from the approved canvas);
   this file holds the page shell, phone-width rules, the FAQ accordion and motion. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #241e18; }
.ownr-root { width: 100%; background: #fbfaf7; color: #2d261f; font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; font-weight: 600; overflow: hidden; }
html[lang="ko"] .ownr-root { font-family: Nunito, 'Noto Sans KR', system-ui, -apple-system, sans-serif; word-break: keep-all; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #f1cb5e; outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 16px; }

/* FAQ accordion (native details/summary) */
.faq { border-bottom: 1px solid #ebe6dc; padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 19px; font-weight: 900; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; }
.faq[open] .faq-v { display: none; }
.faq p { margin: 8px 0 0; font-size: 16px; color: #6b6359; }
.faq p a { color: #8a6714; font-weight: 800; }

/* phone width: every photo the same flat ratio; header = logo + language, menu below; header button hidden */
@media (max-width: 640px) {
  .ownr-root .ph { aspect-ratio: 16 / 9 !important; min-height: 0 !important; }
  .ownr-root .hdr-cta { display: none !important; }
  .ownr-root .hdr-right { order: 1; }
  .ownr-root .hdr-nav { order: 2; width: 100%; }
  /* app band: logo + title on one line; the two store buttons side by side (also in the first screen) */
  .ownr-root .store-row { flex-wrap: nowrap !important; width: 100%; }
  .ownr-root .store-row a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 12px !important; gap: 8px !important; }
  .ownr-root .app-title { flex: 1 1 0 !important; }
}

/* motion — off for people who ask for less motion */
@keyframes oh-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes oh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes oh-pop { from { opacity: 0; transform: translate(-16px, 12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes oh-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes oh-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,77,.45); } 70% { box-shadow: 0 0 0 6px rgba(31,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,77,0); } }
@media (prefers-reduced-motion: no-preference) {
  .in { animation: oh-up .8s cubic-bezier(.2,.7,.2,1) both; }
  .in2 { animation-delay: .12s; } .in3 { animation-delay: .24s; } .in4 { animation-delay: .36s; }
  .float { animation: oh-float 6s ease-in-out 1.2s infinite; }
  .pop { animation: oh-pop .7s cubic-bezier(.2,.7,.2,1) .9s both; }
  .bar { transform-origin: bottom; animation: oh-bar .9s cubic-bezier(.2,.7,.2,1) .3s both; }
  .bar:nth-child(2) { animation-delay: .36s; } .bar:nth-child(3) { animation-delay: .42s; } .bar:nth-child(4) { animation-delay: .48s; }
  .bar:nth-child(5) { animation-delay: .54s; } .bar:nth-child(6) { animation-delay: .6s; } .bar:nth-child(7) { animation-delay: .66s; }
  .pulse { animation: oh-pulse 2.4s ease-out infinite; }
  .lift { transition: translate .25s ease, box-shadow .25s ease; }
  .lift:hover { translate: 0 -4px; box-shadow: 0 16px 32px rgba(77,58,12,.12); }
  a.lift img { transition: scale .6s ease; }
  a.lift:hover img { scale: 1.04; }
  .btn { transition: filter .2s ease, translate .2s ease; }
  .btn:hover { filter: brightness(.95); translate: 0 -1px; }
  @supports (animation-timeline: view()) {
    .rv { animation: oh-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .rv:nth-child(2) { animation-range: entry 10% entry 100%; }
    .rv:nth-child(3) { animation-range: entry 20% entry 100%; }
    .rv:nth-child(4) { animation-range: entry 30% entry 100%; }
    .rv:nth-child(n+5) { animation-range: entry 40% entry 100%; }
  }
}
