/* «אוטומציות AI — החשבון שלך». Mobile first, RTL, one stylesheet for every page.
   No inline styles anywhere: the CSP carries no 'unsafe-inline'. */

/* Self-hosted variable subsets (Rubik + Assistant, SIL Open Font License).
   Served from this origin so a sign-in page never calls a font CDN. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/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: 400 700;
  font-display: swap;
  src: url('/static/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;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/assistant-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: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/assistant-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;
}

:root {
  --evergreen: #133e34;
  --evergreen-soft: #1d5548;
  --paper: #f6f4ef;
  --ink: #1a1916;
  --clay: #aa4422;
  --clay-dark: #8c3517;
  --muted: #5b564c;
  --line: #e0dbd0;
  --danger: #a11b1b;
  --danger-bg: #fbeceb;
  --ok: #1d6b4f;
  --ok-bg: #e9f3ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 62, 52, 0.09);
  --heading: Rubik, 'Segoe UI', system-ui, sans-serif;
  --body: Assistant, Rubik, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.masthead {
  background: var(--evergreen);
  color: var(--paper);
  padding: 16px 20px;
}

.masthead a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

h1 {
  font-family: var(--heading);
  font-size: 26px;
  line-height: 1.3;
  color: var(--evergreen);
  margin: 0 0 8px;
}

h2 {
  font-family: var(--heading);
  font-size: 19px;
  color: var(--evergreen);
  margin: 28px 0 10px;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
}

label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 15px;
}

.field { margin-bottom: 18px; }

input[type='text'],
input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c2b5;
  border-radius: 10px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

input[aria-invalid='true'] { border-color: var(--danger); }

.hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.check input { margin-top: 6px; width: 20px; height: 20px; flex: none; }

.check label {
  font-weight: 400;
  font-size: 15px;
  margin: 0;
}

button {
  width: 100%;
  padding: 13px 20px;
  font: inherit;
  font-family: var(--heading);
  font-weight: 700;
  color: #fff;
  background: var(--clay);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--clay-dark); }
button:disabled { opacity: 0.55; cursor: progress; }

button.secondary {
  background: transparent;
  color: var(--evergreen);
  border: 1px solid var(--evergreen);
}

button.secondary:hover:not(:disabled) { background: rgba(19, 62, 52, 0.07); }

.notice {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 15px;
}

.notice[hidden] { display: none; }
.notice.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #edc6c3; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #c6e0d2; }

.links {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.links li { margin: 8px 0; }

a { color: var(--evergreen); }

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.service {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

.service:hover { border-color: var(--evergreen); }

.service strong {
  display: block;
  font-family: var(--heading);
  font-size: 18px;
  color: var(--evergreen);
  margin-bottom: 4px;
}

.identity {
  border-inline-start: 4px solid var(--evergreen);
  padding-inline-start: 14px;
  margin: 0 0 24px;
}

.identity .name { font-family: var(--heading); font-weight: 700; font-size: 19px; }
.identity .email { color: var(--muted); font-size: 15px; word-break: break-all; }

.row { display: grid; gap: 12px; }

footer {
  padding: 22px 20px 34px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

footer a { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 620px) {
  main { padding-top: 44px; }
  .card { padding: 32px 30px; }
  h1 { font-size: 30px; }
}
