:root{
  --bg:#f4f5f7;                 /* neutral light grey */
  --text:#111;
  --muted:#666;
  --line:rgba(0,0,0,.06);

  --icon-shadow: 0 8px 18px rgba(0,0,0,.08);
  --r:22px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background: var(--bg);
  color:var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "SF Pro Display", system-ui, sans-serif;
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:28px 18px 60px;
}

.brand{
  margin-bottom:28px;
}

.brand .title{
  font-size:20px;
  font-weight:800;
  letter-spacing:.3px;
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns: repeat(4, 88px);
  gap:28px 26px;
  justify-content:center;
}

/* APP TILE */

.app{
  width:88px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* ICON */

.icon{
  width:76px;
  height:76px;
  border-radius:var(--r);
  display:grid;
  place-items:center;
  font-size:36px;
  box-shadow: var(--icon-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.icon:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* soft gradients per type */

.icon.default{
  background: linear-gradient(180deg, #ffffff, #ececec);
}

.icon.flight{
  background: linear-gradient(180deg, #e8f1ff, #d8e6ff);
}

.icon.wealth{
  background: linear-gradient(180deg, #fff3cc, #ffe38a);
}

.icon.run{
  background: linear-gradient(180deg, #ffeaea, #ffd6d6);
}

.icon.music{
  background: linear-gradient(180deg, #f3e8ff, #e6d6ff);
}

.icon.travel{
  background: linear-gradient(180deg, #e8fff5, #d6ffe9);
}

.icon.london{
  background: linear-gradient(180deg, #e6ecff, #ccd8ff);
}

.label{
  width:100%;
  text-align:center;
  font-size:12px;
  font-weight:600;
  color:#333;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* small screens still 4 per row if possible */
@media (max-width: 420px){
  .grid{
    grid-template-columns: repeat(3, 88px);
  }
}

/* ===== Shared tOS Header ===== */

.tos-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin: 4px 0 18px;
}

.tos-header-left{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.tos-title-link{
  text-decoration:none;
  color:inherit;
}

.tos-title{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
  margin:0;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tos-title-link:hover .tos-title{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tos-subtitle{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.2px;
}

.tos-header-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}