/* HayatKey landing page — no external fonts or libraries required */
:root {
  --ink: #12313b;
  --ink-soft: #516b73;
  --teal-950: #063d43;
  --teal-900: #07555c;
  --teal-800: #08707a;
  --teal-700: #0b8790;
  --teal-600: #14a0a8;
  --mint-500: #43cfbf;
  --mint-300: #91e3da;
  --sky-300: #a9e3f1;
  --sky-200: #cbf0f7;
  --sky-100: #eaf9fb;
  --mist: #f4fbfc;
  --white: #ffffff;
  --coral: #f28b7f;
  --coral-soft: #fff0ed;
  --sand-100: #fbf2dc;
  --line: rgba(7, 85, 92, 0.12);
  --shadow-sm: 0 10px 30px rgba(10, 69, 77, 0.08);
  --shadow-md: 0 22px 70px rgba(10, 69, 77, 0.13);
  --shadow-lg: 0 38px 100px rgba(6, 61, 67, 0.19);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shell: 1180px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

img,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(20, 160, 168, 0.35);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: 116px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--white);
  background: var(--teal-950);
  border-radius: 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 69, 77, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  color: var(--teal-950);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 7px 12px rgba(7, 112, 122, 0.2));
}

.heart-shape {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 10px;
  left: 9px;
  background: linear-gradient(145deg, var(--teal-700), var(--teal-600));
  border-radius: 7px 5px 7px 4px;
  transform: rotate(-45deg);
}

.heart-shape::before,
.heart-shape::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: inherit;
  border-radius: 50%;
}

.heart-shape::before {
  top: -13px;
  left: 0;
}

.heart-shape::after {
  top: 0;
  left: 13px;
}

.medical-cross {
  position: absolute;
  width: 12px;
  height: 4px;
  top: 11px;
  left: 19px;
  z-index: 2;
  background: var(--white);
  border-radius: 4px;
}

.medical-cross::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 12px;
  top: -4px;
  left: 4px;
  background: var(--white);
  border-radius: 4px;
}

.heartbeat-line {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 11px;
  top: 23px;
  left: 8px;
  background: var(--white);
  clip-path: polygon(0 45%, 26% 45%, 35% 10%, 46% 83%, 57% 26%, 67% 45%, 100% 45%, 100% 58%, 64% 58%, 59% 47%, 44% 100%, 34% 34%, 29% 58%, 0 58%);
}

.small-logo {
  transform: scale(0.9);
  transform-origin: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline-start: auto;
}

.desktop-nav a {
  position: relative;
  color: #38555d;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  width: 0;
  height: 2px;
  margin: auto;
  background: var(--teal-600);
  border-radius: 3px;
  transition: width 0.25s;
}

.desktop-nav a:hover::after {
  width: 100%;
}

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

.language-toggle,
.menu-toggle,
.icon-button,
.dialog-close {
  border: 0;
  cursor: pointer;
}

.language-toggle {
  min-width: 57px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.language-toggle:hover {
  background: var(--white);
}

.language-icon {
  font-size: 13px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

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

.button-small {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 12px;
}

.button-full {
  width: 100%;
}

.button-dark {
  color: var(--white);
  background: var(--teal-950);
  box-shadow: 0 8px 20px rgba(6, 61, 67, 0.14);
}

.button-dark:hover {
  background: #032f34;
  box-shadow: 0 12px 26px rgba(6, 61, 67, 0.22);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  box-shadow: 0 15px 32px rgba(11, 135, 144, 0.24);
}

.button-primary:hover {
  box-shadow: 0 19px 36px rgba(11, 135, 144, 0.32);
}

.button-ghost {
  color: var(--teal-950);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(7, 112, 122, 0.16);
}

.button-ghost:hover {
  background: var(--white);
  border-color: rgba(7, 112, 122, 0.28);
}

.button-white {
  color: var(--teal-950);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(6, 61, 67, 0.18);
}

.button-white:hover {
  box-shadow: 0 16px 36px rgba(6, 61, 67, 0.24);
}

.button-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--teal-800);
  background: var(--white);
  border-radius: 50%;
}

html[dir="rtl"] .button-arrow,
html[dir="rtl"] .text-link > span:last-child,
html[dir="rtl"] .button-white > span:last-child {
  transform: scaleX(-1);
}

.play-dot {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--sky-100);
  border-radius: 50%;
  font-size: 8px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal-950);
  border-radius: 2px;
  transition: transform 0.25s;
}

