/* Solya customer pages: mobile-first, RTL, no external assets. Adapted from PR #1. */
@font-face {
  font-family: "Solya Hebrew";
  src: url("/fonts/Heebo%5Bwght%5D.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #173026;
  --green: #1f8a4c;
  --green-deep: #0f3d28;
  --sand: #f4efe4;
  --paper: #fffdf8;
  --line: #e3d9c8;
  --muted: #6d655b;
  --warn: #8a4b12;
  --fail: #9f2d2d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 88% -10%, #d7efdf 0, transparent 32%),
    var(--sand);
  color: var(--ink);
  font-family: "Solya Hebrew", "Noto Sans Hebrew", "Segoe UI", sans-serif;
}

body { min-height: 100vh; }

a { color: var(--green-deep); }

.wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 48px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand span { font-size: 22px; }

.sun {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f2c14e, #1f8a4c 40%, #f2c14e 70%, #1f8a4c);
  box-shadow: 0 0 0 4px var(--sand), 0 0 0 6px var(--green);
}

.grid { display: grid; gap: 14px; }
main.grid { gap: 18px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 16px 40px rgba(23, 48, 38, 0.05);
}

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; }
h2 { margin: 0 0 8px; font-size: 22px; }
p { line-height: 1.65; margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 18px; max-width: 38rem; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* no zoom on focus in mobile Safari */
  color: var(--ink);
}
/* LTR values (email, phone, code) still line up with the Hebrew labels */
input[dir="ltr"] { text-align: right; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
}

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

.note, .badge { color: var(--muted); font-size: 14px; }
.badge {
  display: inline-block;
  border: 1px dashed var(--green);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.warn { color: var(--warn); }
.error { color: var(--fail); font-weight: 700; }
.message { font-size: 18px; }

@media (min-width: 640px) {
  .wrap { padding: 28px 20px 64px; }
  .card { padding: 28px; }
  h1 { font-size: 40px; }
}
.row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* site picker rows (PR #1) */
.site {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}
.site input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; flex: none; }
.site > span { display: grid; gap: 2px; }
.price { font-size: 14px; }
.total { font-size: 18px; font-weight: 700; }

/* admin table: scrolls inside its own box, never the whole page */
.row.spread { justify-content: space-between; }
.table-wrap { overflow-x: auto; max-width: 100%; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: right; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }
td .note { display: block; }
.adm-site { margin-bottom: 6px; }
main.grid > * { min-width: 0; }

/* after-connect banner and per-site settings fields */
.banner {
  border: 1px solid var(--green);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  background: #eef7f1;
}
.banner .row { margin-bottom: 8px; }
.site-block { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.site-block .site { border-bottom: 0; }
.site-fields { gap: 8px; padding-inline-start: 30px; }
.site-fields .error, .site-fields .note { margin: 0; }
fieldset.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
fieldset.choice legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 4px; }
label.inline { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 16px; }
label.inline input[type="radio"] { width: 18px; height: 18px; margin: 0; flex: none; }
ul.prices { margin: 0 0 12px; padding-inline-start: 20px; line-height: 1.8; }

.price-main { font-size: 20px; margin-bottom: 4px; }

.intro .sol-face { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 14px; box-shadow: 0 0 0 6px #fff1a8; }
.intro h1 { margin-bottom: 4px; }
.intro .sub { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
