/* ============================================================
   KASEGU — Brand Website Stylesheet
   Design: Trust & warmth for Japanese freelancers
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #1A6B47;
  --primary-light: #2D9164;
  --primary-dark: #0F3D28;
  --primary-ghost: rgba(26, 107, 71, 0.06);
  --gold: #E8C547;
  --gold-soft: #F5E08A;
  --gold-bg: rgba(232, 197, 71, 0.12);
  --surface: #F4F7F5;
  --surface-alt: #E8EDE9;
  --text: #1A2B22;
  --text-sub: #5A7468;
  --text-muted: #8FA89B;
  --white: #FFFFFF;
  --border: #D4DDD8;
  --border-light: #E8EDE9;
  --shadow-sm: 0 1px 3px rgba(15, 61, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 61, 40, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 61, 40, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 61, 40, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

/* --- Focus States (Keyboard Nav) --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  color: var(--text-sub);
  max-width: 68ch;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header p {
  margin-top: 12px;
  margin-inline: auto;
}

.section__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-ghost);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(244, 247, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(255, 255, 255, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo svg {
  width: 28px;
  height: 28px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.header__nav a:hover {
  color: var(--primary);
}

.header__nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  position: absolute;
  left: 10px;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 20px;
  z-index: 49;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-nav a:hover {
  background: var(--primary-ghost);
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bg);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  margin-bottom: 20px;
}

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

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--white);
  border-radius: 36px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--white);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 30%, var(--surface) 30%);
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-mockup__header {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 0;
}

.phone-mockup__header span {
  font-size: 1.1rem;
  display: block;
  margin-top: 2px;
}

.phone-mockup__card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.phone-mockup__card-label {
  font-size: 0.6rem;
  color: var(--text-sub);
  font-weight: 500;
}

.phone-mockup__card-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}

.phone-mockup__card-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.phone-mockup__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.phone-mockup__list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-mockup__list-text {
  font-size: 0.6rem;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}

.phone-mockup__list-amount {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Floating decorations around phone */
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 3;
}

.hero__float--cf {
  top: 15%;
  right: -10px;
  color: var(--primary);
}

.hero__float--pdf {
  bottom: 25%;
  left: -20px;
  color: var(--primary-dark);
}

.hero__float--score {
  bottom: 10%;
  right: 0;
  color: #D97706;
}

.hero__float svg {
  width: 18px;
  height: 18px;
}

/* Hero background shapes */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  z-index: 0;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.hero__bg-shape--2 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: -100px;
  left: -50px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-light);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  border-color: var(--primary);
  background: var(--primary-ghost);
}

.btn--gold {
  background: var(--gold);
  color: var(--primary-dark);
}

.btn--gold:hover {
  background: #D4B23E;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 10px 20px;
}

.btn--lg {
  font-size: 1rem;
  padding: 18px 36px;
  border-radius: var(--radius-md);
}

/* App Store badge placeholder */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.appstore-badge:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.appstore-badge svg {
  width: 24px;
  height: 24px;
}

.appstore-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.appstore-badge__text small {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.8;
}

.appstore-badge__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--green {
  background: var(--primary-ghost);
  color: var(--primary);
}

.card__icon--gold {
  background: var(--gold-bg);
  color: #B8941C;
}

