/* GripGuard by Sun Synergy: standalone landing page
   Palette taken from sunsynergy.my (warm charcoal, beige, tan) with its safety orange as the accent.
   Headlines: Termina (Sun Synergy's Adobe Fonts kit), fallback Archivo Expanded.
   Body: Helvetica Neue per Edwin's request (Termina stays on headlines, titles and section heads only). */

:root {
  --ink: #262320;
  --ink-2: #34302c;
  --paper: #f2efe9;
  --paper-2: #e8e2d6;
  --white: #fffdf9;
  --tan: #917e67;
  --orange: #d14119;
  --orange-dark: #a8330f;
  --muted: #5f5b57;
  --line: rgba(38, 35, 32, 0.14);
  --line-light: rgba(255, 253, 249, 0.16);
  --marble: #ece8e1;
  --mark: #ffe08a;

  --display: termina, "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --max: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, .h2, .grade__name, .brand__mark, .closing__line, .steps__n, .creds__v--big {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.04; }
.h2 { font-size: clamp(1.45rem, 4.2vw, 2.4rem); line-height: 1.12; margin-bottom: 0.8em; max-width: 22ch; }
.h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5em; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1em;
}
.eyebrow--light { color: #ff8a63; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 34ch; margin-top: 1.1em; }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 1.2em; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.8em 1.4em;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--orange); border-radius: var(--radius);
  cursor: pointer; transition: background .18s, transform .18s, border-color .18s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0.45em 1.1em; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn__note { font-weight: 500; font-size: 0.82em; opacity: 0.75; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.btn-row .btn { flex: 1 1 230px; white-space: nowrap; }

/* ---------- review bar + "to confirm" marks ---------- */
.reviewbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px var(--gutter);
  background: var(--mark); color: var(--ink); font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.reviewbar p { margin: 0; }
.reviewbar__toggle {
  font: inherit; font-weight: 700; padding: 6px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
}
mark.tc { background: none; color: inherit; }
.review mark.tc {
  background: linear-gradient(transparent 8%, var(--mark) 8%, var(--mark) 92%, transparent 92%);
  padding: 0 2px; position: relative;
}
.review mark.tc::after {
  content: "To confirm: " attr(data-note);
  display: inline-block; margin-left: 6px; padding: 0 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .04em; line-height: 1.7;
  background: var(--ink); color: var(--mark); border-radius: 3px; vertical-align: 0.15em;
}
.review mark.tc--empty::after { content: attr(data-note); }
body:not(.review) .review-only { display: none !important; }
body:not(.review) .tc--empty { visibility: hidden; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.review .site-header { top: 44px; }
@media (max-width: 760px) {
  .reviewbar { position: relative; }
  .review .site-header { top: 0; }
  .review .section { scroll-margin-top: 64px; }
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; flex-wrap: wrap; }
.brand__mark { font-size: 1.15rem; }
.brand__mark::first-letter { color: var(--orange); }
.brand__by { font-size: 0.78rem; color: var(--muted); }
.site-nav { display: none; gap: 24px; font-size: 0.95rem; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--orange); }
@media (min-width: 820px) { .site-nav { display: flex; } }

/* ---------- hazard tape ---------- */
.tape {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--ink) 14px 28px);
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--white); }
.hero__grid { display: grid; gap: 40px; padding-top: 44px; padding-bottom: 48px; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 72px; padding-bottom: 80px; }
}
.hero__copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* kick test */
.kick {
  margin: 0; padding: 18px; background: var(--ink); color: var(--white);
  border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(38,35,32,.55);
}
.kick__lane { position: relative; margin-bottom: 14px; }
.kick__label {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(38,35,32,.82); padding: 3px 8px; border-radius: 3px;
}
.kick__label--gg { background: var(--orange); }
.floor {
  position: relative; height: 130px; overflow: hidden; border-radius: 4px;
  /* polished marble: soft veins over warm white */
  background:
    linear-gradient(115deg, transparent 40%, rgba(145,126,103,.18) 41%, transparent 43%),
    linear-gradient(160deg, transparent 62%, rgba(145,126,103,.14) 63%, transparent 66%),
    radial-gradient(120% 90% at 20% 10%, #fbf9f5, var(--marble));
}
.mat {
  position: absolute; left: 9%; right: 9%; top: 26%; bottom: 14%;
  border-radius: 2px; transition: transform .5s cubic-bezier(.3,.7,.3,1);
}
.mat--loose {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 9px),
    #8fa6b8;
  box-shadow: 0 6px 12px -6px rgba(0,0,0,.4);
}
.curl {
  position: absolute; right: 0; top: 0; width: 0; height: 0;
  background: linear-gradient(225deg, var(--marble) 50%, #6f889b 50%);
  transition: width .45s .15s, height .45s .15s;
  box-shadow: -3px 3px 6px rgba(0,0,0,.25);
}
.mat--gg {
  /* the GripGuard logo printed into the membrane, as a repeating tile */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34'%3E%3Ctext x='4' y='14' font-family='Arial,sans-serif' font-size='9' font-weight='700' letter-spacing='1.6' fill='%23d14119' fill-opacity='.38'%3EGRIPGUARD%3C/text%3E%3Ctext x='64' y='31' font-family='Arial,sans-serif' font-size='9' font-weight='700' letter-spacing='1.6' fill='%23d14119' fill-opacity='.38'%3EGRIPGUARD%3C/text%3E%3C/svg%3E") 0 0 / 120px 34px,
    #fdfbf7;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 0 0 1px rgba(38,35,32,.08);
}
.grit { position: absolute; left: 9%; right: 9%; top: 26%; bottom: 14%; pointer-events: none; }
.grit i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #5a4a3a;
  opacity: 0; transition: opacity .3s .45s;
}
.grit i:nth-child(1) { left: 6%; top: 30%; }
.grit i:nth-child(2) { left: 3%; top: 62%; width: 3px; height: 3px; }
.grit i:nth-child(3) { left: 10%; top: 78%; }
.grit i:nth-child(4) { left: 1%; top: 45%; width: 5px; height: 3px; }
.grit i:nth-child(5) { left: 14%; top: 18%; width: 3px; height: 3px; }

