/* iAtelier, clean variant: paper, ink and one copper accent. Serif headlines, sans body, square corners. */
:root {
  --paper: #FAF8F4;
  --paper-alt: #F3EEE6;
  --ink: #172B32;
  --ink-soft: #52616A;
  --faint: #5F6B72; /* 4.7:1 or better on paper, paper-alt and white (WCAG AA) */
  --rule: rgba(23, 43, 50, 0.14);
  --rule-strong: rgba(23, 43, 50, 0.3);
  --copper: #D49A74;
  --copper-text: #96522E;
  --white: #FFFFFF;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 5.5rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(4rem + 1px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
h1, h2, .closing__title, .plan__price { font-family: var(--serif); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-text); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--copper-text); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

.wrap { width: min(64rem, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { width: min(52rem, 100%); }
.small { font-size: 0.9rem; color: var(--faint); }

/* Offer phase and currency switches */
[data-phase="promo"] .is-regular,
[data-phase="regular"] .is-promo { display: none !important; }
[data-currency="BRL"] [data-c]:not([data-c~="BRL"]),
[data-currency="CAD"] [data-c]:not([data-c~="CAD"]),
[data-currency="USD"] [data-c]:not([data-c~="USD"]) { display: none !important; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #0F1E24; color: var(--paper); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn--large { min-height: 3.4rem; padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.textlink { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }


/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 244, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top__row { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo__mark { width: 1.75rem; height: 1.75rem; flex: none; }
.logo__word { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.logo__i { color: var(--copper-text); }
.top__nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.98rem; }
.top__nav a { text-decoration: none; color: var(--ink-soft); }
.top__nav a:hover { color: var(--ink); }
.top__tools { display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; gap: 0.2rem; font-size: 0.85rem; font-weight: 600; }
.langs > * { padding: 0.25rem 0.4rem; text-decoration: none; color: var(--faint); }
.langs a:hover { color: var(--ink); }
.langs [aria-current] { color: var(--ink); border-bottom: 2px solid var(--copper); }
@media (max-width: 60rem) { .top__nav { display: none; } .top__tools { margin-left: auto; } }
@media (max-width: 32rem) { .logo__word { display: none; } .top__row { gap: 0.75rem; } }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.lead { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.actions > span { display: contents; }
.fine { margin-top: 1rem; max-width: 40rem; font-size: 0.95rem; color: var(--faint); }
.tools { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.tools__label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.tools__band { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.tools__track { display: flex; width: max-content; gap: 3.5rem; animation: tools 36s linear infinite; }
.tools__track span { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
@keyframes tools { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tools__track { animation: none; flex-wrap: wrap; width: auto; gap: 1rem 2rem; } .tools__track span:nth-child(n+9) { display: none; } .tools__band { mask-image: none; -webkit-mask-image: none; } }

/* Sections */
.section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0 var(--section); border-top: 1px solid var(--rule); }
.section--alt { background: var(--paper-alt); }
.intro { max-width: 40rem; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--faint); max-width: 44rem; }
.sub { margin: 3rem 0 1rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 0.75rem; }

.checklist { list-style: none; border-top: 1px solid var(--rule); }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.check { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.2rem; fill: none; stroke: var(--copper-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.callout { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--paper-alt); border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 600; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.35rem 1.25rem; }
.num { display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--copper-text); margin-bottom: 0.75rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 64rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .steps { grid-template-columns: 1fr; } }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.25rem; margin: 0 0 1.75rem; }
.flow__node { position: relative; background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.9rem 1rem 0.9rem 3rem; display: flex; flex-direction: column; min-height: 4.6rem; justify-content: center; }
.flow__num { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 1.5rem; color: var(--copper-text); line-height: 1; }
.flow__node strong { font-size: 1rem; line-height: 1.2; }
.flow__sub { margin-top: 0.2rem; font-size: 0.82rem; color: var(--faint); }
.flow__node:not(:nth-child(4))::after { content: ""; position: absolute; left: 100%; top: 50%; width: 2.25rem; height: 1px; background: var(--rule-strong); }
.flow__node:not(:nth-child(4))::before { content: ""; position: absolute; left: calc(100% + 2.25rem - 7px); top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--ink-soft); border-right: 1px solid var(--ink-soft); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow__loop { grid-column: 3 / 5; position: relative; height: 2.6rem; margin: 0 2.5rem 0 2.5rem; border: 1px dashed var(--rule-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.flow__loop::before { content: ""; position: absolute; left: -4px; top: -2px; width: 7px; height: 7px; border-left: 1px solid var(--ink-soft); border-top: 1px solid var(--ink-soft); transform: rotate(45deg); }
.flow__loop span { position: absolute; left: 50%; bottom: -0.65rem; transform: translateX(-50%); padding: 0 0.6rem; background: var(--paper-alt); font-size: 0.8rem; color: var(--faint); white-space: nowrap; }
@media (max-width: 64rem) {
  .flow { grid-template-columns: 1fr; gap: 1.6rem 0; margin-bottom: 2.25rem; }
  .flow__node:not(:nth-child(4))::after { left: 2rem; top: 100%; width: 1px; height: 1.6rem; }
  .flow__node:not(:nth-child(4))::before { left: 2rem; top: calc(100% + 1.6rem - 7px); transform: translateX(-50%) rotate(135deg); }
  .flow__loop { grid-column: 1; height: auto; margin: -0.6rem 0 0; border: 0; border-radius: 0; }
  .flow__loop::before { display: none; }
  .flow__loop span { position: static; transform: none; padding: 0; white-space: normal; }
  .flow__loop span::before { content: "↺ "; color: var(--copper-text); }
}
.cols { display: grid; gap: 2rem 3rem; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols h3 { margin-bottom: 0.6rem; }
.cols p { color: var(--ink-soft); }
.cols--small p { font-size: 1rem; }
.plain { list-style: none; }
.plain li { position: relative; padding: 0.45rem 0 0.45rem 1.2rem; border-top: 1px solid var(--rule); }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.5rem; height: 1px; background: var(--copper-text); }
.profiles { border-top: 1px solid var(--rule-strong); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.profile h3 { margin-bottom: 0.35rem; }
.profile > div > p { color: var(--ink-soft); font-size: 1.02rem; }
.profile .plain li:first-child { border-top: 0; padding-top: 0; }
.profile .plain li:first-child::before { top: 0.6rem; }
.profile .plain li { font-size: 1.02rem; }
.note--strong { color: var(--ink-soft); font-size: 1.02rem; margin-top: 1.75rem; }
@media (max-width: 46rem) { .profile { grid-template-columns: 1fr; gap: 0.75rem; } }
@media (max-width: 46rem) { .cols--2, .cols--3 { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; gap: 1rem; margin-bottom: 2rem; }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.label--group { margin: 0 0 1.5rem; color: var(--faint); }
.plan__price s { font-size: 0.55em; color: var(--faint); text-decoration-thickness: 1px; margin-right: 0.2rem; vertical-align: 0.35em; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem; }
.plan--entry { position: relative; border-color: var(--copper); transition: box-shadow 0.8s ease; }
.plan--entry::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--copper); transform-origin: left; transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.plan--entry.is-in::after { transform: scaleX(1); }
.plan--entry.is-in { box-shadow: 0 22px 44px -28px rgba(23, 43, 50, 0.45); }
.plan--promo { padding-top: 1.6rem; }
.promo-tag {
  position: absolute; z-index: 1; top: 0; left: 1rem; transform: translateY(-50%);
  margin: 0; padding: 0.3rem 0.65rem; border-radius: 2px;
  background: var(--copper-text); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity 0.6s ease 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
  transform: translateY(-20%);
}
.plan--entry.is-in .promo-tag { opacity: 1; transform: translateY(-50%); }
.promo-count { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-text); }
.promo-count .pulse { background: var(--copper-text); }
.promo-count .pulse::after { background: var(--copper-text); }
.pulse { position: relative; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #fff; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .plan--entry::after, .promo-tag { transition: none; }
  .plan--entry::after { transform: scaleX(1); }
  .promo-tag { opacity: 1; transform: translateY(-50%); }
  .pulse::after { animation: none; }
}
.plan .label { margin-bottom: 0.9rem; }
.plan__meta { margin-top: 0.25rem; font-size: 0.95rem; color: var(--faint); }
.plan__price { margin: 1.1rem 0 0.85rem; font-size: 2.25rem; line-height: 1; }
.plan__price small { font-family: var(--sans); font-size: 0.95rem; color: var(--faint); margin-left: 0.15rem; }
.plan__desc { font-size: 1rem; color: var(--ink-soft); }
.plan__fine { margin-top: 0.6rem; font-size: 0.9rem; color: var(--faint); }
.plan__action { margin-top: auto; padding-top: 1.25rem; }
.plan__action .btn { width: 100%; padding-inline: 0.75rem; font-size: 0.95rem; }
.terms { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.terms h3 { margin-bottom: 0.4rem; }
.terms p { font-size: 1.02rem; }
@media (max-width: 52rem) { .plans--3 { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .plans--2 { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; }
.about > div > p + p { margin-top: 1rem; }
.about .intro { margin-bottom: 1rem; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.ruled { list-style: none; border-top: 1px solid var(--rule); font-size: 1rem; }
.ruled li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
@media (max-width: 46rem) { .about { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-text); }
.plus { position: relative; flex: none; width: 1rem; height: 1rem; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 2px; background: var(--copper-text); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { display: none; }
.faq p { padding: 0 2.5rem 1.1rem 0; color: var(--ink-soft); }

/* Closing */
.closing__title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 26ch; line-height: 1.15; margin-bottom: 0.5rem; }
.closing .actions { margin-top: 1.5rem; }

/* Footer */
.foot { --faint: #94A0A6; background: var(--ink); color: rgba(245, 240, 232, 0.8); padding: 2.75rem 0; font-size: 0.95rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot p { margin-top: 0.6rem; }
.foot a:hover { color: var(--copper); }
.logo--light { color: #F5F0E8; }
.logo--light .logo__i { color: var(--copper); }
.foot__right { text-align: right; }
.foot__contact { display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; }
.foot__social { display: inline-flex; padding: 0.35rem; margin: -0.35rem; line-height: 0; }
.foot__social .icon { display: block; }
.langs--foot { justify-content: flex-end; margin-top: 0.5rem; }
.langs--foot [aria-current] { color: #F5F0E8; }
@media (max-width: 40rem) { .foot__right { text-align: left; } .foot__contact { justify-content: flex-start; } .langs--foot { justify-content: flex-start; } }

/* Cookie notice (GA4 consent). Accept and decline carry the same weight. */
.consent { position: fixed; z-index: 30; left: 1rem; bottom: 1rem; max-width: 26rem; padding: 1rem 1.1rem; background: var(--white); color: var(--ink); border: 1px solid var(--rule-strong); box-shadow: 0 8px 24px rgba(23, 43, 50, 0.12); }
.consent p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.consent__actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.consent[hidden] { display: none; }
@media (max-width: 32rem) { .consent { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Support, privacy, terms and 404 pages. */
.legal { border-top: 0; }
.legal__body { max-width: 44rem; }
.legal__body h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.5rem; }
.legal__body > .small { margin-bottom: 2rem; }
.legal__body h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.legal__body p, .legal__body li { font-size: 1.05rem; }
.legal__body p + p { margin-top: 0.9rem; }
.legal__body ul, .legal__body ol { padding-left: 1.25rem; margin: 1rem 0; }
.legal__body li + li { margin-top: 0.6rem; }
.legal__body a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal__body code { font-size: 0.92em; }
.legal__table { overflow-x: auto; margin: 0.75rem 0 1.5rem; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.legal__table th { font-weight: 600; }
.legal__back { margin-top: 2.5rem; }
.foot__legal { margin-top: 0.6rem; }
.foot__legal a { text-decoration: underline; text-underline-offset: 0.2em; }
.nf { margin-top: 2.5rem; max-width: 36rem; }
.nf h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.nf .actions { margin-top: 1.5rem; }