.card__icon--dark {
  background: rgba(15, 61, 40, 0.08);
  color: var(--primary-dark);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Problem Cards --- */
.problem-card {
  text-align: center;
  padding: 40px 28px;
}

.problem-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.problem-card__illust {
  width: 100%;
  height: 140px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Comparison Table --- */
.comparison {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison thead th {
  padding: 18px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}

.comparison thead th:first-child {
  background: var(--surface);
  width: 30%;
}

.comparison thead th:nth-child(2) {
  color: var(--text-sub);
}

.comparison thead th:nth-child(3) {
  color: var(--primary);
  background: var(--primary-ghost);
}

.comparison tbody td {
  padding: 16px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.comparison tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.comparison tbody td:nth-child(3) {
  background: var(--primary-ghost);
  color: var(--primary-dark);
  font-weight: 500;
}

.comparison tbody tr:last-child td {
  border-bottom: none;
}

.comparison .check {
  color: var(--primary);
  font-weight: 700;
}

.comparison .cross {
  color: var(--text-muted);
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}

.step__illust {
  width: 100%;
  height: 100px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  margin-inline: auto;
}

/* Step connector */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--border);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1.5px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured::before {
  content: 'おすすめ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-card__price strong {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-card__price span {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.pricing-card__period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.pricing-card__feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.pricing-card__feature--disabled {
  opacity: 0.4;
}

.pricing-card__feature--disabled svg {
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  line-height: 1.5;
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --- FAQ (details/summary variant for index.html) --- */
.faq__list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq__item[open] {
  border-color: var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  line-height: 1.5;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: '';
}

.faq__question:hover {
  color: var(--primary);
}

.faq__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq__answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.faq__more {
  text-align: center;
  margin-top: 32px;
}

.faq__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.faq__more-link:hover {
  color: var(--primary-light);
}

/* --- Section title (used in index.html) --- */
.section__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  text-align: center;
  margin-bottom: 16px;
}

/* --- CTA section variant (index.html) --- */
.section--cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--cta h2 {
  color: var(--white);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-inline: auto;
}

/* --- FAQ Category (faq.html) --- */
.faq-category {
  margin-bottom: 40px;
}

.faq-category__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-ghost);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category__title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-section .btn--gold {
  font-size: 1rem;
  padding: 18px 40px;
}

.cta-section__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section__shape--1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
}

.cta-section__shape--2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -50px;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer__logo svg {
  width: 24px;
  height: 24px;
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__contact {
  font-size: 0.78rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__contact a:hover {
  color: var(--gold-soft);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: calc(var(--header-height) + 20px) 0 0;
  font-size: 0.8rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-sub);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* --- Help Page --- */
.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}

.help-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}

.help-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-sidebar__link {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.help-sidebar__link:hover {
  color: var(--primary);
  background: var(--primary-ghost);
}

.help-sidebar__link.active {
  color: var(--primary);
  background: var(--primary-ghost);
  border-left-color: var(--primary);
  font-weight: 600;
}

.help-content section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.help-content section:last-child {
  border-bottom: none;
}

.help-content h2 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-content h2 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.help-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.help-content p {
  margin-bottom: 16px;
}

.help-content ul,
.help-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.help-content ul { list-style: disc; }
.help-content ol { list-style: decimal; }

.help-content li {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 6px;
}

.help-tip {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.88rem;
  color: var(--text);
}

.help-tip strong {
  display: block;
  margin-bottom: 4px;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 0 80px;
}

.legal-content h1 {
  margin-bottom: 8px;
}

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

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-content .contact-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.legal-content .contact-box p {
  margin-bottom: 4px;
}

/* ============================================================
   INDEX.HTML CUSTOM CLASSES
   (Subagent-generated class names for the landing page)
   ============================================================ */

/* --- Header variants (index.html uses different sub-classes) --- */
.header__logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--text);
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-nav__link:hover {
  background: var(--primary-ghost);
  color: var(--primary);
}

/* --- Hero variants --- */
.hero__title {
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -250px;
  right: -150px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -200px;
  left: -100px;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 50%;
  left: 30%;
}

/* App Store placeholder badge */
.hero__appstore-badge {
  display: inline-flex;
  cursor: pointer;
  transition: all var(--transition);
}

.hero__appstore-badge:hover {
  transform: translateY(-2px);
}

.appstore-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: background var(--transition);
}

.appstore-placeholder:hover {
  background: var(--primary);
}

.appstore-placeholder small {
  display: block;
  font-size: 0.6rem;
  opacity: 0.8;
}

.appstore-placeholder span {
  font-size: 0.95rem;
  font-weight: 700;
}

