/* Atriom's product page (/atriom/, /ar/atriom/), on top of site.css.
   The page wears Atriom's own colours (the teal arch and amber skylight of its logo); the header and
   footer stay TriTech's. Everything is laid out with logical properties, so one file serves both
   directions. Sections rise as they enter only under .home-ready (set by site.js), so a page whose
   script is missing or stale still shows everything. */

body.atriom {
  --accent: #3049D6;
  --accent-hover: #2639B8;
  --accent-tint: rgba(48, 73, 214, 0.09);
  --amber: #B7832A;
  --amber-soft: #FAF0DB;
  --bg: #F6F7FB;
  --line: #E1E4EF;
  --line-strong: #C9CEE2;

  --band: #0F1433;
  --band-ink: #EEF0FA;
  --band-body: #AEB5D8;
  --band-line: rgba(238, 240, 250, 0.14);
  --band-accent: #8FA2FF;

  --shadow-sm: 0 1px 2px rgba(15, 20, 51, 0.06);
  --shadow-md: 0 1px 2px rgba(15, 20, 51, 0.05), 0 12px 32px rgba(15, 20, 51, 0.08);
  --shadow-lg: 0 2px 4px rgba(15, 20, 51, 0.05), 0 32px 80px rgba(15, 20, 51, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
.atriom .site-header { background: rgba(246, 247, 251, 0.92); }
.atriom .input:focus { box-shadow: 0 0 0 3px rgba(48, 73, 214, 0.18); }

/* One icon look for the whole page: stroked, rounded, drawn from the sprite at the top of <body>. */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}
.ic-tile.is-amber { background: var(--amber-soft); color: var(--amber); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
[dir="rtl"] .kicker { padding: 6px 8px 6px 14px; }
.kicker svg { width: 24px; height: 24px; }
html[lang="ar"] .kicker { font-size: 15px; }

.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.sec-head.is-center { align-items: center; margin-inline: auto; text-align: center; }
.sec-label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
html[lang="ar"] .sec-label { font-size: 15px; letter-spacing: 0; text-transform: none; }

/* ---------- Hero ---------- */

.a-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.a-hero::before {
  content: "";
  position: absolute;
  inset-block-start: -240px;
  inset-inline-end: -200px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 111, 240, 0.14), rgba(90, 111, 240, 0));
  pointer-events: none;
}
.a-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.a-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.a-hero-copy .hero-title { font-size: clamp(38px, 3.9vw, 56px); }
html[lang="ar"] .a-hero-copy .hero-title { font-size: clamp(34px, 3.6vw, 52px); }
.a-hero-copy .hero-title em { font-style: normal; color: var(--accent); }
.a-hero-copy .button-row { margin-top: 4px; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 12px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); }
html[lang="ar"] .trust li { font-size: 16px; }
.trust .ic { width: 18px; height: 18px; color: var(--accent); }

