/* GrappleLogix website styles. Colors match the GrappleLogix app. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/outfit-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/outfit-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/outfit-latin-900-normal.woff2) format("woff2"); }

:root {
  /* brand (from the app) */
  --bg: #120C20;        /* app background */
  --s1: #1B1430;        /* surface */
  --s3: #312652;        /* raised surface */
  --border: #3A2F5C;
  --brand: #3C2D86;     /* brand purple */
  --brand-300: #9D8CFF; /* links / focus */
  --accent: #FF5A32;    /* primary action */
  --on-accent: #120C20;
  --accent-pressed: #E8471F;
  --text: #F6F3FF;
  --muted: #B3AACB;
  --logo-red: #E5262B;  /* wordmark red (app .wm-red) */
  --art-strength: .8;   /* opacity of the tinted art: peak #3C2D86 -> ~#34266F on #120C20 (about 1.55:1, faint). Muted text stays >= 4.98:1 even on full #3C2D86. */
  --frame: #0A0713;
  /* type & shape */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --pw: min(74vw, 290px); /* phone screen width */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); overflow-x: hidden; }
h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; }
a { color: var(--brand-300); }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; }
.skip { position: absolute; left: var(--sp-4); top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--sp-4); }

/* Header + corner labels (reference layout: small labels in the corners) */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5); }
.brand { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.wordmark { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 20px; letter-spacing: .01em; color: #fff; line-height: 1; } /* >=18.67px bold = large text (3:1); logo red is 4.22:1 on --bg */
.wordmark .wm-red { color: var(--logo-red); }
.corner { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.corner-tr { display: none; }
.corner-bl, .corner-br { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 80px var(--sp-5) var(--sp-7); display: grid; gap: var(--sp-5); justify-items: center; }
.hero { background-color: var(--bg); } /* dark fallback if the art doesn't load */
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-art picture { display: contents; }
.hero-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: var(--art-strength); }
/* Phones: dim the top band behind the headline, open in the middle and bottom */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,32,.6) 0%, rgba(18,12,32,.5) 18%, rgba(18,12,32,.15) 30%, rgba(18,12,32,0) 38%, rgba(18,12,32,0) 88%, rgba(18,12,32,.55) 100%); }
.hero-copy { max-width: 36rem; text-align: center; display: grid; gap: var(--sp-4); justify-items: center; }
h1 { font-size: clamp(28px, 7.8vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.subhead { font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--text); max-width: 34rem; }
.lede { display: none; color: var(--muted); font-size: 16px; max-width: 34rem; } /* hidden on phones to keep the phone mockup high */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2) var(--sp-5); }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--brand-300); text-underline-offset: 3px; }
.trust { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; } /* phones: one item per line */
@media (min-width: 640px) {
  .trust { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0; }
  .trust li + li::before { content: "\00B7"; padding: 0 .5em; }
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-input, #857BB3); }
.btn.ghost:hover { background: var(--s1); }
.section-intro { color: var(--muted); text-align: center; max-width: 36rem; margin: var(--sp-3) auto 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-md); font-weight: 700; text-decoration: none; transition: background .15s ease-out, transform .15s ease-out; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-pressed); }
.btn.primary:active { transform: scale(.98); }

