/* Hami home page. No scripts: Mochi's movement, the hello on hover or tap, and the section reveals are all CSS.
   Legal and support pages keep using /styles.css. */

@font-face { font-family: Fredoka; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Nunito; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #3A2A20; --muted: #6E5646; --teal: #1F6F70; --teal-d: #17595A;
  --cream: #FFF7EA; --paper: #FFFFFF; --edge: #F0DFC8; --butter: #FFD46B;
  --sand: #FBE7C9; --lilac: #E9E3F4; --blush: #FFE1DC; --night: #3A2A4E; --navy: #1E2A4A;
  --display: Fredoka, Nunito, ui-rounded, system-ui, sans-serif;
  --body: Nunito, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-d); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.small { font-size: 1rem; margin-top: 28px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--teal); margin-bottom: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 5; }
.skip:focus { left: 8px; }

/* Header */
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.6rem; }
.brand img { border-radius: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 0; }
.nav a:hover { color: var(--teal); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; line-height: 1.2; text-decoration: none; text-align: center; }
.btn-teal { background: var(--teal); color: #FFFFFF; }
a.btn-teal:hover { background: var(--teal-d); color: #FFFFFF; }
.btn-butter { background: var(--butter); color: var(--ink); }
a.btn-butter:hover { background: #FFC93C; color: var(--ink); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.soon { cursor: default; }

/* Hero */
.hero { padding: 28px 0 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 32px; }
.lede { font-size: 1.25rem; color: var(--muted); margin-top: 20px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.note { margin-top: 14px; color: var(--muted); font-weight: 700; }
.hero-art { display: grid; justify-items: center; }
.mochi-btn { appearance: none; border: 0; padding: 0; margin: 0; background: radial-gradient(circle at 50% 56%, var(--butter) 0 58%, transparent 58.5%); cursor: pointer; width: min(100%, 31rem); border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.mochi { display: block; position: relative; width: 100%; aspect-ratio: 280 / 270; }
.l { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.hint { font-family: var(--display); font-weight: 500; color: var(--muted); margin-top: 4px; }

.hop, .breathe { transform-origin: 50% 89%; }
.breathe { animation: hm-breathe 3.2s ease-in-out infinite; }
.ear-l { transform-origin: 38% 46%; animation: hm-ear-l 4s ease-in-out infinite; }
.ear-r { transform-origin: 62% 46%; animation: hm-ear-r 5.4s ease-in-out infinite; }
.tuft { transform-origin: 47.5% 38.5%; animation: hm-tuft 2.6s ease-in-out infinite; }
.eyes { transform-origin: 50% 62.6%; animation: hm-blink 4.6s linear infinite; }
.eyes-joy, .face-open { opacity: 0; }
.paw-wave { transform-origin: 71% 64%; opacity: 0; animation: hm-greet 9s ease-in-out infinite; }
.paw-r { animation: hm-rest 9s ease-in-out infinite; }

/* Say hello: hover with a mouse, tap on a phone, or focus with the keyboard. */
.mochi-btn:hover .hop, .mochi-btn:focus-visible .hop { animation: hm-hop 0.62s ease-out 1; }
.mochi-btn:hover .eyes, .mochi-btn:focus-visible .eyes, .mochi-btn:hover .face, .mochi-btn:focus-visible .face, .mochi-btn:hover .paw-r, .mochi-btn:focus-visible .paw-r { opacity: 0; animation: none; }
.mochi-btn:hover .eyes-joy, .mochi-btn:focus-visible .eyes-joy, .mochi-btn:hover .face-open, .mochi-btn:focus-visible .face-open { opacity: 1; }
.mochi-btn:hover .paw-wave, .mochi-btn:focus-visible .paw-wave { opacity: 1; animation: hm-wave 0.42s ease-in-out infinite; }

@keyframes hm-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.985, 1.03); } }
@keyframes hm-blink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes hm-ear-l { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(-16deg); } 74% { transform: rotate(6deg); } 80% { transform: rotate(0); } }
@keyframes hm-ear-r { 0%, 24%, 44%, 100% { transform: rotate(0); } 30% { transform: rotate(14deg); } 36% { transform: rotate(-5deg); } }
@keyframes hm-tuft { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
@keyframes hm-wave { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-14deg); } }
@keyframes hm-hop { 0% { transform: scale(1.07, 0.91); } 32% { transform: translateY(-11%) scale(0.96, 1.06); } 62% { transform: translateY(0) scale(1.06, 0.93); } 100% { transform: none; } }
/* Every nine seconds he waves on his own. */
@keyframes hm-rest { 0%, 9%, 31%, 100% { opacity: 1; } 10%, 30% { opacity: 0; } }
@keyframes hm-greet { 0%, 9%, 31%, 100% { opacity: 0; transform: rotate(4deg); } 10%, 30% { opacity: 1; } 12.5%, 17.5%, 22.5%, 27.5% { transform: rotate(-14deg); } 15%, 20%, 25% { transform: rotate(4deg); } }

/* Bands */
.band { padding: 84px 0; }
.sand { background: var(--sand); }
.lilac { background: var(--lilac); }
.blush { background: var(--blush); }
.cream { background: var(--cream); }
.night { background: var(--night); color: #FFF7EA; }
.navy { background: var(--navy); color: #FFF7EA; }
.teal { background: var(--teal); color: #FFFFFF; }
.night .eyebrow, .navy .eyebrow { color: var(--butter); }
.night p, .navy p { color: #EDE4F2; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.card { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 28px; overflow: hidden; padding-bottom: 22px; }
.card img { width: 100%; }
.card h3 { margin: 18px 22px 6px; }
.card p { margin: 0 22px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.split-copy p { margin-top: 16px; font-size: 1.15rem; max-width: 32rem; }
.split-art { border-radius: 32px; width: 100%; }
.split-art.phone { max-width: 25rem; justify-self: center; }
.ticks { margin-top: 22px; display: grid; gap: 10px; font-weight: 700; }
.ticks li { padding-left: 34px; background: url("/img/tick.svg") 0 2px / 24px 24px no-repeat; }
.pill-note { display: inline-block; margin-top: 22px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 700; font-size: 1rem !important; color: #FFF7EA !important; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.tile { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 28px; padding: 26px 26px 28px; }
.tile svg { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 14px 0 6px; }
.tile p { color: var(--muted); }

.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 22px; padding: 0 22px; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.2rem; padding: 18px 28px 18px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.6rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.teal h2 { color: #FFFFFF; }
.teal p { margin-top: 26px; }
.follow { font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.follow a { color: #FFFFFF; padding: 10px 0; }

.foot { background: var(--ink); color: #EFE3D6; padding: 44px 0 36px; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.foot-brand { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #FFFFFF; }
.foot nav { display: grid; gap: 2px; }
.foot a { color: #FFFFFF; padding: 8px 0; }
.copy { grid-column: 1 / -1; color: #C9B8A8; }

/* Sections ease in as they scroll into view, where the browser can do that without a script. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: hm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes hm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mochi *, .mochi-btn:hover .hop, .mochi-btn:focus-visible .hop { animation: none !important; }
}

@media (max-width: 60rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .hero { padding: 12px 0 56px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-art { order: -1; }
  .mochi-btn { width: min(100%, 21rem); }
  .band { padding: 60px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.flip .split-art { order: -1; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .teal .btn { width: auto; }
}
@media (max-width: 30rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0 18px; }
}
