/* ==========================================================================
   HITOHI (One Day, One Page) - Official Product Site Stylesheet
   Design Philosophy: Minimalist Modern Japanese Papercraft Aesthetic
   Color Palette: Warm Ivory (#F9F8F5), Deep Forest (#2D4B3E), Ink Navy (#1D3557)
   ========================================================================== */

:root {
  /* Colors */
  --bg-paper: #F9F8F5;
  --bg-paper-subtle: #F2EFE9;
  --bg-card: #FFFFFF;
  --bg-grid-line: #EAE5DC;
  
  --text-primary: #2C2A29;
  --text-secondary: #5A5652;
  --text-muted: #8C8780;
  
  --primary-accent: #2D4B3E; /* Deep Forest */
  --primary-hover: #22392F;
  --secondary-accent: #1D3557; /* Ink Navy */
  --alert-accent: #D9534F; /* Crimson */

  --card-yellow: #FFF7D6;
  --card-yellow-border: #F0E3B6;
  --card-blue: #EBF3FC;
  --card-blue-border: #D0E1F4;
  --card-green: #EBF5EE;
  --card-green-border: #CFE8D7;
  
  /* Typography */
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 6px rgba(44, 42, 41, 0.04);
  --shadow-md: 0 6px 18px rgba(44, 42, 41, 0.07);
  --shadow-lg: 0 16px 36px rgba(44, 42, 41, 0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-paper);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.75;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* Respect users who prefer less motion: keep the craft, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection & Scrollbar Theming — even the incidental UI wears the journal's ink. */
::selection {
  background: var(--primary-accent);
  color: #FFF;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-accent) var(--bg-paper-subtle);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg-paper-subtle);
}

::-webkit-scrollbar-thumb {
  background-color: #AEBBAF;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-paper-subtle);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-accent);
}

/* Keyboard Focus Visibility — a11y for non-pointer navigation. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--primary-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.lang-btn:focus-visible {
  outline-offset: 1px;
}

/* Anchor targets: offset for the sticky header so jumped-to sections aren't hidden beneath it. */
#concept,
#features,
#pricing,
#download,
#faq,
.guide-section {
  scroll-margin-top: 88px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 229, 220, 0.8);
  transition: all 0.3s var(--ease-smooth);
}

.header-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-paper-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--bg-grid-line);
}

.lang-btn {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-btn.active {
  color: var(--primary-accent);
  background: #FFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lang-divider {
  color: var(--text-muted);
  opacity: 0.4;
}

.nav-guide-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-guide-link:hover {
  color: var(--primary-accent);
}

.nav-btn {
  padding: 8px 18px;
  background: var(--primary-accent);
  color: #FFF;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 50px 20px 70px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #FFFFFF 0%, var(--bg-paper) 70%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-paper-subtle);
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-accent);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary {
  background: var(--primary-accent);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(45, 75, 62, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 75, 62, 0.3);
}

.btn-secondary {
  background: #FFF;
  color: var(--text-primary);
  border: 1px solid var(--bg-grid-line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-paper-subtle);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-accent);
  border: 1.5px solid var(--primary-accent);
}

.btn-outline:hover {
  background: rgba(45, 75, 62, 0.06);
}

.btn.disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Live Journal Canvas Mockup
   ========================================================================== */
