/* Holygram: site. Tokens de docs/design.md (reforma v3). Escrito primeiro pro celular. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4eee3;
  --surface: #fbf8f2;
  --sand: #e6dccb;
  --ink: #1f1b17;
  --muted: #5e554c;
  --clay: #b4472f;
  --clay-deep: #8f3a26;
  --clay-tint: #ebd9cd;
  --night: #171310;
  --night-2: #221d18;
  --night-muted: #aaa398;
  --ring: #cfc3ae;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --page: 1120px;
  --section: 80px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: var(--clay);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay-deep);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 11vw, 82px);
  line-height: 1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(34px, 8.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font: 500 13px/1 var(--sans);
}

.chip--light {
  background: rgb(244 238 227 / 0.92);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--clay-tint);
  color: var(--clay-deep);
  font: 500 13px/1.2 var(--sans);
  vertical-align: middle;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding-inline: 18px 20px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

/* Topo da página */

.top {
  display: flex;
  align-items: center;
  padding-block: 20px;
}

.top__logo img {
  height: 26px;
  width: auto;
}

/* Abertura */

.hero__grid {
  display: grid;
  gap: 40px;
  padding-top: 24px;
}

.hero__text .lede {
  margin-top: 20px;
  max-width: 30em;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.hero__media {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
  margin-bottom: 216px;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 60%;
}

/* Recorte real do app, por cima da foto. */
.hero__screen {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -176px;
  width: calc(100% - 2 * var(--gutter));
  border-radius: 20px;
  box-shadow: 0 24px 48px -24px rgb(31 27 23 / 0.5);
}

/* A dor */

.night {
  background: var(--night);
  color: var(--cream);
}

.night__grid {
  display: grid;
}

.night__photo {
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.night__text {
  padding-block: 8px var(--section);
}

.night__text p {
  margin-top: 18px;
  max-width: 32em;
  color: var(--night-muted);
  font-size: 18px;
}

.night__text p:first-of-type {
  margin-top: 22px;
  color: var(--cream);
}

/* O dia */

.day {
  padding-block: var(--section);
}

.rail {
  margin-top: 36px;
  display: grid;
}

.rail__step {
  position: relative;
  padding: 0 0 32px 36px;
}

.rail__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: -4px;
  width: 12px;
  background: var(--clay);
}

.rail__step:first-child::before {
  border-radius: 999px 999px 0 0;
}

.rail__step--free::before {
  top: 8px;
  bottom: 0;
  background: var(--clay-tint);
  border-radius: 0 0 999px 999px;
}

.rail__step:last-child {
  padding-bottom: 8px;
}

.rail__time {
  font: 600 15px/1.2 var(--sans);
  letter-spacing: 0.02em;
  color: var(--clay-deep);
}

.rail__step h3 {
  margin-top: 6px;
  font-size: 26px;
}

.rail__step p:last-child {
  margin-top: 8px;
  color: var(--muted);
  max-width: 28em;
}

.day__note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 16px;
}

/* As histórias */

.stories {
  padding-bottom: var(--section);
}

.stories__head .lede {
  margin-top: 16px;
  max-width: 32em;
}

/* No celular, os exemplos rolam pro lado. */
.reel {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  align-items: stretch;
}

.reel::-webkit-scrollbar {
  display: none;
}

.reel > * {
  flex: none;
  scroll-snap-align: start;
}

.post {
  width: min(86vw, 420px);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

.post__head strong {
  font-weight: 500;
}

.post__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.post__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post__body {
  padding: 14px 16px 18px;
  font-size: 15px;
  line-height: 1.47;
}

.post__body strong {
  font-weight: 600;
}

.post__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.story {
  position: relative;
  width: min(58vw, 260px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--night);
}

.story img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.story figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  color: var(--cream);
  background: linear-gradient(to bottom, rgb(23 19 16 / 0.45), transparent 22%, transparent 55%, rgb(23 19 16 / 0.8));
}

.story__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.story__who img {
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--clay);
}

.story__text {
  margin-top: auto;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.22;
}

.story .chip {
  color: var(--ink);
}

.stories__rule {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: calc(36em + 2 * var(--gutter));
  margin-inline: 0;
}

.cast {
  margin-top: 48px;
}

.cast h3 {
  font: 500 15px/1.3 var(--sans);
  color: var(--muted);
}

.cast__list {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding: 6px var(--gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cast__list::-webkit-scrollbar {
  display: none;
}

.cast__list li {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 68px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.cast__list img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--clay);
}

/* O plano */

.plan {
  background: var(--clay-tint);
  padding-block: var(--section);
}

.plan h2 {
  color: var(--clay-deep);
}

.plan__head .lede {
  margin-top: 14px;
  color: var(--ink);
}

.blocks {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}

.blocks li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "days ref"
    "title title"
    "hook hook";
  align-items: center;
  gap: 4px 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgb(251 248 242 / 0.7);
}

.blocks__days {
  grid-area: days;
  font: 600 13px/1.2 var(--sans);
  color: var(--clay-deep);
}

