:root {
  --blue-950: #071a48;
  --blue-900: #0b2c9c;
  --blue-700: #1565ff;
  --blue-500: #3aa8ff;
  --cyan: #49c8ff;
  --ink: #172033;
  --muted: #65738a;
  --soft: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --line: #d9e7ff;
  --danger: #e5484d;
  --success: #0e9f6e;
  --warning: #f59e0b;
  --shadow: 0 24px 70px rgba(16, 71, 170, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 200, 255, 0.22), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

body.modal-locked {
  overflow: hidden;
}

body.policy-pending {
  overflow: hidden;
}

body.policy-pending > :not(.policy-gate):not(.icon-sprite) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.hero {
  min-height: 620px;
  padding: 24px clamp(18px, 4vw, 56px) 52px;
  background:
    linear-gradient(135deg, rgba(7, 26, 72, 0.92), rgba(21, 101, 255, 0.88)),
    url("../../assets/images/freecom_pos.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.topbar,
.hero-grid,
main,
.mini-nav,
.footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-weight: 900;
}

.brand-mark {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions,
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.facebook-link {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.facebook-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #1877f2;
  background: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 16px 32px rgba(21, 101, 255, 0.26);
}

.ghost-btn {
  color: currentColor;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding-top: 76px;
}

.mini-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 10px clamp(14px, 3vw, 22px);
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(21, 101, 255, 0.1);
  backdrop-filter: blur(16px);
  margin-top: 14px;
  margin-bottom: 22px;
}

.mini-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--blue-900);
  background: #eef5ff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #9fe9ff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  max-width: 760px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 19px;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.hero-panel p,
.footer p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
  max-width: 660px;
}

.hero-panel {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
}

.logo-panel {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.logo-panel img {
  width: min(240px, 68%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.logo-panel strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.logo-panel p {
  margin: 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.76);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
}

.status-card p {
  margin: 4px 0 0;
  font-size: 14px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.16);
}

.platform-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.platform-list span {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 800;
}

main {
  padding: 36px clamp(14px, 3vw, 28px) 70px;
}

.search-section,
.start-section,
.preview-section,
.business-section,
.guide-section,
.role-section,
.troubleshooting-section,
.faq-section,
.device-section {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-showcase {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(73, 200, 255, 0.26), transparent 34%),
    rgba(255, 255, 255, 0.12);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.hero-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 18, 80, 0.34);
}

.hero-showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-showcase-card.main {
  width: min(360px, 72%);
  aspect-ratio: 0.72;
  transform: rotate(-4deg);
}

.hero-showcase-card.floating {
  position: absolute;
  width: 150px;
  aspect-ratio: 0.58;
  transform-origin: center;
  animation: floatPreview 5.8s ease-in-out infinite;
}

.hero-showcase-card.floating.one {
  left: 18px;
  bottom: 28px;
  transform: rotate(7deg);
}

.hero-showcase-card.floating.two {
  right: 18px;
  top: 34px;
  transform: rotate(-8deg);
  animation-delay: -2s;
}

.hero-logo-float {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(73, 200, 255, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.hero-logo-float::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%);
}

.hero-logo-float img {
  position: relative;
  z-index: 2;
  width: min(380px, 78%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 38px;
  filter: drop-shadow(0 30px 56px rgba(0, 14, 66, 0.42));
  animation: logoFloat 5.4s ease-in-out infinite;
}

.logo-orbit {
  position: absolute;
  z-index: 1;
  width: min(410px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(126, 222, 255, 0.28);
  box-shadow:
    inset 0 0 42px rgba(73, 200, 255, 0.12),
    0 0 52px rgba(21, 101, 255, 0.18);
  animation: orbitPulse 6.8s ease-in-out infinite;
}

.logo-orbit::before,
.logo-orbit::after,
.logo-glow {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #8feeff;
  box-shadow: 0 0 24px rgba(143, 238, 255, 0.86);
}

.logo-orbit::before {
  width: 16px;
  height: 16px;
  left: 12%;
  top: 28%;
}

.logo-orbit::after {
  width: 12px;
  height: 12px;
  right: 15%;
  bottom: 22%;
}

.logo-glow.one {
  width: 90px;
  height: 90px;
  left: 8%;
  bottom: 14%;
  background: rgba(73, 200, 255, 0.16);
  filter: blur(8px);
}

.logo-glow.two {
  width: 140px;
  height: 140px;
  right: 4%;
  top: 8%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(12px);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.015);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.045);
    opacity: 0.62;
  }
}

@keyframes floatPreview {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.preview-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 12%, rgba(73, 200, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
}

.preview-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(7, 26, 72, 0.94), rgba(21, 101, 255, 0.9)),
    url("./assets/showcase/freecom-logo-display.png");
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: 0 24px 60px rgba(21, 101, 255, 0.2);
}

