/* ============================================
   やすらぎ整体院 — Landing Page Styles
   Mobile-first, CSS only, no external deps
   ============================================ */

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

:root {
  --green-900: #1b3e27;
  --green-700: #2d5a3d;
  --green-500: #4a7c59;
  --green-400: #6b9e7a;
  --green-200: #b8d8bc;
  --green-100: #d4edda;
  --green-50:  #e8f5e9;
  --cream:     #faf8f5;
  --sand:      #f3ede4;
  --brown-700: #5d4e37;
  --brown-400: #8b7355;
  --text-900:  #1a1a1a;
  --text-700:  #333333;
  --text-500:  #666666;
  --text-300:  #999999;
  --white:     #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 24px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease:      0.28s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text-700);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-500);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--green-700); }

img, svg { display: block; }

ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease),
              box-shadow var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-500);
}
.btn-outline:hover {
  background: var(--green-50);
  color: var(--green-900);
  border-color: var(--green-700);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

.btn-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 20px 52px;
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(27,62,39,.35);
  letter-spacing: .04em;
}
.btn-hero:hover {
  background: #143020;
  box-shadow: 0 6px 28px rgba(27,62,39,.45);
}
.btn-sm { padding: 9px 20px; font-size: .875rem; }

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
}
.btn-submit:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: .03em;
}
.logo:hover { color: var(--green-500); }
.logo-icon { flex-shrink: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-700);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}
.nav-link:hover {
  background: var(--green-50);
  color: var(--green-700);
}
.nav-cta {
  background: var(--green-500);
  color: var(--white) !important;
  padding: 8px 16px;
}
.nav-cta:hover {
  background: var(--green-700);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-700);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 80px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-50) 0%, #c9e6ce 45%, var(--sand) 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}
.hero-shape-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--green-200), transparent 70%);
  top: -100px; right: -80px;
}
.hero-shape-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #c8dcc4, transparent 70%);
  bottom: 60px; left: -60px;
}
.hero-shape-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--sand), transparent 70%);
  top: 40%; left: 60%;
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--green-200);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.hero-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--green-900);
  letter-spacing: .06em;
  line-height: 1.1;
}
.hero-kana {
  font-size: .8rem;
  font-weight: 500;
  color: var(--green-400);
  letter-spacing: .18em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-700);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: .9rem;
  color: var(--text-500);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  padding: 16px 8px;
  backdrop-filter: blur(6px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-700);
  line-height: 1.1;
}
.stat-unit { font-size: 1rem; }
.stat-label {
  font-size: .72rem;
  color: var(--text-500);
  margin-top: 2px;
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--green-200);
  flex-shrink: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-500);
  font-size: .72rem;
  letter-spacing: .1em;
  opacity: .7;
  text-decoration: none;
  transition: opacity var(--ease);
}
.scroll-hint:hover { opacity: 1; color: var(--text-500); }

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green-400);
  border-bottom: 2px solid var(--green-400);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ---------- Features Strip ---------- */
.features-strip {
  background: var(--white);
  border-bottom: 1px solid var(--green-50);
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-700);
  border-right: 1px solid var(--green-50);
}
.feature-item:last-child { border-right: none; }
.feature-icon { flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.bg-light  { background: var(--cream); }
.bg-white  { background: var(--white); }
.bg-green  {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--green-400);
  margin-bottom: 8px;
}
.section-label-light { color: rgba(255,255,255,.6); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--green-900);
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--green-400);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-title-light { color: var(--white); }
.section-title-light::after { background: rgba(255,255,255,.5); }

.section-desc { font-size: .9rem; color: var(--text-500); }
.section-desc-light { color: rgba(255,255,255,.7); }

/* ---------- Menu Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-menu {
  position: relative;
  padding: 28px 24px 0;
}
.card-icon { margin-bottom: 16px; }

.card-body { flex: 1; }

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 6px;
}

.card-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--text-500);
  margin-bottom: 12px;
}

.card-desc {
  font-size: .875rem;
  color: var(--text-500);
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.card-tags li {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--cream);
  border-top: 1px solid var(--green-50);
  margin: 0 -24px;
  margin-top: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brown-700);
}
.price-tax {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-500);
}

/* Popular card highlight */
.card-popular {
  border: 2px solid var(--green-400);
  box-shadow: 0 4px 20px rgba(74,124,89,.18);
}
.card-popular .card-foot { background: var(--green-50); }
.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--green-500);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
}