.a-hero-visual { position: relative; padding-block-end: 56px; }
.browser {
  overflow: hidden;
  border: 1px solid #D6DBEE;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; border-bottom: 1px solid #ECEEF6; background: #FAFBFE; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DCE0EE; }
.browser-bar span { margin-inline-start: 12px; padding: 3px 12px; border-radius: 6px; background: #EEF0F7; font-family: var(--mono); font-size: 11px; color: var(--subtle); direction: ltr; }
.browser img { width: 100%; }

.float {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.float-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
[dir="rtl"] .float-chip { padding: 10px 10px 10px 16px; }
html[lang="ar"] .float-chip { font-size: 15px; }
.float-chip .ic-tile { width: 32px; height: 32px; border-radius: 9px; }
.float-chip .ic { width: 17px; height: 17px; }
.float-chip.is-top { inset-block-start: 22%; inset-inline-start: -28px; }
.float-chip.is-mid { inset-block-start: -18px; inset-inline-end: 24px; }

.float-journal { inset-block-end: 0; inset-inline-end: -12px; width: min(340px, 62%); padding: 16px 18px; }
.float-journal caption { margin-bottom: 10px; caption-side: top; font-size: 12px; font-weight: 500; color: var(--subtle); text-align: start; }
html[lang="ar"] .float-journal caption { font-size: 13px; }
.float-journal table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.float-journal th, .float-journal td { padding: 6px 0; border-bottom: 1px solid #EEF0F7; text-align: start; font-weight: 400; }
.float-journal td { font-family: var(--mono); text-align: end; white-space: nowrap; padding-inline-start: 12px; }
.float-journal thead th { font-size: 11px; color: var(--subtle); }
.float-journal thead th + th { text-align: end; }
.float-journal tfoot th, .float-journal tfoot td { border-bottom: 0; font-weight: 600; color: var(--accent); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: #C9D2F5; box-shadow: var(--shadow-md); }
.card h3 { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
html[lang="ar"] .card h3 { line-height: 1.55; letter-spacing: 0; }
.card p { font-size: 15.5px; line-height: 1.65; color: var(--body); }
html[lang="ar"] .card p { font-size: 16.5px; line-height: 1.8; }
.card .read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 500; }
.card .read-more svg { width: 15px; height: 15px; }
[dir="rtl"] .card .read-more svg { transform: scaleX(-1); }

.cards-who .card { padding: 32px; }
.cards-who .card h3 { font-size: 21px; }

.a-section { padding-block: clamp(72px, 8vw, 112px); }
.a-section.is-surface { background: var(--surface); border-block: 1px solid var(--line); }
.a-section.is-surface .card { background: var(--bg); box-shadow: none; }
.a-section.is-surface .card:hover { background: var(--surface); box-shadow: var(--shadow-md); }

/* ---------- Safe with money (teal band) ---------- */

.a-band { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); }
.a-band::after {
  content: "";
  position: absolute;
  inset-block-end: -300px;
  inset-inline-start: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 162, 255, 0.16), rgba(143, 162, 255, 0));
  pointer-events: none;
}
.a-band .container { position: relative; z-index: 1; }
.a-band .sec-label { color: #F5B65A; }
.a-band .section-intro { color: var(--band-body); }
.vault { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vault li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--band-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.vault .ic-tile { background: rgba(143, 162, 255, 0.14); color: var(--band-accent); }
.vault h3 { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.vault p { font-size: 15px; line-height: 1.65; color: var(--band-body); }
html[lang="ar"] .vault p { font-size: 16px; line-height: 1.8; }

/* ---------- Built for Egypt ---------- */

.egypt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.egypt .sec-head { margin-bottom: 28px; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 14px; font-size: 16.5px; line-height: 1.55; }
html[lang="ar"] .ticks li { font-size: 17px; line-height: 1.75; }
.ticks .tick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: #FFFFFF; }
.ticks .tick .ic { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq details[open] { border-color: #C9D2F5; box-shadow: var(--shadow-md); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233049D6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 14px; }
.faq details p { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: var(--body); }
html[lang="ar"] .faq details p { font-size: 17px; line-height: 1.85; }

/* ---------- Closing call ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, #3049D6 0%, #0F1433 100%);
  color: #FFFFFF;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset-block-start: -140px;
  inset-inline-end: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .section-title { color: #FFFFFF; }
.cta-panel p { margin-top: 14px; max-width: 560px; font-size: 18px; line-height: 1.6; color: #C9D0F2; }
html[lang="ar"] .cta-panel p { line-height: 1.85; }
.btn-white { background: #FFFFFF; color: var(--band); }
.btn-white:hover { background: #F5B65A; color: var(--band); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .home-ready body.atriom [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease-out), transform 750ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .home-ready body.atriom [data-reveal].is-in { opacity: 1; transform: none; }
  .home-ready body.atriom .a-hero [data-reveal] { transition-duration: 800ms; }
  .float-chip.is-top { animation: bob 6s ease-in-out infinite; }
  .float-chip.is-mid { animation: bob 7s ease-in-out -2s infinite; }
}
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .card, .faq details, .faq summary::after { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
  .vault { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .a-hero-grid, .egypt { grid-template-columns: minmax(0, 1fr); }
  .a-hero-copy { max-width: 640px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-chip.is-top { inset-inline-start: 12px; }
}
@media (max-width: 720px) {
  .cards, .vault, .trust { grid-template-columns: minmax(0, 1fr); }
  .card, .cards-who .card { padding: 24px; }
  .a-hero-visual { padding-block-end: 0; }
  .float-chip { display: none; }
  .float-journal { position: relative; inset: auto; width: auto; margin: -28px 16px 0; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; }
}
@media (max-width: 520px) {
  .a-hero-copy .button-row .btn, .cta-panel .button-row .btn { flex: 1 1 100%; }
}

/* ---------- The tenant app: three phones ---------- */

.phones { display: grid; align-items: start; padding-top: 28px; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(20px, 4vw, 56px); }
.phone-fig { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; }
.phone-fig:nth-child(2) { margin-top: -28px; }
.phone {
  width: 100%;
  padding: 10px;
  border-radius: 44px;
  background: #121A19;
  box-shadow: inset 0 0 0 2px #2B3634, var(--shadow-lg);
}
.phone img { width: 100%; border-radius: 34px; }
.phone-fig figcaption { font-size: 16px; font-weight: 600; color: var(--ink-soft); text-align: center; }
html[lang="ar"] .phone-fig figcaption { font-size: 17px; }
@media (max-width: 720px) {
  .phones { grid-template-columns: minmax(0, 260px); }
  .phone-fig:nth-child(2) { margin-top: 0; }
}

/* The line under the hero buttons that says what the no-account demo is. */
.try-note { margin-top: -8px; font-size: 14px; line-height: 1.55; color: var(--subtle); }
html[lang="ar"] .try-note { font-size: 15px; line-height: 1.75; }
