/* estateoseg.com — one stylesheet for every page.
   The app's own palette and typeface, so the page and the app feel like
   one product. */

/* The typefaces, served from this site (no third-party font service, so a
   visit tells no one else the visitor's address). IBM Plex Sans Arabic and
   IBM Plex Sans, SIL Open Font License: /assets/fonts/OFL.txt. Each weight
   comes in an Arabic and a Latin part; a page loads only the parts it uses. */

/* Anything marked hidden stays hidden, whatever display its class gives it
   (the Google Play button waits hidden until launch day; .btn's inline-flex
   used to keep it on the page, invisible but clickable). */
[hidden] { display: none !important; }

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --brand: #1f4638;
  --brand-deep: #163327;
  --brand-soft: #e2ece7;
  --alarm: #e8932e;
  --alarm-text: #9a5b00;
  --ink: #16201c;
  --muted: #55635e;
  --ground: #eef2f0;
  --line: #d6dfda;
  --paper: #ffffff;
  --danger: #b3261e;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --measure: 34rem;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

/* English pages: Plex's Latin cut, with the Arabic family behind it for
   the odd Arabic word (the «العربية» switch). */
body:lang(en) {
  font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--alarm);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-block: 0;
  padding-inline: var(--gutter);
}

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ------------------------------------------------------------ top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  display: grid;
  place-items: center;
}

.logo small {
  font-weight: 500;
  font-size: .78rem;
  color: var(--muted);
  display: block;
  line-height: 1.1;
}

/* The language switch: one quiet link at the other end of the bar. */
.lang {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 2px;
}

.lang:hover { color: var(--ink); text-decoration: underline; }

/* --------------------------------------------------------------- hero */

.hero {
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero .bar { color: #fff; }
.hero .logo small { color: #b9cfc5; }
/* The app icon is the same green as the hero: a thin light edge keeps it visible. */
.hero .logo-mark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28); }
.hero .lang { color: #d4e3dc; }
.hero .lang:hover { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 28px 0 64px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 3.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 13ch;
}

.hero p.lead {
  font-size: 1.12rem;
  color: #d4e3dc;
  max-width: var(--measure);
  margin: 0 0 28px;
}

.price-line {
  margin-top: 16px;
  color: #b9cfc5;
  font-size: .95rem;
}

/* The product's core moment: the reminder ringing on a locked phone. */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: #0d1c16;
  border: 9px solid #0a1510;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  position: relative;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.phone-time {
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1;
  margin-top: 26px;
  letter-spacing: .02em;
}

.phone-date { color: #9fb7ac; font-size: .85rem; margin-top: 6px; }

.ring {
  margin-top: auto;
  width: 100%;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid var(--alarm);
  animation: ring 1.6s ease-out infinite;
}

@keyframes ring {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

.ring-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--alarm-text);
  font-weight: 600;
}

.ring-head .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--alarm);
}

.ring h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.ring p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

.ring-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ring-actions span {
  text-align: center;
  border-radius: 12px;
  padding: 8px 4px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}

