/* SugarIL site: one stylesheet for Hebrew (rtl) and English (ltr), written with logical properties
   (inline-start/end) so it mirrors by itself. */

@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-soft: #ecfdf3;
  --green-line: #bbf7d0;
  --navy: #0b1220;
  --navy-2: #111a2e;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f6f8fb;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px -16px rgba(15, 23, 42, .28);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Buttons and badges ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 20px -10px rgba(22, 163, 74, .7);
}
.button:hover { text-decoration: none; transform: translateY(-1px); background: #15913f; }
.button-ghost { background: transparent; color: var(--green); box-shadow: none; }
.button-ghost:hover { background: var(--green-soft); }
.button-light { background: #fff; border-color: #fff; color: var(--green); box-shadow: none; }
.button-light:hover { background: var(--green-soft); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--green-soft);
  color: var(--green); font-size: 14px; font-weight: 500; border: 1px solid var(--green-line);
}
.eyebrow { color: var(--green); font-weight: 500; letter-spacing: .02em; margin-bottom: .6em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--ink); direction: ltr; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; border: 5px solid var(--green-bright); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--green); }
.site-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.site-nav a { color: var(--body); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.site-nav a:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
.site-nav .lang { border: 1px solid var(--line); }
.site-nav .button { color: #fff; margin-inline-start: 6px; }
.site-nav .button:hover { background: #15913f; color: #fff; }
.menu-button { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(22, 163, 74, .10), transparent 60%),
    linear-gradient(180deg, #fbfdfc 0%, #f3f8f5 100%);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60% 70% at 15% 10%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(50% 60% at 90% 90%, rgba(22, 163, 74, .10), transparent 60%),
    linear-gradient(180deg, #fbfdfc 0%, #f3f8f5 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: .35em; }
.hero .device-name { font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-align: start; }
[dir="rtl"] .hero .device-name { text-align: right; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; aspect-ratio: 1.05; }
.hero-photo { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 6px solid #fff; background: #fff; }
.hero-photo-main { width: 74%; inset-inline-start: 4%; top: 22%; z-index: 3; }
.hero-photo-side { width: 46%; inset-inline-end: 0; bottom: 2%; z-index: 4; transform: rotate(3deg); }
.hero-photo-back { width: 54%; inset-inline-end: 6%; top: 0; z-index: 1; transform: rotate(-3deg); opacity: .97; }
[dir="rtl"] .hero-photo-side { transform: rotate(-3deg); }
[dir="rtl"] .hero-photo-back { transform: rotate(3deg); }

.hero-device { padding-bottom: 72px; }
.device-photo { margin: 0; }
.device-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 6px solid #fff; }
.device-photo figcaption, .screen-figure figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section + .section { padding-top: 0; }
.section-dark + .section, .section-soft + .section, .section + .section-dark, .section + .section-soft { padding-top: 80px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 36px; }
.subsection-title { font-size: 1.35rem; margin-top: 56px; }
.section-soft { background: var(--soft); }
.section-dark { background: radial-gradient(70% 90% at 50% 0%, #15233f 0%, var(--navy) 60%); color: #cbd5e1; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-lead, .section-dark figcaption { color: #94a3b8; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step h3 { font-size: 1.2rem; margin-top: 14px; }
.step p { margin: 0; color: var(--muted); }
.step-number {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 6px var(--green-soft);
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.screen-figure { margin: 0; }
img.screen {
  width: 100%; height: auto; border-radius: 14px; border: 10px solid #020617; background: #000;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, .18), 0 30px 60px -20px rgba(34, 197, 94, .25), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.section-dark .checks li { color: #e2e8f0; }

/* ---------- Device cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.device-card { display: flex; flex-direction: column; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.device-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.device-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.35rem; margin: 6px 0 0; direction: ltr; text-align: start; }
[dir="rtl"] .card-body h3 { text-align: right; }
.card-body p { color: var(--muted); margin: 0; flex: 1; }
.card-body .badge { align-self: flex-start; }
.more { color: var(--green); font-weight: 500; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
.arrow { width: 18px; height: 2px; background: currentColor; position: relative; }
.arrow::after { content: ""; position: absolute; inset-inline-end: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .arrow::after { transform: rotate(-45deg); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--soft); color: var(--ink); font-weight: 700; direction: ltr; }
[dir="rtl"] .compare thead th { text-align: right; }
.compare tbody th { color: var(--muted); font-weight: 500; width: 18%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Boxes ---------- */
.two-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.box p:last-child { margin-bottom: 0; }
.box-title { font-size: 1.3rem; }
.box-green { background: linear-gradient(160deg, #f0fdf4, #ecfdf3); border-color: var(--green-line); }
.box-green .box-title { color: #14532d; }
.box-green p { color: #166534; }
.parents { margin-top: 24px; }
.pills { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.box .pills li { background: #fff; }

.notice {
  display: block; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius);
  padding: 26px 30px; color: #713f12;
}
.notice .box-title { color: #713f12; }
.notice a { color: #92400e; font-weight: 500; text-decoration: underline; }
.notice-warn { margin-top: 16px; }

/* ---------- Call to action ---------- */
.cta { padding-top: 0; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #16a34a 0%, #0f8a3c 55%, #0b6b30 100%); color: #ecfdf5;
  border-radius: 28px; padding: 44px 48px; box-shadow: 0 30px 60px -30px rgba(22, 163, 74, .8);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.cta-band p { margin: 0; color: #dcfce7; font-size: 1.1rem; }

/* ---------- Device page ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature-mark { display: block; width: 36px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--green-bright)); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-mini { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 12px; font-weight: 500; color: #cbd5e1; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { color: var(--muted); font-weight: 500; width: 34%; padding-inline-end: 16px; }
.spec td { color: var(--ink); font-weight: 500; }

.soon { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.soon p { margin: 12px 0 18px; }
.numbered { padding-inline-start: 1.3em; margin: 0 0 16px; display: grid; gap: 10px; }

/* ---------- Terms ---------- */
.terms h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.terms h2 { font-size: 1.25rem; margin-top: 2em; display: flex; gap: .5em; align-items: baseline; }
.terms .clause-number { color: var(--green); font-weight: 700; }
.terms .clauses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.terms .clauses li { display: grid; grid-template-columns: 3em 1fr; }
.definitions { margin: 0; display: grid; gap: 10px; }
.definitions div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.definitions dt { font-weight: 700; color: var(--ink); }
.definitions dd { margin: 0; }
.language-note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px 16px; }
.terms-contact { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.footer-title { color: #e2e8f0; font-size: 1rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #cbd5e1; }
.site-footer .muted { color: #94a3b8; }
.footer-notice { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .2); font-size: 14px; }
.footer-notice p { max-width: 70em; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .steps, .cards, .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-mini { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-button { display: grid; place-items: center; }
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .button { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-dark + .section, .section-soft + .section, .section + .section-dark, .section + .section-soft { padding-top: 56px; }
  .steps, .cards, .cards-two, .features, .two-boxes { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; border-radius: 22px; }
  .definitions div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .compare { min-width: 0; font-size: .875rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .device-card { transition: none; }
}