.kick.is-kicked .mat--loose { transform: translate(22px, 5px) rotate(-3.5deg); }
.kick.is-kicked .curl { width: 34px; height: 34px; }
.kick.is-kicked .grit i { opacity: .85; }
.kick.is-kicked .mat--gg { animation: hold .32s ease-out; }
@keyframes hold { 30% { transform: translateX(1px); } 60% { transform: translateX(-1px); } }

.kick figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; color: #d9d2c6; margin-top: 4px; }
.kick__btn {
  font: inherit; font-weight: 700; color: var(--white); background: transparent;
  border: 1.5px solid var(--line-light); border-radius: var(--radius); padding: 8px 14px; cursor: pointer;
}
.kick__btn:hover { border-color: var(--white); }

/* ---------- sections ---------- */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.review .section { scroll-margin-top: 108px; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p { color: #ddd6ca; }

.split { display: grid; gap: 8px 48px; max-width: 980px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.pull {
  font-family: var(--display); font-stretch: 112%; font-weight: 500;
  font-size: 1.12rem; line-height: 1.45; border-left: 4px solid var(--orange); padding-left: 18px;
}

.photos { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 720px) { .photos { grid-template-columns: repeat(3, 1fr); } }
.photo { margin: 0; }
.photo__slot {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(38,35,32,.04) 0 10px, transparent 10px 20px),
    var(--paper-2);
  border: 1.5px dashed rgba(38,35,32,.3); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.photo figcaption { margin-top: 12px; font-size: .98rem; }

/* how it works */
.how { display: grid; gap: 40px; }
@media (min-width: 960px) { .how { grid-template-columns: 1fr 1fr; align-items: center; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-light); font-size: 1.1rem; color: var(--white); }
.steps__n { color: var(--orange); font-size: 1.4rem; min-width: 2.4ch; }
.how__after { margin-top: 1.2em; }
.video__slot {
  aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 16px;
  text-align: center; padding: 24px; border-radius: 6px;
  border: 1.5px dashed var(--line-light); color: #cfc7ba; font-size: .9rem;
  background: radial-gradient(80% 80% at 50% 40%, #3a3531, var(--ink));
}
.video__play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange); position: relative;
}
.video__play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-left: 18px solid var(--white); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}

/* grades */
.grades { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 900px) { .grades { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.grade {
  display: flex; flex-direction: column; padding: 28px 24px 24px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  transition: transform .2s, box-shadow .2s;
}
.grade:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(38,35,32,.45); }
.grade > p:last-of-type { flex: 1; }
.grade .btn { margin-top: 18px; }
.grade--pick { border-color: var(--ink); box-shadow: inset 0 6px 0 var(--orange); }
.grade__tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--orange); color: var(--white); padding: 4px 9px; border-radius: 3px; margin-bottom: 18px;
}
.grade__tag--quiet { background: var(--paper); color: var(--muted); }
.grade__name { font-size: 1.9rem; line-height: 1.1; }
.grade__for { font-weight: 700; margin: 6px 0 4px; }
.grade__spec { font-size: .88rem; color: var(--tan); font-weight: 600; letter-spacing: .02em; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }

