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

:root {
  --c-blue: #2563EB;
  --c-blue-dark: #1D4ED8;
  --c-blue-light: #EFF6FF;
  --c-orange: #EAA300;
  --c-orange-dark: #D48C00;
  --c-green: #10B981;
  --c-green-light: #ECFDF5;
  --c-text: #1F2937;
  --c-sub: #6B7280;
  --c-bg: #F9FAFB;
  --c-border: #E5E7EB;
  --c-white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --font: 'Inter', 'Noto Sans JP', sans-serif;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  line-height: 1.6;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s, color .2s, border-color .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-orange);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-orange-dark); box-shadow: 0 4px 16px rgba(234, 163, 0, 0.3); }

.btn--outline {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: transparent;
}
.btn--outline:hover { background: var(--c-blue-light); }

.btn--ghost {
  color: var(--c-blue);
  background: transparent;
}
.btn--ghost:hover { background: var(--c-blue-light); }

.btn--white {
  background: var(--c-white);
  color: var(--c-blue);
}
.btn--white:hover { box-shadow: 0 4px 16px rgba(255,255,255,.3); }

.btn--ghost-white {
  border-color: rgba(255,255,255,.6);
  color: var(--c-white);
  background: transparent;
}
.btn--ghost-white:hover { background: rgba(255,255,255,.1); }

.btn--lg { padding: 13px 28px; font-size: 1rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  height: var(--nav-h);
}
.nav.scrolled {
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-sub);
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-text); }

.nav__cta { margin-left: 12px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.nav__mobile .btn { margin-top: 8px; }

/* === Section common === */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--c-sub);
  max-width: 560px;
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-tag--green {
  color: var(--c-green);
  background: var(--c-green-light);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0b1e4b 0%, #1a3a8f 55%, #2563eb 100%);
  padding: 0;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero__text { padding-top: 12px; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(147,197,253,.4);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero__text  {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero__text h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}
.hero__text h1 em {
  font-style: normal;
  color: #93c5fd;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__sub strong { color: #ffffff; font-weight: 700; }

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
}

.hero__text .btn,
.hero__cta--mobile {
  padding: 20px 44px;
  font-size: 1.25rem;
  border-radius: 12px;
}

.hero__text .btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.hero__cta--mobile {
  display: none;
  order: 3;
  margin-inline: auto;
}

/* Mockup */
.mockup {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.mockup__bar {
  background: var(--c-bg);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--c-border);
}
.mockup__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-border);
}
.mockup__bar span:nth-child(1) { background: #FC9EA6; }
.mockup__bar span:nth-child(2) { background: #FCCB6A; }
.mockup__bar span:nth-child(3) { background: #6EE7B7; }

.mockup__body { padding: 20px; }

.mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mockup__title { font-size: 0.9rem; font-weight: 700; }
.mockup__date { font-size: 0.78rem; color: var(--c-sub); }

.mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.mockup__stat {
  background: var(--c-bg);
  border-radius: 8px;
  padding: 10px;
}
.mockup__stat-label { font-size: 0.68rem; color: var(--c-sub); margin-bottom: 4px; }
.mockup__stat-value { font-size: 1rem; font-weight: 700; }
.mockup__stat-value.accent-green { color: var(--c-green); }

.mockup__chart { margin-bottom: 16px; }
.mockup__chart-label { font-size: 0.72rem; color: var(--c-sub); margin-bottom: 8px; }

.mockup__bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 60px;
}
.mockup__bar-item {
  flex: 1;
  background: linear-gradient(to top, var(--c-blue), #93C5FD);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mockup__bar-item span {
  font-size: 0.6rem;
  color: var(--c-sub);
  position: absolute;
  bottom: -16px;
}

.mockup__payroll {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-green-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 20px;
}
.mockup__payroll-label { font-size: 0.78rem; font-weight: 600; color: #065F46; }
.mockup__payroll-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse 2s infinite;
}
.status-dot--green { background: var(--c-green); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__wave {
  line-height: 0;
  position: relative;
  z-index: 1;
}
.hero__wave svg { width: 100%; height: 60px; }

/* === Social Proof === */
.social-proof {
  background: var(--c-bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--c-border);
}
.social-proof .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.social-proof__label { font-size: 0.85rem; color: var(--c-sub); }
.social-proof__label strong { color: var(--c-text); }
.social-proof__logos {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.logo-placeholder {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: .04em;
}

/* === Features === */
.features {
  background: linear-gradient(180deg, #f0f5ff 0%, var(--c-bg) 100%);
}

.features__core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.features__sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--c-white);
  border-radius: 16px;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue) 0%, #60a5fa 100%);
}
.feature-card:hover {
  box-shadow: 0 8px 40px rgba(37,99,235,.13);
  transform: translateY(-4px);
}

.feature-card--large { padding: 32px; }
.feature-card--small { padding: 28px; }

.feature-card__icon {
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-blue-light) 0%, #dbeafe 100%);
  box-shadow: 0 2px 8px rgba(37,99,235,.12);
}
.feature-card__icon--sm {
  margin-bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-text);
}
.feature-card--small h3 { font-size: 0.95rem; }

.feature-card p {
  font-size: 0.88rem;
  color: var(--c-sub);
  line-height: 1.75;
}

.feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  font-size: 0.83rem;
  color: var(--c-sub);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue) 0%, #60a5fa 100%);
}

