
  :root {
    --ink:        #2E2E33;
    --mauve:      #9C6B98;
    --wine:       #6E2C41;
    --blush:      #E4B7B2;
    --cream:      #F3EDE4;
    --slate-blue: #5C7A99;

    --bg:         #F6F9FB;
    --line:       #DFE6EC;
    --muted:      #8A929C;

    /* accent: charcoal */
    --accent:       var(--ink);
    --accent-hover: #1E1E23;
    --accent-soft:  rgba(46, 46, 51, 0.12);

    /* error: rosewood red — sits between the wine and blush of the palette */
    --error:      #B14A5A;
    --error-soft: rgba(177, 74, 90, 0.10);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html, body { height: 100%; }

  body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* anchor content to the top so the wordmark never moves */
    -webkit-font-smoothing: antialiased;
  }

  /* ————— quiet ambient accents ————— */
  .halo {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.14;
    pointer-events: none;
  }
  .halo--one { width: 420px; height: 420px; background: var(--slate-blue); top: -140px; right: -100px; }
  .halo--two { width: 360px; height: 360px; background: var(--blush);      bottom: -120px; left: -80px; }

  /* ————— stage ————— */
  .stage {
    width: 100%;
    max-width: 360px;
    padding: 14vh 24px 48px; /* fixed distance from the top for every view */
    position: relative;
  }

  /* ————— wordmark (identical position on every view) ————— */
  .wordmark {
    text-align: center;
    margin-bottom: 44px;
  }
  .wordmark h1 {
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
  }
  .wordmark p {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.01em;
  }

  /* ————— forms ————— */
  form { display: none; }
  form.is-visible { display: block; animation: rise 0.35s ease; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .form-intro {
    text-align: center;
    margin: -14px 0 28px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
  }
  .form-intro strong { color: var(--ink); font-weight: 600; }

  .field { margin-bottom: 20px; }
  .field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
  }

  .control { position: relative; }

  .field input {
    width: 100%;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .control input { padding-right: 44px; }
  .field input::placeholder { color: #B9BEC6; }
  .field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .field input.has-error {
    border-color: var(--error);
  }
  .field input.has-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px var(--error-soft);
  }

  .input-code {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 600;
  }

  /* ————— eye toggle ————— */
  .eye {
    appearance: none;
    border: 0;
    background: none;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    border-radius: 8px;
    transition: color 0.2s ease;
  }
  .eye:hover { color: var(--ink); }
  .eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .eye svg { display: block; }
  /* the password starts hidden, so the icon starts closed; it opens only
     while the password is actually visible */
  .eye .icon-eye { display: none; }
  .eye.is-showing .icon-eye     { display: block; }
  .eye.is-showing .icon-eye-off { display: none; }

  /* ————— messages ————— */
  .form-error {
    display: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    /* wine, not the brighter red: it carries on the warm field without
       shouting (Zohreh 2026-11-08) */
    color: #6E2C41;
    margin: -8px 0 18px;
  }
  .form-error.is-visible { display: block; animation: rise 0.25s ease; }
  /* a name in the message, not a second way to press the button below it */
  .form-error b { font-weight: 600; }

  .form-error button {
    appearance: none;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: var(--error);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
  }

  .form-note {
    display: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--slate-blue);
    margin: -8px 0 18px;
  }
  .form-note.is-visible { display: block; animation: rise 0.25s ease; }

  .row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px 0 26px;
  }

  .link-quiet {
    appearance: none;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
  }
  .link-quiet:hover { color: var(--accent-hover); text-decoration: underline; }

  .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
  }
  .remember input {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    cursor: pointer;
  }

  /* ————— buttons ————— */
  .btn-primary {
    width: 100%;
    appearance: none;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    background: var(--accent);
    border-radius: 10px;
    padding: 13px 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:active { transform: translateY(1px); }
  .btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* ————— switch links ————— */
  .switch-hint {
    text-align: center;
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--muted);
  }
  .switch-hint button {
    appearance: none;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
  }
  .switch-hint button:hover { text-decoration: underline; }

  /* signing up is the red path: the link that leads there, and the button
     that completes it */
  .switch-hint button { color: #B14A5A; }
  #form-signup .btn-primary { background: #B14A5A; }
  #form-signup .btn-primary:hover { background: #9A3F4D; }

  /* ————— footer note ————— */
  .foot {
    text-align: center;
    margin-top: 40px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    width: max-content;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .foot a { color: var(--accent); text-decoration: none; }
  .foot a:hover { color: var(--accent-hover); }

  /* ————— corner mark ————— */
  .corner-mark {
    position: fixed;
    right: 22px;
    bottom: 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 10;
  }
  /* ————— landing (Zohreh 2026-11-08) —————
     The title sits above a full-width warm band, with the two buttons on it. */
  /* warm white above the band, so the title sits on the same family of
     tones as the yellow rather than the app's cool grey */
  /* the title sits at the top of the page; the band fills the lower part,
     with the form inside it (Zohreh's markup, 2026-11-08) */
  .landing { min-height: 100vh; display: flex; flex-direction: column;
             justify-content: flex-start; background: #FDFBF6;
             position: relative; z-index: 1;
             /* edge to edge, whatever wrapper it sits in */
             width: 100vw; margin-left: calc(50% - 50vw); }
  .landing[hidden] { display: none; }

  /* the title sits near the page edge, and the "what" column is a fixed
     share so the buttons below can line up with it */
  /* white space above the title, then the title, then the band */
  /* white space above the title, then the title, then the band. The title
     sits above the band in the stack, so the yellow can rise behind it. */
  .landing-head {
    display: grid; grid-template-columns: 1fr minmax(240px, 30%);
    align-items: end; gap: 40px;
    padding: 0 clamp(20px, 3vw, 44px) 16px;
    margin-top: auto;                  /* pushed down to meet the band */
    position: relative; z-index: 2;
  }
  /* one line, so it scales with the window rather than wrapping */
  .landing-title { font-size: clamp(34px, 5.4vw, 74px); font-weight: 500;
                   line-height: 1.08; letter-spacing: -.025em;
                   color: var(--ink); margin: 0; white-space: nowrap; }
  .landing-sub { font-size: clamp(15px, 1.5vw, 19px); font-weight: 400;
                 line-height: 1.45; letter-spacing: -.005em;
                 color: #5A5A62; margin: 10px 0 0; white-space: nowrap; }
  @media (max-width: 720px) { .landing-sub { white-space: normal; max-width: 34ch; } }
  .landing-what { max-width: 36ch; padding-bottom: 6px; }
  .landing-what p { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0; }

  /* the band, in the reference's own yellows */
  .landing-band {
    position: relative; height: 55vh; flex: none;
    align-self: stretch;
    /* the landing is already full width, so the band just fills it */
    background:
      radial-gradient(38% 44% at 27% 74%, rgba(246,186,142,.42) 0%, rgba(246,186,142,0) 66%),
      radial-gradient(58% 62% at 60% 32%, rgba(250,245,205,.55) 0%, rgba(250,245,205,0) 66%),
      linear-gradient(115deg, #F7F4C2 0%, #FAF5D6 30%, #FDF3E2 58%, #FEF8EC 82%, #FFFCF6 100%);
  }
  /* the same two columns as the head above, so the buttons start exactly
     where "Understand your customers…" starts */
  .landing-acts {
    position: absolute; top: 18px; left: 0; right: 0;
    display: grid; grid-template-columns: 1fr minmax(240px, 30%);
    gap: 40px; padding: 0 clamp(20px, 3vw, 44px);
  }
  .landing-acts .acts-pair { grid-column: 2; display: flex; gap: 10px; }
  .landing-acts[hidden] { display: none; }

  /* the form sits in the middle of the band, on the page it was opened from */
  .band-form { display: none; }
  .band-form.is-open {
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0; padding: 26px 20px;
  }
  /* 160px above the band's centre, so it sits high in the yellow. A margin
     moves it exactly; padding is absorbed by the scroller. */
  .band-form.is-open .stage { margin-bottom: 320px; }



  .band-form .stage {
    max-width: 408px; margin: 0;
    max-height: 100%; overflow-y: auto;
    /* the landing page's own surface, so the two read as one product */
    padding: 26px 28px 28px;
    background: rgba(255,255,255,.3);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
  /* the band already says where you are — the wordmark would repeat it */
  .band-form .wordmark { display: none; }

  /* ————— opening a form —————
     The form fades up, and the band with its title eases down a little, so
     the page gives way to it rather than swapping in place. */
  /* a slow, settled arrival: the fade carries most of the time and the
     movement finishes early, so it comes to rest rather than stopping */
  .band-form.is-open .stage { animation: form-in .95s cubic-bezier(.16,.84,.26,1) both; }
  /* the stage carries the motion, so the form inside it just appears */
  .band-form form.is-visible { animation: none; }
  @keyframes form-in {
    0%   { opacity: 0; transform: translateY(16px); }
    55%  { opacity: .72; }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* each row follows the one above it, a beat apart */
  .band-form.is-open .field,
  .band-form.is-open .row-between,
  .band-form.is-open .btn-primary,
  .band-form.is-open .switch-hint {
    animation: row-in .8s cubic-bezier(.16,.84,.26,1) both;
  }
  .band-form.is-open .field:nth-of-type(1) { animation-delay: .10s; }
  .band-form.is-open .field:nth-of-type(2) { animation-delay: .17s; }
  .band-form.is-open .field:nth-of-type(3) { animation-delay: .24s; }
  .band-form.is-open .row-between          { animation-delay: .28s; }
  .band-form.is-open .btn-primary          { animation-delay: .34s; }
  .band-form.is-open .switch-hint          { animation-delay: .40s; }
  @keyframes row-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .landing-head, .landing-band {
    transition: transform .95s cubic-bezier(.22,.8,.3,1),
                height .95s cubic-bezier(.22,.8,.3,1);
  }
  /* Only the BAND rises — the title and subtitle stay where they are, and
     the yellow climbs up behind them to near the top of the page, making
     room for the form inside it. */
  /* the whole composition rises together: the title keeps its place just
     above the yellow, and the enlarged band carries the form */
  /* The band grows upward and the title sits directly above it in the
     column, so the title is carried up by the layout itself — no transform
     of its own, and the two can never drift apart. */
  .landing.is-opening .landing-head { transform: none; }
  /* The band GROWS as it rises, rather than being extended by a second
     element: two stacked gradients meet in a visible seam, one taller
     gradient does not. */
  /* anchored to the bottom of the page, it grows upward as it rises, so one
     continuous gradient covers everything with no seam */
  .landing.is-opening .landing-band { transform: none; height: 85vh; }

  @media (prefers-reduced-motion: reduce) {
    .band-form.is-open .stage,
    .band-form.is-open .field,
    .band-form.is-open .row-between,
    .band-form.is-open .btn-primary,
    .band-form.is-open .switch-hint { animation: none; }
    .landing-head, .landing-band { transition: none; }
    .landing.is-opening .landing-head,
    .landing.is-opening .landing-band { transform: none; }
    /* no movement means no need to grow either */
    .landing.is-opening .landing-band { height: 55vh; }
  }

  /* the primary action is black on the yellow, as it is on every other page.
     It no longer fills the column, so it is centred under the fields. */
  .band-form .btn-primary,
  .band-form #form-signup .btn-primary {
    background: var(--ink); color: #FFFFFF; box-shadow: none;
    display: block; margin-left: auto; margin-right: auto;
  }
  /* the way on to signing up should be easy to read */
  .band-form .switch-hint { font-size: 15px; margin-top: 22px; }
  .band-form .switch-hint button { font-size: 15px; }
  .band-form .btn-primary:hover,
  .band-form #form-signup .btn-primary:hover { background: #45454C; }

  /* "Get started" reads as the action it is */
  .band-form .switch-hint button { color: var(--ink); font-weight: 600; }

  .band-form .foot { margin-top: 14px; }
  .btn-start, .btn-signin {
    font-family: inherit; font-size: 13.5px; font-weight: 500;
    padding: 10px 18px; border-radius: 8px; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }
  /* Sign in is the primary action here; Get started takes the same
     outlined shape so neither competes with it */
  .btn-signin { border: 0; background: var(--ink); color: #FFFFFF; }
  .btn-signin:hover { background: #45454C; }
  .btn-start { border: 1px solid rgba(46,46,51,.22); background: transparent; color: var(--ink); }
  .btn-start:hover { border-color: var(--ink); background: rgba(255,255,255,.4); }
  .btn-start:focus-visible, .btn-signin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  @media (max-width: 760px) {
    .landing-head { grid-template-columns: 1fr; gap: 22px; }
    .landing-acts { position: static; padding: 18px clamp(20px,3vw,44px) 0; justify-content: flex-start; }
  }