/* Phone (CSS device frame) */
.stage { display: grid; justify-items: center; }
.carousel { display: grid; gap: var(--sp-5); justify-items: center; }
.phone { position: relative; width: calc(var(--pw) + 22px); padding: 11px; border-radius: calc(var(--pw) * .15); background: var(--frame);
  box-shadow: inset 0 0 0 2px #2A2140, inset 0 0 0 5px var(--frame), inset 0 0 0 6px #241B3A, 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(157,140,255,.12); }
.phone-btn { position: absolute; width: 3px; background: #2A2140; border-radius: 2px; }
.phone-btn-a { left: -3px; top: 18%; height: 7%; }
.phone-btn-b { left: -3px; top: 28%; height: 11%; }
.phone-btn-c { right: -3px; top: 24%; height: 15%; }
.screen { position: relative; border-radius: calc(var(--pw) * .12); overflow: hidden; background: var(--bg); }
.statusbar { height: calc(var(--pw) * .1); display: flex; align-items: center; justify-content: space-between; padding: 0 9%; font-size: calc(var(--pw) * .042); font-weight: 700; color: var(--text); background: var(--bg); }
.island { width: 32%; height: 58%; border-radius: 999px; background: #000; }
.sb-icons { width: 9%; height: 28%; border-radius: 3px; background: linear-gradient(90deg, var(--text) 70%, transparent 70%) left / 100% 100% no-repeat; opacity: .9; outline: 1px solid var(--text); outline-offset: 1px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: auto; aspect-ratio: 620 / 1342; }

/* Caption + controls */
.caption { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; max-width: 22rem; }
.cap-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.cap-title { font-size: 22px; line-height: 1.2; font-weight: 800; }
.cap-text { color: var(--muted); font-size: 15px; min-height: 4.65em; }
.controls { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--s1); color: var(--text); cursor: pointer; transition: background .15s ease-out; }
.arrow:hover { background: var(--s3); }
.arrow:disabled { opacity: .4; cursor: default; }
.arrow svg, .feature-list svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; }
.dot { width: 28px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #6F6690; transition: width .2s ease-out, background .2s ease-out; }
.dot[aria-current="true"]::before { width: 20px; background: var(--accent); }

/* Features strip */
.features { padding: var(--sp-8) var(--sp-5); border-top: 1px solid var(--border); background: var(--s1); }
.features h2, .download h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; font-weight: 800; text-align: center; }
.feature-list { list-style: none; margin: var(--sp-6) auto 0; padding: 0; max-width: 1120px; display: grid; gap: var(--sp-6); }
.feature-list li { display: grid; gap: var(--sp-2); align-content: start; }
.feature-list svg { color: var(--accent); width: 28px; height: 28px; margin-bottom: var(--sp-1); }
.feature-list h3 { font-size: 18px; font-weight: 700; }
.feature-list p { color: var(--muted); font-size: 15px; }

/* Download */
.download { padding: var(--sp-8) var(--sp-5); display: grid; gap: var(--sp-4); justify-items: center; text-align: center; }
.dl-logo { width: min(240px, 70vw); height: auto; margin-bottom: var(--sp-2); }
.download > p { color: var(--muted); max-width: 30rem; }
.dl-contact { font-size: 15px; }

.site-foot { padding: var(--sp-6) var(--sp-5) var(--sp-7); border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; display: grid; gap: var(--sp-2); }

/* Tablet+ */
@media (min-width: 640px) {
  .lede { display: block; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: copy | phone | caption, with corner labels like the reference */
@media (min-width: 1024px) {
  :root { --pw: min(300px, calc((100svh - 190px) * .43)); --pw: clamp(240px, calc((100svh - 190px) * .43), 300px); }
  .site-head { padding: var(--sp-5) var(--sp-7); }
  .corner-tr { display: block; }
  .hero-shade { background: linear-gradient(90deg, rgba(18,12,32,.5) 0%, rgba(18,12,32,.22) 28%, rgba(18,12,32,0) 44%), linear-gradient(0deg, rgba(18,12,32,.45) 0%, rgba(18,12,32,0) 16%); }
  .hero { min-height: max(100svh, 760px); grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-7); padding: 96px var(--sp-7) 80px; }
  .hero-copy { grid-column: 1; grid-row: 1; text-align: left; justify-items: start; max-width: 32rem; justify-self: end; }
  .cta-row { justify-content: flex-start; }
  .trust { justify-content: flex-start; }
  .lede { font-size: 15px; }
  h1 { font-size: clamp(36px, 3.2vw, 48px); }
  .stage { grid-column: 2 / 4; grid-row: 1; justify-self: start; }
  .carousel { grid-template-columns: auto minmax(0, 20rem); align-items: center; gap: var(--sp-7); }
  .caption { justify-items: start; text-align: left; }
  .corner-bl, .corner-br { display: block; position: absolute; bottom: var(--sp-5); }
  .corner-bl { left: var(--sp-7); } .corner-br { right: var(--sp-7); }
  .feature-list { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Tablet (768-1023, stacked layout): wide art as a band behind the phone so the edge wrestlers aren't cropped away */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-art-img { inset: auto; top: 400px; left: -12%; width: 124%; height: auto; aspect-ratio: 2400 / 1350; }
}

/* Phones: stack the two buttons at equal width and tighten the hero copy so the phone mockup stays high */
@media (max-width: 639px) {
  .hero-copy { gap: var(--sp-3); }
  .cta-row { flex-direction: column; gap: var(--sp-2); width: 100%; }
  .cta-row .btn { width: min(100%, 320px); }
  .text-link { min-height: 44px; }
  .trust { font-size: 13px; line-height: 1.35; gap: 0; }
}

/* ---- Devices section: laptop + tablet + phone ---- */
.devices { padding: var(--sp-8) var(--sp-5); border-top: 1px solid var(--border); }
.devices-copy { max-width: 40rem; margin: 0 auto; text-align: center; display: grid; gap: var(--sp-3); }
.devices-copy h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; font-weight: 800; text-wrap: balance; }
.devices-copy p { color: var(--muted); }
.device-group { display: grid; gap: var(--sp-7); justify-items: center; margin-top: var(--sp-6); }
.laptop { position: relative; width: min(92%, 560px); margin: 0; }
.laptop-screen { padding: 2.2% 2.2% 3%; border-radius: 14px 14px 4px 4px; background: var(--frame);
  box-shadow: inset 0 0 0 2px #2A2140, 0 30px 70px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(157,140,255,.12); }
.laptop-screen img { width: 100%; height: auto; aspect-ratio: 1280 / 800; border-radius: 3px; }
.laptop-base { position: relative; height: clamp(10px, 1.8vw, 16px); width: 108%; margin-left: -4%; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #3A2F5C, #1B1430); }
.laptop-base::before { content: ""; position: absolute; left: 41%; width: 18%; top: 0; height: 45%; border-radius: 0 0 8px 8px; background: var(--frame); }
.device-cap { margin-top: var(--sp-3); text-align: center; font-size: 13px; color: var(--muted); }
.tablet-carousel { display: grid; gap: var(--sp-5); justify-items: center; }
.tablet { --tw: min(80vw, 340px); position: relative; width: calc(var(--tw) + 28px); padding: 14px; border-radius: 30px; background: var(--frame);
  box-shadow: inset 0 0 0 2px #2A2140, inset 0 0 0 5px var(--frame), inset 0 0 0 6px #241B3A, 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(157,140,255,.12); }
.tablet-cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2A2140; }
.tablet-screen { border-radius: 16px; overflow: hidden; background: var(--bg); }
.tablet .slide img { aspect-ratio: 840 / 1209; }
.mini-phone { display: none; }

@media (min-width: 1024px) {
  .device-group { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 0; max-width: 1200px; padding-left: 48px; margin: var(--sp-7) auto 0; justify-items: stretch; }
  .laptop { grid-column: 1 / 10; grid-row: 1; width: auto; margin-top: 88px; margin-bottom: 40px; }
  .tablet-carousel { grid-column: 9 / 13; grid-row: 1; z-index: 2; justify-self: start; }
  .tablet { --tw: 290px; }
  .tablet-caption { max-width: 318px; }
  .mini-phone { display: block; position: absolute; z-index: 3; left: -40px; bottom: -28px; width: 128px; padding: 6px; border-radius: 22px; background: var(--frame);
    box-shadow: inset 0 0 0 2px #2A2140, 0 20px 50px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(157,140,255,.12); }
  .mini-phone-screen { border-radius: 17px; overflow: hidden; }
  .mini-phone-screen img { width: 100%; height: auto; aspect-ratio: 620 / 1342; }
  .laptop .device-cap { text-align: left; padding-left: 112px; }
}

/* Cookie notice. Fixed, so it never moves page content. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: var(--sp-4) max(var(--sp-4), env(safe-area-inset-right)) max(var(--sp-4), env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-left)); background: var(--s1); border-top: 1px solid #857BB3; box-shadow: 0 -8px 24px rgba(0,0,0,.45); color: var(--text); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.cookie-title { margin: 0 0 var(--sp-1); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.cookie-title:focus { outline: none; }
.cookie-title:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; }
.cookie-copy p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cookie-btn { min-height: 44px; padding: 0 var(--sp-5); background: var(--s3); color: var(--text); border: 1px solid #857BB3; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-btn:hover { background: var(--border); }
.cookie-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #857BB3; }
@media (min-width: 768px) {
  .cookie-inner { flex-direction: row; align-items: center; gap: var(--sp-6); }
  .cookie-copy { flex: 1; }
  .cookie-actions { grid-template-columns: 140px 140px; }
}
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-300); text-decoration: underline; cursor: pointer; }

/* Privacy page */
.legal-page .site-head { position: static; }
.legal { max-width: 46rem; margin: 0 auto; padding: var(--sp-5) var(--sp-5) var(--sp-8); }
.legal h1 { font-size: clamp(30px, 7vw, 44px); }
.legal-date { margin-top: var(--sp-2); color: var(--muted); }
.legal h2 { margin-top: var(--sp-7); font-size: clamp(21px, 5vw, 26px); line-height: 1.2; font-weight: 800; }
.legal p { margin-top: var(--sp-4); }
.legal ul { margin: var(--sp-4) 0 0; padding-left: 1.25rem; display: grid; gap: var(--sp-3); }
.legal li::marker { color: var(--brand-300); }
.legal strong { font-weight: 700; }
.legal code { font-size: .9em; background: var(--s3); padding: 1px 6px; border-radius: 6px; }
.legal .linklike { font-size: inherit; }
.legal-table { width: 100%; margin-top: var(--sp-5); border-collapse: collapse; font-size: 15px; }
.legal-table caption { text-align: left; font-weight: 700; margin-bottom: var(--sp-2); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.legal-table th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { display: block; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
  .legal-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--sp-3); padding: var(--sp-1) 0; border: 0; }
  .legal-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: 13px; }
}
@media (min-width: 1024px) { .legal { padding-top: var(--sp-6); } }
