/* JoyRadius POS site. Deep teal and lime for the business side; the warm cream of joyradius.com for the section about guests.
   Logical properties throughout, because Arabic runs right to left. System fonts: no third party sees a visitor. */
:root {
  --ink: #12262d;
  --teal-900: #15323b;
  --teal-800: #1c414c;
  --teal-600: #0b6e66;
  --lime: #c8f08f;
  --paper: #ffffff;
  --mist: #eef2f0;
  --line: #dde5e2;
  --muted: #566a71;
  --on-dark: #e8f1ee;
  --on-dark-muted: #a9c0bd;
  --cream: #fbf3e8;
  --brown: #3a2a1e;
  --brown-muted: #6f5b4b;
  --amber: #f0c56a;
  --r: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans SC", "Noto Sans Arabic", Tahoma, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4 {
  letter-spacing: 0;
}

:lang(ko) body, :lang(ko) p, :lang(ko) li {
  word-break: keep-all;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
}

h4 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-narrow {
  width: min(720px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Top bar ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--teal-900) 94%, transparent);
  color: var(--on-dark);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo b {
  color: var(--lime);
  font-weight: 700;
}

.mark {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--lime);
}

[dir="rtl"] .mark {
  transform: scaleX(-1);
}

.top nav {
  display: flex;
  gap: 22px;
  margin-inline-start: 18px;
  margin-inline-end: auto;
}

.top nav a {
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
}

.top nav a:hover {
  opacity: 1;
}

.langs {
  position: relative;
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-block-start: -3px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.langs summary:hover,
.langs[open] summary {
  background: rgba(255, 255, 255, 0.1);
}

.langs ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(18, 38, 45, 0.22);
}

.langs a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.langs a:hover {
  background: var(--mist);
}

.langs a[aria-current] {
  font-weight: 650;
  color: var(--teal-600);
}

/* ---- Buttons and chips ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-ghost {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34);
  color: #fff;
}

.btn-brown {
  background: var(--brown);
  color: var(--cream);
}

.btn-brown-ghost {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brown) 40%, transparent);
  color: var(--brown);
}

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

.chip {
  display: inline-block;
  margin-block-end: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.chip-live {
  background: var(--lime);
  color: var(--ink);
}

.chip-soon {
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.8;
}

.chip-accreditation {
  background: #fdf1dc;
  color: #8a4b05;
}

.eyebrow {
  margin-block-end: 14px;
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 650;
}

.sub {
  max-width: 62ch;
  margin-block-start: 14px;
  color: var(--muted);
  font-size: 1.13rem;
}

.meta {
  margin-block-start: 22px;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: 64px 0;
  background: var(--teal-900);
  color: #fff;
}

.rings {
  position: absolute;
  pointer-events: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  opacity: 0.12;
}

.hero .rings {
  top: -130px;
  inset-inline-end: -160px;
  width: 980px;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
}

.lead {
  max-width: 34em;
  margin-block: 20px 28px;
  color: var(--on-dark);
  font-size: 1.2rem;
}

.hero-text {
  padding-block-end: 64px;
}

.device {
  align-self: end;
  margin-block-end: -44px;
  padding: 12px;
  border-radius: 28px;
  background: #0a1a1f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device img {
  border-radius: 16px;
}

.tour {
  padding-block: 110px 0;
}

.tour h2 {
  margin-block-end: 26px;
}

.tour video {
  width: 100%;
  border-radius: var(--r);
  background: #000;
}

/* ---- Sections ---- */
.sec {
  position: relative;
  overflow: clip;
  padding-block: clamp(72px, 9vw, 116px);
}

#product {
  padding-block-start: clamp(110px, 12vw, 150px);
}

.dark {
  background: var(--teal-900);
  color: var(--on-dark);
}

.dark h2, .dark h3, .dark h4 {
  color: #fff;
}

.dark .sub {
  color: var(--on-dark-muted);
}

