/* DoubtChat LP — exactly mirrors design.pen "Screen / Landing Page" */
:root {
  --text: #1A1B25;
  --text-secondary: #5C616E;
  --text-muted: #9CA0AB;
  --primary: #F04E6A;
  --primary-soft: #FFE7EC;
  --accent-sunrise: #FFD166;
  --accent-mint-bg: #D6F5E2;
  --accent-mint-fg: #22C55E;
  --bg-page: #FFF6F1;
  --bg-chat: #F4F5F9;
  --border: #EBEDF2;
  --surface: #F7F8FA;
  --surface-2: #EEF0F4;
  --bg-hero: #FFE7EC;
  --bg-violet: #ECE6FF;
  --bg-amber: #FFF1CC;
  --bg-green: #DDF7E4;
  --violet: #7C5BFF;
  --amber: #B7761F;
  --green: #15803D;
  --dark: #1A1B25;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-base: "Inter", system-ui, sans-serif;
  --shadow-bubble: 0 8px 24px rgba(26, 27, 37, 0.15);
  --shadow-stamp: 0 4px 12px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; }
h1, h2, p { margin: 0; }

/* ---------- LAYOUT SHELL ---------- */
.page { display: flex; justify-content: center; padding: 0; }
.page__inner {
  width: 100%;
  max-width: 1280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  border-radius: 32px;
  overflow: hidden;
}

/* ---------- PILLS ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
}
.pill--white { background: #FFFFFF; }
.pill--white .pill__text { color: var(--text); }
.pill--soft { background: var(--primary-soft); padding: 6px 12px; gap: 6px; }
.pill--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.pill--ghost .pill__text { color: #FFFFFF; }

.pill__text {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pill--ghost .pill__text { letter-spacing: 1.5px; }
.pill__feature {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
}
.pill__feature--num { letter-spacing: 0; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; }
.dot--coral { background: var(--primary); }

/* ---------- APP ICON (gradient w/ eyes) ---------- */
.app-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F04E6A 0%, #FFD166 100%);
  flex-shrink: 0;
}
.app-icon__eye-l,
.app-icon__eye-r { display: block; background: #FFFFFF; }
.app-icon__eye-l { border-radius: 1px; }
.app-icon__eye-r { border-radius: 999px; }

.app-icon--lg {
  width: 72px; height: 72px;
  border-radius: 25px 25px 25px 6px;
  gap: 8px;
}
.app-icon--lg .app-icon__eye-l { width: 10px; height: 2px; }
.app-icon--lg .app-icon__eye-r { width: 7px;  height: 7px; }

.app-icon--md {
  width: 64px; height: 64px;
  border-radius: 22px 22px 22px 6px;
  gap: 7px;
}
.app-icon--md .app-icon__eye-l { width: 9px; height: 2px; }
.app-icon--md .app-icon__eye-r { width: 6px; height: 6px; }

.app-icon--xs {
  width: 36px; height: 36px;
  border-radius: 12px 12px 12px 3px;
  gap: 4px;
}
.app-icon--xs .app-icon__eye-l { width: 5px; height: 2px; }
.app-icon--xs .app-icon__eye-r { width: 4px; height: 4px; }

.app-icon--xxs {
  width: 22px; height: 22px;
  border-radius: 7px 7px 7px 2px;
  gap: 2px;
}
.app-icon--xxs .app-icon__eye-l { width: 3px; height: 1px; }
.app-icon--xxs .app-icon__eye-r { width: 3px; height: 3px; }

/* ---------- BRAND WORDMARK ---------- */
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark {
  font-family: var(--font-base);
  font-weight: 800;
  display: inline-flex;
  align-items: flex-end;
  line-height: 1;
}
.wordmark--lg { font-size: 108px; letter-spacing: -4px; }
.wordmark--md { font-size: 96px; letter-spacing: -3.5px; }
.wordmark__doubt { color: var(--text); }
.wordmark__doubt--invert { color: #FFFFFF; }
.wordmark__chat { color: var(--primary); }
.wordmark__dot {
  display: inline-block;
  background: var(--primary);
  border-radius: 999px;
  align-self: flex-end;
  margin-bottom: 0.05em;
  margin-left: 4px;
}
.wordmark--lg .wordmark__dot { width: 18px; height: 18px; }
.wordmark--md .wordmark__dot { width: 16px; height: 16px; }

.brand-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-secondary);
}
.brand-jp--invert {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- HERO ---------- */
.hero {
  background: var(--bg-hero);
  padding: 64px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  min-height: 760px;
  position: relative;
}
.hero__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1 1 640px;
  max-width: 640px;
}
.hero__tag {
  font-family: var(--font-jp);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--text);
}
.hero__sub {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-secondary);
}