.appstore-placeholder--light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.appstore-placeholder--light:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hero floating badges */
.hero__floating {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 3;
}

.hero__floating--cf {
  top: 20%;
  right: 0;
  color: var(--primary);
}

.hero__floating--pdf {
  bottom: 30%;
  left: -10px;
  color: var(--primary-dark);
}

.hero__floating--temp {
  bottom: 12%;
  right: 5%;
  color: #D97706;
}

.hero__floating svg {
  width: 18px;
  height: 18px;
}

/* --- Phone Mockup variants --- */
.phone-mockup__greeting {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.phone-mockup__label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-top: 4px;
}

.phone-mockup__amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  display: block;
}

.phone-mockup__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-mockup__card {
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.phone-mockup__card--green {
  border-left: 3px solid var(--primary);
}

.phone-mockup__card--gold {
  border-left: 3px solid var(--gold);
}

.phone-mockup__card-label {
  font-size: 0.55rem;
  color: var(--text-sub);
  display: block;
}

.phone-mockup__card-amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}

.phone-mockup__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-mockup__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow-sm);
  font-size: 0.6rem;
}

.phone-mockup__item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-mockup__item-dot--active { background: var(--primary); }
.phone-mockup__item-dot--pending { background: var(--gold); }
.phone-mockup__item-dot--new { background: var(--primary-light); }

.phone-mockup__item-info {
  flex: 1;
  min-width: 0;
}

.phone-mockup__item-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.6rem;
}

.phone-mockup__item-status {
  display: block;
  font-size: 0.5rem;
  color: var(--text-muted);
}

.phone-mockup__item-amount {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.6rem;
  white-space: nowrap;
}

/* --- Problem Cards --- */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.problem-card__illustration {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.problem-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card__text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --- Feature Cards --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-ghost);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --- Comparison Table (index.html variant) --- */
.comparison__table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison__table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison__table thead th {
  padding: 18px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  background: var(--surface);
}

.comparison__table thead th.comparison__highlight {
  color: var(--primary);
  background: var(--primary-ghost);
}

.comparison__table tbody td {
  padding: 16px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.comparison__table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.comparison__table tbody td.comparison__highlight {
  background: var(--primary-ghost);
  color: var(--primary-dark);
  font-weight: 500;
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Steps (index.html variant) --- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.step-card__illustration {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* --- Pricing variants --- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card__header {
  margin-bottom: 24px;
}

.pricing-card__amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.pricing-card__annual {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-card__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pricing-card__badge--future {
  background: var(--text-muted);
}

.pricing-card--future {
  opacity: 0.75;
}

.pricing-card__feature--included {
  color: var(--text-sub);
}

.pricing-card__feature--excluded {
  color: var(--text-muted);
  opacity: 0.5;
}

/* --- Section subtitle --- */
.section__subtitle {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 48px;
  max-width: 480px;
  margin-inline: auto;
}

.section__subtitle--cta {
  color: rgba(255, 255, 255, 0.8);
}

.section__title--cta {
  color: var(--white);
}

/* --- CTA actions --- */
.cta__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* --- Footer variants (index.html) --- */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.footer__column-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

/* --- Responsive overrides for index.html classes --- */
@media (max-width: 1024px) {
  .hero__floating {
    display: none;
  }

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .comparison__table {
    font-size: 0.82rem;
  }

  .comparison__table thead th,
  .comparison__table tbody td {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }

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

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .hero__float {
    display: none;
  }

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

  .step:not(:last-child)::after {
    display: none;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .help-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .help-sidebar__link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .help-sidebar__link.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 56px;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .card {
    padding: 24px;
  }

  .pricing-card {
    padding: 28px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .comparison table {
    font-size: 0.82rem;
  }

  .comparison thead th,
  .comparison tbody td {
    padding: 12px 16px;
  }

  .faq-item__question {
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  .faq-item__answer-inner {
    padding: 0 18px 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding-inline: 16px;
  }

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

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