/* ==========================================================================
   Vear Services Private Limited — site styles
   Palette: cool paper, deep slate ink, pine signal.
   ========================================================================== */

:root {
  --ink:        #141C22;
  --ink-soft:   #1E2A33;
  --paper:      #EDEFEC;
  --paper-warm: #E4E8E4;
  --pine:       #2E5E4E;
  --pine-lt:    #4C8A73;
  --slate:      #5A6B70;
  --line:       #CBD2CD;
  --flag:       #B4462F;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-data:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --rule: 1px solid var(--line);
}

/* --- reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- layout scaffolding ------------------------------------------------ */

.shell {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--ruled { border-top: var(--rule); }
.band--dark { background: var(--ink); color: var(--paper); }
.band--dark a { color: var(--pine-lt); }
.band--dark a:hover { color: #fff; }

/* --- type -------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--f-data);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin: 0 0 1.4rem;
}
.band--dark .eyebrow { color: var(--pine-lt); }

.deck {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--slate);
  line-height: 1.55;
  max-width: 46ch;
  margin-top: 1.6rem;
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-bottom: var(--rule);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--pine); }

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--f-data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav a { color: var(--slate); text-decoration: none; }
.nav a:hover { color: var(--pine); text-decoration: underline; }

/* --- hero -------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }

/* --- signature: the company record extract ----------------------------- */

.record {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* survey-style corner ticks */
.record::before,
.record::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--pine);
}
.record::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.record::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.record__label {
  font-family: var(--f-data);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pine);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.record__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.record__grid {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  margin: 0;
  font-family: var(--f-data);
  font-size: 0.85rem;
}

.record__grid dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  padding: 0.85rem 1rem 0.85rem 0;
  border-top: var(--rule);
}

.record__grid dd {
  margin: 0;
  padding: 0.85rem 0;
  border-top: var(--rule);
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.record__grid dt:first-of-type,
.record__grid dt:first-of-type + dd { border-top: 0; }

@media (max-width: 34rem) {
  .record__grid { grid-template-columns: 1fr; }
  .record__grid dd { padding-top: 0; border-top: 0; }
  .record__grid dt { padding-bottom: 0.3rem; }
  .record__grid dt:first-of-type + dd { border-top: 0; }
}

/* --- placeholder marker ------------------------------------------------ */

.fill {
  background: #F6E2DC;
  color: var(--flag);
  border-bottom: 1px dashed var(--flag);
  padding: 0 0.25em;
  font-style: normal;
}

/* --- apps -------------------------------------------------------------- */

.apps {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin-top: 2.5rem;
}

.app {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.app__status {
  font-family: var(--f-data);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pine);
  display: block;
  margin-bottom: 0.75rem;
}

.app h3 { margin-bottom: 0.6rem; }
.app p { font-size: 0.95rem; color: var(--slate); }

.app__meta {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-family: var(--f-data);
  font-size: 0.72rem;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

/* --- contact ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 2.5rem;
}

.contact-grid h3 {
  font-family: var(--f-data);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pine-lt);
  margin-bottom: 0.9rem;
}

.contact-grid p { font-size: 0.95rem; }

/* --- prose (privacy page) ---------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.8rem; margin-bottom: 0.9rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; max-width: var(--measure); }
.prose li { margin-bottom: 0.4rem; }
.prose > p:first-child { margin-top: 0; }

.stamp {
  font-family: var(--f-data);
  font-size: 0.72rem;
  color: var(--slate);
  border-left: 2px solid var(--pine);
  padding-left: 1rem;
  margin-bottom: 2.5rem;
}

/* Inline literal — permission names, identifiers — inside running prose. */
.mono {
  font-family: var(--f-data);
  font-size: 0.88em;
  word-break: break-word;
}

/* --- footer ------------------------------------------------------------ */

.foot {
  border-top: var(--rule);
  padding-block: 2rem 3rem;
  font-family: var(--f-data);
  font-size: 0.72rem;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.foot a { color: var(--slate); }
.foot a:hover { color: var(--pine); }

/* --- motion ------------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hero > * { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero > *:nth-child(1) { animation-delay: 0.02s; }
.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.14s; }
.hero > *:nth-child(4) { animation-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
