/* Mofutowa website — tokens from the app (mobile/lib/core/design_system.dart). */
/* The app's font (M PLUS Rounded 1c, OFL), subset by tools/fonts.py. */
@font-face { font-family: 'M PLUS Rounded 1c'; src: url('fonts/mplus-latin-400.woff2') format('woff2'); font-weight: 300 500; font-display: swap; unicode-range: U+0000-024F, U+0300-0323, U+1EA0-1EF9, U+2000-206F, U+20AB-20AC, U+2122, U+2190-2193; }
@font-face { font-family: 'M PLUS Rounded 1c'; src: url('fonts/mplus-latin-700.woff2') format('woff2'); font-weight: 600 900; font-display: swap; unicode-range: U+0000-024F, U+0300-0323, U+1EA0-1EF9, U+2000-206F, U+20AB-20AC, U+2122, U+2190-2193; }

:root {
  --cream: #fbf9f6;
  --paper: #ffffff;
  --ink: #25221f;
  --muted: #6c645d;
  --caramel: #bb8c61;
  --deep: #87603f;
  --accent: #87603f;
  --brand: #604136;
  --card-title: #644337;
  --peach: #f6eee7;
  --blush: #f7f0e9;
  --mint: #eaf6ef;
  --green: #438f72;
  --green-dark: #2d6f56;
  --sky: #edf5ff;
  --border: #f0ede9;
  --line: #e9dfd6;
  --hero: linear-gradient(115deg, #f9f1e8 0%, #f6eee7 45%, #edf5ef 100%);
  --shadow: 0 4px 15px rgba(89, 70, 58, 0.04);
  --shadow-lg: 0 24px 60px rgba(89, 70, 58, 0.14);
  --r-card: 22px;
  --r-btn: 17px;
  --max: 1160px;
  --font: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--deep); }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid rgba(187, 140, 97, 0.55); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; height: 48px; width: auto; }
.footer .brand-logo { height: 64px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.8; }
.nav a:hover { opacity: 1; color: var(--deep); }
.lang { display: flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--border); border-radius: 999px; }
.lang a { font-size: 13px; text-decoration: none; padding: 5px 12px; border-radius: 999px; color: var(--ink); }
.lang a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 700; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--paper); border-radius: 14px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-btn);
  font: 700 15px/1 var(--font); text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(187, 140, 97, 0.3); }
.btn-primary:hover { background: #6f4e33; }
.btn-alt { background: var(--paper); color: var(--deep); border-color: var(--line); }
.btn-alt:hover { background: var(--blush); }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; position: relative; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.store strong { display: block; font-size: 16px; line-height: 1.2; }
.store[aria-disabled="true"] { opacity: 0.88; cursor: default; }
.soon { position: absolute; top: -9px; right: -8px; background: var(--green-dark); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--hero); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--deep); font-weight: 700; font-size: 13px; padding: 6px 14px 6px 8px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 18px 0 18px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--deep); white-space: nowrap; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #5f5751; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.phone {
  width: 290px; aspect-ratio: 580 / 1300; border-radius: 46px; padding: 11px;
  background: #2b2420; box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a3e37;
  position: relative;
}
/* Status-bar strip so the notch never covers the app header. */
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: var(--cream); padding-top: 30px; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 78px; height: 20px; border-radius: 12px; background: #2b2420; z-index: 2; }
.float {
  position: absolute; z-index: 3; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; max-width: 230px; text-align: left;
}
.float img { width: 30px; height: 30px; }
.float strong { display: block; font-size: 14px; }
.float span { color: var(--muted); }
.float.a { left: 0; top: 22%; }
.float.b { right: 0; bottom: 18%; }
.free { background: var(--green-dark); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; margin-right: 6px; }
.eyebrow { padding: 6px 14px 6px 6px; }

