/* derechapp.com — one stylesheet for every page. Generated pages live in public/; edit this file, then run build.py. */

/* Rubik from our own server, no Google requests. Variable weight 300–900.
   Licence: SIL Open Font License 1.1, fonts/OFL.txt. Subsets and ranges as Google Fonts cuts them. */
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/rubik-latin.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;
}

/* ---------- tokens, header, badge, footer */
:root {
  --blue: #1a5fb8;
  --blue-deep: #12417f;
  --blue-night: #0c2d57;
  --ink: #0a1526;
  --paper: #f3f5f9;
  --card: #ffffff;
  --white: #ffffff;
  --live: #128c3b;
  --soft: rgba(255, 255, 255, .84);
  --faint: rgba(255, 255, 255, .62);
  --hair: rgba(255, 255, 255, .14);
  --ink-soft: rgba(10, 21, 38, .64);
  --ink-hair: rgba(10, 21, 38, .10);
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #134685; --blue-deep: #0f3566; --blue-night: #0a2346;
    --paper: #0d1522; --card: #152034; --ink-soft: rgba(235, 241, 250, .66); --ink-hair: rgba(235, 241, 250, .12);
    --live: #3ccf6a;
  }
}
:root[data-theme="dark"] {
  --blue: #134685; --blue-deep: #0f3566; --blue-night: #0a2346;
  --paper: #0d1522; --card: #152034; --ink-soft: rgba(235, 241, 250, .66); --ink-hair: rgba(235, 241, 250, .12);
  --live: #3ccf6a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font: 400 17px/1.5 "Rubik", "Noto Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
section, header, footer { overflow-x: clip; }

/* header: the logo lockup always reads left to right */
.top { display: flex; align-items: center; gap: 10px; height: 72px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; direction: ltr; text-decoration: none; }
.lockup svg { width: 32px; height: 32px; flex: none; }
.lockup b { font-weight: 600; font-size: 21px; letter-spacing: -.012em; }
.lang { margin-inline-start: auto; display: flex; gap: 16px; font-size: 15px; color: var(--faint); }
.lang a { text-decoration: none; }
.lang a:hover, .lang .cur { color: var(--white); }

/* headings */
.h1 { font-weight: 700; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--soft); text-wrap: pretty; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 15px; color: var(--faint); }
/* App Store badge: a link once the app is live, plain until then */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 11px 22px 11px 18px; text-decoration: none; direction: ltr; }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .65; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; }

footer { background: var(--blue-night); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 22px; padding-bottom: 30px; font-size: 14px; color: var(--faint); }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }
footer .src { flex-basis: 100%; }
footer .dev { margin-inline-start: auto; opacity: .8; }
@media (max-width: 480px) { footer .dev { margin-inline-start: 0; flex-basis: 100%; } }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .lang { gap: 12px; font-size: 14px; }
}
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

/* ---------- landing: slogan, App Store badge, two iPhones */
body.landing main { flex: 1; display: flex; align-items: center; }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 16px 64px; }
.hero .copy { display: grid; gap: 24px; }
.hero .h1 { font-size: clamp(44px, 6.2vw, 78px); }
.hero .lead { max-width: 24em; margin-bottom: 8px; }

/* iPhone 17 Pro, front view. Units below are points of a 434 x 906 body:
   5 pt aluminium band, 11 pt black bezel, 402 x 874 screen with 62 pt corners. */
.iphone { position: absolute; isolation: isolate; aspect-ratio: 434 / 906; border-radius: 17.97% / 8.61%; padding: 1.152%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0) 92%, rgba(0, 0, 0, .18)),
    linear-gradient(160deg, #f6f7f9 0%, #c3c6cb 22%, #eceef0 45%, #b4b8be 70%, #e8eaed 100%);
  box-shadow:
    inset 0 0 0 .6px rgba(0, 0, 0, .45),
    inset 0 0 0 1.6px rgba(255, 255, 255, .55),
    0 60px 90px -40px rgba(3, 12, 32, .7),
    0 22px 36px -22px rgba(3, 12, 32, .55); }
.iphone .bez { position: relative; height: 100%; border-radius: 17.2% / 8.15%; padding: 2.594%; background: #040506;
  box-shadow: 0 0 0 .6px rgba(0, 0, 0, .7); }
