:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #18201d;
  --muted: #67706b;
  --line: #06c755;
  --line-dark: #05a648;
  --teal: #167b7f;
  --border: #ddd8cc;
  --soft: #ece7da;
  --shadow: 0 22px 55px rgba(36, 46, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(221, 216, 204, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-cta,
.primary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--line);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(6, 199, 85, 0.26);
}

.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.primary-cta {
  padding: 0 26px;
}

.header-cta:hover,
.primary-cta:hover {
  background: var(--line-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 88px) clamp(44px, 7vw, 88px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6.5vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 30px 0 26px;
}

.cta-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 420px);
}

.phone-frame {
  overflow: hidden;
  border: 10px solid #222824;
  border-radius: 34px;
  background: #e8f4ee;
  box-shadow: var(--shadow);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f7fbf8;
  border-bottom: 1px solid #dbe6df;
}

.phone-bar span {
  width: 30px;
}

.chat-thread {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  color: #1e2a24;
  font-size: 0.94rem;
}

.bubble-label {
  display: block;
  margin-bottom: 4px;
  color: #5b6962;
  font-size: 0.74rem;
  font-weight: 800;
}

.bubble.user {
  align-self: flex-end;
  background: #b9f4c9;
}

.bubble.assistant {
  align-self: flex-start;
  background: #fff;
}

.bubble.compact {
  width: fit-content;
}

.bubble ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}

.document-preview {
  align-self: flex-end;
  width: 70%;
  padding: 14px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid #d9d2c4;
}

.doc-title {
  margin-bottom: 10px;
  font-weight: 800;
}

.doc-line {
  width: 78%;
  height: 8px;
  margin: 8px 0;
  border-radius: 999px;
  background: #d8d2c5;
}

.doc-line.wide {
  width: 96%;
}

.doc-line.short {
  width: 48%;
}

.problem-band,
.section {
  margin: 0 clamp(20px, 6vw, 88px);
}

.problem-band {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}

.problem-band p {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(64px, 9vw, 110px) 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.reminder-copy p,
.beta-section p {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step,
.reminder-card,
.beta-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(36, 46, 42, 0.07);
}

.step {
  padding: 22px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-grid div {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  font-weight: 800;
  text-align: center;
}

.reminder-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: center;
}

.reminder-card {
  padding: clamp(24px, 4vw, 38px);
}

.reminder-date {
  color: var(--teal);
  font-weight: 900;
}

.reminder-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.reminder-card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.reminder-card li:last-child {
  border-bottom: 0;
}

.beta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 46px);
}

.beta-section p {
  max-width: 760px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

details p {
  padding: 0 20px 18px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 88px) 0;
  padding: 32px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin-bottom: 0;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.84rem;
}

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 20px;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.legal-main section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.legal-main p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .reminder-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 42px 18px 34px;
  }

  .hero-actions,
  .beta-section {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta {
    width: 100%;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 28px;
  }

  .chat-thread {
    min-height: 500px;
  }

  .problem-band,
  .section {
    margin-right: 18px;
    margin-left: 18px;
  }

  .steps,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-right: 18px;
    margin-left: 18px;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
