/* The studio's questionnaire. Same language as the client report (report.diostudio.co.il): paper and ink,
   the sage band, coral for lines and dots only, Heebo (SIL Open Font License, fonts/OFL-heebo.txt). */
@font-face { font-family: "Heebo"; src: url("fonts/heebo-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("fonts/heebo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Heebo"; src: url("fonts/heebo-hebrew-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("fonts/heebo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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: "Heebo"; src: url("fonts/heebo-hebrew-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("fonts/heebo-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; 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 {
  --ink: #161616;
  --muted: #5a5a56;      /* 6.6:1 on paper */
  --paper: #fbfaf6;
  --sage: #c5d8c8;
  --on-sage: #31403a;    /* secondary text on sage: 8.4:1 */
  --coral: #ff5538;      /* lines, dots, the caret: never text */
  --coral-text: #c23a22; /* 5.1:1 on paper */
  --rule: rgba(22, 22, 22, .14);
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Heebo", "Arial Hebrew", Arial, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); transition: background-color .4s var(--ease); }
.app[data-screen="welcome"], .app[data-screen="done"] { background: var(--sage); }

/* top bar: the studio, where you are, how far */
.bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px; background: inherit; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.where { font-size: 14px; color: var(--muted); text-align: left; min-height: 1em; }
.progress { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--rule); opacity: 0; transition: opacity .3s; }
.progress i { display: block; height: 100%; background: var(--coral); transform-origin: right; transform: scaleX(0); transition: transform .45s var(--ease); }
.app[data-screen="ask"] .progress { opacity: 1; }

/* screens */
.screen { display: none; flex: 1; flex-direction: column; }
.app[data-screen="welcome"] .welcome,
.app[data-screen="ask"] .ask,
.app[data-screen="done"] .done,
.app[data-screen="oops"] .oops { display: flex; }
.inner { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }

h1 { font-weight: 900; font-size: 44px; line-height: 1.04; letter-spacing: -.015em; margin: 0 0 18px; }
.lead { font-size: 20px; line-height: 1.5; margin: 0 0 12px; }
.welcome .inner, .done .inner, .oops .inner { padding-top: 9vh; padding-bottom: 48px; }
.welcome p:not(.lead) { color: var(--on-sage); margin: 0; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 34px; }
.facts li { font-size: 15px; font-weight: 600; padding: 5px 13px 6px; border: 1.5px solid var(--ink); border-radius: 99px; }
.facts b { font-weight: 900; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* buttons */
.go { appearance: none; border: 0; cursor: pointer; background: var(--ink); color: var(--paper);
  font-size: 18px; font-weight: 700; line-height: 1; padding: 17px 30px 18px; min-height: 54px; border-radius: 99px;
  transition: transform .16s var(--ease), opacity .2s; }
.go:active { transform: scale(.97); }
.go[disabled] { opacity: .55; cursor: progress; }
.ghost { appearance: none; border: 0; background: none; cursor: pointer; padding: 10px 2px; font-size: 16px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.welcome .ghost { color: var(--on-sage); }
.go:focus-visible, .ghost:focus-visible, .choice:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
@media (hover: hover) { .go:hover { opacity: .88; } .ghost:hover { color: var(--ink); } }

/* the question */
.ask .inner { padding-top: 7vh; }
.q { padding-bottom: 8px; }
.title { display: block; font-weight: 700; font-size: 27px; line-height: 1.25; letter-spacing: -.005em; margin: 0 0 10px; }
.req { display: inline-block; vertical-align: middle; margin-inline-start: 8px; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 99px; padding: 1px 9px 2px; letter-spacing: 0; }
.hint { color: var(--muted); margin: 0 0 6px; }
.field { display: block; width: 100%; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent;
  font-size: 22px; line-height: 1.4; padding: 12px 0 10px; margin-top: 14px; caret-color: var(--coral); outline: none;
  transition: border-color .2s; }
.field:focus { border-bottom-color: var(--coral); }
.field::placeholder { color: #72716c; opacity: 1; } /* 4.7:1 on paper */
/* a long answer gets a page to write on, not a line */
textarea.field { resize: none; min-height: 132px; overflow: hidden; font-size: 19px; line-height: 1.55; padding: 14px 16px;
  margin-top: 18px; background: #fff; border: 1.5px solid var(--rule); border-radius: 14px; }
textarea.field:focus { border-color: var(--coral); }
[dir="ltr"].field { text-align: right; } /* numbers and links read left to right, but sit on the right edge with the question */

/* yes and no */
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.choice { appearance: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 132px; min-height: 54px;
  padding: 10px 20px 11px; font-size: 19px; font-weight: 600; background: transparent; border: 1.5px solid var(--ink); border-radius: 99px;
  transition: background-color .18s, color .18s, transform .16s var(--ease); }
.choice:active { transform: scale(.97); }
.choice kbd { font: inherit; font-size: 13px; font-weight: 700; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 6px; opacity: .6; }
.choice[aria-checked="true"] { background: var(--ink); color: var(--paper); }
@media (hover: none) { .choice kbd { display: none; } }

/* the links screen */
.rows { display: grid; gap: 4px; margin-top: 12px; }
.row { display: block; }
.row .lab { display: block; font-size: 15px; font-weight: 600; margin-top: 14px; }
.row .field { font-size: 18px; margin-top: 2px; padding: 8px 0 7px; border-bottom-width: 1.5px; border-bottom-color: var(--rule); }
.row .field:focus { border-bottom-color: var(--coral); }

.err { min-height: 24px; margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--coral-text); }

/* steering */
.steer { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; }
.steer .key { font-size: 14px; color: var(--muted); }
.steer .back { margin-inline-start: auto; }
@media (hover: none) { .steer .key { display: none; } }

/* sent */
.oops .inner .lead { color: var(--muted); }
.oops a.ghost { display: inline-block; }

/* the field people never see (a bot fills it) */
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* arriving: forward rises, back falls */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fall { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.in-fwd { animation: rise .32s var(--ease) both; }
.in-back { animation: fall .32s var(--ease) both; }
.nudge { animation: nudge .28s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .in-fwd, .in-back { animation: fadein .2s linear both; }
  .nudge { animation: none; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}

.noscript { padding: 24px var(--gutter); }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  h1 { font-size: 60px; }
  .lead { font-size: 22px; }
  .title { font-size: 34px; }
  .ask .inner { padding-top: 12vh; }
  .welcome .inner, .done .inner, .oops .inner { padding-top: 14vh; }
}