.ring-actions span:first-child { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--alarm); color: var(--ink); }
.btn-primary:hover { background: #f0a24a; color: var(--ink); }
.btn-play svg { width: 20px; height: 20px; }
.btn-secondary { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; margin-inline-start: 10px; }

.btn-quiet {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-quiet:hover { background: #d3e2da; }

.btn[aria-disabled="true"], .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn svg { width: 22px; height: 22px; flex: none; }

.sub-link {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  color: #b9cfc5;
}

.sub-link a { color: #fff; }

/* -------------------------------------------------------- invite code */

.invite {
  margin-top: 26px;
  background: rgba(255, 255, 255, .08);
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  padding: 16px 18px;
  max-width: var(--measure);
}

.invite[hidden] { display: none; }

.invite p { margin: 0 0 10px; color: #d4e3dc; font-size: .95rem; }

.invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-code {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .28em;
  direction: ltr;
  color: #fff;
}

.copy {
  background: #fff;
  color: var(--brand);
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

/* ----------------------------------------------------------- sections */

main section { padding: 64px 0 0; }

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 28px;
}

/* What it does: a plain list, each line one thing the app does. */
.does {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--line);
}

.does li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.does svg { width: 30px; height: 30px; color: var(--brand); margin-top: 4px; }
.does h3 { margin: 0 0 4px; font-size: 1.08rem; }
.does p { margin: 0; color: var(--muted); }

/* Why it beats a CRM: three plain rows, the app's own column marked in
   the brand tint. Phones: each row's topic, then the two answers side by
   side, each labelled. */
.vs {
  width: 100%;
  max-width: 52rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vs th, .vs td {
  text-align: start;
  vertical-align: top;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.vs thead th, .vs thead td { border-top: 0; padding-block: 16px 12px; font-size: .95rem; }
.vs thead th { color: var(--muted); }
.vs tbody th { width: 9rem; font-weight: 700; }
.vs td { color: var(--muted); }
.vs .us { background: var(--brand-soft); color: var(--ink); }
.vs thead .us { color: var(--brand); font-weight: 700; }

@media (max-width: 640px) {
  .vs, .vs tbody { display: block; }
  .vs thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .vs tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--line);
  }
  .vs tbody tr:first-child { border-top: 0; }
  .vs tbody th { grid-column: 1 / -1; width: auto; border-top: 0; padding: 16px 16px 6px; }
  .vs td { border-top: 0; padding: 8px 14px 16px; font-size: .95rem; }
  .vs td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
  }
  .vs td.us::before { color: var(--brand); }
}

/* Install: a real sequence, so it's numbered. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 44rem;
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 20px 18px 20px;
  padding-inline-start: 68px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.howto {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  margin: 0 0 18px;
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

.note {
  margin-top: 18px;
  max-width: 44rem;
  color: var(--muted);
  font-size: .95rem;
}

/* Price: one quiet block. */
.price {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 32px;
  align-items: center;
  max-width: 44rem;
}

.price .amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price p { margin: 0; color: var(--muted); }
.price strong { color: var(--ink); }

/* Ways to pay: the wallets people already use, named plainly. */
/* «Coming soon to Google Play and App Store», under the hero buttons. Text
   only: the stores' badges may only link to a published app. */
.soon-stores {
  margin: 14px 0 0;
  font-size: .95rem;
  color: var(--soon-text, rgba(255, 255, 255, .78));
}
.soon-stores .store {
  display: inline-block;
  margin: 0 4px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  direction: ltr;
}

.pay {
  max-width: 44rem;
  margin-top: 14px;
}
.pay p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.pay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay li {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.pay li.soon { color: var(--muted); border-style: dashed; }
.pay li.soon small { font-weight: 500; }

/* Questions */
.faq { max-width: 44rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ------------------------------------------------------------- footer */

footer {
  margin-top: 80px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; }
footer .social { margin-bottom: 12px; }
footer .social a { display: inline-flex; align-items: center; gap: 6px; }
footer .social svg { width: 18px; height: 18px; flex: none; }

/* -------------------------------------------------------- text pages */

.doc {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 5vw, 48px);
  margin: 8px 0 0;
  max-width: 48rem;
}

.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.3; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: .95rem; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-inline-start: 1.2rem; }
.doc li { margin-bottom: 6px; }

.doc .en {
  direction: ltr;
  text-align: start;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* The Arabic policy's pointer to the English one. */
.doc .en-link {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  text-align: start;
}

/* The features video plays by itself (muted, looping) where the phone mock-up was.
   Browsers only autoplay muted video, so the button under it turns the sound on. */
.demo {
  justify-self: center;
  position: relative;
  width: min(300px, 78vw);
  margin: 0;
}

.demo video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: var(--ground);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* The hero video's own buttons (page.js): play / pause, and play with
   sound. Side by side under the video; they wrap on very narrow screens. */
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.vbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

.vbtn:hover { background: rgba(255, 255, 255, .18); }

.vbtn svg { width: 18px; height: 18px; flex: none; }
.vbtn[hidden] { display: none; }

/* Play / pause shows the icon of what a tap does. */
.vbtn .i-play { display: none; }
.vbtn.is-paused .i-play { display: block; }
.vbtn.is-paused .i-pause { display: none; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .phone { order: 2; width: min(270px, 74vw); }
  .demo { order: 2; width: min(270px, 74vw); }
  .does { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { font-size: 16px; }
  .btn { width: 100%; }
  .btn-secondary { margin-inline-start: 0; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring::before { animation: none; opacity: .8; }
}