.menu-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-500);
  text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border-left: 4px solid var(--green-400);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  font-size: 1rem;
  color: #f0a500;
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: .875rem;
  color: var(--text-700);
  line-height: 1.8;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-style: normal;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.avatar-f40 { background: #b85c5c; }
.avatar-f30 { background: #8e6aad; }
.avatar-m50 { background: #4a7a9b; }
.author-name {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-900);
}
.author-detail {
  font-size: .75rem;
  color: var(--text-500);
}

/* ---------- Access ---------- */
.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* CSS Map Placeholder */
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #dde8d8;
  overflow: hidden;
}

/* Roads */
.map-road { position: absolute; background: #f5f5f0; }
.map-road-h { left: 0; right: 0; height: 14px; }
.map-road-v { top: 0; bottom: 0; width: 14px; }
.map-road-h1 { top: 35%; }
.map-road-h2 { top: 65%; }
.map-road-v1 { left: 35%; }
.map-road-v2 { left: 65%; }

/* Blocks */
.map-block {
  position: absolute;
  background: #c8d8c0;
  border-radius: 3px;
}
.mb1 { top: 5%; left: 5%; width: 27%; height: 27%; }
.mb2 { top: 5%; left: 40%; width: 22%; height: 27%; }
.mb3 { top: 42%; left: 5%; width: 27%; height: 18%; }
.mb4 { top: 70%; left: 40%; width: 55%; height: 25%; }

/* Station */
.map-station {
  position: absolute;
  top: 38%;
  left: 38%;
  transform: translate(-50%, -50%);
  background: #6695b0;
  border-radius: 4px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.station-label {
  font-size: .62rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.station-icon {
  width: 14px;
  height: 14px;
  background: var(--white);
  color: #6695b0;
  border-radius: 2px;
  font-size: .6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pin */
.map-pin {
  position: absolute;
  top: 44%;
  left: 58%;
  transform: translate(-50%, -100%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pin-label {
  background: rgba(0,0,0,.7);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.map-caption {
  padding: 8px 14px;
  background: rgba(0,0,0,.04);
  font-size: .72rem;
  color: var(--text-500);
  text-align: center;
}

/* Access Info */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--green-50);
}
.info-row:last-child { border-bottom: none; }

.info-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-700);
  white-space: nowrap;
  padding-top: 2px;
}
.info-row dd {
  font-size: .875rem;
  color: var(--text-700);
  line-height: 1.7;
}

.hours { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hours-day {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-700);
  min-width: 52px;
}
.hours-time { font-size: .8rem; color: var(--text-700); }
.hours-badge {
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
}
.hours-badge.open  { background: var(--green-50); color: var(--green-700); }
.hours-badge.closed { background: #fce8e8; color: #c0392b; }
.hours-note { font-size: .75rem; color: var(--text-500); }

.phone-link {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: .04em;
}
.phone-link:hover { color: var(--green-500); }
.phone-note { font-size: .75rem; color: var(--text-500); margin-left: 4px; }

/* ---------- Contact Form ---------- */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 40px;
  box-shadow: var(--shadow-lg);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-700);
  margin-bottom: 6px;
}
.req {
  display: inline-block;
  background: #fce8e8;
  color: #c0392b;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.form-ctrl {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d8d8d4;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-700);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}
.form-ctrl:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(74,124,89,.12);
}
.form-ctrl::placeholder { color: #bbb; }

.form-textarea { resize: vertical; min-height: 110px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px) scale(.97);
  transition: transform var(--ease);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-check { flex-shrink: 0; }
.modal-title {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-900);
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-500);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}
.modal-close:hover { background: var(--green-50); color: var(--green-700); }

.modal-intro {
  font-size: .875rem;
  color: var(--text-500);
  margin-bottom: 20px;
}

.modal-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.modal-data dt {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-700);
  padding-top: 1px;
}
.modal-data dd {
  font-size: .875rem;
  color: var(--text-700);
  word-break: break-word;
}

.modal-demo-note {
  font-size: .72rem;
  color: var(--text-300);
  text-align: center;
  margin-bottom: 20px;
}

.modal-foot { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--white);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.logo-light { color: var(--white); }
.logo-light:hover { color: var(--green-200); }
.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 4px;
}
.footer-nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.5); }
.demo-note  { font-size: .72rem; color: rgba(255,255,255,.4); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--green-700); }

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 768px) {
  /* nav */
  .hamburger { display: flex; }
  #nav-menu {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease);
  }
  #nav-menu.open { max-height: 320px; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav-link {
    display: block;
    padding: 13px 20px;
    border-radius: 0;
    font-size: .95rem;
  }
  .nav-cta {
    margin: 8px 20px 12px;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  /* hero */
  .hero-stats { gap: 0; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 1.2rem; }

  /* sections */
  .section { padding: 64px 0; }

  /* cards */
  .cards-grid { grid-template-columns: 1fr; gap: 18px; }

  /* testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 18px; }

  /* access */
  .access-layout { grid-template-columns: 1fr; gap: 28px; }

  /* form */
  .form-row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 28px 24px; }

  /* features */
  .feature-item {
    padding: 12px 18px;
    border-right: none;
    border-bottom: 1px solid var(--green-50);
    width: 50%;
  }
  .feature-item:last-child,
  .feature-item:nth-child(even) { border-right: none; }
  .feature-item:nth-child(odd)  { border-right: 1px solid var(--green-50); }

  /* footer */
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { padding: 86px 16px 68px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .hero-stats { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .stat-sep { display: none; }
  .stat { padding: 0 12px; flex: 1; min-width: 80px; }

  .card-foot { flex-direction: column; gap: 10px; align-items: stretch; }
  .card-foot .btn { text-align: center; justify-content: center; }

  .modal { padding: 24px 20px; }

  .feature-item { width: 100%; border-right: none; border-bottom: 1px solid var(--green-50); }

  .back-to-top { bottom: 16px; right: 16px; }
}
