:root {
  --paper: #F3EFE7;
  --outer: #E4DFD5;
  --card: #FFFFFF;
  --ink: #111111;
  --muted: #57534E;
  --accent: #FF441C;
  --accent-hover: #E03410;
  --border: rgba(17, 17, 17, 0.10);
  --border-strong: rgba(17, 17, 17, 0.18);
  --soft: #EAE4D8;
  --radius: 16px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--outer);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 16px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: 100%;
  max-width: 576px;
  margin: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(17, 17, 17, 0.10);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 12px;
}

.hero-stage {
  position: relative;
  height: 360px;
  background: var(--ink);
  overflow: hidden;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 14px);
  object-fit: cover;
  object-position: center 22%;
  display: block;
  will-change: transform;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.58) 0%, transparent 28%, transparent 62%, rgba(243, 239, 231, 0.55) 86%, var(--paper) 100%);
  pointer-events: none;
}

.hero-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.handle-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 239, 231, 0.88);
  letter-spacing: 0.01em;
}

.handle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 68, 28, 0.25);
}

.verified-icon {
  width: 14px;
  height: 14px;
  color: #3897F0;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: rotate(-2.5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.monogram-emblem {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  text-align: center;
  pointer-events: none;
}

.monogram-letters {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--paper);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.monogram-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(243, 239, 231, 0.68);
}

.identity {
  position: relative;
  padding: 22px 20px 6px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

.accent-block {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 1px 10px 3px;
  border-radius: 6px;
}

.tagline {
  margin: 0 auto 18px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.hero-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.09);
  border-color: rgba(17, 17, 17, 0.32);
}

.hero-pill.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(255, 68, 28, 0.24);
}

.hero-pill.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(255, 68, 28, 0.32);
}

.hero-pill svg {
  width: 16px;
  height: 16px;
}

/* Content */
.content {
  padding: 16px 20px 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 13px 14px;
  border-radius: var(--radius);
  min-height: 74px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-card:hover,
.partner:has(a:hover) {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.07);
}

.featured-card {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
}

.featured-card:hover {
  border-color: var(--ink);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.2);
}

.featured-card .card-copy strong {
  color: #FFFFFF;
}

.featured-card .card-copy > span {
  color: rgba(243, 239, 231, 0.72);
}

.featured-card .arrow {
  color: var(--accent);
}

.card-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-box.accent {
  background: var(--accent);
  color: #FFFFFF;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.card-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.card-copy > span {
  font-size: 13px;
  line-height: 1.38;
  color: var(--muted);
}

.arrow {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Sections */
.section-heading {
  margin: 30px 2px 14px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.cards {
  display: grid;
  gap: 10px;
}

/* Carousel / Destaques */
.portfolio-slider {
  position: relative;
}

.portfolio-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
  padding: 2px 0;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-slide {
  flex: 0 0 64%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-slide img,
.portfolio-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.13);
}

.portfolio-slide.theme-dark {
  background: var(--ink);
  color: var(--paper);
}

.portfolio-slide.theme-paper {
  background: #FAF8F4;
  color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
}

.portfolio-slide.theme-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slide-author {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.72;
}

.slide-pill {
  background: #FFFFFF;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  transform: rotate(-2deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.slide-body {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-visual {
  border-radius: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(128, 128, 128, 0.22);
  background: rgba(17, 17, 17, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
}

.portfolio-slide.theme-dark .slide-visual {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.portfolio-slide.theme-accent .slide-visual {
  background: rgba(17, 17, 17, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.slide-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.swatch-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 9px;
}

.mini-btn.bad {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.6;
  text-decoration: line-through;
}

.mini-btn.good {
  background: var(--accent);
  color: #FFFFFF;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.wave-bars span {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.slide-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.72;
}

.slide-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.slide-title mark {
  background: var(--accent);
  color: #FFFFFF;
  padding: 0 6px 2px;
  border-radius: 4px;
}

.portfolio-slide.theme-accent .slide-title mark {
  background: var(--ink);
  color: var(--paper);
}

.slide-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.82;
}

.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(128, 128, 128, 0.25);
  opacity: 0.78;
}

.portfolio-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.06);
  transition: background-color 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.portfolio-nav:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: rgba(17, 17, 17, 0.35);
}

.portfolio-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.portfolio-nav.prev svg {
  transform: rotate(180deg);
}

.portfolio-nav svg {
  width: 15px;
  height: 15px;
}

.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.portfolio-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.portfolio-dot[aria-current="true"] {
  width: 22px;
  background: var(--accent);
}

/* Partner / Split action card (same interaction pattern as Tereza's coupon cards) */
.partner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px 0 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.partner > a {
  padding: 13px 0 13px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  min-height: 74px;
}

.action-btn {
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 9px;
  min-width: 96px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.action-btn svg {
  width: 13px;
  height: 13px;
}

.action-btn:hover {
  background: var(--soft);
  border-color: rgba(17, 17, 17, 0.3);
}

.helper-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 4px 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 36px 0 30px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

footer p {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Accessibility & Toast */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.25);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 30;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 40;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.no-script {
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

.no-script a {
  text-decoration: underline;
}

@media (max-width: 520px) {
  body {
    padding: 8px;
    background: var(--paper);
  }
  .page {
    border-radius: 22px;
    box-shadow: none;
  }
  .hero-stage {
    height: 310px;
  }
  .content {
    padding: 14px 12px 0;
  }
  h1 {
    font-size: 38px;
  }
  .portfolio-slide {
    flex: 0 0 78%;
  }
  .portfolio-nav {
    display: none;
  }
}

@media (max-width: 360px) {
  .content {
    padding: 14px 8px 0;
  }
  h1 {
    font-size: 33px;
  }
  .card-icon-box {
    width: 40px;
    height: 40px;
  }
  .partner > a {
    padding-left: 10px;
    gap: 10px;
  }
  .action-btn {
    min-width: 84px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .portfolio-track {
    scroll-behavior: auto;
  }
}
