@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --background: #ffffff;
  --foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --card: #ffffff;
  --card-foreground: #09090b;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --primary: #16a34a;
  --primary-foreground: #ffffff;
  --secondary: #ecfdf5;
  --secondary-foreground: #14532d;
  --accent: #dcfce7;
  --accent-foreground: #14532d;
  --brand-soft: #f0fdf4;
  --brand-border: #bbf7d0;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px 40px;
}

.hero, .section-head, .control-panel, .stats-grid { display: flex; gap: 16px; }
.with-tabs { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.tab-nav {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: rgba(240, 253, 244, .92);
  border: 1px solid var(--brand-border);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(12px);
}
.tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 390px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .tab-nav { gap: 3px; padding: 3px; }
  .tab-link { min-height: 36px; font-size: 12px; border-radius: 12px; }
}
.tab-link.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(22, 163, 74, .18);
}
.hero {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 6px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; color: var(--foreground); letter-spacing: -.035em; }
h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1; font-weight: 800; }
#pageTitle { font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
.lead { margin: 10px 0 0; color: var(--muted-foreground); line-height: 1.65; max-width: 640px; }

.record-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.health-pill.ok { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.health-pill.bad { color: #991b1b; border-color: #fecaca; background: #fef2f2; }

.camera-card, .card, .stat-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.camera-card { padding: 12px; margin-bottom: 16px; }
.camera-name-field { margin-top: 12px; }
.camera-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  border: 1px solid var(--border);
}
video { display: block; width: 100%; max-height: 56vh; min-height: 280px; object-fit: contain; background: var(--muted); }
.camera-overlay { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; pointer-events: none; }
.record-badge { background: rgba(255,255,255,.92); color: var(--foreground); }
.record-badge.recording { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.record-badge.recording::before { content: "● "; color: var(--danger); }
.record-badge.idle::before { content: "● "; color: #a1a1aa; }

.control-panel { align-items: stretch; flex-wrap: wrap; margin-top: 12px; }
.field { flex: 1 1 180px; display: grid; gap: 7px; color: var(--foreground); font-size: 13px; font-weight: 600; }
button, select, input[type="text"], input[type="email"], input[type="password"] {
  min-height: 42px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--input);
  font: inherit;
  outline: none;
}
select, input[type="text"], input[type="email"], input[type="password"] { background: var(--background); color: var(--foreground); padding: 0 12px; }
button {
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .12s ease, border-color .12s ease, opacity .12s ease;
}
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.primary:hover { background: #27272a; }
.primary:active { background: #09090b; }
.secondary, .ghost { background: var(--secondary); color: var(--secondary-foreground); }
.secondary:hover, .ghost:hover { background: #e4e4e7; }
.ghost { min-height: 40px; }
.status { margin: 10px 4px 2px; color: var(--muted-foreground); font-size: 14px; }
.subtle-status { margin-top: 4px; font-size: 13px; }

.stats-grid { margin: 16px 0; }
.stat-card { flex: 1; padding: 16px; }
.stat-label { color: var(--muted-foreground); font-size: 13px; font-weight: 600; }
.stat-card strong { display: block; margin-top: 8px; font-size: clamp(26px, 7vw, 42px); line-height: 1; color: var(--foreground); letter-spacing: -.04em; }
.stat-card small { color: var(--muted-foreground); }

.card { padding: 18px; margin: 16px 0; }
.pet-heading { display: flex; align-items: center; gap: 14px; }
.pet-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  font-size: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.pet-avatar.has-photo { font-size: 0; }
.profile-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.profile-form .field { min-width: 220px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 4px;
}
.toggle-row span { display: grid; gap: 4px; }
.toggle-row strong { font-size: 15px; }
.toggle-row small { color: var(--muted-foreground); line-height: 1.5; }
.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--input);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
  cursor: pointer;
}
.section-head { align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-description { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14px; }
.timeline-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 14px;
}
.timeline-chat input { width: 100%; }
.date-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.icon-button {
  width: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.date-display {
  min-height: 44px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--accent-foreground);
  font-weight: 700;
}

.latest-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: 58vh;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.latest-preview img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 58vh;
  object-fit: contain;
  filter: brightness(var(--photo-brightness, 1)) contrast(var(--photo-contrast, 1)) saturate(var(--photo-saturate, 1));
}
.latest-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.latest-overlay[hidden] { display: none; }
.pet-box {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.88), 0 8px 24px rgba(0,0,0,.18);
}
.pet-box span {
  position: absolute;
  left: -2px;
  top: -34px;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.latest-empty { padding: 36px 16px; color: var(--muted-foreground); text-align: center; }
.skeleton {
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-latest {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
}
.skeleton-line {
  height: 14px;
  width: 100%;
}
.skeleton-line.short { width: 62%; }
.skeleton-timeline-item {
  display: grid;
  grid-template-columns: 58px 18px 1fr;
  gap: 10px;
  align-items: start;
}
.skeleton-time { height: 14px; margin-top: 4px; }
.skeleton-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; }
.skeleton-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.timeline { position: relative; display: grid; gap: 10px; }
.timeline.empty { color: var(--muted-foreground); padding: 18px 4px; }
.timeline-generating-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
}
.generating-title { margin: 0 0 4px; font-weight: 800; }
.generating-message { margin: 0; color: var(--muted-foreground); line-height: 1.6; font-size: 13px; }
.generating-bar {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--secondary);
}
.generating-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: generating-bar 1.3s ease-in-out infinite;
}
.generating-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.generating-steps span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}
@keyframes generating-bar {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(240%); }
}
.timeline-item {
  display: grid;
  grid-template-columns: 58px 18px 1fr;
  gap: 10px;
  align-items: start;
}
.timeline-time { color: var(--foreground); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #a1a1aa;
  box-shadow: 0 0 0 4px #f4f4f5;
}
.timeline-dot.high { background: var(--danger); box-shadow: 0 0 0 4px #fee2e2; }
.timeline-dot.mid { background: var(--warning); box-shadow: 0 0 0 4px #fef3c7; }
.timeline-body { background: var(--background); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); padding: 12px; }
.timeline-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  max-height: 220px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 5px);
  background: var(--muted);
}
.timeline-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(var(--photo-brightness, 1.2)) contrast(1.08) saturate(1.04);
}
.timeline-pet-overlay { position: absolute; inset: 0; pointer-events: none; }
.timeline-pet-box { min-width: 28px; min-height: 28px; border-width: 2px; border-radius: 10px; }
.timeline-pet-box span { top: -28px; padding: 4px 7px; font-size: 11px; }
.timeline-title { margin: 0 0 4px; font-weight: 600; color: var(--foreground); }
.category-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}
.timeline-meta { margin: 0; color: var(--muted-foreground); line-height: 1.5; font-size: 13px; }

