:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #f1f3ea;
  --text: #101617;
  --muted: #59636a;
  --line: #d9dfd4;
  --accent: #0f7a67;
  --accent-strong: #075c4d;
  --accent-soft: #d9efe8;
  --shadow: 0 24px 60px rgba(18, 35, 30, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #000000;
  font-family: "Nunito", "Avenir Next Rounded", "Arial Rounded MT Bold", "Segoe UI Rounded", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

body[data-page-type="home"] {
  --jd-bg: #faf8f3;
  --jd-panel: #f1efe6;
  --jd-ink: #12153a;
  --jd-muted: #5b6178;
  --jd-blue: #1e3fd9;
  --jd-blue-soft: rgba(30, 63, 217, 0.1);
  --jd-gold: #f3c880;
  --jd-gold-dark: #e9a93f;
  --jd-cream: #fbf3e1;
  background: var(--jd-bg);
  color: var(--jd-ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

body[data-page-type="home"] main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

body[data-page-type="home"] h1,
body[data-page-type="home"] h2,
body[data-page-type="home"] h3 {
  font-family: "Sora", "Instrument Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.section-shell {
  --section-bg: transparent;
  position: relative;
  padding: clamp(56px, 7vw, 100px) 0;
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--jd-blue-soft);
  color: var(--jd-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
}

.section-intro h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.14;
}

.section-intro p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--jd-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
}

/* Hero */

.hero {
  padding: clamp(44px, 6vw, 92px) 0 clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--jd-blue);
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-kicker i {
  font-size: 19px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.06;
}

.hero-subtext {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--jd-muted);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.app-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(18, 21, 58, 0.18);
  margin-bottom: 18px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--jd-ink);
  color: var(--jd-cream);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-store i {
  font-size: 26px;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn-store-text span:first-child {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.btn-store-text span:last-child {
  font-size: 19px;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.btn-store:hover,
.btn-store:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--jd-ink);
  color: var(--jd-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  background: var(--jd-ink);
  color: var(--jd-cream);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(-24px, -4vw, -56px);
}

.ios-frame {
  position: relative;
  width: min(374px, 78vw);
  aspect-ratio: 374 / 813;
  border-radius: 48px;
  overflow: hidden;
  background: #f2f2f7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ios-frame .demo-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ios-frame-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/* Use cases */

.use-cases {
  --section-bg: var(--jd-panel);
}

.card-wall {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 240px));
  justify-content: center;
  gap: 28px;
}

.card-usecase {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--jd-ink);
}

.card-usecase i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: var(--jd-blue);
}

.idea-card {
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  aspect-ratio: 0.68 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(18, 21, 58, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.idea-card.no-photo {
  padding: 26px 24px;
}

.idea-card.with-photo {
  padding: 26px 24px 0 24px;
}

.idea-card:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.02);
  box-shadow: 0 22px 42px rgba(18, 21, 58, 0.24);
}

.card-text {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 20ch;
  color: inherit;
}

.card-meta {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.6;
  color: inherit;
}

.card-meta::before {
  content: "/ ";
}

.card-photo-slot {
  flex: 1;
  min-height: 0;
  margin: 16px -24px 0 -24px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.card-photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.usecase-item.learning .idea-card {
  background: #aeb6c9;
  color: #2e314b;
}

.usecase-item.podcast .idea-card {
  background: #f3c880;
  color: #3a3a3a;
}

.usecase-item.conference .idea-card {
  background: #d0d3d3;
  color: #12151b;
}

.usecase-item.read-later .idea-card {
  background: #4a3a62;
  color: #efbcae;
}

.usecase-item.creator .idea-card {
  background: #273f3e;
  color: #c2dd80;
}

.usecase-item.recipe .idea-card {
  background: #6b584c;
  color: #f1dfcf;
}

.usecase-item.health .idea-card {
  background: #e73949;
  color: #ffefe2;
}

.usecase-item.spark .idea-card {
  background: #3d3a34;
  color: #ff6b30;
}

/* Philosophy */

.philosophy {
  padding: clamp(56px, 7vw, 100px) 0;
}

.philosophy-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.compare-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 30px;
  background: var(--jd-panel);
  color: var(--jd-ink);
}

.philosophy .compare-card h3 {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.compare-card > p {
  margin-top: 6px;
  color: var(--jd-muted);
  font-size: 15px;
  line-height: 1.5;
}

.compare-card.featured {
  background: var(--jd-ink);
  color: var(--jd-gold);
}

.compare-card.featured h3 {
  color: var(--jd-gold);
}

.compare-card.featured > p {
  color: rgba(243, 231, 199, 0.75);
}

.doc-mock {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: inset 0 0 0 1px rgba(18, 21, 58, 0.08);
}

.doc-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(18, 21, 58, 0.14);
}

