/* Bud — single-screen Hebrew landing page.
   Palette sampled from the logo: deep teal #055a66, teal #06707c, mint #61bcac. */

:root {
  --ink: #055a66;
  --teal: #06707c;
  --mint: #61bcac;
  --mint-soft: #e9f6f3;
  --muted: #5d7b81;
  --line: #dfecea;
  --field: #fbfdfd;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(60% 48% at 88% -4%, #e6f6f2 0%, rgba(230, 246, 242, 0) 62%),
    radial-gradient(52% 42% at 6% 104%, #eef8f6 0%, rgba(238, 248, 246, 0) 62%),
    #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Centres the card and keeps the whole page inside the viewport. */
.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3.5vh, 30px) 18px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 408px;
  padding: clamp(22px, 4.2vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow:
    0 24px 55px -26px rgba(5, 90, 102, .30),
    0 3px 10px -4px rgba(5, 90, 102, .06);
}

/* Slim mint accent along the top edge of the card. */
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--ink), var(--teal) 45%, var(--mint));
}

.logo {
  display: block;
  width: clamp(148px, 33vw, 196px);
  height: auto;
  margin: 2px auto clamp(12px, 2.4vh, 18px);
}

h1 {
  margin: 0;
  font-size: clamp(1.24rem, 4.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}

.sub {
  margin: 6px 0 clamp(16px, 2.8vh, 22px);
  font-size: clamp(.9rem, 2.6vw, .98rem);
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.form { display: grid; gap: 11px; }

.field { display: grid; gap: 5px; }

label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--teal);
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS from zooming on focus. */
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

input[dir="ltr"] { text-align: right; }

input::placeholder { color: #a9c0c2; }

input:hover { border-color: #cfe2e0; }

input:focus {
  outline: none;
  background: #fff;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(97, 188, 172, .17);
}

input:user-invalid {
  border-color: #e0a3a3;
  box-shadow: 0 0 0 4px rgba(224, 163, 163, .14);
}

.submit {
  height: 49px;
  margin-top: 3px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #0a7c88, var(--ink));
  border: 0;
  border-radius: 13px;
  box-shadow: 0 12px 22px -12px rgba(5, 90, 102, .85);
  transition: transform .12s, box-shadow .16s, filter .16s;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px -12px rgba(5, 90, 102, .85);
}

.submit:active:not(:disabled) { transform: translateY(0); }

.submit:disabled {
  cursor: progress;
  filter: saturate(.7) brightness(1.06);
}

.submit:focus-visible {
  outline: 3px solid rgba(97, 188, 172, .55);
  outline-offset: 2px;
}

.status {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.status:empty { display: none; }

.status.ok {
  padding: 9px 12px;
  color: #0b6b58;
  background: var(--mint-soft);
  border-radius: 11px;
}

.status.err { color: #a4524f; }

.status a { color: inherit; }

.note {
  margin: clamp(13px, 2.4vh, 18px) 0 0;
  font-size: .78rem;
  color: #87a3a6;
  text-align: center;
}

/* Visually hidden but still submitted. Uses clip rather than a negative
   offset, which would overflow the page horizontally. */
.honey {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

/* Short viewports: shrink the chrome so nothing ever needs scrolling. */
@media (max-height: 720px) {
  .logo { width: clamp(126px, 28vw, 158px); margin-bottom: 10px; }
  .sub { margin-bottom: 13px; }
  .card { border-radius: 22px; }
  .note { margin-top: 11px; }
}

@media (max-height: 600px) {
  .stage { padding: 10px 16px; }
  .card { padding: 18px 20px; }
  .logo { width: 112px; margin-bottom: 8px; }
  h1 { font-size: 1.14rem; }
  .sub { font-size: .84rem; margin: 4px 0 10px; }
  .form { gap: 8px; }
  input[type="text"], input[type="tel"] { height: 42px; }
  .submit { height: 44px; }
  .note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