/* === Shift Section === */
.shift { background: var(--c-white); }

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

.shift__text h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.shift__text > p {
  font-size: 1rem;
  color: var(--c-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}

.shift__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.shift__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.shift__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--c-green-light);
  color: var(--c-green);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.shift__list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.shift__list p {
  font-size: 0.85rem;
  color: var(--c-sub);
  line-height: 1.6;
  margin: 0;
}

/* Shift mockup */
.shift-mockup {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.shift-mockup__header {
  background: var(--c-blue);
  color: var(--c-white);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
}
.shift-mockup__table { padding: 16px; }
.shift-mockup__row {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.shift-mockup__row--head .shift-mockup__cell {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-sub);
  text-align: center;
}
.shift-mockup__cell {
  text-align: center;
  padding: 4px 2px;
}
.shift-mockup__cell--name {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--c-text);
}
.shift-block {
  display: block;
  padding: 4px 2px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
}
.shift-block--day { background: #DBEAFE; color: #1D4ED8; }
.shift-block--night { background: #EDE9FE; color: #5B21B6; }
.shift-block--off { background: var(--c-bg); color: var(--c-sub); }

.shift-mockup__footer {
  padding: 12px 20px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Pricing === */
.pricing { background: var(--c-bg); }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing__cards--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pricing-card--featured {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px var(--c-blue), var(--shadow-md);
  transform: translateY(-6px);
}
.pricing-card--featured:hover { transform: translateY(-8px); }

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__badge--green { background: var(--c-green); }

.pricing-card__plan {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.pricing-card__period {
  font-size: 0.85rem;
  color: var(--c-sub);
}

.pricing-card__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--c-border);
}
.pricing-card--featured .pricing-card__cap {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.pricing-card__cap--placeholder {
  visibility: hidden;
  pointer-events: none;
}
.pricing-card__cap-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-blue);
  background: #DBEAFE;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.pricing-card__cap-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text);
}

.pricing-card__desc {
  font-size: 0.88rem;
  color: var(--c-sub);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 56px;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-card__features li {
  font-size: 0.88rem;
  padding-left: 22px;
  position: relative;
  color: var(--c-text);
}
.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.pricing-card__features li.included::before {
  content: '✓';
  color: var(--c-green);
  font-weight: 700;
}
.pricing-card__features li.not-included {
  color: #D1D5DB;
  text-decoration: line-through;
}
.pricing-card__features li.not-included::before {
  content: '–';
  color: #D1D5DB;
}

.pricing__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-sub);
  margin-top: 28px;
}