.chat-shell { min-height: 100vh; }
.chat-shell .hero { margin-bottom: 12px; }
.chat-card {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 14px;
  min-height: min(640px, calc(100vh - 220px));
  padding: 14px;
}
.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}
.chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.65;
  font-size: 14px;
}
.chat-bubble.user {
  justify-self: end;
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom-right-radius: 6px;
}
.chat-bubble.assistant {
  justify-self: start;
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.chat-bubble p { margin: 0; }
.chat-bubble.thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}
.thinking-text { animation: thinking-fade .35s ease; }
.thinking-dots { display: inline-flex; gap: 3px; align-items: center; }
.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
  opacity: .35;
  animation: thinking-dot 1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) { animation-delay: .16s; }
.thinking-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes thinking-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes thinking-fade {
  from { opacity: .2; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.chat-form input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 4px;
}
.chat-form button {
  width: auto;
  min-height: 38px;
  border-radius: 14px;
  padding: 0 12px;
}
.chat-related-list { display: grid; gap: 8px; margin-top: 10px; }
.chat-related-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 14px;
  background: var(--background);
  border: 1px solid var(--border);
}
.chat-related-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}
.chat-related-item time { display: block; color: var(--muted-foreground); font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.chat-related-item p { margin: 0; font-size: 13px; line-height: 1.45; }

#report {
  white-space: pre-wrap;
  line-height: 1.7;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 16px;
  color: var(--foreground);
  font-size: 14px;
}
.report-placeholder { color: var(--muted-foreground); }

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 9, 11, .48);
}
.crop-modal[hidden] { display: none; }
.crop-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  border: 1px solid var(--border);
  touch-action: none;
}
.crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}
.crop-mask {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 999px rgba(0,0,0,.18);
  border-radius: 999px;
  outline: 1px solid rgba(255,255,255,.8);
  outline-offset: -1px;
  pointer-events: none;
}
.crop-controls { display: grid; gap: 12px; margin-top: 14px; }
.crop-controls input[type="range"] { width: 100%; }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.crop-actions button { min-width: 132px; }

.invite-result {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
}
.invite-url {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 4px);
  padding: 0 10px;
  font: inherit;
  background: var(--background);
}
.invite-list { display: grid; gap: 8px; }
.invite-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
}
.invite-row code { color: var(--foreground); }