.hero__right {
  position: relative;
  width: 440px;
  height: 560px;
  flex-shrink: 0;
}
.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background-image: url("/lp/assets/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero__deco {
  position: absolute;
  border-radius: 999px;
  display: block;
}
.hero__deco--1 {
  width: 80px; height: 80px;
  top: -22px; left: -26px;
  background: var(--accent-sunrise);
}
.hero__deco--2 {
  width: 32px; height: 32px;
  top: 48px; left: 390px;
  background: var(--primary);
}
.hero__bubble {
  position: absolute;
  left: 24px;
  top: 340px;
  width: 340px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-bubble);
}
.bubble__head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}
.bubble__name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bubble__nm {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.bubble__body {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- AVATARS ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.avatar--sm { width: 24px; height: 24px; font-size: 11px; }
.avatar--md { width: 28px; height: 28px; font-size: 13px; }
.avatar--mint { background: var(--accent-mint-bg); color: var(--accent-mint-fg); }
.avatar--coral { background: var(--primary-soft); color: var(--primary); }

/* ---------- CLUSTERS (2-up sections) ---------- */
.cluster {
  display: flex;
  gap: 24px;
  min-height: 520px;
}
.cluster__demo,
.cluster__text {
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}
.cluster__demo {
  padding: 32px;
  gap: 18px;
  flex: 1 1 0;
}
.demo--violet { background: var(--bg-violet); }
.demo--amber  { background: var(--bg-amber); }
.demo--green  { background: var(--bg-green); }

.text-card {
  padding: 44px 40px 40px;
  gap: 24px;
  background: #FFFFFF;
  flex: 1 1 0;
}
.card--primary { background: var(--primary); }
.text-card__title {
  font-family: var(--font-jp);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
  color: var(--text);
}
.text-card__title--lg { font-size: 44px; }
.text-card__body {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.text-card--invert .text-card__title { color: #FFFFFF; }
.text-card--invert .text-card__body { color: rgba(255, 255, 255, 0.9); }

/* Cluster width specifics */
.cluster3 .cluster__demo { flex: 0 1 760px; }
.cluster3 .cluster__text { flex: 1 1 0; }
.cluster2 .cluster__text { flex: 0 1 480px; }
.cluster2 .cluster__demo { flex: 1 1 0; }
.cluster1 .cluster__demo { flex: 0 1 760px; }
.cluster1 .cluster__text { flex: 1 1 0; }

/* ---------- COMPOSE MOCK (cluster3) ---------- */
.compose-mock {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg { display: flex; gap: 8px; align-items: flex-end; width: 100%; }
.msg--in { justify-content: flex-start; }
.msg--self { justify-content: flex-end; }
.msg__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg__nm {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.msg__row { display: flex; align-items: flex-end; gap: 6px; }
.msg__row--self { justify-content: flex-end; }
.msg__time {
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-muted);
}
.msg__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.msg__read {
  font-size: 10px;
  font-weight: 500;
  color: var(--primary);
}

/* ---------- BUBBLES ---------- */
.bubble {
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 14px;
  max-width: 520px;
}
.bubble--other {
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
}
.bubble--self {
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 18px 18px 6px 18px;
}

.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* Composer (cluster3) */
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.composer__input {
  flex: 1 1 auto;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
}
.composer__placeholder {
  font-size: 12px;
  color: var(--text-muted);
}
.composer__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--violet);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ---------- NOTIF MOCK (cluster2) ---------- */
.notif-mock {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.notif {
  background: var(--bg-chat);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notif__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif__title {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}
.notif__time {
  font-family: var(--font-base);
  font-size: 10px;
  color: var(--text-muted);
}
.notif__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
.arrow-down { display: flex; justify-content: center; }

.chat-open {
  background: var(--bg-chat);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-open__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-open__name { display: flex; flex-direction: column; gap: 1px; }
.chat-open__n1 { font-size: 12px; font-weight: 700; color: var(--text); }
.chat-open__n2 { font-size: 9px; color: var(--text-muted); }

/* ---------- CHAT (cluster1) ---------- */
.chat {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg--with-stamp { flex-direction: column; align-items: flex-start; gap: 6px; }
.msg--with-stamp .msg__inner {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
}
.doubt-wrap { padding-left: 40px; }
.doubt-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-stamp);
}

/* ---------- CLOSING ---------- */
.closing {
  background: var(--dark);
  padding: 88px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}
.brand-row--close { gap: 14px; }
.closing__tag {
  font-family: var(--font-jp);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  max-width: 900px;
}
.closing__sub {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__l { display: flex; align-items: center; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__brand-name {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.footer__copy {
  font-size: 11px;
  color: var(--text-muted);
}
.footer__r { display: flex; align-items: center; gap: 24px; }
.footer__r a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.footer__r a:hover { color: var(--primary); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero { padding: 48px; }
  .wordmark--lg { font-size: 88px; letter-spacing: -3px; }
  .closing__tag { font-size: 26px; }
}

@media (max-width: 900px) {
  .page__inner { padding: 16px; gap: 16px; }
  .hero {
    flex-direction: column;
    padding: 36px;
    gap: 32px;
    min-height: 0;
  }
  .hero__left { flex: 0 0 auto; max-width: none; gap: 20px; }
  .hero__right { width: 100%; height: 480px; max-width: 440px; align-self: center; }
  .hero__deco--2 { left: auto; right: -16px; }
  .wordmark--lg { font-size: 76px; letter-spacing: -2.5px; }
  .hero__tag { font-size: 30px; }

  .cluster {
    flex-direction: column;
    min-height: 0;
    gap: 16px;
  }
  .cluster2 { flex-direction: column-reverse; }
  .cluster .cluster__demo,
  .cluster .cluster__text { flex: 0 0 auto; }

  .text-card { padding: 36px 28px 32px; }
  .text-card__title { font-size: 32px; }
  .text-card__title--lg { font-size: 32px; }

  .cluster__demo { padding: 24px; }
  .compose-mock,
  .notif-mock,
  .chat { padding: 18px 16px; }

  .closing { padding: 64px 32px; gap: 24px; }
  .wordmark--md { font-size: 64px; letter-spacing: -2px; }
  .closing__tag { font-size: 22px; }
  .closing__sub { font-size: 13px; }

  .footer { padding: 20px 16px; }
}

@media (max-width: 560px) {
  .hero { padding: 28px 20px; border-radius: 24px; }
  .hero__right { height: 380px; }
  .wordmark--lg { font-size: 44px; letter-spacing: -2px; }
  .wordmark--lg .wordmark__dot { width: 10px; height: 10px; }
  .app-icon--lg { width: 44px; height: 44px; border-radius: 15px 15px 15px 4px; gap: 5px; }
  .app-icon--lg .app-icon__eye-l { width: 7px; height: 2px; }
  .app-icon--lg .app-icon__eye-r { width: 5px;  height: 5px; }
  .hero__tag { font-size: 24px; }
  .hero__sub { font-size: 13px; }
  .brand-row { gap: 12px; }
  .brand-jp { font-size: 12px; letter-spacing: 4px; }
  .hero__bubble { width: calc(100% - 48px); top: auto; bottom: 24px; }

  .cluster__demo { border-radius: 24px; padding: 20px; }
  .text-card { border-radius: 24px; padding: 28px 22px 26px; }
  .text-card__title,
  .text-card__title--lg { font-size: 26px; letter-spacing: -1px; }
  .text-card__body { font-size: 13px; }

  .bubble { font-size: 14px; }
  .compose-mock,
  .notif-mock,
  .chat { padding: 16px 14px; }

  .closing { border-radius: 24px; padding: 48px 24px; gap: 20px; }
  .brand-row--close { gap: 10px; }
  .wordmark--md { font-size: 40px; letter-spacing: -1.4px; }
  .wordmark--md .wordmark__dot { width: 10px; height: 10px; }
  .app-icon--md { width: 40px; height: 40px; border-radius: 14px 14px 14px 4px; gap: 5px; }
  .app-icon--md .app-icon__eye-l { width: 7px; height: 2px; }
  .app-icon--md .app-icon__eye-r { width: 5px; height: 5px; }
  .closing__tag { font-size: 20px; line-height: 1.45; }
  .closing__sub { font-size: 12px; }
  .brand-jp--invert { font-size: 11px; letter-spacing: 4px; }

  .footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 12px; }
}