.preview-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.preview-copy h3 {
  font-size: clamp(30px, 4vw, 52px);
}

.preview-copy p {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.preview-kicker {
  width: max-content;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-hero-image {
  margin: 0;
  min-height: 360px;
  max-height: 560px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(0, 16, 66, 0.34);
}

.preview-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.preview-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 38px rgba(21, 101, 255, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.preview-card:hover,
.preview-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 255, 0.5);
  box-shadow: 0 28px 60px rgba(21, 101, 255, 0.18);
  outline: none;
}

.preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: center top;
  background: #eaf3ff;
}

.preview-card span {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.preview-card strong {
  color: var(--blue-950);
  font-size: 18px;
}

.preview-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 750;
}

.download-section {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(7, 26, 72, 0.94), rgba(21, 101, 255, 0.9)),
    url("../../assets/images/freecom_pos.png");
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.download-section p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 720px;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-section .ghost-btn {
  color: white;
}

.search-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
}

.start-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(73, 200, 255, 0.16), transparent 38%),
    #ffffff;
}

.start-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: setup;
}

.setup-checklist li {
  counter-increment: setup;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  color: var(--ink);
  font-weight: 850;
}

.setup-checklist li::before {
  content: counter(setup);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  font-size: 13px;
  font-weight: 950;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
}

.search-box input:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.business-slider-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.business-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 6px;
  padding: 6px 4px 16px;
  scrollbar-width: thin;
}

.business-slider::-webkit-scrollbar {
  height: 8px;
}

.business-slider::-webkit-scrollbar-track {
  background: #e9f2ff;
  border-radius: 999px;
}

.business-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--blue-700), var(--cyan));
  border-radius: 999px;
}

.business-card {
  min-height: 178px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(73, 200, 255, 0.25), transparent 46%),
    linear-gradient(180deg, #ffffff, #f1f7ff);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(21, 101, 255, 0.12);
  display: grid;
  align-content: start;
  gap: 12px;
  cursor: pointer;
}

.business-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -28px;
  bottom: -28px;
  border-radius: 50%;
  background: rgba(21, 101, 255, 0.08);
}

.business-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 14px 28px rgba(21, 101, 255, 0.24);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-card strong {
  color: var(--blue-950);
  font-size: 18px;
  line-height: 1.18;
}

.business-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.module-list {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(234, 243, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--blue-900);
  background: white;
  box-shadow: 0 12px 24px rgba(21, 101, 255, 0.12);
  cursor: pointer;
  font-weight: 950;
  font-size: 18px;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  outline: none;
}

.quick-links button {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-900);
  border-radius: 999px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.guide-card {
  min-width: 0;
  min-height: 222px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(21, 101, 255, 0.42);
  box-shadow: 0 22px 42px rgba(21, 101, 255, 0.14);
  outline: none;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--blue-700);
  background: var(--surface-2);
  font-weight: 900;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.guide-card h3 {
  margin: 0 0 3px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.guide-card > span {
  min-width: 0;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: end;
  min-width: 0;
}

.tag-row span,
.badge-row span,
.pill {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--blue-900);
  background: #eaf3ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  align-content: flex-start;
}

.badge-row span {
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

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

.device-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.device-grid .icon {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  margin-bottom: 14px;
}

.device-icon {
  padding: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.role-grid,
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card,
.trouble-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(21, 101, 255, 0.09);
}

.role-card {
  position: relative;
  overflow: hidden;
}

.role-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(21, 101, 255, 0.08);
}

.role-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  font-size: 12px;
  font-weight: 950;
}

.role-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}

.trouble-grid article p {
  color: var(--muted);
  line-height: 1.65;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.accordion-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
}

.accordion-list details[open] summary {
  color: var(--blue-900);
  background: #eef5ff;
}

.accordion-list p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  line-height: 1.65;
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.support-strip span {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--blue-900);
  background: #eef5ff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px) 42px;
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 14px;
}

.footer a,
.footer-link {
  color: var(--blue-900);
  font-weight: 900;
}

.footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: absolute;
  inset: 26px;
  max-width: 980px;
  margin: auto;
  max-height: calc(100vh - 52px);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: 14px;
  background: #f0f6ff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-hero {
  padding: 34px 34px 18px;
  background: linear-gradient(135deg, #f7fbff, #eaf3ff);
  border-bottom: 1px solid var(--line);
}

.modal-hero h2 {
  padding-right: 44px;
}

.modal-hero p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue-900);
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.modal-body {
  padding: 26px 34px 34px;
  display: grid;
  gap: 22px;
}

.doc-block {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fbfdff;
}

.doc-block h3 {
  margin-bottom: 12px;
}

.doc-block p,
.doc-block li {
  color: var(--muted);
  line-height: 1.65;
}

