:root {
  --bg: #e4f1f8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #fbfdff;
  --panel-soft: #edf6fa;

  --text: #05080c;
  --muted: #0d1117;

  --accent: #6ec0e8;
  --accent-soft: #98d9f2;
  --accent-deep: #2f86b0;

  --highlight: #57abd3;
  --highlight-soft: #7fc7e7;

  --line: rgba(47, 134, 176, 0.16);
  --shadow: 0 18px 42px rgba(25, 60, 85, 0.1);

  --radius: 24px;
  --container: 1180px;

  --header-expanded: 82px;
  --header-collapsed: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-collapsed) + 20px);
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  background:
    radial-gradient(circle at top right, rgba(110, 192, 232, 0.22), transparent 30%),
    radial-gradient(circle at top left, rgba(167, 214, 235, 0.28), transparent 28%),
    linear-gradient(180deg, #eef7fb 0%, #e2f0f8 48%, #d6e9f4 100%);
  color: var(--text);
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 24, 32, 0.045) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.04;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: rgba(236, 246, 251, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(236, 246, 251, 0.93);
  border-color: var(--line);
}

.site-header.is-collapsed {
  background: rgba(236, 246, 251, 0.97);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(25, 60, 85, 0.07);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-expanded);
  overflow: visible;
  transition:
    min-height 220ms ease,
    padding 220ms ease;
}

.site-header.is-collapsed .header-inner {
  min-height: var(--header-collapsed);
}

.site-nav,
.trial-button,
.brand {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

.site-header.is-collapsed .site-nav,
.site-header.is-collapsed .trial-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.985);
}

.site-header.is-collapsed .brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand-text {
  display: inline-block;
  padding-bottom: 0.04em;
  color: #0d1720;
  font-size: clamp(1.3rem, 1.45vw, 1.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #111418;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button:disabled:hover {
  transform: none;
}

.button-primary {
  color: #f9fdff;
  background: linear-gradient(135deg, #5aaed8, #3f95c0 52%, #2b7ca4);
  box-shadow: none;
}

.button:focus-visible,
.trial-calendar-nav:focus-visible,
.trial-calendar-day:focus-visible,
.trial-slot-button:focus-visible,
.trial-field input:focus-visible,
.trial-field textarea:focus-visible {
  outline: 2px solid rgba(47, 134, 176, 0.45);
  outline-offset: 3px;
}

.trial-button {
  display: inline-flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 132px;
  padding: 0.82rem 1.1rem;
  text-align: center;
  line-height: 1.05;
}

.trial-button span:first-child {
  font-size: 0.88rem;
  font-weight: 700;
}

.trial-button span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

/* ---------- Typography ---------- */

.eyebrow,
.calendar-label {
  margin: 0 0 0.9rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
strong {
  margin-top: 0;
  color: #05080c;
  font-family: inherit;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.24rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: #15202b;
}

.hero-copy {
  max-width: 62ch;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Trial hero ---------- */

.trial-hero,
.trial-flow,
.booking-calendar-section {
  scroll-margin-top: calc(var(--header-collapsed) + 20px);
}

.trial-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(214, 233, 244, 0.7)),
    radial-gradient(circle at 76% 22%, rgba(110, 192, 232, 0.2), transparent 26%),
    linear-gradient(180deg, #f1f8fc 0%, #e2f0f8 100%);
}

.trial-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(228, 241, 248, 0.2));
}

.trial-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
  padding: calc(var(--header-expanded) + 2.5rem) 0 4.6rem;
}

.trial-hero-inner-single {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: calc(var(--header-expanded) + 2.8rem) 0 4.6rem;
}

.trial-hero-copy,
.trial-booking-panel,
.trial-booking-panel-head > div,
.trial-calendar-toolbar__center {
  min-width: 0;
}