.blocks h3 {
  grid-area: title;
  margin-top: 4px;
}

.blocks__hook {
  grid-area: hook;
  color: var(--muted);
  font-size: 16px;
}

.blocks__ref {
  grid-area: ref;
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Grátis e Plus */

.price {
  display: grid;
  gap: 32px;
  padding-block: var(--section);
}

.price__free .lede {
  margin-top: 16px;
  max-width: 28em;
}

.price__plus {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
}

.price__plus h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price__plus > p:first-of-type {
  margin-top: 6px;
  color: var(--muted);
}

.price__plus ul {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.price__plus li {
  position: relative;
  padding-left: 22px;
}

.price__plus li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.price__plus li strong {
  font-weight: 600;
}

.price__plus .small {
  margin-top: 20px;
}

/* Perguntas */

.faq {
  padding-bottom: var(--section);
}

.faq__list {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.faq details {
  border-radius: 16px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}

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

.faq details p {
  padding: 0 20px 20px;
  max-width: 38em;
  color: var(--muted);
}

/* Fim */

.end {
  background: var(--night);
  color: var(--cream);
  padding-block: 96px;
  text-align: center;
}

.end__inner {
  display: grid;
  justify-items: center;
}

.end__mark {
  width: 44px;
  color: var(--clay);
}

.end h2 {
  margin-top: 28px;
  max-width: 12em;
}

.end p {
  margin-top: 16px;
  color: var(--night-muted);
}

/* Rodapé (também nas páginas de texto) */

.foot {
  padding-block: 40px 56px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 500;
}

.foot nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
}

.foot nav a:hover {
  color: var(--clay);
}

.foot .small {
  margin-top: 14px;
  max-width: 46em;
}

/* Páginas de texto: termos, privacidade e exclusão */

.doc {
  max-width: 720px;
  padding-block: 24px 80px;
}

.doc h1 {
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.doc h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 14px;
}

.doc h3 {
  font: 600 17px/1.4 var(--sans);
  margin-top: 28px;
  margin-bottom: 8px;
}

.doc p,
.doc ul,
.doc ol {
  margin-bottom: 14px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc ul {
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li {
  margin-bottom: 6px;
}

.doc li > ul,
.doc li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

.doc li::marker {
  color: var(--muted);
}

.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--sand);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
}

.doc tbody tr:nth-child(odd) {
  background: var(--surface);
}

.draft {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--clay-tint);
  color: var(--clay-deep);
  font-size: 15px;
  font-weight: 500;
}

mark.pending {
  background: #eeddb2;
  color: var(--ink);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Telas maiores */

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
    --section: 112px;
  }

  .hero__media {
    margin-inline: 0;
  }

  .hero__photo {
    border-radius: 24px;
  }

  .hero__screen {
    left: auto;
    right: -12px;
    width: 64%;
  }

  .night__photo {
    width: 100%;
    margin-inline: 0;
    border-radius: 24px;
    -webkit-mask-image: none;
    mask-image: none;
    margin-top: var(--section);
  }

  .night__text {
    padding-top: 48px;
  }

  .rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 6px;
  }

  .rail__step {
    padding: 36px 24px 0 0;
  }

  .rail__step::before,
  .rail__step--free::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 12px;
    border-radius: 0;
  }

  .rail__step:first-child::before {
    border-radius: 999px 0 0 999px;
  }

  .rail__step--free::before {
    border-radius: 0 999px 999px 0;
  }

  .day__note {
    margin-top: 40px;
    max-width: 40em;
  }

  .reel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
    overflow: visible;
    padding-block: 0;
    max-width: calc(var(--page) + 2 * var(--gutter));
    margin-inline: auto;
    margin-top: 48px;
    align-items: start;
  }

  .post,
  .story {
    width: auto;
  }

  .stories__rule {
    margin-inline: auto;
    max-width: calc(var(--page) + 2 * var(--gutter));
    padding-right: calc(var(--gutter) + 30%);
  }

  .cast {
    max-width: calc(var(--page) + 2 * var(--gutter));
    margin-inline: auto;
  }

  .cast h3 {
    padding-inline: var(--gutter);
  }

  .cast__list {
    flex-wrap: wrap;
    overflow: visible;
    gap: 20px 22px;
  }

  .blocks li {
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr) 130px;
    grid-template-areas: "days title hook ref";
    gap: 24px;
    padding: 20px 24px;
  }

  .blocks h3 {
    margin-top: 0;
  }

  .price {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .price__plus {
    padding: 32px;
  }

  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
  }

  .faq__list {
    margin-top: 0;
  }

  .end {
    padding-block: 128px;
  }

  .end h2 {
    font-size: clamp(44px, 6vw, 72px);
  }
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 72px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .hero__media {
    margin-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(56px, 5.3vw, 76px);
  }

  .hero__text .lede {
    max-width: 26em;
  }

  .hero__screen {
    right: auto;
    left: -64px;
    bottom: -48px;
    width: 76%;
  }

  .night__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-block: var(--section);
  }

  .night__photo {
    margin-top: 0;
  }

  .night__text {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
