:root {
      --brand: #912D2D;
      --brand-2: #912D2D;
      --text: #222222;
      --muted: #717171;
      --line: #ebebeb;
      --bg: #ffffff;
      --card-shadow: 0 6px 20px rgba(0,0,0,0.08);
      --radius: 12px;
      --green: #762929;
    }

    * { box-sizing: border-box; }

    /* 1) Page = header / center / footer (no vertical scroll) */
html, body {
    height: 100%;
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: "Airbnb Cereal", "AirbnbCereal", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  }
  
  body {
    min-height: 100dvh;                     /* mobile-safe viewport */
    display: grid;
    grid-template-rows: auto 1fr auto;      /* header / main / footer */
    overflow-y: hidden;                      /* ← no scrolling */
  }
  
  /* 2) Center the card perfectly between header & footer */
  .wrapper {
    display: grid;
    place-items: center;                     /* centers horizontally & vertically */
    min-height: 0;                           /* don't force extra height */
    padding: 0;                              /* remove old top padding */
  }

  :root { --nudge-y: 0px; }
  .wrapper.nudge-var { transform: translateY(var(--nudge-y)); }
  
  /* 3) Footer in normal flow (not sticky) */
  .bottombar {
    border-top: 1.5px solid var(--line);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    /* position: sticky;  ⟵ remove this to avoid creating scroll */
  }
  

    .topbar { display:flex; align-items:center; justify-content:space-between; padding:8px 28px; border-bottom:1.5px solid var(--line); }
    .topbar-left { display:flex; align-items:center; gap:10px; }
    .logoimg { height:52px; width:auto; display:block; }
    .topbar-right { display:flex; gap:14px; align-items:center; color:var(--text); }
    .icon-btn { width:32px; height:32px; border:1px solid var(--line); border-radius:999px; display:grid; place-items:center; background:#fff; cursor:pointer; }
	
	@font-face{
	  font-family: "PB";
	  src: url("Assets/pb-font.ttf") format("truetype");
	  font-display: swap;
	  font-style: normal;
	}

	/* keep your existing .topbar rules; just add position:relative */
	.topbar { position: relative;
	z-index: 10; }

	.topbar-center{
	  position: absolute;
	  left: 50%;
	  top: 50%;
	  transform: translate(-50%, -50%); /* true middle of the topbar box */
	  margin-top: 4px;
	  pointer-events: none; /* avoid blocking clicks on underlying area */
	}

	.topbar-title{
	  pointer-events: auto;
	  font-family: "PB", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	  font-weight: 600;
	  font-size: 36px;
	  line-height: 1;
	  color: #762929;
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
	  max-width: min(60vw, calc(100% - 240px));
	  letter-spacing: -0.03em; 
	}

    .card { width:760px; max-width:calc(100vw - 40px); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--card-shadow); background:#fff; }
    .card-inner { padding:28px 28px 24px; }
    .headline { text-align:center; font-weight:600; font-size:14px; color:var(--text); }
    .section-divider {
        height: 1px;
        background: var(--line);
        margin: 18px 0 32px;
      }

    @font-face {
    font-family: 'MyTallFont';
    src: url('Assets/welcome3.ttf') format('truetype');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
    }
    h1 {
        margin: 8px 0 24px;
        font-size: 26px;
        font-weight: 700;
        font-family: 'MyTallFont', "Airbnb Cereal", Inter, -apple-system, BlinkMacSystemFont,
                     "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
        line-height: 1.15;
        letter-spacing: -0.03em; 
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

    .field { margin:14px 0; }
    .label-top { display:block; font-weight:600; font-size:14px; margin:0 0 6px 2px; color:var(--text); }
    .input { width:100%; height:52px; border:1px solid var(--line); border-radius:12px; padding:0 14px; display:flex; align-items:center; }
    .input input { border:0; outline:0; flex:1; font-size:16px; background:transparent; }

    .legal { font-size:12px; color:var(--muted); margin-top:8px; }
    .link { color:#4b65e9; text-decoration:underline; text-underline-offset:2px; }

    .primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
        width: 100%;
        height: 52px;
        border-radius: 12px;
        border: 0;
        cursor: pointer;
      
        background: #912D2D;
        color: #fff;
        font-weight: 600;
        font-size: 16px;
      
        transition: background-color 180ms ease-in-out, filter 120ms ease-in-out;
      }
      
      .primary:hover {
        background: #762929;
      }
      
      .primary:focus-visible {
        outline: 2px solid #000;
        outline-offset: 2px;
      }
      .primary:active {
        filter: brightness(0.96);
      }

      .note {
        display: flex; gap: 12px; align-items: center;
        padding: 14px 16px;
        border: 1px solid #e6e6e6;      /* gray border */
        background: #f7f7f7;            /* light gray bg */
        border-radius: 12px;
        margin: 6px 0 18px;             /* sits above the field */
      }
      .note-title { font-weight: 600; font-size: 14px; }
      .note-desc  { color: var(--muted); font-size: 14px; }

      .note svg{
        width: 24px;
        height: 24px;
      }
      
      @media (prefers-reduced-motion: reduce) {
        .primary { transition: none; }
      }
      
    .hr { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:18px 0 8px; color:var(--muted); font-size:12px; }
    .hr:before, .hr:after { content:""; height:1px; background:var(--line); display:block; }

    .oauth-list { display:grid; gap:12px; }
    .oauth-btn { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:52px; padding:0 14px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-weight:500; color:var(--text); text-align:center; font-size:16px; }
    .oauth-btn:hover { background:#fafafa; }
    .oauth-icon { position:absolute; left:14px; width:22px; height:22px; display:grid; place-items:center; }

    .inline-cta {
        margin-top: 12px;
        text-align: center;
        font-size: 14px;
        color: var(--muted);
      }
      .inline-cta a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
      }
      .inline-cta a:focus-visible {
        outline: 2px solid #000;
        outline-offset: 2px;
        border-radius: 4px;
      }

      .alert {
        display: flex; gap: 12px; align-items: center;
        padding: 14px 16px; border: 1px solid #f2b8b8; background: #fff8f8; border-radius: 12px;
        margin: 14px 0 18px;
      }
      .alert-title { font-weight: 600; font-size: 14px; }
      .alert-desc { color: var(--muted); font-size: 14px; }

      .alert {
        display: flex; gap: 12px; align-items: center;
        padding: 14px 16px; border: 1px solid #f2b8b8; background: #fff8f8; border-radius: 12px;
        margin: 14px 0 18px;
      }
      .alert-title { font-weight: 600; font-size: 14px; }
      .alert-desc { color: var(--muted); font-size: 14px; }
    
      .back-btn { display:inline-flex; align-items:center; justify-content:center; height:48px; padding:0 28px; border-radius:25px; border:2px solid var(--green); color:var(--green); background:#fff; font-size:16px; font-weight:600; cursor:pointer; transition: background-color 160ms ease-in-out, border-color 160ms ease-in-out; }
    .back-btn:hover { background-color: rgba(118,41,41,0.05); }
    .back-btn:active { filter: brightness(0.98); }
    .back-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
    .show-btn{
      position:absolute; right:8px; top:50%; transform:translateY(-50%);
      border:0; background:transparent; color:#762929;
      font-weight:600; cursor:pointer; padding:6px 8px; border-radius:8px;
    }

    .next-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 48px;
      padding: 0 28px;
      border-radius: 25px;
      border: 2px solid var(--green);
      color: white;
      background: #762929;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 160ms ease-in-out, border-color 160ms ease-in-out;
    }
    .next-btn:hover { background-color: rgb(118,41,41); }
    .next-btn:active { filter: brightness(0.98); }
    .next-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

    @media (max-width:640px){ .card-inner{ padding:22px; } }