.trial-hero-copy-single {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.trial-hero-copy-single h1 {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.trial-hero-copy-single .hero-copy {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.trial-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.trial-hero-copy-single .trial-hero-actions {
  justify-content: center;
}

/* ---------- Trial flow ---------- */

.trial-flow {
  padding: 5rem 0 0;
}

.section-heading-block {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-card {
  padding: 1.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 254, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flow-step {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- Booking calendar shell ---------- */

.booking-calendar-section {
  padding: 2rem 0 0;
}

.booking-calendar-heading {
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.trial-booking-form {
  max-width: 920px;
  margin: 0 auto;
}

.trial-booking-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 254, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.trial-booking-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 254, 0.96));
  border-bottom: 1px solid rgba(47, 134, 176, 0.12);
}

.trial-booking-panel-head h3 {
  margin-bottom: 0;
}

.trial-panel-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.48rem 0.8rem;
  color: var(--accent-deep);
  background: rgba(110, 192, 232, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.trial-booking-panel-body {
  padding: 1.3rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(110, 192, 232, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(245, 250, 253, 0.96), rgba(236, 246, 251, 0.98));
}

/* ---------- Form fields ---------- */

.trial-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trial-field {
  display: grid;
  gap: 0.55rem;
}

.trial-field--full {
  grid-column: 1 / -1;
}

.trial-field__label {
  color: #05080c;
  font-weight: 700;
}

.trial-field input,
.trial-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 134, 176, 0.16);
  border-radius: 16px;
}

.trial-field textarea {
  min-height: 132px;
  resize: vertical;
}

.trial-field input:focus,
.trial-field textarea:focus {
  border-color: var(--accent-deep);
  outline: 2px solid rgba(87, 171, 211, 0.22);
}

.trial-field--invalid input,
.trial-field--invalid textarea {
  background: #fff7f7;
  border-color: #b94141 !important;
}

.trial-field__error {
  margin: 0;
  color: #b94141;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Booking cards / calendar ---------- */

.trial-booking-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trial-booking-card--invalid {
  border-color: #e3a6a6;
  box-shadow: inset 0 0 0 1px rgba(185, 65, 65, 0.18);
}

.trial-booking-card__header h4 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.15;
}

.trial-booking-card__header p {
  margin: 0 0 1rem;
  color: #516170;
}

.trial-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trial-calendar-toolbar__center {
  text-align: center;
}

.trial-calendar-toolbar__label {
  margin: 0 0 0.2rem;
  color: #667888;
  font-size: 0.86rem;
}

.trial-calendar-toolbar__month {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
}

.trial-calendar-nav {
  width: 48px;
  height: 48px;
  color: #445464;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 134, 176, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
}

.trial-calendar-nav:hover {
  border-color: rgba(47, 134, 176, 0.3);
}

.trial-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.trial-calendar-grid--weekdays {
  margin-bottom: 0.65rem;
}

.trial-calendar-grid--weekdays span {
  padding: 0.25rem 0;
  color: #6a7a88;
  font-size: 0.86rem;
  text-align: center;
}

.trial-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 88px;
  padding: 0.8rem 0.65rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 134, 176, 0.16);
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.trial-calendar-day:hover {
  transform: translateY(-1px);
  border-color: var(--accent-deep);
}

.trial-calendar-day__number {
  display: block;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.trial-calendar-day__meta {
  min-height: 1em;
  color: #6e7f8d;
  font-size: 0.78rem;
}

.trial-calendar-day--selected {
  background: rgba(110, 192, 232, 0.18);
  border-color: var(--accent-deep);
}

.trial-calendar-day--other-month {
  opacity: 0.42;
}

.trial-calendar-day--disabled {
  color: #98a6b2;
  background: rgba(233, 239, 243, 0.78);
  cursor: not-allowed;
}

.trial-calendar-day--disabled:hover {
  transform: none;
  border-color: rgba(47, 134, 176, 0.16);
}

/* ---------- Availability rows / generated states ---------- */

.trial-availability-rows {
  display: grid;
  gap: 0.9rem;
}

.trial-availability-row,
.trial-empty-state {
  padding: 1rem 1rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 134, 176, 0.12);
  border-radius: 20px;
}

.trial-row-title,
.trial-empty-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.trial-row-text,
.trial-empty-text {
  margin: 0 0 0.8rem;
  color: #596b79;
}

.trial-slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.trial-slot-button {
  appearance: none;
  padding: 0.72rem 1.1rem;
  color: #21303d;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 134, 176, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.trial-slot-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-deep);
}

.trial-slot-button.is-active {
  color: #0f2433;
  background: linear-gradient(135deg, rgba(90, 174, 216, 0.2), rgba(43, 124, 164, 0.18));
  border-color: var(--accent-deep);
}

.trial-row-summary {
  margin: 0.8rem 0 0;
  color: #556674;
  font-size: 0.95rem;
}

/* ---------- Submit state ---------- */

.trial-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trial-form-message {
  min-height: 1.25rem;
  color: #61717f;
  text-align: center;
  font-weight: 700;
}

.trial-submit-button {
  min-width: 280px;
  min-height: 68px;
  padding: 1.2rem 2.6rem;
  border-radius: 999px;
  font-size: 1.16rem;
  font-weight: 700;
}

.trial-form-message--success {
  color: #26723d;
}

.trial-form-message--error {
  color: #b94141;
}

.trial-form-message--pending {
  color: #61717f;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2.4rem;
  margin-top: 4.5rem;
  background: rgba(220, 238, 248, 0.9);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-logo {
  width: 164px;
  height: 164px;
  border-radius: 16px;
  object-fit: contain;
}

.footer-tagline {
  max-width: 34ch;
  margin: 0;
  line-height: 1.9;
}

.footer-tagline,
.footer-col a,
.footer-bottom-inner p {
  color: #2d373f;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-heading {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 12px;
  color: var(--accent-deep);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 10px;
  background: currentColor;
  opacity: 0.42;
}

.footer-col a {
  line-height: 1.6;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(47, 134, 176, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .trial-hero-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  :root {
    --header-expanded: 148px;
    --header-collapsed: 64px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.95rem;
    padding: 0.5rem;
  }

  .site-header.is-collapsed .header-inner {
    flex-wrap: nowrap;
    padding: 0 0.75rem;
  }

  .site-nav {
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.9rem 1.1rem;
  }

  .trial-button {
    order: 3;
  }

  .site-header.is-collapsed .site-nav,
  .site-header.is-collapsed .trial-button {
    display: none;
  }
}

@media (max-width: 900px) {
  .flow-grid,
  .footer-nav-grid,
  .trial-form-grid {
    grid-template-columns: 1fr;
  }

  .trial-booking-panel-head,
  .trial-submit-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 760px) {
  :root {
    --header-expanded: 150px;
    --header-collapsed: 64px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: var(--header-expanded);
    padding: 1rem 0.75rem;
    text-align: center;
  }

  .brand {
    order: 1;
    justify-content: center;
    text-align: center;
  }

  .brand-text {
    font-size: 1.45rem;
    text-align: center;
    white-space: normal;
  }

  .trial-button {
    order: 2;
    width: min(280px, 100%);
    min-width: 0;
    padding: 0.9rem 1.25rem;
  }

  .trial-button span:first-child {
    font-size: 0.88rem;
  }

  .trial-button span:last-child {
    font-size: 0.72rem;
  }

  .site-nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: 100%;
    padding: 0 0 0.15rem;
    column-gap: 0;
    row-gap: 0.7rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  .site-nav a:nth-child(1) {
    grid-column: 1 / span 2;
  }

  .site-nav a:nth-child(2) {
    grid-column: 3 / span 2;
  }

  .site-nav a:nth-child(3) {
    grid-column: 5 / span 2;
  }

  .site-nav a:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .site-nav a:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .site-header.is-collapsed .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: var(--header-collapsed);
    min-height: var(--header-collapsed);
    padding: 0 0.75rem;
  }

  .site-header.is-collapsed .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    order: initial;
    width: max-content;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .site-header.is-collapsed .brand-text {
    font-size: 1.08rem;
    text-align: center;
    white-space: nowrap;
  }

  .trial-hero-inner,
  .trial-hero-inner-single {
    padding: calc(var(--header-expanded) + 2rem) 0 3.4rem;
  }

  .trial-hero-copy-single .hero-copy {
    max-width: none;
  }

  .trial-hero-actions {
    flex-direction: column;
  }

  .trial-hero-actions .button {
    width: 100%;
  }

  .flow-card,
  .trial-booking-panel-body,
  .trial-booking-card {
    padding: 1rem;
  }

  .trial-calendar-toolbar__month {
    font-size: 1.2rem;
  }

  .trial-calendar-grid {
    gap: 0.45rem;
  }

  .trial-calendar-day {
    min-height: 72px;
    padding: 0.6rem 0.5rem;
    border-radius: 14px;
  }

  .trial-calendar-day__number {
    font-size: 0.9rem;
  }

  .trial-slot-button {
    justify-content: center;
    width: 100%;
  }

  .trial-submit-row {
    justify-content: center;
  }

  .trial-submit-button {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    font-size: 1.08rem;
  }

  .footer-inner {
    gap: 36px;
    text-align: center;
  }

  .footer-brand-block {
    align-items: center;
    text-align: center;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
  }
}

@media (max-width: 520px) {
  h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.62rem, 8vw, 2.15rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  .site-nav {
    gap: 0.72rem;
  }

  .hero-copy,
  .flow-card p,
  .trial-booking-card__header p,
  .trial-row-text,
  .trial-empty-text {
    font-size: 0.96rem;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}