/* estateoseg.com — one stylesheet for every page.
   The app's own palette and typeface, so the page and the app feel like
   one product. */

: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(--alarm);
  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; }
.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-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); }

/* 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;
}

.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); }

/* 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; }

/* -------------------------------------------------------- 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;
}

/* ------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .phone { 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%; }
}

@media (prefers-reduced-motion: reduce) {
  .ring::before { animation: none; opacity: .8; }
}
