/* Appartri website: same neo-brutalist look as the extension (cream, ink borders, hard shadows). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Space Grotesk', system-ui, sans-serif;
  --bg: #fbf3e9;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5c5750;
  --line: var(--ink);
  --red: #ff6b6b;
  --violet: #a28bf5;
  --teal: #3cc8b4;
  --yellow: #ffd84d;
  --orange: #ff9b5e;
  --pink: #ffb8b8;
  --green: #43d17a;
  --on-color: #141414;
  --border: 2.5px solid var(--line);
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a20;
    --surface: #26252d;
    --ink: #f5ecdc;
    --muted: #b7ae9f;
    --line: #f5ecdc;
    --pink: #5c3a3d;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.55 var(--font);
  overflow-x: hidden;
}
a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.topbar { background: var(--yellow); border-bottom: var(--border); color: var(--on-color); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.35rem; }
.logo {
  display: grid; place-items: center; width: 38px; height: 38px; background: var(--red);
  border: 2.5px solid #141414; border-radius: 9px; box-shadow: 3px 3px 0 #141414;
}
.logo svg { width: 22px; height: 22px; }
.topbar nav { display: flex; gap: 6px 16px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.topbar nav a { text-decoration: none; font-size: 0.95rem; }
.topbar nav a:hover { text-decoration: underline; }
.lang {
  font: inherit; font-weight: 700; font-size: 0.85rem; padding: 3px 10px; cursor: pointer; color: #141414;
  background: #fff; border: 2px solid #141414; border-radius: 999px; box-shadow: 2px 2px 0 #141414;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font: inherit; font-weight: 700;
  color: var(--on-color); text-decoration: none; cursor: pointer; background: var(--teal);
  border: var(--border); border-radius: 12px; box-shadow: var(--shadow);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
.button.violet { background: var(--violet); }
.button.red { background: var(--red); }
.button.plain { background: var(--surface); color: var(--ink); }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.tag {
  display: inline-block; margin-bottom: 18px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; color: var(--on-color);
  background: var(--pink); border: 2px solid var(--line); border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .tag { background: #ffb8b8; color: #141414; border-color: #141414; } }

/* Badge mock-up (same look as the badge on the portals) */
.mock {
  position: relative; padding: 22px; background: var(--surface); border: var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.mock .listing { display: grid; gap: 8px; }
.mock .photo {
  height: 150px; border: var(--border); border-radius: 12px;
  background: repeating-linear-gradient(135deg, #e9dfd2 0 14px, #f4ece1 14px 28px);
}
.mock .line { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.mock .line.short { width: 55%; }
.mock { margin: 0 28px 70px 0; }
.mock .photo { height: 190px; }
.badge {
  position: absolute; bottom: -64px; right: -28px; width: min(330px, 92%); color: #141414;
  font-size: 14px; background: #fbf3e9; border: 2.5px solid #141414; border-radius: 12px; box-shadow: 4px 4px 0 #141414;
}
.badge .head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; }
.badge .dot { width: 26px; height: 26px; border-radius: 7px; background: var(--green); border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.badge .score { font-weight: 800; font-size: 19px; }
.badge .name {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 7px;
  border: 2px solid #141414; border-radius: 999px; background: #ffd84d;
}
.badge ul { margin: 0 10px 10px; padding: 8px 10px 8px 24px; background: #fff; border: 2px solid #141414; border-radius: 8px; }
.badge li { margin: 3px 0; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: var(--border); }
.section-intro { max-width: 44em; color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; margin-top: 28px; }
.card {
  padding: 20px; background: var(--surface); border: var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.card .icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; font-size: 22px;
  background: var(--c, var(--teal)); border: 2.5px solid var(--line); border-radius: 10px;
}
.card p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 28px; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 70px; background: var(--surface);
  border: var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center;
  width: 38px; height: 38px; font-weight: 800; color: var(--on-color); background: var(--yellow);
  border: 2.5px solid var(--line); border-radius: 50%;
}
.colors { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.colors li { display: flex; align-items: center; gap: 8px; }
.colors i { width: 20px; height: 20px; border: 2.5px solid var(--line); border-radius: 6px; background: var(--c); }

.roadmap { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.roadmap li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.roadmap .when {
  justify-self: start; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; color: var(--on-color);
  background: var(--c, var(--surface)); border: 2px solid var(--line); border-radius: 999px;
}
.roadmap .later { --c: var(--bg); color: var(--ink); }

.note {
  padding: 14px 18px; background: color-mix(in srgb, var(--yellow) 30%, var(--surface));
  border: var(--border); border-radius: 12px;
}

/* Forms (feedback page) */
form { display: grid; gap: 18px; max-width: 680px; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; gap: 12px; flex-wrap: wrap; }
legend { font-weight: 700; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block; padding: 10px 18px; font-weight: 700; cursor: pointer; background: var(--surface);
  border: var(--border); border-radius: 12px; box-shadow: var(--shadow);
}
.choice input:checked + span { background: var(--yellow); color: var(--on-color); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px; }
label.field { display: grid; gap: 6px; font-weight: 700; }
input[type='text'], textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--ink); background: var(--surface);
  border: var(--border); border-radius: 10px;
}
input[type='text']:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--violet); }
textarea { min-height: 170px; resize: vertical; }
.hint { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.context { font-size: 0.92rem; color: var(--muted); }
.context b { color: var(--ink); }

/* Long text (privacy) */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border: 2px solid var(--line); vertical-align: top; }
.prose th { background: var(--yellow); color: var(--on-color); }

/* Footer */
footer { padding: 32px 0 44px; border-top: var(--border); font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .roadmap li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .mock { padding: 14px; margin: 0 10px 90px 0; }
  .badge { right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .choice span { transition: none; }
}