.mobile-menu {
  padding: 14px 20px 22px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mobile-menu nav {
  display: grid;
  margin-bottom: 14px;
}

.mobile-menu a {
  padding: 14px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(169, 227, 241, 0.38), transparent 31%),
    linear-gradient(135deg, #f9feff 0%, #eaf9fb 56%, #d9f4f5 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 690px;
  height: 690px;
  right: -280px;
  bottom: -320px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-one {
  width: 350px;
  height: 350px;
  right: 6%;
  top: 16%;
  border: 1px solid rgba(7, 112, 122, 0.09);
}

.hero-orb-two {
  width: 16px;
  height: 16px;
  left: 8%;
  top: 26%;
  background: var(--mint-300);
  box-shadow: 0 0 0 10px rgba(145, 227, 218, 0.2);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 715px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 70px;
  padding-block: 70px 52px;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(7, 112, 122, 0.1);
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--mint-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(67, 207, 191, 0.15);
}

.hero h1 {
  max-width: 680px;
  margin: 24px 0 24px;
  color: var(--teal-950);
  font-size: clamp(48px, 5.25vw, 76px);
  font-weight: 760;
  letter-spacing: -0.063em;
  line-height: 0.99;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-lede {
  max-width: 575px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 33px;
}

.avatar-stack {
  display: flex;
  padding-inline-start: 9px;
}

.avatar-stack span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-inline-start: -9px;
  color: var(--teal-950);
  background: var(--sky-300);
  border: 3px solid #eefafb;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.avatar-stack span:nth-child(2) {
  background: #d3efe8;
}

.avatar-stack span:nth-child(3) {
  color: #73463f;
  background: #f4c9bf;
}

.trust-line > div:last-child {
  display: grid;
  line-height: 1.3;
}

.trust-line strong {
  font-size: 12px;
}

.trust-line small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.visual-backdrop {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.5);
}

.visual-backdrop::before,
.visual-backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.visual-backdrop::before {
  inset: 45px;
  border: 1px dashed rgba(7, 112, 122, 0.12);
}

.visual-backdrop::after {
  width: 12px;
  height: 12px;
  right: 32px;
  top: 100px;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(242, 139, 127, 0.12);
}

.dashboard-card {
  position: relative;
  z-index: 2;
  width: min(430px, 80%);
  padding: 25px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.3deg);
}

.dashboard-topbar,
.welcome-row,
.health-score-card,
.quick-title,
.appointment-row,
.qr-card-top,
.qr-profile,
.qr-footer,
.privacy-item,
.dialog-inner form {
  display: flex;
  align-items: center;
}

.dashboard-topbar,
.welcome-row,
.quick-title,
.qr-card-top,
.qr-footer {
  justify-content: space-between;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-950);
  font-size: 12px;
}

.mini-heart {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-700);
  border-radius: 8px 8px 10px 10px;
  font-size: 11px;
}

.icon-button {
  position: relative;
  width: 33px;
  height: 33px;
  color: var(--ink);
  background: var(--mist);
  border-radius: 50%;
}

.icon-button i {
  position: absolute;
  width: 5px;
  height: 5px;
  right: 5px;
  top: 4px;
  background: var(--coral);
  border: 1px solid var(--white);
  border-radius: 50%;
}

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

.welcome-row {
  margin-block: 23px 17px;
}

.welcome-row > div {
  display: grid;
}

.welcome-row span:first-child {
  color: var(--ink-soft);
  font-size: 10px;
}

.welcome-row h3 {
  margin: 1px 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.profile-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--teal-950);
  background: linear-gradient(145deg, #cdeef4, #9fd9e5);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.profile-avatar.large {
  width: 43px;
  height: 43px;
}

.health-score-card {
  justify-content: space-between;
  min-height: 115px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: 22px;
  overflow: hidden;
}

.score-copy {
  display: grid;
}

.score-copy > span,
.score-copy small {
  color: rgba(255, 255, 255, 0.67);
  font-size: 9px;
}

.score-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 2px;
  font-size: 20px;
}

.score-copy strong i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--teal-800);
  background: var(--mint-300);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.score-ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--mint-300) 0 92%, rgba(255, 255, 255, 0.15) 92%);
  border-radius: 50%;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--teal-800);
  border-radius: inherit;
}

.score-ring span {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 800;
}

.score-ring small {
  font-size: 8px;
}

.quick-title {
  margin: 20px 2px 10px;
  font-size: 10px;
}

.quick-title span {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 700;
}

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

.quick-card {
  display: grid;
  padding: 14px;
  background: var(--mist);
  border: 1px solid rgba(7, 112, 122, 0.07);
  border-radius: 16px;
}

