/* ==========================================
   TimeBeaver Landing Page - Style
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00bfa2;
  --primary-dark: #00a88e;
  --primary-light: #e0f7f3;
  --primary-bg: #f0fdf9;
  --accent: #ff5757;
  --accent-dark: #e04444;
  --accent-light: #fff0f0;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
.section-eyebrow {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.section-title--white { color: #fff; }
.section-lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  line-height: 1.8;
}
.section-lead--white { color: rgba(255,255,255,.85); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,87,87,.3);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.header__logo-img { height: 40px; width: auto; }
.header__logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.header__nav { display: flex; gap: 28px; }
.header__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.header__link:hover { color: var(--primary); }
.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.header__link:hover::after { width: 100%; }
.header__cta { font-size: .85rem; padding: 8px 20px; }
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--primary-bg) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__title--accent { color: var(--primary); }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Mockup Browser */
.mockup-browser {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup-browser__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.mockup-dot:first-child { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c940; }
.mockup-browser__content { display: flex; min-height: 280px; }
.mockup-sidebar {
  width: 60px;
  background: var(--text);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.mockup-sidebar__logo { width: 28px; height: 28px; border-radius: 6px; background: var(--primary); margin-bottom: 8px; }
.mockup-sidebar__item { width: 32px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.mockup-sidebar__item.active { background: var(--primary); }
.mockup-main { flex: 1; padding: 16px; }
.mockup-header-bar { width: 40%; height: 10px; background: var(--border); border-radius: 5px; margin-bottom: 16px; }
.mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .65rem;
}
.mockup-card--primary { background: var(--primary-light); color: var(--primary-dark); }
.mockup-card--success { background: #e8f5e9; color: #2e7d32; }
.mockup-card--warning { background: #fff3e0; color: #e65100; }
.mockup-card__icon { font-size: 1.1rem; margin-bottom: 2px; }
.mockup-card__label { font-size: .55rem; opacity: .8; }
.mockup-card__value { font-weight: 700; font-size: .75rem; }
.mockup-table { font-size: .6rem; }
.mockup-table__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-table__row--header { font-weight: 600; color: var(--text-secondary); background: var(--bg-alt); border-radius: 4px 4px 0 0; }

/* --- Pain Points --- */
.pain { padding: 80px 0; background: var(--bg); }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pain__card {
  grid-column: auto;
  min-width: 0;
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.pain__icon { font-size: 2rem; margin-bottom: 12px; }
.pain__text { font-size: .95rem; color: var(--text-secondary); line-height: 1.7; }
.pain__text strong { color: var(--text); }

/* --- About / Strengths --- */
.about { padding: 80px 0; background: var(--bg-alt); }
.strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.strength {
  min-width: 0;
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.strength__number {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 12px;
}
.strength__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}
.strength__desc { color: var(--text-secondary); font-size: .9rem; line-height: 1.8; }

/* --- Features --- */
.features { padding: 80px 0; background: var(--bg); }
.features__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.features__tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.features__tab:hover { border-color: var(--primary); color: var(--primary); }
.features__tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.features__panel { display: none; }
.features__panel.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.features__panel-content h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
.features__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features__list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: .95rem;
}
.features__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Feature Mockups */
.feature-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-mockup__title {
  padding: 12px 20px;
  background: var(--bg-alt);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.feature-mockup__table { padding: 8px; }
.fm-row {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr .8fr .8fr .8fr;
  padding: 8px 12px;
  font-size: .75rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.fm-row--header { font-weight: 600; color: var(--text-secondary); background: var(--bg-alt); border-radius: 6px; }
.fm-badge {
  padding: 2px 8px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 600;
  text-align: center;
}
.fm-badge--ok { background: #e8f5e9; color: #2e7d32; }
.fm-badge--wait { background: #fff3e0; color: #e65100; }
.fm-badge--warn { background: var(--accent-light); color: var(--accent); }

/* Shift Grid */
.shift-grid { padding: 16px; }
.shift-header, .shift-row {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  text-align: center;
  font-size: .7rem;
}
.shift-header { font-weight: 600; color: var(--text-secondary); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.shift-row span:first-child { text-align: left; font-weight: 600; color: var(--text); }
.shift-day { background: var(--primary-light); color: var(--primary-dark); padding: 4px; border-radius: 4px; font-weight: 600; }
.shift-night { background: #e8eaf6; color: #3949ab; padding: 4px; border-radius: 4px; font-weight: 600; }
.shift-off { background: var(--bg-alt); color: var(--text-secondary); padding: 4px; border-radius: 4px; }

/* Approval Flow */
.approval-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
}
.approval-step {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 2px solid var(--border);
  min-width: 100px;
}
.approval-step--done { border-color: var(--primary); background: var(--primary-light); }
.approval-step--current { border-color: var(--accent); background: var(--accent-light); }
.approval-step__icon { font-size: 1.2rem; margin-bottom: 4px; }
.approval-step--done .approval-step__icon { color: var(--primary); }
.approval-step--current .approval-step__icon { color: var(--accent); }
.approval-step__label { font-size: .7rem; line-height: 1.4; }
.approval-step__label small { color: var(--text-secondary); }
.approval-arrow { color: var(--text-secondary); font-size: 1.2rem; }

/* Report Cards */
.report-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.report-card {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.report-card__icon { font-size: 1.4rem; margin-bottom: 4px; }
.report-card__name { font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.report-card__action {
  display: inline-block;
  padding: 2px 10px;
  font-size: .6rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
}

/* Permission Visual */
.permission-visual {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.perm-level {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--border);
}
.perm-badge {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.perm-badge--general { background: #e3f2fd; color: #1565c0; }
.perm-badge--approval { background: #fff3e0; color: #e65100; }
.perm-badge--admin { background: var(--primary-light); color: var(--primary-dark); }
.perm-level:nth-child(1) { border-left-color: #1565c0; }
.perm-level:nth-child(2) { border-left-color: #e65100; }
.perm-level:nth-child(3) { border-left-color: var(--primary); }
.perm-desc { font-size: .8rem; color: var(--text-secondary); }

/* --- Benefits --- */
.benefits { padding: 80px 0; background: var(--bg-alt); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefit__before, .benefit__after {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.6;
}
.benefit__before { background: var(--bg-alt); color: var(--text-secondary); }
.benefit__after { background: var(--primary-light); }
.benefit__after strong { color: var(--primary-dark); }
.benefit__label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.benefit__label--before { background: var(--border); color: var(--text-secondary); }
.benefit__label--after { background: var(--primary); color: #fff; }
.benefit__arrow { color: var(--primary); font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }

/* --- Pricing --- */
.pricing { padding: 80px 0; background: var(--bg); }
.pricing__formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.pricing__formula-term { color: var(--primary); }
.pricing__formula-plus {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 2px;
}
.pricing__formula-plus--inner {
  padding: 0 4px;
}
.pricing__formula-paren {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.15em;
}
.pricing__formula-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.pricing__structure {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 16px 20px;
  align-items: stretch;
  margin-bottom: 40px;
}
.pricing__structure-col--initial {
  display: flex;
}
.pricing__structure-col--initial .pricing__module { flex: 1; }
.pricing__structure-col--recurring {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pricing__structure-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 36px;
}
.pricing__structure-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.pricing__recurring {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--bg-alt);
  min-height: 100%;
  box-sizing: border-box;
}
.pricing__recurring .pricing__module {
  flex: 1 1 200px;
  max-width: 100%;
}
.pricing__recurring-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex: 0 0 auto;
  min-width: 28px;
}
.pricing__module {
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--border);
}
.pricing__module--option { border-style: dashed; }
.pricing__module-icon { font-size: 2rem; margin-bottom: 12px; }
.pricing__module h3 { font-size: 1rem; margin-bottom: 8px; }
.pricing__module p { font-size: .8rem; color: var(--text-secondary); line-height: 1.6; }
.pricing__cta { text-align: center; }
.pricing__note { color: var(--text-secondary); margin-bottom: 20px; font-size: .95rem; }

/* --- Flow --- */
.flow { padding: 80px 0; background: var(--bg-alt); }
.flow__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.flow__step {
  text-align: center;
  max-width: 200px;
  padding: 0 16px;
}
.flow__step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.flow__step h3 { font-size: 1rem; margin-bottom: 8px; }
.flow__step p { font-size: .8rem; color: var(--text-secondary); line-height: 1.6; }
.flow__connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 26px;
  flex-shrink: 0;
}

/* --- FAQ --- */
.faq {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-bg) 100%);
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.faq__item[open] { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.faq__question {
  padding: 22px 24px 22px 68px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before {
  content: 'Q';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq__item[open] .faq__question::after { content: '−'; }
.faq__answer {
  padding: 4px 24px 22px 68px;
  color: #111;
  font-size: .95rem;
  line-height: 1.9;
  position: relative;
}
.faq__answer::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq__answer > p { margin: 0; }
.faq__answer > p + ul,
.faq__answer > ul { margin: 8px 0 0; padding-left: 1.4em; }
.faq__answer li { margin: 2px 0; }

/* --- Contact --- */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--text) 0%, #2d2d4e 100%);
}
.contact__embed {
  max-width: 840px;
  margin: 0 auto;
}
.contact__embed-frame {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.contact__embed-fallback {
  margin: 20px auto 0;
  max-width: 840px;
  text-align: center;
  font-size: .95rem;
  color: #fff;
  line-height: 1.7;
}
.contact__embed-fallback a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__embed-fallback a:hover {
  color: #fff;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--text);
  color: rgba(255,255,255,.6);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo { height: 32px; filter: brightness(0) invert(1); }
.footer__brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__nav a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .8rem;
  transition: var(--transition);
}
.footer__nav a:hover { color: var(--primary); }
.footer__company { font-size: .75rem; }
.footer__company a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.footer__company a:hover { color: var(--primary); }
.footer__copy { font-size: .75rem; }

/* --- Utility --- */
.sp-only { display: none; }

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 560px; margin: 0 auto; }
  .features__panel.active { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing__structure {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pricing__structure-plus {
    min-height: unset;
    padding: 8px 0;
    font-size: 1.5rem;
  }
  .flow__steps { flex-wrap: wrap; gap: 16px; }
  .flow__connector { display: none; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__hamburger { display: flex; }

  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .header__nav.open + .header__cta + .header__hamburger ~ .header__cta { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero__title { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .pricing__recurring { flex-direction: column; }
  .pricing__recurring-plus { transform: rotate(90deg); padding: 4px 0; }

  .faq__question { padding: 18px 16px 18px 56px; font-size: .95rem; }
  .faq__question::before { left: 14px; width: 28px; height: 28px; font-size: .85rem; }
  .faq__answer { padding: 4px 16px 18px 56px; }
  .faq__answer::before { left: 14px; width: 28px; height: 28px; font-size: .85rem; }
  .contact__embed-frame { height: 1400px; }
  .sp-only { display: inline; }
  .approval-flow { flex-direction: column; }
  .approval-arrow { transform: rotate(90deg); }

  .features__tabs { gap: 6px; }
  .features__tab { padding: 8px 16px; font-size: .8rem; }
}

@media (max-width: 480px) {
  .pain__grid { grid-template-columns: 1fr; }
  .pain__card:nth-child(n) { grid-column: auto; }
  .strengths {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 48px auto 0;
  }
  .hero__title { font-size: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .flow__steps { flex-direction: column; align-items: center; }
}

@media (min-width: 481px) and (max-width: 1023px) {
  .pain__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 24px) / 2);
  }
}

@media (min-width: 1024px) {
  .strengths {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .strength { padding: 32px 20px; }
  .pain__grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .pain__card:nth-child(1) { grid-column: 1 / span 2; }
  .pain__card:nth-child(2) { grid-column: 3 / span 2; }
  .pain__card:nth-child(3) { grid-column: 5 / span 2; }
  .pain__card:nth-child(4) { grid-column: 7 / span 2; }
  .pain__card:nth-child(5) { grid-column: 2 / span 2; }
  .pain__card:nth-child(6) { grid-column: 4 / span 2; }
  .pain__card:nth-child(7) { grid-column: 6 / span 2; }
}