.guide { margin-top: 48px; max-width: 720px; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--white); }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper-2); }
.table tbody th { font-weight: 600; }
.table td.win { color: var(--orange-dark); font-weight: 700; }
.table--specs, .table--compare { min-width: 520px; }
.table--compare thead th:nth-child(2) { background: var(--ink); color: var(--white); }

/* cost */
.cost { display: grid; gap: 32px; }
@media (min-width: 960px) { .cost { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.cost .table { min-width: 460px; }

/* trust */
.trust__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .trust__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-light); }
.creds li:last-child { border-bottom: 1px solid var(--line-light); }
.creds__k { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #ff8a63; font-weight: 700; }
.creds__v { font-size: 1.05rem; color: var(--white); }

/* faq */
.faq { max-width: 860px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--orange); transition: transform .2s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding-bottom: 18px; color: var(--ink-2); max-width: 64ch; }

/* buy */
.paths { display: grid; gap: 20px; }
@media (min-width: 900px) { .paths { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.path { background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; padding: 28px 24px; }
.path__k { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .8em; }
.path__alt { margin: 16px 0 0; font-size: .95rem; color: var(--muted); }
.path__alt a { font-weight: 700; color: var(--ink); }
.fields { display: grid; gap: 14px; margin: 18px 0 20px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } }
.fields label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.fields input, .fields select {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid rgba(38,35,32,.28); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.fields input:focus, .fields select:focus { border-color: var(--ink); }
.fields input[aria-invalid="true"] { border-color: var(--orange); }
.form__msg { margin: 12px 0 0; font-size: .92rem; font-weight: 600; }

/* closing */
.closing { background: var(--ink); color: var(--white); text-align: center; }
.closing .wrap { padding-top: 72px; padding-bottom: 72px; }
.closing__line { font-size: clamp(1.6rem, 5.5vw, 3rem); line-height: 1.1; margin: 0; }
.closing__by { margin: 18px 0 0; color: #cfc7ba; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }

/* footer */
.site-footer { background: var(--paper); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; }

/* placeholder links in review mode */
.review [data-placeholder] { position: relative; }

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

/* prices on grade cards, shop buttons */
.grade > p:last-of-type { flex: 0 0 auto; }
.grade > p:nth-last-of-type(2) { flex: 1; }
.grade__price { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.grade__price span { background: var(--paper); border-radius: 3px; padding: 6px 10px; }
.grade__price strong { color: var(--ink); font-size: 1.05rem; margin-left: 4px; }
.shops { display: grid; gap: 10px; }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #000; border-color: #000; }

/* problem photos (AI illustrations for review; replace with pilot-site photos before launch) */
.photo__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo__badge {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(38,35,32,.82); color: var(--white); padding: 3px 8px; border-radius: 3px;
}

/* quick guide + real on-site photo */
.guide-row { display: grid; gap: 28px; margin-top: 48px; align-items: center; }
.guide-row .guide { margin-top: 0; }
@media (min-width: 860px) { .guide-row { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 48px; } }
.onsite { margin: 0; max-width: 340px; }
.onsite img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 6px; box-shadow: 0 18px 36px -24px rgba(38,35,32,.55); }
.onsite figcaption, .video figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* real site video in "How it works" */
.video { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.video__clip { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.section--ink .video figcaption { color: #cfc7ba; }
