/* What every public page of se7tiai.tech shares — the front page, help, the privacy policy and
   the terms; the dashboard has its own styles.css. The apps' look: the green of Home's top card,
   a soft page, white floating cards with big corners, a glass bar, and "Forest night" when the
   reader's device is dark or they chose it with the moon button. */
:root {
  --green: #4CAF50; --green-deep: #2E7D32; --green-dark: #1B5E20; --green-night: #0F3D17; --green-light: #78DC77;
  --mint: #83FBD9; --teal: #26A69A;
  --page: #F7F8F7; --card: #FFFFFF; --ink: #0F172A; --ink2: #434940; --muted: #6B7168; --line: transparent;
  --soft: #E8F5E9; --on-soft: #1B5E20; --accent: #2E7D32;
  --glass: rgba(255, 255, 255, .74); --glass-line: rgba(255, 255, 255, .7);
  --shadow: 0 10px 30px rgba(46, 125, 50, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --lift: 0 26px 60px rgba(27, 94, 32, .16), 0 4px 12px rgba(15, 23, 42, .05);
  --hero:
    radial-gradient(1100px 900px at 88% -6%, rgba(129, 199, 132, .55), transparent 62%),
    radial-gradient(900px 900px at -12% 30%, rgba(76, 175, 80, .28), transparent 60%),
    linear-gradient(172deg, #2E7D32 0%, #1B5E20 38%, #0F3D17 100%);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", "Noto Sans Arabic", sans-serif;
  color: var(--ink);
}
/* Forest night, written twice: once for a reader who chose dark with the button, once for a
   device that is dark and a reader who hasn't chosen. CSS can't share the two. */
:root[data-theme="dark"] {
  --page: #0B110D; --card: #141C17; --ink: #E8F2EA; --ink2: #C9D6CD; --muted: #93A399; --line: #22302A;
  --soft: #12241A; --on-soft: #A5D6A7; --accent: #78DC77;
  --glass: rgba(20, 28, 23, .76); --glass-line: rgba(255, 255, 255, .09);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --lift: 0 26px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0B110D; --card: #141C17; --ink: #E8F2EA; --ink2: #C9D6CD; --muted: #93A399; --line: #22302A;
    --soft: #12241A; --on-soft: #A5D6A7; --accent: #78DC77;
    --glass: rgba(20, 28, 23, .76); --glass-line: rgba(255, 255, 255, .09);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); --lift: 0 26px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir=rtl] .flip { transform: scaleX(-1); }

/* The bar: the apps' floating glass pill, the same on every page. */
.nav { position: fixed; top: max(12px, env(safe-area-inset-top)); inset-inline: 0; z-index: 30; pointer-events: none; }
.bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; padding: 7px; padding-inline-start: 10px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px;
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .14); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; margin-inline-end: auto; }
.brand img { width: 38px; height: 38px; border-radius: 12px; display: block; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink2); padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.bar nav a:hover, .bar nav a[aria-current] { background: var(--soft); color: var(--on-soft); }
.round { width: 42px; height: 42px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--on-soft); cursor: pointer; }
.lang { font: inherit; font-weight: 700; font-size: 14px; color: var(--on-soft); background: var(--soft); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
/* The one green button of the bar: the way to the app. */
.get { text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(180deg, #43A047, #2E7D32); border-radius: 999px; padding: 10px 18px; box-shadow: 0 6px 16px rgba(46, 125, 50, .35); white-space: nowrap; }
#menu { display: none; }
/* On a phone the links drop from the bar as a card. */
@media (max-width: 900px) {
  #menu { display: grid; }
  .brand { font-size: 16px; gap: 8px; }
  .bar nav { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; gap: 2px; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--lift); }
  .bar.open nav { display: flex; }
  .bar nav a { font-size: 16px; padding: 13px 16px; border-radius: 16px; color: var(--ink); }
}
@media (max-width: 560px) { .get { display: none; } }

/* The green of the store pictures, with their two faint rings: the front page's top, and the
   shorter band the other pages open with. */
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .045); pointer-events: none; }
.ring.a { width: 560px; height: 560px; top: -220px; inset-inline-start: -200px; }
.ring.b { width: 420px; height: 420px; bottom: -120px; inset-inline-end: -150px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(120, 220, 119, .25); }

/* The two ways to get the app. Without an address a button says "coming soon" and isn't a link. */
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; background: #0A0F0B; border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 10px 20px 10px 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); transition: transform .2s; }
.store[href]:hover { transform: translateY(-2px); }
.store .i { width: 28px; height: 28px; color: var(--mint); }
.store small { display: block; font-size: 11.5px; line-height: 1.2; opacity: .78; }
.store b { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }

.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px; }
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.bullets { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.bullets li { position: relative; padding-inline-start: 18px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--green)); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 16px; padding: 13px 20px; color: #fff; background: linear-gradient(180deg, #43A047, #2E7D32); box-shadow: 0 8px 20px rgba(46, 125, 50, .28); }
.btn.quiet { background: var(--card); color: var(--accent); box-shadow: var(--shadow); border: 1px solid var(--line); }
.mail { font-weight: 700; color: var(--accent); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

/* Questions that open in place: the front page's Help and the help page. */
.asks { display: flex; flex-direction: column; gap: 10px; }
.ask { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.ask summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; font-size: 17px; line-height: 1.35; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary .i { margin-inline-start: auto; color: var(--accent); transition: transform .2s; }
.ask[open] summary .i { transform: rotate(180deg); }
.ask .bullets, .ask > p { margin: 0; padding: 0 22px 20px; color: var(--ink2); }

/* The caution every page of Se7ti AI carries, and the foot. */
.caution { margin: 28px auto 0; max-width: 46em; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--muted); }
.caution .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
footer { border-top: 1px solid rgba(128, 128, 128, .18); padding-block: 28px 44px; margin-top: clamp(40px, 6vw, 72px); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
footer .brand { margin-inline-end: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink2); }
footer nav a:hover { color: var(--accent); }
footer small { flex-basis: 100%; color: var(--muted); font-size: 13px; }

/* The pages under the front page (help, privacy, terms): a short green band with the page's
   name, then its cards in a column made for reading. */
.top { position: relative; overflow: hidden; background: var(--hero); color: #fff; border-radius: 0 0 36px 36px; padding-block: 124px 52px; }
.top .wrap, .page { width: min(820px, 100% - 40px); }
.top .wrap { position: relative; }
.top h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.top p { margin-top: 12px; max-width: 36em; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.page { margin-inline: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.page .card { border-radius: 22px; padding: 20px 22px; }
.page .card h2 { font-size: 18px; line-height: 1.35; display: flex; align-items: center; gap: 10px; }
.page .card h2 span { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--on-soft); display: grid; place-items: center; font-size: 13px; flex: none; }
.page #content { display: contents; }
.page .card p { color: var(--ink2); }
.page .card h2 + p { margin-top: 10px; }
.page .card .bullets { margin-top: 12px; }
.page .updated { margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 13px; }
.page .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Arabic: no tracking, no capitals, more room between lines. */
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] .brand, [dir=rtl] .store b { letter-spacing: 0; }
[dir=rtl] h1 { line-height: 1.28; }
[dir=rtl] h2 { line-height: 1.38; }
[dir=rtl] .eyebrow { letter-spacing: 0; font-size: 14.5px; }
[dir=rtl] body { line-height: 1.8; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