/* stats band */
.stats-band { padding: 0; margin-top: -28px; position: relative; z-index: 2; }
.stats { list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r-card); box-shadow: 0 14px 40px rgba(89, 70, 58, 0.08); }
.stats li { text-align: center; padding: 4px 8px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--deep); line-height: 1.2; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- sections */
section { padding: 46px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kicker { color: var(--deep); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid #f5f2ee; border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 28px; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(89, 70, 58, 0.09); }
.icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.icon img { width: 34px; height: 34px; }
.card h3 { font-size: 19px; font-weight: 800; color: var(--card-title); margin-bottom: 8px; }
.card p { color: #6a625c; font-size: 15px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: #6a625c; }
.card li { padding-left: 18px; position: relative; margin: 4px 0; }
.card li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--caramel); }
.t-mint { background: var(--mint); } .t-peach { background: var(--peach); } .t-sky { background: var(--sky); } .t-blush { background: #fbecea; }

/* screens */
.screens { background: var(--paper); }
.slider { position: relative; }
/* Side padding lets the first and last screens sit in the centre. */
.shots {
  display: flex; gap: 28px; overflow-x: auto; padding: 16px calc(50% - 118px) 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -4px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 236px; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 100%; }
/* Coverflow: site.js sets --s (scale), --r (tilt) and --o (fade) from the distance to the centre. */
.js .shot .phone {
  transform: perspective(1000px) rotateY(calc(var(--r, 0) * 1deg)) scale(var(--s, 1));
  opacity: var(--o, 1); transition: transform 0.25s ease-out, opacity 0.25s, box-shadow 0.3s;
}
.js .shot figcaption { opacity: var(--o, 1); transition: opacity 0.25s; }
.shot.active .phone { box-shadow: 0 32px 70px rgba(89, 70, 58, 0.22); }
.shot figcaption { margin-top: 18px; font-weight: 700; }
.slider-nav { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.js .slider-nav { display: flex; }
.sl-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background 0.2s, transform 0.2s;
}
.sl-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sl-btn:hover:not(:disabled) { background: var(--peach); transform: scale(1.06); }
.sl-btn:disabled { opacity: 0.4; cursor: default; }
.dots { display: flex; gap: 8px; }
.dots { gap: 0; }
.dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 9px; height: 9px; border-radius: 99px; background: #e2d6cb; transition: width 0.3s, background 0.3s; }
.dot[aria-current="true"] { width: 34px; }
.dot[aria-current="true"]::before { width: 26px; background: var(--caramel); }
.sl-btn:focus-visible, .dot:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* steps */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 28px; width: 34px; height: 34px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* species */
.species { background: var(--hero); }
.pets { grid-template-columns: repeat(4, 1fr); }
.pet { text-align: center; padding: 30px 20px; }
.pet img { width: 72px; height: 72px; margin: 0 auto 14px; }
.pet h3 { font-size: 18px; }
.pet p { font-size: 14px; }

/* privacy */
.privacy-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.privacy-list { display: grid; gap: 14px; }
.pl { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid #f5f2ee; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.pl img { width: 36px; height: 36px; flex: none; }
.pl strong { display: block; color: var(--card-title); }
.pl span { color: #6a625c; font-size: 15px; }
.privacy-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 16px; }
.privacy-copy p { color: #5f5751; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--paper); border: 1px solid #f5f2ee; border-radius: 18px; box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 10px; background: var(--peach); color: var(--deep); display: grid; place-items: center; font-size: 18px; transition: rotate 0.2s; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 24px 22px; color: #6a625c; }

/* cta */
.cta { padding: 0 0 96px; }
.cta-box { background: var(--brand); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-box h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.cta-box p { opacity: 0.85; margin-top: 10px; }
.cta-box .btn-primary { background: #fff; color: var(--brand); box-shadow: none; position: relative; z-index: 1; }
.cta-box .btn-primary:hover { background: var(--peach); }

/* footer */
.footer { position: relative; margin-top: 24px; color: #e9ddd3; font-size: 15px; }
.footer-wave svg { display: block; width: 100%; height: 48px; fill: var(--brand); }
.footer-main { background: var(--brand); padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; }
.fbrand p { margin-top: 16px; color: #d9c8bb; max-width: 30em; line-height: 1.7; }
.fsoon { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px !important; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #f3e6da !important; font-size: 13px; font-weight: 700; }
.fcol h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fcol a { color: #d9c8bb; text-decoration: none; transition: color 0.15s; }
.fcol a:hover, .fcol a[aria-current="page"] { color: #fff; }
.fcol a[aria-current="page"]::before { content: '● '; color: var(--caramel); font-size: 10px; vertical-align: 2px; }
.fmail-h { margin-top: 22px; }
.fmail { word-break: break-all; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #c9b6a8; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #f3e6da; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); transition: background 0.15s; }
.to-top:hover { background: rgba(255, 255, 255, 0.16); }
.to-top .kp { rotate: -90deg; }

/* ---------------------------------------------------------------- pet touches */
.kp { width: 14px; height: 14px; fill: currentColor; flex: none; vertical-align: -2px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; }

/* Hover: icons hop, pets wiggle. */
.card:hover .icon { animation: hop 0.6s ease; }
.pet:hover img { animation: wiggle 0.8s ease; }
@keyframes hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -8px; } 70% { translate: 0 2px; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; } 40% { rotate: 7deg; } 60% { rotate: -4deg; } 80% { rotate: 2deg; } }
.pet img { transform-origin: 50% 85%; }
.shot.active:hover .phone { translate: 0 -6px; }
.shot:not(.active) { cursor: pointer; }
.cta-box { isolation: isolate; }
.cta-box .btn-primary:hover .kp, .btn:hover .kp { animation: hop 0.6s ease; }

/* reveal on scroll (no effect without JS or with reduced motion) */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.6s, translate 0.6s; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- responsive */
/* use cases */
.usecases { grid-template-columns: 1fr 1fr; }
.uc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.uc-head .icon { margin: 0; flex: none; }
.uc-head h3 { margin: 0; }
.scene { background: var(--cream); border-radius: 14px; padding: 12px 16px; color: var(--ink) !important; font-weight: 500; }
.scene span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--deep); margin-bottom: 2px; }
.card .checks li::before { content: ''; width: 5px; height: 10px; border-radius: 0; background: none; border: solid var(--green); border-width: 0 2.5px 2.5px 0; rotate: 45deg; top: 4px; left: 5px; }
.card .checks li { padding-left: 22px; }

/* blog cards */
.blog { background: var(--paper); }
.posts { grid-template-columns: repeat(3, 1fr); }
.posts.two { grid-template-columns: 1fr 1fr; }
.post-card { padding: 0; overflow: hidden; }
.post-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.post-cover::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 18% 28%, #fff 0 14px, transparent 15px), radial-gradient(circle at 84% 70%, #fff 0 22px, transparent 23px), radial-gradient(circle at 70% 18%, #fff 0 8px, transparent 9px);
}
.post-cover img { position: relative; width: 96px; height: 96px; padding: 16px; border-radius: 28px; background: #fff; box-shadow: 0 12px 28px rgba(89, 70, 58, 0.12); transition: transform 0.3s; }
.post-card:hover .post-cover img { transform: scale(1.08) rotate(-4deg); }
.post-text { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.post-meta span::before { content: '·'; margin-right: 14px; }
.post-card h2, .post-card h3 { font-size: 18px; font-weight: 800; line-height: 1.45; color: var(--card-title); margin: 0 0 8px; }
.post-card p:not(.post-meta) { color: #6a625c; font-size: 14.5px; margin: 0 0 16px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--deep); font-weight: 700; font-size: 14px; }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.2s; }
.post-card:hover .arrow, .btn:hover .arrow { translate: 4px 0; }
.btn .arrow { margin-left: 6px; vertical-align: -3px; }
.center { text-align: center; margin-top: 32px; }

/* blog pages */
.page-head { padding-top: 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 10px 0 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.narrow { max-width: 780px; }
.post { padding: 32px 0 24px; }
.post-cover.big { border-radius: var(--r-card); margin-bottom: 24px; aspect-ratio: 21 / 8; }
.post-cover.big img { width: 124px; height: 124px; padding: 20px; border-radius: 34px; }
.post-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.35; margin: 4px 0 14px; text-wrap: balance; }
.post-lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16.5px; line-height: 1.95; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; padding-left: 14px; border-left: 4px solid var(--caramel); line-height: 1.4; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin: 6px 0; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.8em; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); }
.post-app { margin: 36px 0 8px; padding: 22px 24px; border-radius: var(--r-card); background: var(--hero); border: 1px solid var(--line); }
.post-app strong { display: block; color: var(--deep); margin-bottom: 6px; }
.post-app p { margin: 0; font-size: 15.5px; }
.post-note { font-size: 13.5px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; margin: 28px 0 20px; }
.back { color: var(--deep); font-weight: 700; text-decoration: none; }
.back::before { content: '← '; }
.back:hover { text-decoration: underline; }
.related { background: var(--paper); }
.related-title { font-size: 24px; font-weight: 800; margin: 0 0 24px; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .pets, .steps { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .blog .posts > :nth-child(3) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .lead { margin: 0 auto; }
  .actions, .trust { justify-content: center; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .header.open .nav > a { padding: 12px 0; font-size: 17px; }
  .header.open .nav .lang a { padding: 7px 16px; font-size: 14px; }
  .header.open .nav .lang { display: inline-flex; width: max-content; margin-top: 8px; }
  section { padding: 12px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 15px; }
  .features, .usecases, .posts, .posts.two { grid-template-columns: 1fr; }
  .blog .posts > :nth-child(3) { display: block; }
  .card.post-card { padding: 0; }
  .post-text { padding: 16px 18px 18px; }
  .prose { font-size: 16px; line-height: 1.85; }
  .prose h2 { font-size: 19px; margin-top: 32px; }
  .post-cover.big { aspect-ratio: 16 / 7; }
  .steps, .pets { grid-template-columns: 1fr 1fr; }
  .shot { width: 210px; }
  .shots { gap: 16px; padding-inline: calc(50% - 105px); }
  /* Two columns on a phone: compact cards so text stays tidy. */
  .grid { gap: 12px; }
  .card { padding: 16px; }
  .icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
  .icon img { width: 26px; height: 26px; }
  .card h3 { font-size: 16px; line-height: 1.35; }
  .card p { font-size: 13.5px; line-height: 1.55; }
  .card ul { font-size: 13px; }
  .card li { padding-left: 14px; }
  .card li::before { width: 6px; height: 6px; top: 9px; left: 1px; }
  .step { padding-top: 54px; }
  .step::before { top: 16px; left: 16px; width: 30px; height: 30px; border-radius: 10px; }
  .pet { padding: 20px 12px; }
  .pet img { width: 56px; height: 56px; margin-bottom: 10px; }
  .pet h3 { font-size: 16px; }
  .pet p { font-size: 13px; }
  .phone { width: 250px; }
  .float.a { left: 0; top: 10%; }
  .float.b { right: 0; bottom: 8%; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .fbrand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .card, .btn, .js .shot .phone, .js .shot figcaption { transition: none; }
  .card:hover .icon, .pet:hover img { animation: none; }
}


/* ---------------------------------------------------------------- nav state */
.nav a[aria-current="page"] { opacity: 1; color: var(--deep); font-weight: 700; }
.mt { margin-top: 22px; }
.h3 { font-size: 19px; font-weight: 800; color: var(--card-title); margin-bottom: 8px; }

/* feature grid (home) */
.fgrid { grid-template-columns: repeat(4, 1fr); }
.fcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 22px; }
.fcard .icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 14px; }
.fcard .icon img { width: 28px; height: 28px; }
.fcard h3 { font-size: 17px; }
.fcard p { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }

/* inner page hero banner */
.page-hero { background: var(--hero); padding: 28px 0 48px; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-hero.has-art .wrap { grid-template-columns: 1.25fr 0.75fr; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 16px; }
.page-hero .lead { max-width: 38em; }
.ph-art { display: grid; place-items: center; }
.ph-art .phone { width: 240px; rotate: 3deg; margin-bottom: -120px; }
.page-hero.has-art { padding-bottom: 0; }
.page-hero.has-art .ph-copy { padding-bottom: 48px; }
.free-pill { display: inline-block; margin-top: 18px; background: var(--green-dark); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }

/* feature chips + alternating rows */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 32px; padding-bottom: 8px; }
.chips a { font-size: 14px; text-decoration: none; color: var(--brand); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.chips a:hover { background: var(--peach); }
.frows .wrap { display: grid; gap: 56px; }
.frow { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; max-width: 960px; margin: 0 auto; scroll-margin-top: 96px; }
.frow:nth-child(even) { grid-template-columns: 1fr 320px; }
.frow:nth-child(even) .frow-art { order: 2; }
.frow-art { display: grid; place-items: center; background: var(--hero); border-radius: 32px; padding: 32px 0; }
.frow-art .phone { width: 240px; }
.frow h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin: 0 0 12px; color: var(--card-title); }
.frow p { color: #5f5751; font-size: 16.5px; }
.frow .checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.frow .checks li { position: relative; padding-left: 26px; }
.frow .checks li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
.more-features, .tips { background: var(--paper); }
[id] { scroll-margin-top: 90px; }

/* faq page */
.faq-page { padding: 40px 24px 8px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.ask { margin: 48px 0 24px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; }
.ask h2 { font-size: 22px; margin-bottom: 16px; }

/* about */
.about-story h2 { margin-top: 0; }
.company { display: grid; gap: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.company div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 22px; }
.company div + div { border-top: 1px solid var(--line); }
.company dt { font-weight: 700; color: var(--card-title); }
.company dd { margin: 0; color: #5f5751; }

/* contact */
.mail-box { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 22px; background: var(--paper); border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow); }
.mail-box span { font-size: 13px; color: var(--muted); }
.mail-box a { font-size: 20px; font-weight: 800; text-decoration: none; }
.mail-box small { color: var(--muted); font-size: 13px; }
.contact-grid { grid-template-columns: repeat(4, 1fr); }
.contact-card { display: flex; flex-direction: column; }
.contact-card p { flex: 1; margin-bottom: 16px; }
.contact-card .btn { min-height: 44px; font-size: 14px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-decoration: none; font-weight: 700; }
.link-list a::after { content: ' →'; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* blog archive + article */
.blog-list { padding-top: 40px; }
.post-feature { padding: 0; overflow: hidden; margin-bottom: 20px; }
.post-feature > a { display: grid; grid-template-columns: 1fr 1fr; color: inherit; text-decoration: none; }
.post-feature .post-cover { aspect-ratio: auto; min-height: 260px; }
.post-feature .post-text { padding: 32px; justify-content: center; }
.post-feature h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--card-title); margin: 0 0 10px; line-height: 1.4; }
.post-feature p:not(.post-meta) { color: #6a625c; margin-bottom: 16px; }
.guides-band { background: var(--paper); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.guide-grid a { display: block; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; font-weight: 700; }
.guide-grid img { width: 44px; height: 44px; display: block; margin-bottom: 8px; }
.post-head .post-meta { margin: 0 0 14px; }
.by a { color: var(--deep); text-decoration: none; font-weight: 700; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 0 0 28px; }
.toc p { font-weight: 800; margin-bottom: 8px; color: var(--card-title); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .header.open .nav > a { padding: 10px 0; font-size: 17px; }
  .header.open .nav .lang { display: inline-flex; width: max-content; margin-top: 8px; }
  .fgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .fcard { padding: 18px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .hero-copy .lead { margin: 0 auto; }
  .page-hero.has-art .wrap { grid-template-columns: 1fr; }
  .ph-art { display: none; }
  .page-hero.has-art { padding-bottom: 40px; }
  .page-hero.has-art .ph-copy { padding-bottom: 0; }
  .frow, .frow:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .frow:nth-child(even) .frow-art { order: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .post-feature > a { grid-template-columns: 1fr; }
  .post-feature .post-cover { min-height: 180px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px 0; padding: 16px 8px; }
  .stats li:nth-child(3) { border-left: 0; }
      .float { padding: 8px 12px; font-size: 12px; max-width: 180px; }
  .float strong { font-size: 13px; }
  .float img { width: 24px; height: 24px; }
  .float.a { top: 12%; }
  .float.b { bottom: 10%; }
  .fcard { padding: 16px; }
  .fcard p { font-size: 13px; }
  .page-hero { padding: 20px 0 32px; }
  .frow-art .phone { width: 210px; }
  .frows .wrap { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .company div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-feature .post-text { padding: 20px; }
}
@media (max-width: 760px) {
  .eyebrow { padding: 5px; }
  .eyebrow .ey { display: none; }
  .free { margin-right: 0; font-size: 13px; padding: 4px 12px; }
      .hero .wrap { padding-bottom: 48px; }
}
.blog-list .posts { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .blog-list .posts { grid-template-columns: 1fr; } }

/* ================================================================ v2: hero collage, type, rhythm */
/* Japanese: break only between phrases (<wbr> from BudouX), never inside a word. */
:lang(ja) body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, .h3, summary, figcaption, .float strong { text-wrap: balance; }
:lang(vi) p, :lang(en) p { text-wrap: pretty; }
.nav a, .btn, .store strong, .lang a, .kicker, .more, .free, .free-pill { white-space: nowrap; }
body { font-size: 16px; line-height: 1.8; letter-spacing: 0.01em; }
:lang(ja) body { letter-spacing: 0.03em; }
h1, h2, h3 { font-weight: 800; letter-spacing: 0; }

/* rhythm */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .privacy-copy h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin: 12px 0 14px; }
.section-head p { font-size: 16px; line-height: 1.8; }
.grid { gap: 20px; }
.card { padding: 26px; border-radius: 22px; border-color: var(--border); }
.card h3, .h3 { font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.75; }
.card ul { font-size: 14px; line-height: 1.7; }
.btn { min-height: 50px; padding: 0 26px; font-size: 15px; }
.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; color: #5b534d; }
.nav { gap: 22px; }
.nav a { font-size: 14.5px; }

/* hero */
.hero { padding: 0; }
.hero .wrap { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.3; margin: 20px 0; }
.hero-art { position: relative; height: 540px; }
.hero-blob { position: absolute; inset: 8% 4% 6% 10%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: radial-gradient(circle at 30% 30%, #fff 0%, #fbeee2 55%, #eef6f0 100%); }
.pc { position: absolute; margin: 0; border-radius: 28px; overflow: hidden; background: var(--peach); border: 6px solid #fff; box-shadow: 0 24px 50px rgba(89, 70, 58, 0.18); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.pc img { width: 100%; height: 100%; object-fit: cover; }
.pc-dog { width: 46%; aspect-ratio: 4 / 5; left: 27%; top: 6%; z-index: 2; }
.pc-cat { width: 34%; aspect-ratio: 4 / 5; right: 0; top: 0; rotate: 5deg; }
.pc-rabbit { width: 34%; aspect-ratio: 4 / 5; left: 0; bottom: 4%; rotate: -5deg; z-index: 3; }
.hero-art .float { z-index: 4; }
.hero-art .float.a { left: 2%; top: 14%; }
.hero-art .float.b { right: 0; bottom: 10%; }
.pc:hover { box-shadow: 0 30px 60px rgba(89, 70, 58, 0.24); }
@media (prefers-reduced-motion: no-preference) {
  .pc { animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) both, drift 7s ease-in-out 1s infinite; }
  .pc-cat { animation-delay: 0.12s, 1.6s; }
  .pc-rabbit { animation-delay: 0.24s, 2.2s; }
  .hero-art .float { animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) 0.4s both, drift 6s ease-in-out 1.4s infinite; }
  .hero-art .float.b { animation-delay: 0.55s, 2.4s; }
  .pc:hover { transform: translateY(-6px) scale(1.02); }
}
@keyframes rise { from { transform: translateY(26px) scale(0.97); } to { transform: none; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blob { to { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; rotate: 8deg; } }

/* feature cards: equal height, title on one or two lines */
.fcard { padding: 22px; }
.fcard h3 { font-size: 17px; }
.fcard p { flex: 1; }
.stats strong { font-size: clamp(26px, 3vw, 36px); }
.stats span { font-size: 13.5px; line-height: 1.5; display: block; }
.frow h2 { line-height: 1.4; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.3; }
.post-head h1 { line-height: 1.45; }
.prose { line-height: 2; }
:lang(en) .prose, :lang(vi) .prose { line-height: 1.85; }
.footer { font-size: 14.5px; }
.fcol ul { gap: 8px; }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 72px; }
  .hero-art { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero-art { height: 360px; }
  .pc { border-width: 4px; border-radius: 22px; }
  .hero-art .float { padding: 8px 12px; }
  .hero-art .float span { display: none; }
  .hero-art .float.a { left: 0; top: 4%; }
  .hero-art .float.b { right: 0; bottom: 2%; }
  .card { padding: 18px; }
  .fcard h3 { font-size: 15.5px; min-height: 0; }
  .card p { font-size: 14px; }
  .stats-band { margin-top: -36px; }
}
@media (max-width: 760px) {
  .fgrid, .steps, .features, .usecases { grid-template-columns: 1fr; }
  .fcard { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px 18px; }
  .fcard .icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 2px 0 0; }
  .fcard .icon img { width: 26px; height: 26px; }
  .fcard h3 { margin: 0; font-size: 16px; }
  .fcard p { margin: 0; font-size: 14px; line-height: 1.7; }
  .fcard .more { display: none; }
  .actions { flex-wrap: nowrap; gap: 10px; justify-content: center; }
  .store { min-height: 50px; padding: 6px 12px; gap: 8px; border-radius: 14px; }
  .store svg { width: 20px; height: 20px; }
  .store strong { font-size: 14px; }
  .store small { font-size: 10px; }
  .soon { font-size: 10px; padding: 1px 7px; }
  .trust { flex-direction: column; align-items: center; gap: 6px; }
  .hero h1 { font-size: 32px; }
}
/* Skip layout/paint of sections below the first screen until they are near (faster first paint). */
main > section:not(.hero):not(.stats-band):not(.page-hero) { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ================================================================ v3: bold menu, flag switch, footer */
.nav a { font-weight: 700; opacity: 0.85; }
.header .wrap { gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; flex: none; }
.lang a { display: grid; place-items: center; padding: 5px 7px; border-radius: 999px; line-height: 0; }
.lang a[aria-current="page"] { background: var(--peach); box-shadow: inset 0 0 0 2px var(--accent); }
.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; }
.lang a:not([aria-current]) .flag { opacity: 0.75; transition: opacity 0.15s; }
.lang a:hover .flag { opacity: 1; }
@media (max-width: 1100px) {
  .header .lang { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .header.open .nav > a { font-weight: 700; }
}
@media (max-width: 380px) { .lang a { padding: 5px 5px; } .flag { width: 22px; height: 15px; } }

/* footer */
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.fmail { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.fmail span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fmail a { color: #f3e6da; text-decoration: none; font-weight: 700; }
.flangs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flangs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #f3e6da; text-decoration: none; font-size: 13.5px; }
.flangs a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 700; }
.flangs .flag { width: 20px; height: 14px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .footer-main { padding: 28px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .fbrand { text-align: left; }
  .fcol h3 { margin-bottom: 8px; font-size: 12px; }
  .fcol ul { gap: 2px; }
  .fcol a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; }
  .fcol:last-child { grid-column: 1 / -1; }
  .fcol:last-child ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 24px; }
}
.flangs { gap: 6px; } .flangs a { padding: 6px 10px; gap: 6px; }
/* answer-first definition block */
.define { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.define-box { max-width: 920px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.define-box h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.define-a { font-size: 16.5px; line-height: 1.9; color: #4e4741; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 22px 0 0; }
.facts div { background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--deep); letter-spacing: 0.04em; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.5; }

/* ================================================================ v4: four-pet hero with hearts */
.hero-art { height: 560px; }
.pc-dog { width: 44%; left: 3%; top: 2%; rotate: -3deg; z-index: 2; }
.pc-cat { width: 40%; left: auto; right: 3%; top: 9%; rotate: 4deg; z-index: 1; }
.pc-rabbit { width: 38%; left: 9%; bottom: 0; top: auto; rotate: 3deg; z-index: 3; }
.pc-hamster { width: 38%; aspect-ratio: 4 / 5; right: 7%; bottom: 3%; rotate: -4deg; z-index: 4; }
.hero-art .float { z-index: 6; }
.hero-art .float.a { left: -3%; top: 47%; }
.hero-art .float.b { right: -3%; top: 50%; bottom: auto; }
.hh { position: absolute; z-index: 5; fill: #f28b9b; width: 26px; height: 26px; pointer-events: none; will-change: transform; }
.hh1 { left: 46%; top: -2%; width: 30px; height: 30px; }
.hh2 { right: -2%; top: 2%; width: 18px; height: 18px; fill: #f6b3be; }
.hh3 { left: -4%; top: 20%; width: 20px; height: 20px; fill: #e9a27f; }
.hh4 { left: 47%; top: 49%; width: 34px; height: 34px; }
.hh5 { left: -1%; bottom: 6%; width: 16px; height: 16px; fill: #f6b3be; }
.hh6 { right: 0; bottom: -2%; width: 24px; height: 24px; fill: #e9a27f; }
.hh7 { left: 50%; bottom: -3%; width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .pc-hamster { animation-delay: 0.36s, 2.8s; }
  .hh { animation: heart 4s ease-in-out infinite; }
  .hh2, .hh5 { animation-delay: -1.3s; }
  .hh3, .hh6 { animation-delay: -2.6s; }
  .hh4, .hh7 { animation-delay: -0.6s; }
}
@keyframes beat { 0%, 100% { scale: 1; } 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.1; } }
@media (max-width: 1000px) { .hero-art { height: 520px; max-width: 540px; } }
@media (max-width: 760px) {
  .hero-art { height: 430px; }
  .hero-art .float.a { left: -2%; top: 45%; }
  .hero-art .float.b { right: -2%; top: 53%; }
  .hh1, .hh4 { width: 24px; height: 24px; }
}
@keyframes heart { 0%, 100% { transform: translateY(0) scale(1); } 12% { transform: translateY(-2px) scale(1.16); } 24% { transform: translateY(-4px) scale(1); } 50% { transform: translateY(-9px) scale(1.04); } }

/* ================================================================ mobile bottom tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 30px rgba(89, 70, 58, 0.16); padding: 6px 4px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; min-height: 48px; justify-content: center; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--peach); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header.open ~ .tabbar { display: none; }
}
.fsoon a { color: inherit; text-decoration: none; } .fsoon a:hover { text-decoration: underline; }
/* features rows: smaller, consistent screenshots on tablet / phone */
@media (max-width: 1000px) {
  .frow, .frow:nth-child(even) { grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
  .frow:nth-child(even) .frow-art { order: 0; }
  .frow-art { padding: 20px 0; border-radius: 24px; }
  .frow-art .phone { width: 160px; }
}
@media (max-width: 600px) {
  .frow, .frow:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .frow-art .phone { width: 180px; }
}
@media (max-width: 1000px) {
  .frow-art .phone { border-radius: 30px; padding: 7px; }
  .frow-art .phone img { border-radius: 24px; padding-top: 20px; }
  .frow-art .phone::before { top: 13px; width: 48px; height: 13px; }
}