.journal-mockup-wrapper {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.journal-device-frame {
  background: var(--bg-card);
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  position: relative;
}

.appbar-mock {
  padding: 12px 16px;
  background: #FAF8F4;
  border-bottom: 1px solid var(--bg-grid-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.appbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notebook-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.appbar-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.appbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.appbar-pill {
  padding: 2px 10px;
  background: rgba(45, 75, 62, 0.1);
  color: var(--primary-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.appbar-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.date-nav-mock {
  padding: 10px 16px;
  background: #F4EFE6;
  border-bottom: 1px solid var(--bg-grid-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}

.date-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Paper Grid Canvas */
.paper-canvas-mock {
  height: 380px;
  background-color: #FAF9F6;
  background-image: 
    linear-gradient(to right, rgba(234, 229, 220, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(234, 229, 220, 0.6) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  padding: 16px;
}

/* Sticky Note Cards */
.sticky-card-mock {
  position: absolute;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(44, 42, 41, 0.08);
  transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
  cursor: grab;
  user-select: none;
  touch-action: manipulation;
}

.interactive-card:hover {
  transform: scale(1.02) rotate(-0.5deg);
  box-shadow: 0 8px 20px rgba(44, 42, 41, 0.12);
  z-index: 10;
}

/* Tactile "picked up" state — mirrors the app's long-press hold lift. */
.interactive-card.is-held {
  transition: transform 0.15s var(--ease-smooth), box-shadow 0.15s var(--ease-smooth);
  transform: scale(1.06) rotate(1.5deg) translateY(-5px);
  box-shadow: 0 14px 28px rgba(44, 42, 41, 0.18);
  cursor: grabbing;
  z-index: 20;
}

.card-yellow {
  background: var(--card-yellow);
  border: 1px solid var(--card-yellow-border);
}

.card-blue {
  background: var(--card-blue);
  border: 1px solid var(--card-blue-border);
}

.card-header-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.card-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.card-tag.personal {
  background: rgba(45, 75, 62, 0.12);
  color: var(--primary-accent);
}

.card-tag.business {
  background: rgba(29, 53, 87, 0.12);
  color: var(--secondary-accent);
}

.card-time {
  color: var(--text-muted);
}

.card-title-mock {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.card-body-mock {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ToDo Mock */
.todo-mock-section {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.todo-mock-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.todo-mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 4px;
  padding: 3px 4px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.todo-mock-item:hover {
  background: rgba(45, 75, 62, 0.06);
}

.todo-mock-item.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-check {
  font-weight: 700;
  color: var(--primary-accent);
  transition: transform 0.18s var(--ease-smooth);
}

.todo-mock-item:active .todo-check {
  transform: scale(1.25);
}

.mockup-hint {
  padding: 8px;
  background: var(--bg-paper-subtle);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-grid-line);
}

/* ==========================================================================
   Concept / Story Section
   ========================================================================== */
.concept-section {
  padding: 80px 20px;
  background: var(--bg-paper-subtle);
  border-top: 1px solid var(--bg-grid-line);
  border-bottom: 1px solid var(--bg-grid-line);
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.section-subtitle {
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.concept-story {
  max-width: 700px;
  margin: 0 auto;
  background: #FFF;
  padding: 40px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-grid-line);
  box-shadow: var(--shadow-sm);
}

.story-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-accent);
  line-height: 1.6;
  margin-bottom: 24px;
  border-left: 3px solid var(--primary-accent);
  padding-left: 14px;
}

.story-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ==========================================================================
   Key Features Grid
   ========================================================================== */
.features-section {
  padding: 90px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-grid-line);
  border-radius: 12px;
  margin-bottom: 18px;
}

.feature-emoji {
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 90px 20px;
  background: var(--bg-paper-subtle);
  border-top: 1px solid var(--bg-grid-line);
  border-bottom: 1px solid var(--bg-grid-line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:not(.featured):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D9D2C4;
}

.pricing-card.featured {
  border: 2px solid var(--primary-accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--bg-paper-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.featured-badge {
  background: var(--primary-accent);
  color: #FFF;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 14px;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-val {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-right: 6px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.75;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px dashed var(--bg-grid-line);
}

.plan-features li:last-child {
  border-bottom: none;
}

.pricing-honor-note {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 22px 28px;
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-left: 4px solid var(--primary-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.honor-note-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 8px;
}

.honor-note-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
}

/* ==========================================================================
   Download Section
   ========================================================================== */
.download-section {
  padding: 90px 20px;
}

.download-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--primary-accent);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.download-desc {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: #FFF;
  transition: all 0.2s;
}

.store-badge-btn:hover {
  background: #FFF;
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.store-badge-btn.disabled {
  opacity: 0.5;
  cursor: default;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.store-badge-btn.disabled:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFF;
  transform: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.store-main {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 20px 100px;
  background: var(--bg-paper-subtle);
  border-top: 1px solid var(--bg-grid-line);
}

.faq-accordion {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary-accent);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px dashed var(--bg-grid-line);
  padding-top: 14px;
}

/* ==========================================================================
   Guide Page (guide.html)
   ========================================================================== */
.guide-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.guide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guide-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

/* Table of Contents */
.toc-card {
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 20px;
  list-style: none;
}

.toc-grid a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 2px;
  border-radius: 4px;
}

.toc-grid a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

.toc-grid a.active {
  color: var(--primary-accent);
  font-weight: 700;
}

.toc-grid a.active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-accent);
  flex-shrink: 0;
}

/* Guide Section Blocks */
.guide-section {
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
}

.guide-step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  background: rgba(45, 75, 62, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.guide-h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.guide-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.guide-list {
  padding-left: 22px;
  margin-bottom: 20px;
}

.guide-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.guide-note-box {
  background: #FAF8F4;
  border-left: 3px solid var(--primary-accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 16px 0 20px;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

/* Image Placeholder Box — kept clean and consistently proportioned at any width. */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #FAF9F6;
  border: 2px dashed #D6D0C5;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin: 22px 0 10px;
  transition: background 0.2s, border-color 0.2s;
}

.img-placeholder:hover {
  background: #F4EFE6;
  border-color: var(--primary-accent);
}

.img-placeholder-icon {
  font-size: 2rem;
  color: #A39D94;
  margin-bottom: 8px;
}

.img-placeholder-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding: 0 12px;
}

.img-placeholder-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Legal / Privacy Page (privacy.html)
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 40px 30px;
  background: #FFF;
  border: 1px solid var(--bg-grid-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 12px;
}

.legal-content h2 {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin: 30px 0 14px;
  color: var(--primary-accent);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #242220;
  color: #EDEAE5;
  padding: 60px 20px 40px;
  text-align: center;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-logo {
  background: #FFF;
  color: #242220;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-links a:hover {
  color: #FFF;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .hero-section {
    padding: 36px 16px 50px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

  .concept-story {
    padding: 26px 18px;
  }

  .concept-story .story-text br + br {
    display: none;
  }

  .download-card {
    padding: 36px 20px;
  }

  .header-actions {
    gap: 10px;
  }

  .guide-section {
    padding: 28px 20px;
  }

  .legal-content {
    padding: 30px 20px;
    margin: 24px auto 60px;
  }
}

/* Fine-tuned for common phone widths (375px–430px): tighter rhythm, no cramped
   or overflowing rows, and thumb-friendly tap targets throughout. */
@media (max-width: 430px) {
  .header-container {
    padding: 10px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-sub {
    display: none;
  }

  .nav-guide-link {
    font-size: 0.82rem;
  }

  .nav-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  /* Scale the journal mockup down gracefully instead of letting it crowd the viewport. */
  .journal-mockup-wrapper {
    max-width: 100%;
  }

  .paper-canvas-mock {
    height: 340px;
    padding: 12px;
  }

  .sticky-card-mock {
    padding: 10px 12px;
  }

  .card-title-mock {
    font-size: 0.82rem;
  }

  .card-body-mock {
    font-size: 0.74rem;
  }

  .section-container {
    padding: 0 4px;
  }

  .features-section,
  .pricing-section,
  .download-section {
    padding: 60px 16px;
  }

  .concept-section {
    padding: 56px 16px;
  }

  .feature-card,
  .pricing-card {
    padding: 26px 20px;
  }

  .pricing-honor-note {
    padding: 18px 16px;
    margin: 24px auto 0;
  }

  /* Download badges: stack into full-width, easy-to-tap rows on narrow screens
     instead of wrapping unevenly into a ragged two-column mess. */
  .download-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .store-badge-btn {
    width: 100%;
    padding: 13px 18px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.94rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .footer-links {
    gap: 12px 18px;
  }

  .guide-container {
    padding: 28px 14px 70px;
  }

  .toc-card {
    padding: 20px 18px;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .guide-section {
    padding: 24px 16px;
  }

  .img-placeholder {
    aspect-ratio: 4 / 3;
  }
}
