/* Shared site styles for product index pages.
   Used by Warranty Pad EN/TR and Hexora EN/TR.
   Per-app overrides (accent, paper, h1 clamp) are inlined per page. */

:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --text: #fafafa;
  --muted: #b5b5bd;
  --subtle: #777780;
  --line: #28282c;
  --accent: #d4a64a;
  --paper: #f4ecd8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

header.site,
header { border-bottom: 1px solid var(--line); background: rgba(10,10,10,.86); position: sticky; top: 0; z-index: 2; }
nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 4px; align-items: center; overflow-x: auto; }
.links a { color: var(--muted); font-size: 14px; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; white-space: nowrap; }
.links a:hover { background: var(--panel); color: var(--text); }

main { padding: 72px 0 56px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; min-height: calc(100dvh - 190px); }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: 0; max-width: 760px; }
.lead { margin-top: 22px; color: var(--muted); font-size: 19px; max-width: 620px; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 1px solid var(--line); background: var(--paper); color: #18120d; border-radius: 8px; padding: 12px 16px; font-weight: 700; }
.button.secondary { background: transparent; color: var(--text); }

.icon-card,
.oracle { aspect-ratio: 1; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; display: grid; place-items: center; padding: 42px; }
.icon-card img { width: min(76%, 360px); height: auto; border-radius: 24px; }
.oracle img { width: min(76%, 360px); height: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.item { border-top: 1px solid var(--line); padding-top: 18px; }
.item h2 { font-size: 17px; margin-bottom: 8px; }
.item p { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--subtle); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 1040px); }
  nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  main { padding: 44px 0; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .icon-card,
  .oracle { order: -1; max-width: 360px; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
}