.doc-block ol,
.doc-block ul {
  padding-left: 22px;
  margin: 0;
}

.doc-block li + li {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
}

.faq-item strong {
  display: block;
  margin-bottom: 5px;
}

.callout {
  border-left: 4px solid var(--blue-700);
  background: #eef5ff;
  padding: 14px;
  border-radius: 14px;
  color: var(--ink);
}

.related-guides {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.related-guides button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue-900);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.policy-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

body.policy-pending .policy-gate,
.policy-gate.is-open {
  display: grid;
}

.policy-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(73, 200, 255, 0.2), transparent 28rem),
    rgba(7, 26, 72, 0.72);
  backdrop-filter: blur(10px);
}

.policy-card {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(73, 200, 255, 0.14), transparent 40%),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(7, 26, 72, 0.34);
}

.policy-card h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 4vw, 42px);
  letter-spacing: 0;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.68;
}

.policy-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--ink);
}

.policy-brand .brand-mark {
  background: #eef5ff;
  border-color: var(--line);
}

.policy-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.notice-box {
  margin: 18px 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  color: #24406f;
  font-weight: 720;
  line-height: 1.62;
}

.agreement-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 22px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.55;
}

.agreement-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--blue-700);
  flex: 0 0 auto;
}

.agreement-check a {
  color: var(--blue-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.policy-actions .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.policy-disagree {
  color: #b5343a;
  background: #fff7f7;
  border-color: #ffdfe1;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 26px clamp(16px, 4vw, 56px) 46px;
  color: white;
  background:
    linear-gradient(135deg, rgba(7, 26, 72, 0.95), rgba(21, 101, 255, 0.9)),
    url("../../assets/images/freecom_pos.png");
  background-size: cover;
  background-position: center;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 54px;
}

.legal-title h1 {
  color: white;
  margin-bottom: 14px;
}

.legal-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.legal-main {
  padding: 0 clamp(12px, 3vw, 22px) 48px;
  margin-top: -26px;
}

.legal-card {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.legal-notice {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f8ff;
  color: var(--blue-900);
  font-weight: 800;
  line-height: 1.6;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 18px 0 26px;
  padding: 14px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.legal-toc a {
  color: var(--blue-900);
  font-weight: 850;
  font-size: 14px;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px clamp(12px, 3vw, 22px) 42px;
}

.legal-footer a {
  color: var(--blue-900);
  font-weight: 900;
}

@media (max-width: 640px) {
  .policy-gate {
    align-items: end;
    padding: 10px;
  }

  .policy-card {
    max-height: 92vh;
    border-radius: 26px;
  }

  .policy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .policy-actions .primary-btn,
  .policy-actions .ghost-btn {
    width: 100%;
  }

  .legal-header,
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header {
    margin-bottom: 34px;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .hero-grid,
  .search-section,
  .preview-feature {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .guide-grid,
  .device-grid,
  .preview-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-showcase-card.floating {
    width: 128px;
  }

  .hero-logo-float {
    min-height: 360px;
  }

  .hero-logo-float img {
    width: min(320px, 74%);
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(73, 200, 255, 0.2), transparent 18rem),
      linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  }

  .hero {
    min-height: auto;
    padding: 14px 14px 88px;
    border-radius: 0 0 30px 30px;
  }

  .hero-cta,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    position: sticky;
    top: 8px;
    z-index: 12;
    padding: 8px;
    border-radius: 22px;
    background: rgba(7, 26, 72, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 100%;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 11px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .facebook-link {
    min-height: 46px;
    width: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 18px;
  }

  .facebook-link span:last-child {
    display: none;
  }

  .top-actions .ghost-btn {
    grid-column: auto;
    min-height: 44px;
    border-radius: 18px;
    width: 100%;
    background: rgba(255, 255, 255, 0.16);
  }

  .hero-grid {
    gap: 18px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-copy p:not(.eyebrow),
  .section-heading p,
  .hero-panel p,
  .footer p {
    font-size: 15px;
    line-height: 1.62;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-cta {
    gap: 8px;
    margin-top: 18px;
  }

  .logo-panel {
    min-height: 120px;
    grid-template-columns: 70px minmax(0, 1fr);
    place-items: center start;
    text-align: left;
    padding: 14px;
    border-radius: 22px;
  }

  .logo-panel img {
    width: 70px;
    border-radius: 20px;
  }

  .logo-panel strong {
    font-size: 26px;
  }

  .logo-panel p {
    grid-column: 2;
    font-size: 13px;
  }

  .hero-showcase {
    min-height: 360px;
    border-radius: 24px;
    padding: 14px;
  }

  .hero-showcase-card.main {
    width: min(270px, 72%);
  }

  .hero-showcase-card.floating {
    width: 94px;
    border-radius: 18px;
  }

  .hero-showcase-card.floating.one {
    left: 14px;
    bottom: 22px;
  }

  .hero-showcase-card.floating.two {
    right: 14px;
    top: 24px;
  }

  .hero-logo-float {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-logo-float::before {
    inset: 14px;
    border-radius: 24px;
  }

  .hero-logo-float img {
    width: min(240px, 76%);
    border-radius: 28px;
  }

  .logo-orbit {
    width: min(260px, 88%);
  }

  main {
    padding: 0 12px 46px;
  }

  .search-section,
  .start-section,
  .preview-section,
  .business-section,
  .guide-section,
  .role-section,
  .troubleshooting-section,
  .faq-section,
  .device-section {
    margin-top: 16px;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(21, 101, 255, 0.12);
  }

  .search-section {
    margin-top: 16px;
    gap: 14px;
  }

  .mini-nav {
    top: 0;
    width: calc(100% - 24px);
    margin-top: 12px;
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 8px;
  }

  .mini-nav a {
    font-size: 12px;
    padding: 8px 10px;
  }

  .start-section,
  .download-section,
  .preview-feature {
    grid-template-columns: 1fr;
  }

  .preview-feature {
    padding: 16px;
    border-radius: 24px;
    gap: 16px;
  }

  .preview-copy h3 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .preview-hero-image {
    min-height: 320px;
    max-height: 420px;
    border-radius: 20px;
  }

  .preview-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 82%);
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    padding: 2px 2px 14px;
    scroll-snap-type: inline mandatory;
  }

  .preview-card {
    scroll-snap-align: start;
    border-radius: 22px;
  }

  .preview-card span {
    padding: 14px;
  }

  .setup-checklist,
  .role-grid,
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .setup-checklist li {
    min-height: 48px;
    font-size: 14px;
  }

  .search-box input {
    height: 52px;
    border-radius: 16px;
    font-size: 14px;
  }

  .quick-links {
    margin-top: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 78%);
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: inline mandatory;
  }

  .quick-links button {
    scroll-snap-align: start;
    min-height: 42px;
    text-align: left;
    border-radius: 15px;
    padding: 10px 13px;
  }

  .guide-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .business-slider-wrap {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .business-slider {
    grid-auto-columns: minmax(176px, 78%);
    gap: 10px;
    margin-inline: -2px;
    padding-bottom: 14px;
  }

  .business-card {
    min-height: 164px;
    padding: 15px;
    border-radius: 22px;
  }

  .business-icon {
    width: 50px;
    height: 50px;
    padding: 13px;
    border-radius: 16px;
  }

  .business-card strong {
    font-size: 17px;
  }

  .business-card small {
    font-size: 12px;
  }

  .guide-card {
    min-height: 156px;
    border-radius: 20px;
    padding: 15px;
    gap: 11px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .guide-card p,
  .device-grid p {
    font-size: 13px;
  }

  .tag-row span,
  .badge-row span,
  .pill {
    font-size: 10.5px;
    padding: 5px 7px;
  }

  .device-grid article {
    padding: 15px;
    border-radius: 20px;
  }

  .role-card,
  .trouble-grid article {
    padding: 16px;
    border-radius: 20px;
  }

  .accordion-list summary {
    padding: 14px 15px;
    font-size: 14px;
  }

  .accordion-list p {
    padding: 0 15px 14px;
    font-size: 14px;
  }

  .download-section {
    gap: 12px;
  }

  .download-actions {
    justify-content: stretch;
  }

  .download-actions .primary-btn,
  .download-actions .ghost-btn {
    width: 100%;
  }

  .device-grid .icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 16px;
  }

  .modal-card {
    inset: auto 0 0 0;
    max-height: 90vh;
    border-radius: 26px 26px 0 0;
  }

  .modal-card::before {
    content: "";
    position: sticky;
    top: 10px;
    z-index: 3;
    display: block;
    width: 44px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #c7d7ee;
  }

  .modal-close {
    top: 12px;
    width: 38px;
    height: 38px;
    margin: 8px 12px 0 0;
    border-radius: 13px;
    font-size: 22px;
  }

  .modal-hero,
  .modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal-hero {
    padding-top: 26px;
  }

  .modal-body {
    gap: 14px;
    padding-bottom: 28px;
  }

  .doc-block {
    padding: 15px;
    border-radius: 19px;
  }

  .doc-block li {
    font-size: 14px;
  }
}

@media print {
  .top-actions,
  .quick-links,
  .mini-nav,
  .modal,
  .footer a {
    display: none !important;
  }

  body {
    background: white;
  }

  .hero,
  .search-section,
  .start-section,
  .business-section,
  .guide-section,
  .role-section,
  .troubleshooting-section,
  .faq-section,
  .device-section {
    box-shadow: none;
  }
}
