:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #232025;
  --text-muted: #6b6570;
  --border: #e8e4e0;
  --accent: #b8875a;
  --accent-dark: #96693f;
  --accent-contrast: #ffffff;
  --shadow: 0 8px 24px rgba(35, 32, 37, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151a;
    --surface: #211e24;
    --text: #f2eee9;
    --text-muted: #a89fa8;
    --border: #35313a;
    --accent: #d6a577;
    --accent-dark: #eec092;
    --accent-contrast: #201a12;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.brand-icon {
  border-radius: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  padding: 8px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.45;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
  max-width: 46ch;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent),
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  background-position: 20% 20%, 80% 80%;
  background-size: 70% 70%, 60% 60%;
  background-repeat: no-repeat;
  filter: blur(30px);
  z-index: 0;
}

.phone-mock {
  position: relative;
  z-index: 1;
  width: min(260px, 68vw);
  aspect-ratio: 9 / 18;
  border-radius: 34px;
  background: #211f24;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #211f24;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.app-screen {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--surface);
  border-radius: 26px;
  padding: 30px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.app-topbar-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.app-stat-card {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.app-stat-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.62rem;
}

.app-stat-card strong {
  display: block;
  font-size: 1.15rem;
  margin: 2px 0 10px;
  color: var(--text);
}

.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.app-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--accent) 70%, var(--text));
  opacity: 0.85;
}

.app-section-label {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-list-label {
  flex: 1;
  color: var(--text);
}

.app-list-value {
  color: var(--text-muted);
  font-weight: 600;
}

.app-navbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-nav-item {
  display: flex;
  color: var(--text-muted);
}

.app-nav-item.is-active {
  color: var(--accent-dark);
}

.app-nav-item svg {
  width: 18px;
  height: 18px;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  color: var(--accent-dark);
}

.floating-chip svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.floating-chip small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.floating-chip strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.chip-sales {
  top: 6%;
  right: -4%;
}

.chip-check {
  bottom: 8%;
  left: -8%;
}

/* Section title */

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 40px;
}

/* Problems */

.problems {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
}

.problem-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-dark);
}

.problem-icon svg {
  width: 22px;
  height: 22px;
}

.problem-list p {
  margin: 4px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Features */

.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-card-head .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: 11px;
}

.feature-card-head .feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card-head h3 {
  margin: 0;
  min-width: 0;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Feature mini-screen mockups */

.mini-screen {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-screen-title {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mini-row strong {
  color: var(--text);
  font-weight: 600;
}

.mini-row-total {
  font-size: 0.8rem;
}

.mini-row-total strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.mini-divider {
  border-top: 1px solid var(--border);
  margin: 2px 0;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-badge svg {
  width: 12px;
  height: 12px;
}

.mini-list-item,
.mini-store-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mini-list-label {
  flex: 1;
  color: var(--text);
}

.mini-chip {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.mini-store-item.is-selected {
  color: var(--accent-dark);
}

.mini-store-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.mini-notif {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mini-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.mini-notif-text {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text);
}

.mini-notif-time {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Trial / download */

.trial {
  position: relative;
  padding: 80px 0 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.trial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  background-position: 50% 0%;
  background-size: 60% 140%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.trial-inner {
  position: relative;
  z-index: 1;
}

.trial h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.trial p {
  color: var(--text-muted);
  margin: 0 0 36px;
  overflow-wrap: anywhere;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.store-badge {
  height: 54px;
  width: auto;
}

.store-badge-google {
  border-radius: 12px;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: 100%;
    margin: 40px auto 0;
  }

  .phone-mock {
    width: min(220px, 58vw);
  }

  .chip-sales {
    right: 2%;
  }

  .chip-check {
    left: 2%;
  }

  .floating-chip {
    padding: 8px 10px;
  }

  .problem-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .floating-chip small {
    font-size: 0.62rem;
  }

  .floating-chip strong {
    font-size: 0.8rem;
  }

  .chip-sales {
    top: 2%;
    right: 0;
  }

  .chip-check {
    bottom: 2%;
    left: 0;
  }
}
