/* Método D.F.T. — sequência visual enviada por Denis em 17/11/2026. */
html { color-scheme: dark; }
.dft-wrap { width:min(100% - 40px, 1024px); margin-inline:auto; }
.dft-hero { padding:64px 0 56px; background:var(--gradient-vignette); }
.dft-eyebrow { color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.dft-hero h1 { max-width:850px; margin:20px 0 24px; font-size:clamp(2.35rem, 5vw, 4.25rem); line-height:1.08; text-wrap:balance; }
.dft-hero .dft-lead { max-width:700px; color:var(--muted-foreground); font-size:18px; line-height:1.7; }
.dft-hero .dft-facts { margin:20px 0 24px; color:var(--accent); font-size:13px; }
.dft-main-cta { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:14px 27px; background:var(--primary); color:var(--primary-foreground); font-weight:750; font-size:16px; box-shadow:var(--shadow-cta); text-align:center; }
.dft-main-cta:hover { filter:brightness(1.08); }
.dft-main-cta:focus-visible, .dft-gallery button:focus-visible, .dft-gallery input:focus-visible, .dft-gallery-rail:focus-visible { outline:2px solid var(--primary); outline-offset:5px; }
.dft-start-price { margin-top:12px; color:var(--accent); font-size:13px; }
.dft-method { border-top:1px solid var(--border); padding:56px 0 64px; }
.dft-method h2 { font-size:clamp(2rem, 4vw, 3rem); line-height:1.2; margin-bottom:28px; }
.dft-media { display:grid; grid-template-columns:minmax(220px, .8fr) minmax(0, 1.7fr); gap:32px; align-items:center; }
.dft-poster-frame { overflow:hidden; aspect-ratio:880 / 1536; width:100%; max-width:330px; margin:auto; background:#2b2413; }
.dft-poster-frame img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; transform:scale(1.025); }
.dft-video-frame { position:relative; aspect-ratio:16 / 9; width:100%; overflow:hidden; border:1px solid var(--border); background:var(--card); }
.dft-video-frame video { width:100%; height:100%; }
.dft-method-intro { max-width:680px; margin:56px auto 0; text-align:center; }
.dft-method-intro h2 { margin-bottom:18px; }
.dft-method-intro p { color:var(--muted-foreground); line-height:1.8; }
.dft-step-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin-top:25px; }
.dft-step-nav a { padding:10px 15px; min-height:44px; border:1px solid var(--border); color:var(--accent); font-size:13px; }
.dft-step-nav a:hover { background:var(--card); }
.dft-step { border-top:1px solid var(--border); padding:58px 0 64px; scroll-margin-top:20px; }
.dft-step-heading { display:flex; align-items:baseline; gap:18px; margin-bottom:28px; }
.dft-step-heading h2 { font-size:clamp(2.25rem, 5vw, 3.5rem); line-height:1; }
.dft-step-number { font-size:12px; color:var(--accent); font-variant-numeric:tabular-nums; letter-spacing:.12em; }
.dft-step-layout { display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); align-items:start; gap:40px; }
.dft-step-story p { font-size:19px; line-height:1.6; color:var(--foreground); margin-bottom:22px; }
.dft-step-story img { display:block; width:100%; max-width:360px; aspect-ratio:4 / 5; object-fit:cover; border:1px solid var(--border); }
.dft-step-story small { display:block; max-width:350px; margin-top:12px; color:var(--muted-foreground); font-size:12px; line-height:1.6; }
.dft-gallery { min-width:0; border:1px solid var(--border); background:var(--card); }
.dft-gallery-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; border-bottom:1px solid var(--border); }
.dft-gallery-top span { color:var(--accent); font-size:10px; font-weight:650; letter-spacing:.13em; text-transform:uppercase; }
.dft-gallery-top .dft-gallery-count { font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; letter-spacing:.04em; }
.dft-gallery-rail { position:relative; display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.dft-gallery-rail::-webkit-scrollbar { display:none; }
.dft-gallery-slide { flex:0 0 100%; width:100%; min-width:0; margin:0; scroll-snap-align:start; scroll-snap-stop:always; }
.dft-gallery-image { display:block; width:100%; height:min(54svh, 620px); object-fit:contain; background:#efe8d3; }
.dft-gallery[data-kind="photo"] .dft-gallery-image { background:#15120e; }
.dft-gallery[data-kind="photo"] .dft-gallery-wide { object-fit:cover; }
.dft-gallery-slide figcaption { display:flex; align-items:center; min-height:49px; padding:12px 16px; color:var(--foreground); font-size:13px; line-height:1.5; border-top:1px solid var(--border); }
.dft-gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 13px; border-top:1px solid var(--border); }
.dft-gallery-buttons { display:flex; gap:6px; }
.dft-gallery button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:44px; height:44px; padding:0 12px; border:1px solid var(--border); color:var(--foreground); background:transparent; cursor:pointer; font-size:13px; }
.dft-gallery button:hover { background:#ffffff0a; border-color:var(--accent); }
.dft-gallery [data-gallery-toggle] { min-width:102px; }
.dft-gallery button svg { width:15px; height:15px; }
.dft-gallery-position { display:flex; align-items:center; flex:1; min-width:0; max-width:180px; gap:9px; }
.dft-gallery-position input { display:block; width:100%; min-width:0; height:26px; accent-color:var(--accent); cursor:pointer; }
.dft-gallery-hint { padding:0 16px 13px; color:var(--muted-foreground); font-size:11px; }
.dft-portrait { aspect-ratio:3 / 4; object-fit:cover; object-position:center; }
.dft-gallery-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
body:has([data-dft-gallery][data-visible="true"]) .dft-sticky { display:none; }
.dft-book-studies { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--border); padding:7px; gap:4px; }
.dft-book-studies button { min-width:0; min-height:34px; height:34px; padding:0 6px; font-size:11px; border-color:transparent; color:var(--muted-foreground); }
.dft-book-studies button[aria-pressed="true"] { color:var(--foreground); background:#c5a16b1a; border-color:#ad8d5b55; }
.dft-gallery--book .dft-gallery-rail { display:grid; overflow:hidden; scroll-snap-type:none; isolation:isolate; touch-action:pan-y; background:#eee7d2; }
.dft-book-page { grid-area:1 / 1; width:100%; visibility:hidden; pointer-events:none; }
.dft-book-page[data-book-active="true"] { visibility:visible; z-index:1; }
.dft-gallery--book .dft-gallery-image { background:#eee7d2; }
.dft-gallery--book .dft-gallery-slide figcaption { background:var(--card); }
.dft-gallery--book .dft-gallery-rail::after { content:""; pointer-events:none; position:absolute; top:0; left:0; width:18px; height:var(--book-page-height); z-index:5; background:linear-gradient(90deg,#65513e35,#fff4 18%,#705d3710 35%,transparent); }
.dft-book-turn { position:absolute; inset:0 0 auto; height:var(--book-page-height); z-index:4; transform-origin:0 50%; transform-style:preserve-3d; pointer-events:none; will-change:transform; }
.dft-book-sheet-area { position:absolute; inset:0 0 auto; height:var(--book-page-height); z-index:3; overflow:hidden; pointer-events:none; }
.dft-book-front, .dft-book-back { position:absolute; inset:0; backface-visibility:hidden; overflow:hidden; background:#eee7d2; }
.dft-book-front { box-shadow:8px 0 20px #291e1638; }
.dft-book-front img { display:block; width:100%; height:100%; object-fit:contain; }
.dft-book-back { transform:rotateY(180deg); background:linear-gradient(90deg,#d3c9ae,#eee7d2 20%,#f6efdd 75%,#c9bea2); }
.dft-book-curl { position:absolute; inset:0 0 0 auto; width:28%; background:linear-gradient(90deg,transparent,#fff7 55%,#826c4d45); mix-blend-mode:multiply; opacity:0; }
.dft-book-shadow { position:absolute; inset:0 0 auto; height:var(--book-page-height); z-index:3; pointer-events:none; background:linear-gradient(90deg,#382714aa,transparent 85%); opacity:0; }
.dft-book-progress { height:3px; background:#5c4c302e; overflow:hidden; }
.dft-book-progress span { display:block; width:100%; height:100%; transform:scaleX(0); transform-origin:left; background:var(--accent); }
.dft-book-progress.is-running span { animation:dft-book-wait var(--book-wait,800ms) linear both; }
.dft-gallery--book[data-book-running="false"] .dft-book-progress span { animation-play-state:paused; }
@keyframes dft-book-wait { to { transform:scaleX(1); } }
@media(max-width:639px) {
  .dft-hero { padding:32px 0 36px; }
  .dft-hero h1 { margin:18px 0 20px; }
  .dft-hero .dft-lead { font-size:16px; line-height:1.7; }
  .dft-hero .dft-facts { font-size:12px; line-height:1.65; }
  .dft-main-cta { width:100%; }
  .dft-start-price { text-align:center; }
  .dft-method { padding:34px 0 40px; }
  .dft-media { grid-template-columns:1fr; gap:24px; }
  .dft-poster-frame { max-width:290px; }
  .dft-method-intro { margin-top:40px; }
  .dft-step { padding:38px 0 44px; }
  .dft-step-heading { margin-bottom:22px; }
  .dft-step-layout { grid-template-columns:1fr; gap:24px; }
  .dft-step-story { display:grid; grid-template-columns:82px minmax(0, 1fr); gap:0 16px; }
  .dft-step-story img { grid-column:1; grid-row:1 / 3; width:82px; aspect-ratio:4 / 5; }
  .dft-step-story p { grid-column:2; grid-row:1; font-size:16px; line-height:1.55; margin:0; }
  .dft-step-story small { grid-column:2; grid-row:2; margin-top:8px; font-size:11px; }
  .dft-gallery-top { padding:12px 13px; }
  .dft-gallery-image { height:min(112vw, 43svh); }
  .dft-gallery-controls { gap:8px; padding:9px; }
  .dft-gallery-buttons { gap:5px; }
  .dft-gallery button { padding-inline:10px; }
  .dft-gallery-position { max-width:105px; }
}
@media(prefers-reduced-motion:reduce) {
  .dft-gallery-rail { scroll-behavior:auto; }
  .dft-gallery *, .dft-main-cta { transition:none!important; animation:none!important; }
}
