/* 697.apps website — same visual language as 697 Studio (neo-brutalist: cream, black outlines, hard shadows). */
:root {
  --yellow: #FFE000; --blue: #238BFF; --red: #FF4148; --green: #14D99A; --cream: #F8F5E9; --black: #080808;
  --muted: #55534c; --bw: 2.5px; --radius: 20px;
  --font-display: "Cairo", "Inter", sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--cream); color: var(--black); }
body { font-family: var(--font-body); background: var(--cream); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 900; line-height: 1.25; }

/* buttons + cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.2rem; border-radius: 14px;
  font-weight: 700; font-size: 1rem; border: var(--bw) solid var(--black); background: #fff; color: var(--black); box-shadow: 3px 3px 0 var(--black);
  transition: transform .08s, box-shadow .08s; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }
.btn-primary { background: var(--yellow); }
.card { background: #fff; border: var(--bw) solid var(--black); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--black); }
.tile-yellow { background: var(--yellow); color: var(--black); } .tile-blue { background: var(--blue); color: #fff; }
.tile-green { background: var(--green); color: var(--black); } .tile-red { background: var(--red); color: #fff; }

/* header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand .name { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; }
.brand .handle { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* hero — same split banner as the dashboard */
.hero { position: relative; overflow: hidden; border-radius: 28px; background: var(--black); color: var(--cream); border: var(--bw) solid var(--black);
  box-shadow: 6px 6px 0 var(--black); margin-top: 8px; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 50%; left: 0; right: auto; background: var(--blue);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 32px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero p { margin-top: 12px; color: rgba(248, 245, 233, .82); font-size: 1.05rem; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero .tag { font-weight: 700; font-size: .95rem; padding: 4px 14px; border-radius: 10px; border: 2px solid var(--black); }
.hero .punch { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--yellow); margin-top: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .logo { width: clamp(170px, 26vw, 280px); filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .6)); }

/* pillars strip (what the account is about) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.pillars .card { padding: 16px; }
.pillars b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; }
.pillars span { font-size: .9rem; opacity: .9; }

/* apps section */
.section { margin-top: 44px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; }
.section-title::before { content: ""; width: 14px; height: 30px; background: var(--yellow); border: var(--bw) solid var(--black); border-radius: 4px; }
.section-sub { color: var(--muted); margin-top: 6px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
/* App cards preserve the existing brand tiles, borders and hard shadows. */
.app-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-link { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 14px; }
.app-icon { width: 80px; height: 80px; object-fit: cover; border-radius: 20px; border: var(--bw) solid var(--black); }
.app-card h3 { font-size: 1.45rem; overflow-wrap: anywhere; }
.app-card p { flex: 1; }
.app-card .btn { align-self: flex-start; margin-top: auto; min-height: 46px; }
a:focus-visible { outline: 3px solid var(--black); outline-offset: 5px; }
.app-card.tile-blue a:focus-visible, .app-card.tile-red a:focus-visible { outline-color: var(--cream); }
.section { scroll-margin-top: 20px; }

/* footer */
.site-footer { margin: 56px 0 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: var(--bw) solid var(--black); padding-top: 18px; }
.site-footer small { color: var(--muted); }

@media (max-width: 760px) {
  .hero::before { width: 100%; clip-path: polygon(0 55%, 100% 40%, 100% 100%, 0 100%); }
  .hero-inner { grid-template-columns: 1fr; padding: 24px; }
  .hero .logo { justify-self: center; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}