.dark .rings {
  top: -240px;
  inset-inline-start: -300px;
  width: 900px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  margin-block-start: 64px;
}

.row-flip .row-text {
  order: 2;
}

.row-text p {
  margin-block-start: 12px;
  color: var(--muted);
}

.dark .row-text p {
  color: var(--on-dark-muted);
}

.shot {
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(18, 38, 45, 0.16), 0 0 0 1px rgba(18, 38, 45, 0.06);
}

.dark .shot {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

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

.grid li {
  padding: 22px;
  border-radius: var(--r);
  background: var(--mist);
}

.grid p {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}

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

.grid-dark li {
  background: var(--teal-800);
}

.grid-dark p {
  color: var(--on-dark-muted);
}

/* ---- Payments ---- */
.pay {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
}

.pay-list li {
  padding-block: 24px;
  border-block-start: 1px solid var(--line);
}

.pay-list li:first-child {
  padding-block-start: 0;
  border: 0;
}

.pay-list p {
  margin-block-start: 8px;
  color: var(--muted);
}

/* ---- Joy Radius ---- */
.cream {
  background: var(--cream);
  color: var(--brown);
}

.cream .eyebrow {
  color: #a4570f;
}

.cream .sub {
  color: var(--brown-muted);
}

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 52px;
}

.loop li {
  position: relative;
  padding: 22px;
  border-radius: var(--r);
  background: #fff;
}

.loop li.store {
  background: var(--teal-900);
  color: var(--on-dark);
}

.loop .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-block-end: 14px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
}

.loop .store .n {
  background: var(--lime);
  color: var(--ink);
}

.loop small {
  display: block;
  margin-block-end: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  opacity: 0.7;
}

.loop .store h4 {
  color: #fff;
}

.loop p {
  margin-block-start: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-block: 56px 40px;
}

.links ul {
  margin-block-start: 14px;
}

.links li {
  position: relative;
  padding-block: 10px;
  padding-inline-start: 22px;
  border-block-start: 1px solid color-mix(in srgb, var(--brown) 15%, transparent);
}

.links li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a4570f;
}

/* ---- Fit, contact, footer, legal ---- */
.fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.fit p {
  margin-block-start: 10px;
  color: var(--muted);
}

.contact .wrap {
  text-align: center;
}

.contact .sub {
  margin-inline: auto;
  margin-block-end: 28px;
}

.contact .cta {
  justify-content: center;
}

.contact .rings {
  inset-inline-start: 50%;
  top: 50%;
  translate: -50% -50%;
}

[dir="rtl"] .contact .rings {
  translate: 50% -50%;
}

.foot {
  padding-block: 40px;
  background: #0d2229;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

.foot-in {
  display: grid;
  gap: 12px;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-links a:hover {
  color: #fff;
}

.legal {
  padding-block: 64px 96px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
  margin-block: 32px 10px;
  font-size: 1.25rem;
  font-weight: 650;
}

.legal p + p {
  margin-block-start: 10px;
}

.updated, .legal-note {
  margin-block-start: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Narrow screens ---- */
@media (max-width: 960px) {
  .top nav {
    display: none;
  }

  .langs {
    margin-inline-start: auto;
  }

  .hero-in,
  .row,
  .pay,
  .links,
  .fit {
    grid-template-columns: minmax(0, 1fr);
  }

  .row {
    gap: 28px;
  }

  .row-flip .row-text {
    order: 0;
  }

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

  .hero-text {
    padding-block-end: 8px;
  }

  .device {
    margin-block-end: -32px;
    padding: 8px;
    border-radius: 20px;
  }

  .device img {
    border-radius: 12px;
  }

  .hero .rings {
    inset-inline-end: -340px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .top {
    padding: 10px 16px;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
  }

  .top .btn {
    display: none;
  }

  .wrap,
  .wrap-narrow,
  .foot-in {
    padding-inline: 16px;
  }

  .hero {
    padding-block-start: 44px;
  }

  .grid,
  .grid-dark,
  .loop {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}