.quick-card strong {
  margin-top: 9px;
  font-size: 10px;
}

.quick-card small {
  color: var(--ink-soft);
  font-size: 8px;
}

.quick-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
}

.quick-icon-blue {
  color: var(--teal-800);
  background: var(--sky-200);
}

.quick-icon-mint {
  color: #397565;
  background: #d8f5ed;
}

.appointment-row {
  gap: 11px;
  margin-top: 14px;
  padding: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.calendar-tile {
  width: 39px;
  height: 44px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--teal-900);
  background: var(--sky-100);
  border-radius: 10px;
  line-height: 1.05;
}

.calendar-tile small {
  font-size: 6px;
  letter-spacing: 0.08em;
}

.calendar-tile strong {
  font-size: 16px;
}

.appointment-row > div {
  min-width: 0;
  display: grid;
  flex: 1;
}

.appointment-row > div small {
  color: var(--teal-700);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.appointment-row > div strong {
  font-size: 9px;
}

.appointment-row > div span {
  color: var(--ink-soft);
  font-size: 7px;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.emergency-float {
  right: -10px;
  top: 115px;
  min-width: 208px;
}

.privacy-float {
  left: -9px;
  bottom: 68px;
  min-width: 205px;
  animation-delay: -2.1s;
}

.floating-card > div {
  display: grid;
  flex: 1;
}

.floating-card small {
  color: var(--ink-soft);
  font-size: 8px;
}

.floating-card strong {
  font-size: 10px;
}

.float-icon,
.shield-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal-800);
  background: var(--sky-100);
  border-radius: 10px;
}

.shield-icon {
  color: var(--white);
  background: var(--teal-700);
  border-radius: 10px 10px 13px 13px;
}

.toggle-on {
  width: 31px;
  height: 18px;
  display: block;
  padding: 2px;
  background: var(--teal-600);
  border-radius: 99px;
}

.toggle-on i,
.toggle-on b {
  width: 14px;
  height: 14px;
  display: block;
  margin-inline-start: auto;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.proof-strip {
  position: relative;
  z-index: 2;
  padding-block: 24px 30px;
  border-top: 1px solid rgba(7, 112, 122, 0.1);
}

.proof-strip p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.proof-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 88px);
  flex-wrap: wrap;
}

.proof-items span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #547078;
  font-size: 12px;
}

.proof-items i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 112, 122, 0.1);
  border-radius: 9px;
  font-size: 12px;
  font-style: normal;
}

/* Shared section headings */
.section-heading {
  margin-bottom: 54px;
}

