@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --bg: #f8f7f2;
  --green: #43a047;
  --green-dark: #2e7d32;
  --green-soft: rgba(67, 160, 71, 0.12);
  --text: #2c2c2c;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 24px rgba(44, 44, 44, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}

/* ----- App bar (align with website header) ----- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 10px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid rgba(67, 160, 71, 0.15);
}

.appbar__logo {
  flex-shrink: 0;
  height: clamp(36px, 9vw, 44px);
  width: auto;
  max-width: min(160px, 45vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.appbar__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
}

/* ----- Layout ----- */
.main {
  flex: 1;
  padding: 20px 18px 32px;
}

.view {
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Loading ----- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 0;
}

.loading__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ----- Generic card ----- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.card--center {
  text-align: center;
  margin-top: 36px;
}

.card__emoji {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card__lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ----- Report head ----- */
.report-head {
  margin: 6px 0 20px;
}

.report-head__eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
}

.report-head__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
}

.report-head__mood {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ----- Section title ----- */
.section-title {
  margin: 26px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ----- Locked / paywall ----- */
.locked-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.1);
  background: var(--card);
}

.locked-card__blur {
  padding: 26px 22px;
  filter: blur(7px);
  opacity: 0.55;
  user-select: none;
}

.blur-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.blur-row__icon {
  font-size: 1.1rem;
}

.blur-bar {
  height: 14px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), rgba(67, 160, 71, 0.28));
}

.blur-bar--w70 {
  width: 70%;
}
.blur-bar--w85 {
  width: 85%;
}
.blur-bar--w60 {
  width: 60%;
}

.locked-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(248, 247, 242, 0.4), rgba(248, 247, 242, 0.78));
}

.lock-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.16);
}

.locked-card__note {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ----- Feature list ----- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.feature-list__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.feature-list__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-list__desc {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ----- Paywall CTA ----- */
.paywall-cta {
  margin-top: 24px;
  text-align: center;
}

.paywall-cta__fine {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ----- Buttons ----- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 15px 26px;
  transition: transform 0.08s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.28);
}

.btn--ghost {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn--block {
  display: block;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ----- Snapshot stats ----- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.stat__icon {
  font-size: 1.4rem;
}

.stat__label {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat__value {
  margin-top: 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green-dark);
}

.stat__value--text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.stat__unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

/* ----- Soft card / topics ----- */
.soft-card {
  margin-top: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.soft-card__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ----- Coming soon ----- */
.coming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coming-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px dashed rgba(67, 160, 71, 0.28);
}

.coming-list__body {
  min-width: 0;
}

.coming-list__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.coming-list__desc {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.coming-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ----- Footer ----- */
.appfoot {
  padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  text-align: center;
}

.appfoot__text {
  margin: 0;
  font-size: 0.74rem;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.appfoot__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}
