@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
}

/* Tably's brand: the console navy and its coral accent. */
:root {
  --navy: #0e0c23;
  --navy-2: #1c1a38;
  --ink: #111023;
  --muted: #5f5d76;
  --line: #e4e3ee;
  --tint: #f6f5fc;
  --surface: #ffffff;
  --coral: #e26244;
  --coral-dark: #c84b2f;
  --coral-soft: #fde4dc;
  --green: #1f9d6b;
  --green-soft: #dcf3e9;
  --blue: #3d6fd8;
  --blue-soft: #e1e9fb;
  --amber: #b86e07;
  --amber-soft: #fdf0d5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgb(14 12 35 / 0.28);
  --font: 'Poppins', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[lang='ar'] {
  --font: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

[lang='ar'] h1,
[lang='ar'] h2,
[lang='ar'] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

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

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 28px;
  }
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
}

.brand-mark svg {
  stroke-width: 2.4;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
}

.nav {
  display: none;
  gap: 28px;
  margin-inline-start: 16px;
  font-size: 15px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.link-quiet {
  display: none;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
}

.lang {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px var(--font);
  cursor: pointer;
}

.lang:hover {
  background: var(--tint);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .link-quiet {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15px var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

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

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-2);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--tint);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--tint);
}

.btn-outline-light {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.08);
}

/* Shared type */
.eyebrow {
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[lang='ar'] .eyebrow {
  letter-spacing: 0;
  font-size: 14px;
}

.eyebrow-light {
  color: #f5aa93;
}

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

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.lead-sm {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.center {
  margin-inline: auto;
  max-width: 36em;
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-inline-start: 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 420px at 85% 10%, rgb(226 98 68 / 0.1), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgb(61 111 216 / 0.07), transparent 60%);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  max-width: 13em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

/* Product illustration */
.hero-visual {
  position: relative;
  margin-bottom: 24px;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
}

.app-title {
  margin-inline-start: 10px;
  font-size: 13px;
  font-weight: 600;
}

.app-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  padding: 16px;
  background: var(--tint);
}

.app-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
}

.row b {
  font-weight: 600;
}

.row span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.pill-seated {
  background: var(--green-soft);
  color: var(--green);
}

.pill-booked {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill-wait {
  background: var(--amber-soft);
  color: var(--amber);
}

.app-floor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
  padding: 14px;
  border-radius: 12px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface);
}

.t {
  display: grid;
  place-items: center;
  height: 44px;
  border: 2px solid;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.t.r {
  border-radius: 50%;
  width: 44px;
  justify-self: center;
}

.t.w {
  grid-column: span 1;
}

.t-free {
  border-color: #9bdcc0;
  background: var(--green-soft);
  color: var(--green);
}

.t-busy {
  border-color: #f2b3a2;
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.t-booked {
  border-color: #a9c0f1;
  background: var(--blue-soft);
  color: var(--blue);
}

.float-card {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
}

.float-card b {
  display: block;
  font-weight: 600;
}

.float-card small {
  color: var(--muted);
  font-size: 12px;
}

.float-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.float-icon svg {
  stroke-width: 3;
}

@media (max-width: 520px) {
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-floor {
    grid-template-columns: repeat(3, 1fr);
  }
  .float-card {
    inset-inline-end: 8px;
  }
}

/* Booking link */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.link-visual {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

.url-bar svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.url-bar b {
  color: var(--ink);
  font-weight: 600;
}

.book-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.book-title {
  font-size: 18px;
  font-weight: 600;
}

.book-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.book-fields span {
  display: grid;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
}

.book-fields small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.book-fields em {
  font-style: normal;
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slots span {
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.slots .on {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* Features */
.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  border-color: #cfcde0;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgb(14 12 35 / 0.3);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 11px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* How it works */
.section-dark {
  background: var(--navy);
  color: #fff;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 700;
}

.steps h3 {
  font-size: 19px;
  font-weight: 600;
}

.steps p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.7);
}

/* Plans */
.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.plan .checks {
  flex: 1;
  margin-bottom: 28px;
}

.plan h3 {
  font-size: 22px;
  font-weight: 700;
}

.plan-tag {
  margin-top: 6px;
  color: var(--muted);
}

.plan-featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Closing call to action */
.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgb(226 98 68 / 0.35), transparent 70%), var(--navy);
  color: #fff;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

.cta-band p {
  margin-top: 12px;
  color: rgb(255 255 255 / 0.75);
  font-size: 17px;
}

.cta-band .cta-row {
  margin-top: 0;
}

/* Footer */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.brand-small {
  color: var(--ink);
  font-size: 17px;
}

.brand-small .brand-mark {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-row small {
  margin-inline-start: auto;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
