:root {
  --bg: #1F2A37;
  --bg-soft: #26323f;
  --text: #F2EFEA;
  --text-muted: #A9B2BE;
  --accent: #E8A87C;
  --accent-soft: rgba(232, 168, 124, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-header .brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero .logo-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 32px;
  border-radius: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

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

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: default;
  user-select: none;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge .store-badge-text {
  text-align: left;
}

.store-badge .store-badge-text small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.store-badge .store-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

section.preview {
  padding: 24px 0 72px;
}

.phone-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.phone-mockup {
  width: 170px;
  border-radius: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 14px 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  opacity: 0.9;
}

.phone-mockup-mid {
  width: 190px;
  transform: translateY(-16px);
  opacity: 1;
}

.phone-notch {
  width: 44px;
  height: 5px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 14px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-pill {
  align-self: flex-start;
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--border);
  color: var(--text-muted);
}

.ui-pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.ui-days {
  display: flex;
  gap: 6px;
  margin: 4px 0 6px;
}

.ui-day {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
}

.ui-day.done {
  background: var(--accent);
  opacity: 0.55;
}

.ui-day.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ui-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.ui-line-title {
  height: 12px;
  width: 70%;
  background: rgba(255, 255, 255, 0.16);
}

.ui-line-short {
  width: 45%;
}

.ui-journal-block {
  height: 56px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px dashed rgba(232, 168, 124, 0.4);
}

.ui-chat {
  max-width: 78%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0;
  min-height: 22px;
}

.ui-chat-in {
  align-self: flex-start;
  background: var(--border);
  border-bottom-left-radius: 3px;
}

.ui-chat-out {
  align-self: flex-end;
  background: var(--accent-soft);
  border-bottom-right-radius: 3px;
}

.ui-chat-wide {
  max-width: 90%;
  min-height: 34px;
}

.ui-chat-input {
  margin-top: auto;
  height: 30px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .phone-mockup-mid {
    transform: none;
    order: -1;
  }
}

section.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

section.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

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

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

section.about {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

section.about h2 {
  font-size: 1.6rem;
  margin: 0 0 16px;
}

section.about p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
}

footer.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
}

footer.site-footer nav a:first-child {
  margin-left: 0;
}

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

/* Legal pages */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  color: var(--accent);
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-page a.back:hover {
  color: var(--accent);
}

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

  footer.site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  footer.site-footer nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}