/* === CTA Banner === */
/* === Register Form === */
.register {
  background: linear-gradient(135deg, #0b1e4b 0%, #1a3a8f 55%, #2563eb 100%);
  padding: 80px 0;
}

.register__inner {
  max-width: 760px;
}

.register__header {
  text-align: center;
  margin-bottom: 40px;
}
.register__header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.register__header p {
  color: rgba(255,255,255,.72);
  font-size: 0.95rem;
}

.register__form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-required {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #EF4444;
  border-radius: 4px;
  padding: 1px 6px;
}
.form-group input {
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group input::placeholder { color: #C4C9D4; }

.form-agree {
  margin-bottom: 24px;
}
.form-agree__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--c-text);
}
.form-agree__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-blue);
  flex-shrink: 0;
  cursor: pointer;
}
.form-agree__link {
  color: var(--c-blue);
  text-decoration: underline;
}
.form-agree__link:hover { color: var(--c-blue-dark); }

.form-submit {
  text-align: center;
}
.form-submit .btn {
  padding: 14px 48px;
  font-size: 1.05rem;
}
.form-submit .btn:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-message[data-type="success"] {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.form-message[data-type="error"] {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* === Terms Modal === */
.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.terms-modal[hidden] { display: none; }

.terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.terms-modal__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.terms-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
}
.terms-modal__header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.terms-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-sub);
  line-height: 1;
  padding: 0 4px;
}
.terms-modal__close:hover { color: var(--c-text); }
.terms-modal__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--c-sub);
  flex: 1;
}
.terms-modal__body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 20px 0 6px;
}
.terms-modal__body p { margin-bottom: 8px; }
.terms-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