.iphone .scr { position: relative; height: 100%; border-radius: 15.42% / 7.09%; overflow: hidden; background: #dfe3e8; }
.iphone .scr img { width: 100%; height: 100%; object-fit: cover; }
.iphone .scr::after { content: ""; position: absolute; left: 34.41%; width: 31.18%; top: 1.6%; height: 4.2%; border-radius: 999px; background: #000; }
/* a faint sheen on the glass */
.iphone .bez::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 34%); }
/* side buttons: action + volume on the left, side button + Camera Control on the right */
.iphone i { position: absolute; z-index: -1; width: 1.4%; border-radius: 3px;
  background: linear-gradient(90deg, #8f949b, #e4e6e9 45%, #a3a7ad); }
.iphone i.l { left: -1.05%; }
.iphone i.r { right: -1.05%; }
.iphone i.act { top: 19.6%; height: 4.4%; }
.iphone i.vup { top: 27.8%; height: 7.4%; }
.iphone i.vdn { top: 37%; height: 7.4%; }
.iphone i.pwr { top: 29%; height: 11.2%; }
.iphone i.cam { top: 57.5%; height: 6.6%; width: 1.1%; right: -.8%; background: linear-gradient(90deg, #a3a7ad, #d6d9dd 50%, #8f949b); }

.stage { position: relative; height: 616px; }
.stage .front { width: 268px; inset-inline-start: 3%; top: 54px; z-index: 2; }
.stage .back { width: 250px; inset-inline-start: 46%; top: 0; z-index: 1; }

@media (max-width: 900px) {
  body.landing main { display: block; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 12px 48px; }
  .stage { height: auto; aspect-ratio: 100 / 131; max-width: 440px; width: 100%; justify-self: center; }
  .stage .front { width: 58%; inset-inline-start: 0; top: 6.9%; }
  .stage .back { width: 52%; inset-inline-start: auto; inset-inline-end: 0; }
}
.store small[dir="rtl"] { text-align: left; }
.hero .lead b { font-weight: 500; color: var(--white); }

/* ---------- text pages: support, privacy, 404 */
:root { --text: #0a1526; --text-soft: rgba(10, 21, 38, .74); --accent: #1a5fb8; --rule: rgba(10, 21, 38, .10); --box: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --text: #eef2f8; --text-soft: rgba(238, 242, 248, .74); --accent: #8bb8f2; --rule: rgba(238, 242, 248, .12); --box: #152034; }
}
:root[data-theme="dark"] { --text: #eef2f8; --text-soft: rgba(238, 242, 248, .74); --accent: #8bb8f2; --rule: rgba(238, 242, 248, .12); --box: #152034; }

.doc-head { padding-block: 20px 44px; }
.doc-head .h1 { font-size: clamp(30px, 7.6vw, 56px); overflow-wrap: anywhere; }
.doc-head .lead { margin-top: 14px; max-width: 32em; }

.doc { flex: 1; background: var(--paper); color: var(--text); padding-block: 44px 72px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc ul { margin: 8px 0 0; padding-inline-start: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 2px; }
.doc .meta { font-size: 15px; color: var(--text-soft); margin-bottom: 28px; }

/* contact box */
.box { background: var(--box); border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px; }
.box .mail { display: inline-block; margin-top: 6px; font-size: 22px; font-weight: 600; text-decoration: none; direction: ltr; }
.box p { margin-top: 8px; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 18px; font-weight: 500; color: var(--text); display: flex; gap: 16px; align-items: baseline; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--text-soft); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }

/* summary table on the privacy page */
.facts { margin-top: 12px; display: grid; gap: 10px; }
.facts > div { background: var(--box); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.facts b { display: block; color: var(--text); font-weight: 600; font-size: 17px; }
.facts > div > span { display: block; color: var(--text-soft); font-size: 16px; line-height: 1.5; margin-top: 2px; }

/* draft banner on the privacy page until PRIVACY_EFFECTIVE is set */
.draft { background: #fff4d6; color: #5a4300; border: 1px solid #f0d58a; border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.45; margin-bottom: 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft { background: #3a2f12; color: #f6dfa0; border-color: #6b5520; } }
:root[data-theme="dark"] .draft { background: #3a2f12; color: #f6dfa0; border-color: #6b5520; }

/* "/" without JavaScript: the three languages */
.chooser { display: flex; flex-wrap: wrap; gap: 14px; padding-block: 24px 80px; }
.chooser a { font-size: 26px; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 26px; }
.chooser a:hover { background: rgba(255, 255, 255, .2); }

/* 404 */
.nf p { font-size: 19px; }
.nf p + p { margin-top: 14px; }