.section-heading h2,
.emergency-copy h2,
.security-copy h2,
.cta-card h2 {
  margin: 15px 0 16px;
  color: var(--teal-950);
  font-size: clamp(38px, 4.3vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .emergency-copy h2,
html[dir="rtl"] .security-copy h2,
html[dir="rtl"] .cta-card h2 {
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-heading > p,
.split-heading > p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.centered {
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 56px;
  text-align: center;
}

.centered h2 {
  max-width: 720px;
}

.centered p {
  max-width: 650px;
  margin-inline: auto;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 80px;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  margin-bottom: 4px;
}

/* How it works */
.how-section {
  background: var(--white);
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  height: 1px;
  left: 16%;
  right: 16%;
  top: 92px;
  background: repeating-linear-gradient(90deg, var(--mint-300) 0 5px, transparent 5px 12px);
}

.step-card {
  position: relative;
  z-index: 1;
  min-height: 350px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.step-card:hover {
  transform: translateY(-7px);
  border-color: rgba(11, 135, 144, 0.22);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  right: 22px;
  top: 20px;
  color: #d7e8e9;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

html[dir="rtl"] .step-number {
  right: auto;
  left: 22px;
}

.step-illustration {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: var(--sky-100);
  border: 1px solid rgba(11, 135, 144, 0.08);
  border-radius: 28px;
}

.step-illustration::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgba(11, 135, 144, 0.2);
  border-radius: 20px;
}

.profile-illustration .person-head {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 24px;
  z-index: 2;
  background: var(--teal-600);
  border-radius: 50%;
}

.profile-illustration .person-body {
  width: 39px;
  height: 23px;
  position: absolute;
  top: 46px;
  z-index: 2;
  background: var(--teal-700);
  border-radius: 20px 20px 8px 8px;
}

.profile-illustration i,
.key-illustration i,
.qr-illustration i {
  position: absolute;
  z-index: 3;
  width: 23px;
  height: 23px;
  right: 17px;
  bottom: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border: 3px solid var(--sky-100);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

html[dir="rtl"] .profile-illustration i,
html[dir="rtl"] .key-illustration i,
html[dir="rtl"] .qr-illustration i {
  right: auto;
  left: 17px;
}

.key-ring {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  left: 24px;
  top: 25px;
  border: 8px solid var(--teal-600);
  border-radius: 50%;
}

.key-stem {
  position: absolute;
  z-index: 2;
  width: 35px;
  height: 9px;
  left: 43px;
  top: 47px;
  background: var(--teal-700);
  border-radius: 0 7px 7px 0;
  transform: rotate(40deg);
}

html[dir="rtl"] .key-ring {
  left: auto;
  right: 24px;
}

html[dir="rtl"] .key-stem {
  left: auto;
  right: 43px;
  transform: rotate(-40deg);
}

.qr-illustration span {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 5px solid var(--teal-700);
}

.qr-illustration span:nth-child(1) { left: 24px; top: 25px; }
.qr-illustration span:nth-child(2) { right: 23px; top: 25px; }
.qr-illustration span:nth-child(3) { left: 24px; bottom: 21px; }

.step-card h3 {
  margin-bottom: 10px;
  color: var(--teal-950);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* Features */
.features-section {
  background: var(--mist);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(7, 112, 122, 0.1);
  border-radius: 28px;
  box-shadow: 0 15px 45px rgba(10, 69, 77, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(10, 69, 77, 0.11);
}

.feature-card h3 {
  max-width: 400px;
  margin: 18px 0 10px;
  color: var(--teal-950);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--teal-800);
  background: var(--sky-100);
  border-radius: 14px;
  font-size: 17px;
  font-style: normal;
}

.feature-large {
  min-height: 410px;
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 55px;
  background: linear-gradient(135deg, #ffffff, #f4fcfd);
}

.records-ui {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
}

.record-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 14px;
  color: var(--teal-950);
  font-size: 11px;
  font-weight: 800;
}

.record-toolbar i {
  color: #8ca1a5;
  font-style: normal;
  letter-spacing: 0.12em;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  background: var(--mist);
  border-radius: 14px;
}

.record-item > div {
  display: grid;
  flex: 1;
}

.record-item strong {
  font-size: 10px;
}

.record-item small {
  color: var(--ink-soft);
  font-size: 8px;
}

.record-item > i {
  padding: 4px 7px;
  color: var(--teal-700);
  background: #e3f6f3;
  border-radius: 99px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.record-item > i.alert {
  color: #9b544b;
  background: var(--coral-soft);
}

.record-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 850;
}

.record-dot.blue { color: var(--teal-800); background: var(--sky-200); }
.record-dot.coral { color: #9b544b; background: var(--coral-soft); }
.record-dot.mint { color: #337567; background: #dff7f0; }

.feature-share {
  color: var(--white);
  background: linear-gradient(145deg, var(--teal-900), var(--teal-700));
  border: 0;
}

.feature-share h3,
.feature-share p {
  color: var(--white);
}

.feature-share p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-share .feature-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.access-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  font-size: 10px;
}

.access-pill span {
  font-weight: 800;
}

.access-pill i {
  width: 6px;
  height: 6px;
  margin-inline-start: auto;
  background: var(--mint-300);
  border-radius: 50%;
}

.access-pill small {
  color: rgba(255, 255, 255, 0.7);
}

.access-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.access-scale i {
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.access-scale i:nth-child(-n+3) {
  background: var(--mint-300);
}

.family-row {
  display: flex;
  align-items: center;
  margin-top: 34px;
}

.family-avatar,
.family-add {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-inline-end: -6px;
  border: 4px solid var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.family-avatar.adult { background: var(--sky-200); }
.family-avatar.child { background: #dff5e8; }
.family-avatar.elder { background: #f5d9d1; }
.family-add { color: var(--teal-700); background: var(--sky-100); border-style: dashed; }

.reminder-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.reminder-ui > span {
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 850;
}

.reminder-ui > div {
  display: grid;
  flex: 1;
}

.reminder-ui strong { font-size: 10px; }
.reminder-ui small { color: var(--ink-soft); font-size: 8px; }
.reminder-ui > i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--teal-800);
  background: #daf3ed;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

/* Emergency */
.emergency-section {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(67, 207, 191, 0.16), transparent 27%),
    linear-gradient(135deg, #053c42, #075e64 72%, #087a7e);
  overflow: hidden;
}

.emergency-section::before,
.emergency-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.emergency-section::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -190px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-section::after {
  width: 370px;
  height: 370px;
  left: -220px;
  bottom: -210px;
  border: 80px solid rgba(255, 255, 255, 0.025);
}

.emergency-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 90px;
}

.light-kicker {
  color: var(--mint-300);
}

.emergency-copy h2,
.cta-card h2 {
  color: var(--white);
}

.emergency-copy > p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.8;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.check-list li > span:first-child {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--teal-950);
  background: var(--mint-300);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
}

.light-link {
  color: var(--mint-300);
}

.emergency-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.emergency-visual::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  animation: rotate-slow 34s linear infinite;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.qr-card {
  position: relative;
  z-index: 2;
  width: 340px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 8px solid rgba(255, 255, 255, 0.09);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 30, 33, 0.34);
  transform: rotate(2deg);
}

.emergency-label {
  padding: 5px 8px;
  color: #a1534b;
  background: var(--coral-soft);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.qr-profile {
  gap: 10px;
  margin-block: 20px 16px;
}

.qr-profile > div {
  display: grid;
  flex: 1;
}

.qr-profile strong { font-size: 11px; }
.qr-profile small { color: var(--ink-soft); font-size: 8px; }

.verified-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
  font-size: 9px;
}

.qr-wrap {
  position: relative;
  width: 210px;
  margin: 0 auto;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-wrap canvas {
  width: 190px;
  height: 190px;
  image-rendering: pixelated;
}

.qr-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-700);
  border: 5px solid var(--white);
  border-radius: 11px;
  transform: translate(-50%, -50%);
  font-size: 13px;
}

.qr-card > p {
  margin: 13px 0 16px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  text-align: center;
}

.qr-footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-700);
}

.active-badge i {
  width: 5px;
  height: 5px;
  background: var(--mint-500);
  border-radius: 50%;
}

.preview-badge {
  color: #8b6d2d;
}

.preview-badge i {
  background: #d9a83e;
}

.tap-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(0, 30, 33, 0.25);
  animation: float 5s ease-in-out infinite -1.5s;
}

.tap-card > i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--sky-100);
  border-radius: 9px;
  font-style: normal;
}

.tap-card > span {
  display: grid;
}

.tap-card strong { font-size: 9px; }
.tap-card small { color: var(--ink-soft); font-size: 7px; }

/* Security */
.security-section {
  background: var(--white);
}

.security-grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 100px;
}