/* === Footer === */
.footer {
  background: #111827;
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand .nav__logo { color: var(--c-white); margin-bottom: 12px; }
.footer__brand p {
  font-size: 0.85rem;
  color: #9CA3AF;
  line-height: 1.7;
}

.footer__nav {
  display: contents;
}
.footer__nav-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer__nav-col a {
  display: block;
  font-size: 0.88rem;
  color: #9CA3AF;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer__nav-col a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid #1F2937;
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p { font-size: 0.82rem; color: #6B7280; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.82rem; color: #6B7280; transition: color .2s; }
.footer__legal a:hover { color: var(--c-white); }

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in--delay { transition-delay: .15s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .features__core,
  .features__sub {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-card--featured { transform: none; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  section { padding: 60px 0; }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__text { order: 1; }
  .hero__visual { order: 2; }
  .hero__sub, .hero__note { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .badge { margin-inline: auto; display: block; width: fit-content; }
  .hero__text .hero__cta--desktop { display: none; }
  .hero__cta--mobile { display: block; }

  .features__core,
  .features__sub,
  .pricing__cards,
  .pricing__cards--two {
    grid-template-columns: 1fr;
  }
  .pricing-card--featured { transform: none; }

  .shift__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row { grid-template-columns: 1fr; }
  .register__form { padding: 28px 20px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__nav { display: flex; flex-wrap: wrap; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .social-proof__logos { gap: 16px; }
}

/* === Device Mockups === */
.devices {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 40px;
}

.devices__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 45% 45%, rgba(37,99,235,.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Laptop */
.device-laptop {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
}

.device-laptop__lid {
  background: linear-gradient(160deg, #D1D9E3 0%, #BEC8D4 100%);
  border-radius: 14px 14px 0 0;
  border: 2px solid #A8B4C0;
  border-bottom: none;
  padding: 10px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.device-laptop__cam {
  width: 6px;
  height: 6px;
  background: #9AA8B4;
  border-radius: 50%;
  border: 1.5px solid #A8B4C0;
}

.device-laptop__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #F0F4F8;
  border-radius: 4px;
  overflow: hidden;
}

.device-laptop__hinge {
  height: 6px;
  background: linear-gradient(to bottom, #B8C2CC, #A8B4C0);
  border-left: 2px solid #A8B4C0;
  border-right: 2px solid #A8B4C0;
  width: 100%;
}

.device-laptop__base {
  background: linear-gradient(to bottom, #C8D2DC, #BCC6D0);
  border-radius: 0 0 10px 10px;
  border: 2px solid #A8B4C0;
  border-top: none;
  padding: 10px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.device-laptop__keys {
  width: 88%;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #A8B4C0 0px,
    #A8B4C0 7px,
    #BCC6D0 7px,
    #BCC6D0 9px
  );
  border-radius: 2px;
  opacity: .7;
}

.device-laptop__pad {
  width: 72px;
  height: 12px;
  background: #A8B4C0;
  border-radius: 4px;
  border: 1px solid #98A8B4;
}

/* Phone */
.device-phone {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 27%;
  min-width: 108px;
  z-index: 4;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.18));
}

.device-phone__frame {
  background: linear-gradient(160deg, #C8D2DC 0%, #B8C2CC 100%);
  border-radius: 26px;
  border: 2px solid #A8B4C0;
  padding: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.device-phone__cam {
  width: 7px;
  height: 7px;
  background: #98A8B4;
  border-radius: 50%;
  border: 1.5px solid #A8B4C0;
}

.device-phone__screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #F0F4F8;
  border-radius: 8px;
  overflow: hidden;
}

.device-phone__home {
  width: 36px;
  height: 4px;
  background: #A8B4C0;
  border-radius: 2px;
}

/* === Screen Contents (CSS UI mockup) === */
.sc {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Desktop screen */
.sc--desktop {
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
}

.sc__bar {
  height: 22px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  flex-shrink: 0;
}

.sc__dots {
  display: flex;
  gap: 4px;
}
.sc__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sc__dots span:nth-child(1) { background: #F87171; }
.sc__dots span:nth-child(2) { background: #FBBF24; }
.sc__dots span:nth-child(3) { background: #34D399; }

.sc__url {
  flex: 1;
  height: 10px;
  background: #E2E8F0;
  border-radius: 100px;
  max-width: 180px;
}

.sc__body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sc__sidebar {
  width: 21%;
  background: #1E293B;
  border-right: 1px solid #334155;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.sc__logo-block {
  height: 14px;
  background: rgba(96,165,250,.7);
  border-radius: 4px;
  margin-bottom: 6px;
}

.sc__nav {
  height: 9px;
  background: #334155;
  border-radius: 3px;
  width: 80%;
}
.sc__nav.sc--on {
  background: rgba(96,165,250,.8);
  width: 100%;
}

.sc__main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  background: #F8FAFC;
}

.sc__kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.sc__kpi {
  height: 26px;
  background: #FFFFFF;
  border-radius: 5px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sc__kpi.sc--blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.sc__kpi.sc--green {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.sc__chart-box {
  flex: 1;
  background: #FFFFFF;
  border-radius: 5px;
  border: 1px solid #E2E8F0;
  padding: 8px 8px 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.sc__chart-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  flex: 1;
}
.sc__chart-bars > div {
  flex: 1;
  height: var(--bh, 50%);
  background: linear-gradient(to top, #2563EB, #93C5FD);
  border-radius: 3px 3px 0 0;
}

.sc__trow {
  height: 9px;
  background: #E2E8F0;
  border-radius: 3px;
  width: 90%;
}
.sc__trow.sc--sm { width: 62%; height: 7px; }

/* Mobile screen */
.sc--mobile {
  padding: 10px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #F8FAFC;
}

.sc__m-bar {
  height: 3px;
  background: #CBD5E1;
  border-radius: 2px;
  width: 38%;
  align-self: center;
  margin-bottom: 2px;
}

.sc__m-ttl {
  height: 12px;
  background: #CBD5E1;
  border-radius: 3px;
  width: 65%;
}

.sc__m-btn {
  height: 22px;
  background: #2563EB;
  border-radius: 6px;
  width: 100%;
}

.sc__m-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.sc__m-card {
  height: 30px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}
.sc__m-card.sc--blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.sc__m-card.sc--green {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.sc__m-row {
  height: 8px;
  background: #CBD5E1;
  border-radius: 3px;
}
.sc__m-row.sc--sm { width: 68%; height: 6px; }

/* Device responsive */
@media (max-width: 768px) {
  .device-phone { right: -2%; width: 28%; min-width: 90px; }
}
