/* The public site at www.shiftat.app: the landing page, and the header and
   footer around the privacy and support pages. Loaded only by
   layouts/public, and everything is inside .site (the body), so none of it
   reaches the signed-in website. Always light, whatever the device's theme. */

.site {
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-50: #eff6ff;
  --navy: #0b1220;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #6b7280;
  --line: #e5e7eb;
  --bg: #faf7f2;
  --warm: #f1ebe1;
  --warm-line: #ebe3d6;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;

  &:lang(ar) {
    font-family: "IBM Plex Sans Arabic", Inter, ui-sans-serif, system-ui, sans-serif;
  }

  /* Shared pieces */
  .wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 15px; cursor: pointer; border: 0; white-space: nowrap; }
  .btn-blue { background: var(--blue); color: #fff; }
  .btn-blue:hover { background: var(--blue-600); }
  .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { background: #f9fafb; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
  .browser { border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(11,18,32,.18), 0 0 0 1px rgba(11,18,32,.06); overflow: hidden; }
  .browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f3f4f6; border-bottom: 1px solid var(--line); }
  .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; display: block; }
  .browser-bar span { margin-inline-start: 14px; font-size: 12px; color: var(--soft); background: #fff; border-radius: 6px; padding: 2px 12px; }
  .phone { border-radius: 44px; background: var(--navy); padding: 10px; box-shadow: 0 30px 70px rgba(11,18,32,.28); }
  .phone img { border-radius: 35px; }

  /* Header */
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.3px; }
  .logo img { width: 34px; height: 34px; }
  .nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
  .nav-links a:not(.btn):hover { color: var(--ink); }

  /* Opening: the problem */
  .hero { padding: 72px 0 36px; }
  .hero h1 { font-size: 72px; line-height: 1; letter-spacing: -3px; font-weight: 800; max-width: 980px; }
  .hero h1 s { white-space: nowrap; text-decoration-thickness: 6px; text-decoration-color: #ef4444; color: #9ca3af; }
  .hero h1 s + s { margin-inline-start: 4px; }
  .hero h1 span { color: var(--blue); }
  .hero .sub { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 36px; align-items: end; }
  .hero .sub p { font-size: 20px; color: var(--muted); }
  .hero .ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
  .uses { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
  .uses li { border: 1px solid #e4dccf; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); background: #fff; }

  /* Trusted by */
  .trusted-band { padding: 28px 0; border-top: 1px solid var(--warm-line); border-bottom: 1px solid var(--warm-line); }
  .trusted { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
  .trusted p { font-size: 14px; color: var(--soft); }
  .trusted a { display: block; transition: opacity .15s; }
  .trusted a:hover { opacity: .8; }
  .trusted img { height: 44px; width: auto; }

  /* Before and after */
  .ba { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding-block: 64px 104px; align-items: stretch; }
  .panel { border-radius: 22px; padding: 26px; }
  .panel h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 16px; }
  .before { background: var(--warm); }
  .chat { display: grid; gap: 10px; }
  .msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; max-width: 88%; }
  .msg b { display: block; font-size: 12px; color: #16a34a; }
  .msg.mine { justify-self: end; background: #dcfce7; border-radius: 14px 14px 4px 14px; }
  .msg.mixup { background: #fff1f2; }
  .after { display: flex; flex-direction: column; background: #fff; box-shadow: 0 20px 60px rgba(60,40,10,.10); padding: 26px 26px 0; overflow: hidden; }
  .after img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; }

  /* Features: two big rows, then a grid */
  .feat-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
  .feat-head h2, .split h2, .app h2, .cta h2 { font-size: 44px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.08; margin-top: 10px; }
  .feat-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
  .split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; margin-bottom: 104px; }
  .split.flip { grid-template-columns: 1.25fr 1fr; }
  .split.flip > :first-child { order: 2; }
  .split h2 { font-size: 32px; letter-spacing: -.8px; }
  .split p { color: var(--muted); font-size: 17px; margin-top: 14px; }
  .reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .reasons li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 500; }
  .checks { margin-top: 20px; display: grid; gap: 10px; }
  .checks li { display: flex; gap: 10px; font-size: 15px; }
  .checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px; }
  .duo-phones { display: flex; gap: 20px; justify-content: center; background: #fff; border-radius: 24px; padding: 40px 24px 0; overflow: hidden; height: 470px; box-shadow: 0 20px 60px rgba(60,40,10,.08); }
  .duo-phones .phone { width: 220px; flex: none; box-shadow: 0 20px 40px rgba(11,18,32,.18); }
  .grid-head { font-size: 28px; font-weight: 700; letter-spacing: -.6px; margin-bottom: 24px; }
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-bottom: 104px; }
  .tile { background: #fff; border-radius: 22px; padding: 26px; grid-column: span 2; }
  .tile.wide { grid-column: span 4; }
  .tile .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
  .tile h3 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 6px; }
  .tile p { color: var(--muted); font-size: 15px; }
  .tile img { margin-top: 20px; border-radius: 10px; border: 1px solid var(--line); }
  .tile.stack { display: grid; gap: 16px; padding: 0; background: none; }
  .tile.stack > div { background: #fff; border-radius: 22px; padding: 26px; }

  /* The staff app */
  .app { background: var(--navy); color: #fff; padding: 96px 0 0; overflow: hidden; }
  .app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .app-grid > :first-child { padding-bottom: 96px; }
  .app p { color: #c7d2fe; font-size: 17px; margin: 14px 0 26px; max-width: 460px; }
  .app .eyebrow { color: #93b4ff; }
  .app .phones { display: flex; gap: 18px; justify-content: center; margin-bottom: -120px; }
  .app .phones .phone { width: 220px; background: #1f2a44; }
  .app .phones .phone:nth-child(2) { transform: translateY(-40px); }
  /* The official badges, at the same height. Each has its own border. */
  .badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .badge { display: inline-block; line-height: 0; }
  .badge img { height: 48px; width: auto; }

  /* Getting started and the close */
  .steps { padding: 104px 0 0; }
  .steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
  .steps li { counter-increment: step; padding: 26px; border-radius: 22px; background: #fff; }
  .steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px; }
  .steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .steps p { color: var(--muted); font-size: 15px; }
  .steps .address { direction: ltr; unicode-bidi: isolate; }
  .cta { padding: 104px 0; text-align: center; }
  .cta h2 { font-size: 56px; letter-spacing: -2px; line-height: 1.02; }
  .cta p { font-size: 19px; color: var(--muted); margin: 16px 0 30px; }

  /* The privacy and support pages */
  .document { flex: 1; padding: 24px 16px 64px; }

  /* Footer */
  footer { margin-top: auto; border-top: 1px solid var(--warm-line); padding: 32px 0; font-size: 14px; color: var(--soft); }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
  footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
  footer a:hover, footer button:hover { color: var(--ink); }
  footer button { cursor: pointer; }
  footer #company-note { margin-top: 20px; font-size: 13px; line-height: 1.6; display: block; }
  footer #company-note .legal { font-size: 12px; }

  /* Signing in: the company's address */
  dialog { margin: auto; border: 0; border-radius: 16px; padding: 28px; width: min(420px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
  dialog::backdrop { background: rgba(11,18,32,.5); }
  .sign-in-card { max-width: 420px; margin: 48px auto; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(60,40,10,.10); }
  .sign-in h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
  .sign-in > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
  .sign-in .alert { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 14px; }
  .addr { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; direction: ltr; }
  .addr:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
  .addr input { flex: 1; border: 0; padding: 12px; font: inherit; font-size: 16px; outline: none; min-width: 0; }
  .addr span { padding: 12px; background: #f9fafb; color: var(--soft); border-inline-start: 1px solid var(--line); }
  .sign-in .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

  /* Arabic: no negative tracking (it breaks the joins), and roomier lines. */
  &:lang(ar) {
    h1, h2, h3, .logo, .eyebrow, .btn { letter-spacing: 0; }
    .eyebrow, .panel h2 { text-transform: none; font-size: 14px; }
    .hero h1 { line-height: 1.3; font-size: 66px; }
    .hero h1 s { text-decoration-thickness: 5px; }
    .feat-head { max-width: 780px; }
    .feat-head h2, .split h2, .app h2, .cta h2 { line-height: 1.3; }
    .msg { border-radius: 14px 14px 4px 14px; }
    .msg.mine { border-radius: 14px 14px 14px 4px; }
    .after img { object-position: right top; }
    .checks li::before { margin-top: 3px; }
  }

  @media (max-width: 760px) {
    .wrap { padding-inline: 16px; }
    .nav-links { gap: 10px; }
    .nav-links a:not(.btn) { display: none; }
    .nav-links .btn { padding: 9px 12px; font-size: 14px; }
    .hero h1 { font-size: 44px; letter-spacing: -1.6px; }
    .hero .sub, .ba, .split, .split.flip, .app-grid, .steps ol { grid-template-columns: 1fr; }
    .split.flip > :first-child { order: 0; }
    .hero .ctas { justify-content: flex-start; }
    .bento { grid-template-columns: 1fr; }
    .tile, .tile.wide { grid-column: auto; }
    .feat-head h2, .split h2, .app h2, .cta h2 { font-size: 30px; }
    .split { margin-bottom: 64px; gap: 28px; }
    .duo-phones { height: 360px; }
    .duo-phones .phone, .app .phones .phone { width: 150px; }
    .trusted img { height: 36px; }
    &:lang(ar) .hero h1 { font-size: 40px; }
  }
}