.auth-shell {
  width: min(420px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 18px 32px;
  display: grid;
  place-items: center;
}
.auth-card { width: 100%; padding: 28px; }
.auth-card h1 { font-size: 28px; }
.auth-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  font-size: 26px;
}
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form .field,
.auth-form input,
.auth-form button { width: 100%; }
.auth-code-field[hidden],
.auth-code-field[aria-hidden="true"] { display: none !important; }
.auth-form button { width: 100%; margin-top: 4px; }

@media (max-width: 640px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .hero { display: block; }
  .health-pill { margin-top: 12px; }
  .stats-grid { flex-direction: column; }
  .section-head { align-items: flex-start; }
  .timeline-item { grid-template-columns: 50px 14px 1fr; }
  .date-nav { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  button { width: 100%; }
  .chat-card { min-height: calc(100vh - 250px); }
  .chat-form button { width: auto; }
}
.lp-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 56px;
}
.lp-hero {
  max-width: 920px;
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
  margin: 0 auto;
  padding: 48px 0 28px;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--accent-foreground);
  font-size: 13px;
  font-weight: 700;
}
.lp-brand {
  margin: 0 0 10px;
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.lp-hero h1 span { display: block; }
.lp-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted-foreground);
  font-size: clamp(16px, 2.6vw, 21px);
  line-height: 1.8;
}
.lp-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  width: 100%;
}
.lp-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}
.lp-note {
  width: 100%;
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  text-align: center;
}
.lp-preview {
  max-width: 920px;
  margin: -8px auto 56px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.lp-preview-copy { text-align: left; margin-bottom: 18px; }
.lp-preview-copy p {
  margin: 0 0 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}
.lp-preview-copy h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.04em;
}
.lp-device-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 18px;
  align-items: center;
}
.lp-phone {
  max-width: 360px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--background);
  box-shadow: var(--shadow-lg);
}
.lp-phone-top {
  width: 72px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--border);
}
.lp-phone img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
}
.lp-preview-photo {
  aspect-ratio: 16 / 10;
  max-height: none;
  object-position: center;
}
.lp-log-mock {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}
.lp-log-mock span { color: var(--muted-foreground); font-size: 13px; }
.lp-log-mock p { margin: 0; font-weight: 700; line-height: 1.55; }
.lp-photo-stack {
  display: grid;
  gap: 14px;
}
.lp-photo-stack img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.lp-photo-stack img:first-child { transform: rotate(1deg); }
.lp-photo-stack img:last-child { transform: rotate(-1deg); }
.lp-section { margin-top: 64px; }
.lp-section-head { text-align: left; margin-bottom: 22px; }
.lp-section-head h2, .lp-free h2, .lp-privacy h2 { margin: 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.04em; }
.lp-section-head p, .lp-free p, .lp-privacy p { color: var(--muted-foreground); line-height: 1.8; }
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lp-feature { overflow: hidden; }
.lp-feature-visual {
  height: 132px;
  margin: -6px -6px 16px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  overflow: hidden;
}
.lp-feature-visual.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-feature-visual.timeline {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-content: center;
  gap: 10px;
  padding: 16px;
}
.lp-feature-visual.timeline span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.lp-feature-visual.timeline b { font-size: 12px; color: var(--muted-foreground); }
.lp-feature-visual.timeline p { margin: 2px 0 0; color: var(--foreground); font-size: 13px; font-weight: 700; }
.lp-feature-visual.family {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lp-feature-visual.family span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}
.lp-feature-visual.report {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
}
.lp-feature-visual.report strong { font-size: 34px; letter-spacing: -0.05em; }
.lp-feature-visual.report p { margin: 0; color: var(--muted-foreground); font-weight: 700; }
.lp-feature h3 { margin: 0 0 10px; font-size: 18px; }
.lp-feature p { margin: 0; color: var(--muted-foreground); line-height: 1.7; }
.lp-step-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.lp-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
}
.lp-step span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}
.lp-step p { margin: 0; font-weight: 700; }
.lp-privacy {
  padding: 28px;
  background: var(--brand-soft);
  border-color: var(--brand-border);
}
.lp-privacy p { max-width: 760px; margin-bottom: 0; }
.lp-free {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}
.lp-free p { max-width: 660px; margin-bottom: 0; }

@media (max-width: 820px) {
  .lp-device-grid { grid-template-columns: 1fr; }
  .lp-photo-stack { grid-template-columns: 1fr 1fr; }
  .lp-photo-stack img { height: 160px; }
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-free { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
  .lp-shell { padding-inline: 16px; }
  .lp-hero { min-height: auto; padding-top: 36px; }
  .lp-hero h1 {
    max-width: 380px;
    margin-inline: 0;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.06em;
  }
  .lp-preview { padding: 14px; }
  .lp-photo-stack { display: none; }
  .lp-phone img { max-height: 520px; }
  .lp-feature-grid { grid-template-columns: 1fr; }
}