.security-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--sky-100), transparent 64%);
}

.privacy-panel {
  width: min(400px, 88%);
  padding: 29px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.privacy-header {
  position: relative;
  width: fit-content;
}

.shield-large {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--teal-700), var(--teal-600));
  border-radius: 23px 23px 30px 30px;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(11, 135, 144, 0.22);
}

.lock-badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--mint-300);
  border: 4px solid var(--white);
  border-radius: 50%;
  font-size: 7px;
}

.privacy-panel h3 {
  margin: 22px 0 5px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.privacy-panel > p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 11px;
}

.privacy-item {
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.privacy-item > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--sky-100);
  border-radius: 10px;
}

.privacy-item > div {
  display: grid;
  flex: 1;
}

.privacy-item strong { font-size: 10px; }
.privacy-item small { color: var(--ink-soft); font-size: 8px; }
.privacy-item > i:not(.toggle-on) { color: #88a0a6; font-style: normal; }

.encrypted-note {
  position: absolute;
  right: 0;
  bottom: 75px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 208px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite -2s;
}

.encrypted-note > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-700);
  border-radius: 11px 11px 15px 15px;
  font-size: 10px;
}

.encrypted-note > div {
  display: grid;
}

.encrypted-note strong { font-size: 9px; }
.encrypted-note small { color: var(--ink-soft); font-size: 7px; }