.doc-line-highlight {
  background: rgba(233, 169, 63, 0.55);
}

.doc-caption {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b08a2e;
  opacity: 0.85;
}

.check-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.check-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.check-icon-blue {
  background: var(--jd-blue);
  color: #ffffff;
}

.check-icon-gold {
  background: var(--jd-gold);
  color: var(--jd-ink);
}

.check-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: #f3e7c9;
}

/* Features */

.features {
  --section-bg: var(--jd-panel);
  text-align: center;
}

.features .section-intro {
  max-width: none;
  margin: 0 auto;
}

.features-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
  align-items: stretch;
}

.feature-card {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 26px;
  background: var(--jd-bg);
  border: none;
  box-shadow: 0 8px 18px rgba(18, 21, 58, 0.07);
}

.feature-card.pro {
  background: #fff8ea;
  border: 2px solid var(--jd-gold);
}

.pro-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--jd-ink);
  color: var(--jd-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jd-cream);
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-icon-blue {
  background: var(--jd-blue);
}

.feature-icon-ink {
  background: var(--jd-ink);
}

.feature-icon-gold-dark {
  background: var(--jd-gold-dark);
}

.feature-icon-gold {
  background: var(--jd-gold);
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 10px;
  color: var(--jd-muted);
  line-height: 1.5;
  font-size: 16px;
}

/* Final CTA */

.final-cta {
  padding: clamp(56px, 7vw, 96px) 0;
}

.cta-panel {
  position: relative;
  border-radius: 36px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
  overflow: hidden;
  background: var(--jd-blue);
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  transform: rotate(14deg);
}

.cta-panel::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 140px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  transform: rotate(-10deg);
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.14;
  color: var(--jd-cream);
}

.cta-panel p {
  position: relative;
  max-width: 640px;
  margin: 16px auto 26px;
  color: rgba(251, 243, 225, 0.82);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
}

.cta-panel .btn-store {
  position: relative;
  background: var(--jd-cream);
  color: var(--jd-ink);
}

.appstore-qr {
  position: relative;
  display: block;
  width: 120px;
  height: auto;
  margin: 16px auto 0;
  border-radius: 12px;
}

/* Footer (shared across pages) */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 28px;
  font-size: 14px;
  color: #5b6178;
}

.site-footer a,
.faq-content a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.faq-content a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.6);
}

/* Shared components (used on support / privacy-policy pages) */

.ghost-button,
.ios-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  padding: 0 18px;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.ios-button:hover,
.ios-button:focus-visible {
  border-color: #bec8bb;
  transform: translateY(-1px);
}

.support-text {
  margin: 0;
  max-width: 640px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.support-email {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.support-email:hover,
.support-email:focus-visible {
  border-bottom-color: rgba(0, 0, 0, 0.6);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 20px 64px;
  gap: 28px;
}

.page h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  text-align: center;
}

.faq {
  width: min(720px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq h2 {
  margin: 8px 0 4px;
  font-size: clamp(22px, 3.6vw, 32px);
  text-align: center;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 6px 14px;
  background: #ffffff;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 10px 6px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  line-height: 1;
  margin-left: 10px;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-content {
  padding: 4px 6px 12px;
  font-size: 16px;
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.6s ease, opacity 0.45s ease, transform 0.45s ease;
}

.faq-item[open] .faq-content {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

.faq-content p {
  margin: 8px 0;
}

.faq-content ul,
.faq-content ol {
  margin: 6px 0 8px 20px;
  padding: 0;
}

.policy {
  width: min(800px, 92vw);
  align-items: flex-start;
  padding-left: 32px;
}

.policy h1,
.policy h2,
.policy h3,
.policy p,
.policy ul {
  text-align: left;
}

.policy p {
  margin: 6px 0;
}

.policy h2 {
  margin-top: 6px;
}

.policy h3 {
  margin-top: 10px;
  font-size: 18px;
}

.policy hr {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 18px 0;
}

.policy ul {
  margin: 6px 0 10px 20px;
  padding: 0;
}

@media (max-width: 980px) {
  .philosophy-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-intro {
    max-width: 700px;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body[data-page-type="home"] main {
    width: calc(100% - 24px);
  }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .page {
    padding-top: 36px;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
