/* Indilo — indilo.com.br
 *
 * The palette is the app's own (docs/design.md), so the site and the app look
 * like one thing: navy brand, WhatsApp green only for WhatsApp, category colors
 * only on category labels, neutrals for everything else. Light and dark, like
 * the app.
 *
 * Two typefaces, the app's split: SF Pro (the system UI face) for the
 * interface, Avenir Next for what the user wrote — the notes.
 *
 * No web fonts, no analytics, no third-party anything. The privacy policy this
 * site hosts says the app carries no tracking; a page that loaded a tracker to
 * say so would be lying on its own domain.
 */

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #111318;
  --ink-2: #5e6470;
  --ink-3: #9aa0aa;
  --line: #e5e7eb;
  --fill: #eceef1;
  --brand: #22305a;
  --brand-ink: #22305a;
  --brand-soft: #e7ebf4;
  --on-brand: #ffffff;
  --wa: #1ea952;
  --hero: #111318;
  --on-hero: #f3f4f6;
  --on-hero-2: #a3a8b2;
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 10px 30px rgba(17, 19, 24, 0.07);
  --phone-shadow: 0 24px 60px rgba(17, 19, 24, 0.22);

  /* Category pairs (tint background, ink text), light. */
  --ac-tint: #e2effd;
  --ac-ink: #1662b8;
  --el-tint: #fff3cc;
  --el-ink: #8f6400;
  --en-tint: #dcf3f1;
  --en-ink: #08706c;
  --di-tint: #fce4f0;
  --di-ink: #b0246a;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --note: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;

  --shell: 1080px;
  --gutter: clamp(16px, 5vw, 44px);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --card: #18191e;
    --ink: #f3f4f6;
    --ink-2: #a3a8b2;
    --ink-3: #6a707b;
    --line: #272930;
    --fill: #22242a;
    --brand: #9cb1ee;
    --brand-ink: #c8d4f7;
    --brand-soft: #27314f;
    --on-brand: #0d1426;
    --hero: #18191e;
    --shadow: none;
    --phone-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

    --ac-tint: #12253b;
    --ac-ink: #7db6f5;
    --el-tint: #33290a;
    --el-ink: #ffd24d;
    --en-tint: #0f2b2a;
    --en-ink: #5cd6cf;
    --di-tint: #3a1428;
    --di-ink: #f58cc0;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-ink);
  text-decoration-color: color-mix(in srgb, var(--brand-ink) 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* The app's overline ("MINHAS NOTAS"): bold caps, +8% tracking. */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  padding-block: 18px 8px;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  font-size: 15px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

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

.hero {
  padding-block: clamp(28px, 6vw, 64px) clamp(40px, 8vw, 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero__icon {
  width: 84px;
  height: 84px;
  display: block;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(36px, 6.2vw, 58px);
  font-weight: 900;
  margin-top: 12px;
}

.hero__title em {
  font-style: normal;
  color: var(--brand-ink);
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(17px, 2.1vw, 19.5px);
  color: var(--ink-2);
  max-width: 46ch;
}

/* ---------- phones ---------- */

.phones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}

.phone {
  background: #0c0d10;
  padding: 7px;
  border-radius: 44px;
  box-shadow: var(--phone-shadow);
  border: 1px solid color-mix(in srgb, var(--ink-3) 35%, transparent);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 37px;
}

.phone--back {
  grid-column: 5 / span 8;
  grid-row: 1;
  margin-top: 48px;
  transform: rotate(3deg);
}

.phone--front {
  grid-column: 1 / span 8;
  grid-row: 1;
  z-index: 1;
  transform: rotate(-2deg);
}

/* ---------- store badge slot ---------- */

.badges {
  margin-top: 30px;
  border: 1.5px dashed var(--ink-3);
  border-radius: 18px;
  padding: 16px 18px;
  max-width: 46ch;
}

.badges__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.badges__note {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 56ch;
}

.section__title {
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 800;
  margin-top: 12px;
}

.section__lead {
  margin-top: 14px;
  color: var(--ink-2);
}

/* ---------- cards ---------- */

.folds {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fold {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.fold h3 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 8px;
}

.fold > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* A miniature of the app's list card: avatar, name, pills, the note. */
.mini {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
}

.mini__avatar {
  grid-row: span 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  position: relative;
}

.mini__avatar--hired {
  background: var(--tint);
  color: var(--ink-cat);
}

/* The ✓ seal of "Já contratei", always in the brand color. */
.mini__avatar--hired::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .mini__avatar--hired::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%230D1426' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.mini__avatar--tip {
  border: 1.5px dashed var(--ink-3);
  color: var(--ink-2);
}

.mini__name {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--hired {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.pill--tip {
  border: 1.5px dashed var(--ink-3);
  color: var(--ink-2);
  padding: 3.5px 7px;
}

.pill--cat {
  background: var(--tint);
  color: var(--ink-cat);
}

.cat-ac {
  --tint: var(--ac-tint);
  --ink-cat: var(--ac-ink);
}

.cat-el {
  --tint: var(--el-tint);
  --ink-cat: var(--el-ink);
}

.cat-en {
  --tint: var(--en-tint);
  --ink-cat: var(--en-ink);
}

.cat-di {
  --tint: var(--di-tint);
  --ink-cat: var(--di-ink);
}

.mini__note {
  font-family: var(--note);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 4px;
}

/* ---------- steps ---------- */

.steps {
  margin-top: 34px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.step__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 14px;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- the honest limits ---------- */

.limits {
  margin: 30px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.limit {
  background: var(--card);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 22px;
  align-items: baseline;
}

.limit dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.limit dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
}

.limit dd b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- privacy band ---------- */

.privacy {
  background: var(--hero);
  color: var(--on-hero);
}

.privacy .section {
  border-top: 0;
}

.privacy .eyebrow,
.privacy .section__lead {
  color: var(--on-hero-2);
}

.privacy__claims {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.privacy__claims li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 15.5px;
  color: var(--on-hero-2);
}

.privacy__claims b {
  color: var(--on-hero);
  font-weight: 600;
}

.check {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #9cb1ee;
  color: #0d1426;
  padding: 4px;
  flex: none;
}

.policy-links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.button--light {
  background: #f3f4f6;
  color: #111318;
}

.button--ghost {
  color: var(--on-hero);
  border: 1.5px solid color-mix(in srgb, var(--on-hero) 30%, transparent);
}

.button svg {
  transition: transform 0.18s ease;
}

.button:hover svg {
  transform: translateX(3px);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 44px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.privacy + .site-footer {
  border-top: 0;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__id {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- documents (policy, support) ---------- */

.doc {
  padding-block: clamp(24px, 5vw, 52px) clamp(48px, 8vw, 80px);
  max-width: 74ch;
}

.doc__title {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 900;
  margin-top: 12px;
}

.doc__dates {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.doc__summary {
  margin-top: 28px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.doc__summary p {
  color: var(--ink);
  font-size: 16.5px;
}

.doc__summary p + p {
  margin-top: 12px;
}

.toc {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--card);
}

.toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}

.toc li {
  counter-increment: toc;
  break-inside: avoid;
  padding: 3px 0;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-ink);
}

.doc section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}

.doc h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800;
  margin-top: 6px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
}

.doc section > p {
  margin-top: 14px;
  color: var(--ink-2);
}

.doc section > p b,
.doc li b,
.faq p b {
  color: var(--ink);
  font-weight: 600;
}

.doc ul,
.doc ol.plain {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
}

.doc li + li {
  margin-top: 8px;
}

.doc__num {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.callout {
  margin-top: 18px;
  border-left: 3px solid var(--brand);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
}

.callout p {
  color: var(--ink);
  font-size: 15.5px;
}

.callout p + p {
  margin-top: 10px;
}

.doc em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.doc__back {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- support ---------- */

.contact {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.contact h2 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
}

.contact > p {
  margin-top: 10px;
  color: var(--ink-2);
}

.contact .button {
  margin-top: 18px;
  background: var(--brand);
  color: var(--on-brand);
}

.contact ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.faq {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  scroll-margin-top: 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details > div {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.faq details > div p + p,
.faq details > div p + ol,
.faq details > div ol + p {
  margin-top: 10px;
}

.faq ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.faq li + li {
  margin-top: 4px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }

  .hero__copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__copy > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero__copy > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero__copy > *:nth-child(5) {
    animation-delay: 0.24s;
  }

  .phones {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s backwards;
  }
}

/* ---------- narrower ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .folds,
  .steps,
  .privacy__claims {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .hero__icon {
    width: 68px;
    height: 68px;
  }

  .phone {
    padding: 5px;
    border-radius: 34px;
  }

  .phone img {
    border-radius: 29px;
  }

  .limit {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