.security-copy > p {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.security-points {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.security-points article {
  display: flex;
  gap: 18px;
}

.security-points article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal-700);
  background: var(--sky-100);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.security-points h3 {
  margin: 1px 0 4px;
  font-size: 15px;
}

.security-points p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

/* App preview */
.app-section {
  position: relative;
  padding-bottom: 135px;
  background: linear-gradient(#f6fcfd, #eaf9fb);
  overflow: hidden;
}

.app-section::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -260px;
  bottom: -240px;
  border: 70px solid rgba(169, 227, 241, 0.22);
  border-radius: 50%;
}

.prototype-notice {
  width: fit-content;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -25px auto 24px;
  padding: 10px 14px;
  color: var(--teal-800);
  background: var(--sand-100);
  border: 1px solid rgba(139, 109, 45, 0.14);
  border-radius: 999px;
}

.prototype-notice > span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #9a782d;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.prototype-notice p {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.preview-tabs {
  width: fit-content;
  display: flex;
  gap: 6px;
  margin: 0 auto 52px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.preview-tab {
  padding: 10px 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.preview-tab.active {
  color: var(--white);
  background: var(--teal-900);
  box-shadow: 0 6px 14px rgba(6, 61, 67, 0.16);
}

.app-showcase {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.app-showcase::before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: 304px;
  height: 605px;
  padding: 11px;
  background: #0b262d;
  border: 3px solid #26434a;
  border-radius: 48px;
  box-shadow: 0 38px 80px rgba(6, 61, 67, 0.27), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.phone-speaker {
  position: absolute;
  z-index: 5;
  width: 82px;
  height: 21px;
  top: 12px;
  left: 50%;
  background: #0b262d;
  border-radius: 0 0 13px 13px;
  transform: translateX(-50%);
}

.phone-screen {
  position: absolute;
  inset: 11px;
  padding: 25px 18px 15px;
  background: #f7fbfc;
  border-radius: 36px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.phone-screen.active {
  opacity: 1;
  transform: translateX(0);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0 7px 12px;
  font-size: 8px;
  font-weight: 800;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.phone-head > span {
  display: grid;
}

.phone-head small {
  color: var(--ink-soft);
  font-size: 8px;
}

.phone-head strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.phone-head > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--sky-200);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.daily-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 18px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: 19px;
}

.daily-card > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 4px solid var(--mint-300);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.daily-card > div { display: grid; }
.daily-card strong { font-size: 9px; }
.daily-card small { color: rgba(255, 255, 255, 0.68); font-size: 7px; }

.phone-section-title {
  display: flex;
  justify-content: space-between;
  margin: 20px 2px 9px;
  font-size: 10px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.task-card > i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--sky-100);
  border-radius: 9px;
  font-style: normal;
}

.task-card > div { display: grid; flex: 1; }
.task-card strong { font-size: 8px; }
.task-card small { color: var(--ink-soft); font-size: 6px; }
.task-card > span { color: var(--teal-700); font-size: 10px; }

.phone-nav {
  position: absolute;
  inset: auto 0 0;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding-inline: 12px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.phone-nav > span {
  display: grid;
  place-items: center;
  color: #99aaae;
  font-size: 13px;
}

.phone-nav > span.active { color: var(--teal-700); }
.phone-nav small { margin-top: 1px; font-size: 5px; font-weight: 800; }

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px 20px;
}

.screen-title strong { font-size: 13px; }
.screen-title span { font-size: 22px; }
.screen-title i { color: var(--ink-soft); font-size: 9px; font-style: normal; }

.record-summary {
  padding: 17px;
  color: var(--white);
  background: linear-gradient(145deg, var(--teal-900), var(--teal-700));
  border-radius: 18px;
}

.record-summary > small { color: var(--mint-300); font-size: 6px; font-weight: 900; letter-spacing: 0.1em; }
.record-summary > strong { display: block; margin: 5px 0 13px; font-size: 14px; }
.record-summary > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.record-summary > div span { display: grid; place-items: center; padding: 7px; background: rgba(255, 255, 255, 0.09); border-radius: 9px; font-size: 12px; font-weight: 850; }
.record-summary > div small { color: rgba(255, 255, 255, 0.62); font-size: 5px; font-weight: 600; }

.record-phone-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.record-phone-item > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.record-phone-item > i.blue { color: var(--teal-700); background: var(--sky-100); }
.record-phone-item > i.coral { color: #9b544b; background: var(--coral-soft); }
.record-phone-item > i.mint { color: #337567; background: #dff7f0; }
.record-phone-item > span { display: grid; flex: 1; }
.record-phone-item strong { font-size: 8px; }
.record-phone-item small { color: var(--ink-soft); font-size: 6px; }
.record-phone-item b { color: #91a5a9; }

.mini-emergency-profile {
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}

.mini-emergency-profile > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  background: var(--sky-200);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.mini-emergency-profile strong { font-size: 11px; }
.mini-emergency-profile small { color: var(--teal-700); font-size: 6px; }

.mini-qr {
  width: 184px;
  height: 184px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, var(--teal-950) 10px, transparent 10px) 0 0 / 19px 19px,
    linear-gradient(var(--teal-950) 10px, transparent 10px) 0 0 / 19px 19px,
    repeating-conic-gradient(var(--teal-950) 0 25%, transparent 0 50%) 4px 4px / 17px 17px;
  border: 12px solid var(--white);
  outline: 1px solid var(--line);
  border-radius: 12px;
}

.mini-qr-label {
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 7px;
  text-align: center;
}

.phone-action {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
  color: var(--teal-800);
  background: var(--sky-100);
  border: 0;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 800;
}

.showcase-note {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.showcase-note > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-700);
  border-radius: 12px;
  font-size: 11px;
}

.showcase-note > div { display: grid; }
.showcase-note strong { font-size: 10px; }
.showcase-note small { color: var(--ink-soft); font-size: 8px; }
.note-one { left: calc(50% - 380px); top: 125px; }
.note-two { right: calc(50% - 390px); bottom: 110px; animation-delay: -2.2s; }

/* CTA */
.cta-section {
  padding-block: 92px;
  background: var(--white);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
  padding: 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(67, 207, 191, 0.19), transparent 26%),
    linear-gradient(140deg, var(--teal-950), var(--teal-800));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  bottom: -230px;
  border: 65px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.cta-heart {
  position: absolute;
  right: 45%;
  top: 40px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 130px;
  transform: rotate(-8deg);
}

.cta-card h2 {
  font-size: clamp(35px, 4vw, 52px);
}

.cta-card > div > p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.75;
}

.cta-form {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.cta-form input {
  width: 100%;
  height: 52px;
  margin-bottom: 10px;
  padding-inline: 18px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  outline: 0;
}

.cta-form .button {
  width: 100%;
}

.cta-coming-soon {
  display: grid;
  gap: 15px;
}

.cta-coming-soon > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.7;
}

.coming-soon-pill {
  width: fit-content;
  padding: 7px 11px;
  color: var(--teal-950);
  background: var(--sky-200);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.form-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  text-align: center;
}

/* Footer */
.site-footer {
  padding-block: 70px 24px;
  background: #f5fbfc;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.footer-brand > p {
  max-width: 300px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--teal-950);
  font-size: 12px;
}

.footer-links a,
.footer-links button {
  width: fit-content;
  padding: 0;
  color: var(--ink-soft);
  background: none;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--teal-700);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  padding-top: 22px;
  color: #7b9095;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

/* Dialog + toast */
.access-dialog {
  width: min(520px, calc(100% - 30px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.access-dialog::backdrop {
  background: rgba(4, 38, 43, 0.62);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  position: relative;
  padding: 42px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: 50%;
  font-size: 22px;
}

html[dir="rtl"] .dialog-close {
  right: auto;
  left: 16px;
}

.dialog-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--white);
  background: linear-gradient(145deg, var(--teal-700), var(--teal-600));
  border-radius: 17px;
  box-shadow: 0 12px 25px rgba(11, 135, 144, 0.2);
}

.dialog-inner h2 {
  margin: 12px 0 10px;
  color: var(--teal-950);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.dialog-inner p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-inner form {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.dialog-inner label {
  margin: 5px 2px 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.dialog-inner input {
  height: 49px;
  padding-inline: 15px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.dialog-inner input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(20, 160, 168, 0.1);
}

.dialog-inner form .button {
  margin-top: 10px;
}

.dialog-inner form > small {
  margin-top: 4px;
  color: #7c9297;
  font-size: 8px;
  line-height: 1.55;
  text-align: center;
}

.dialog-success {
  padding-block: 20px;
  text-align: center;
}

.success-check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(20, 160, 168, 0.24);
  font-size: 25px;
}

.dialog-success .button {
  margin-top: 12px;
}

.coming-soon-dialog .button {
  margin-top: 20px;
}

.availability-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.availability-list > span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.availability-list i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--mint-100);
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 250;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

html[dir="rtl"] .toast {
  right: auto;
  left: 22px;
}

.toast[hidden] {
  display: none;
}

.toast > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
  font-size: 10px;
}

.toast p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

/* RTL */
html[dir="rtl"] .dashboard-card {
  transform: rotate(1.3deg);
}

html[dir="rtl"] .qr-card {
  transform: rotate(-2deg);
}

html[dir="rtl"] .feature-card,
html[dir="rtl"] .step-card,
html[dir="rtl"] .security-copy,
html[dir="rtl"] .emergency-copy,
html[dir="rtl"] .hero-copy {
  text-align: right;
}

/* Responsive */
@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-actions .button-small {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(46px, 6vw, 64px);
  }

  .emergency-float { right: -25px; }
  .privacy-float { left: -30px; }

  .security-grid,
  .emergency-grid {
    gap: 55px;
  }

  .cta-card {
    gap: 45px;
    padding: 55px;
  }
}

@media (max-width: 860px) {
  .section {
    padding-block: 88px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 95px;
  }

  .hero-copy {
    max-width: 680px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-lede,
  .trust-line {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-line {
    justify-content: center;
  }

  .hero-visual {
    min-height: 620px;
  }

  .proof-strip {
    margin-top: 25px;
  }

  .steps-grid,
  .bento-grid,
  .security-grid,
  .emergency-grid,
  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card {
    min-height: auto;
  }

  .feature-large {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .emergency-grid,
  .security-grid {
    gap: 30px;
  }

  .emergency-copy {
    max-width: 680px;
  }

  .security-visual {
    order: 2;
  }

  .security-copy {
    order: 1;
  }

  .encrypted-note { right: 10%; }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .split-heading > p {
    max-width: 650px;
  }

  .cta-card {
    gap: 36px;
  }

  .cta-heart {
    right: 30px;
    top: 20px;
  }

  .footer-grid {
    gap: 45px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .section {
    padding-block: 72px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .logo-mark {
    transform: scale(0.85);
    transform-origin: left center;
  }

  html[dir="rtl"] .logo-mark {
    transform-origin: right center;
  }

  .language-toggle {
    min-width: 49px;
  }

  .language-icon {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 75px 25px;
  }

  .hero-copy {
    text-align: start;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero h1 {
    margin-block: 21px 19px;
    font-size: clamp(43px, 14vw, 58px);
  }

  .hero h1 br {
    display: none;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust-line {
    justify-content: flex-start;
    margin-inline: 0;
  }

  .hero-visual {
    min-height: 535px;
  }

  .visual-backdrop {
    width: 410px;
    height: 410px;
  }

  .dashboard-card {
    width: 92%;
    padding: 19px;
  }

  .emergency-float {
    min-width: 178px;
    right: -5px;
    top: 92px;
  }

  .privacy-float {
    min-width: 180px;
    left: -4px;
    bottom: 35px;
  }

  .floating-card {
    padding: 10px 11px;
  }

  .proof-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 26px;
  }

  .proof-items span {
    font-size: 10px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .emergency-copy h2,
  .security-copy h2,
  .cta-card h2 {
    font-size: 38px;
  }

  .section-heading h2 br,
  .emergency-copy h2 br,
  .cta-card h2 br {
    display: none;
  }

  .section-heading > p,
  .split-heading > p {
    font-size: 15px;
  }

  .centered {
    text-align: start;
  }

  .steps-grid {
    gap: 14px;
  }

  .step-card {
    padding: 24px;
  }

  .bento-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: auto;
    padding: 26px;
  }

  .feature-large {
    display: block;
  }

  .records-ui {
    margin-top: 30px;
    padding: 13px;
  }

  .muted-record {
    display: none;
  }

  .emergency-visual {
    min-height: 520px;
  }

  .emergency-visual::before {
    width: 380px;
    height: 380px;
  }

  .qr-card {
    width: min(315px, 88vw);
    padding: 20px;
  }

  .qr-wrap {
    width: 192px;
  }

  .qr-wrap canvas {
    width: 170px;
    height: 170px;
  }

  .tap-card {
    right: -2px;
    bottom: 42px;
  }

  .security-visual {
    min-height: 520px;
  }

  .privacy-panel {
    width: 94%;
    padding: 23px;
  }

  .encrypted-note {
    right: 0;
    bottom: 35px;
  }

  .preview-tabs {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .preview-tab {
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .app-showcase {
    min-height: 630px;
  }

  .app-showcase::before {
    width: 430px;
    height: 430px;
  }

  .phone-shell {
    width: 282px;
    height: 565px;
  }

  .showcase-note {
    min-width: 178px;
    padding: 11px 13px;
  }

  .note-one {
    left: -3px;
    top: 65px;
  }

  .note-two {
    right: -3px;
    bottom: 20px;
  }

  .cta-section {
    padding-block: 58px;
  }

  .cta-card {
    padding: 38px 25px;
    border-radius: 27px;
  }

  .cta-form {
    padding: 17px;
  }

  .site-footer {
    padding-top: 54px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }

  .dialog-inner {
    padding: 35px 24px 28px;
  }

  .dialog-inner h2 {
    font-size: 30px;
  }

  .toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
    max-width: none;
  }
}

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

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

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