/* Gerado por scripts/build-css.php. Edite os arquivos em resources/css. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/geist-01.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-02.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/geist-03.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/geist-04.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/geist-05.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-mono-01.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/geist-mono-02.woff2') format('woff2');
}

@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/shippori-mincho-01.woff2') format('woff2');
}

@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/shippori-mincho-02.woff2') format('woff2');
}

@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/shippori-mincho-03.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/zen-kaku-gothic-new-01.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/zen-kaku-gothic-new-02.woff2') format('woff2');
}

[data-product="hosting"] {
    --hosting-flame-outer: var(--truyp-beni);
    --hosting-flame-inner: var(--truyp-washi);
}

[data-product="hunleads"] {
    color-scheme: dark;
    --hunleads-yoru: #0C0A0A;
    --hunleads-raised-dark: #151212;
    --hunleads-raised-2-dark: #1D1919;
    --hunleads-sunken-dark: #070606;
    --hunleads-line-dark: #2B2525;
    --hunleads-line-strong-dark: #6E6260;
    --hunleads-hane: #F7F7F5;
    --hunleads-muted-dark: #A39592;
    --hunleads-raised-light: #FFFFFF;
    --hunleads-raised-2-light: #F1EEED;
    --hunleads-sunken-light: #EFEBEA;
    --hunleads-line-light: #E2DBDA;
    --hunleads-line-strong-light: #8C807E;
    --hunleads-ink-light: #0C0A0A;
    --hunleads-muted-light: #6B5F5D;
    --hunleads-me: #FF2A2A;
    --hunleads-me-text-dark: #FF4D4D;
    --hunleads-me-text-light: #C8141B;
    --hunleads-me-fill: #D91E1E;
    --hunleads-on-me: #FFFFFF;
    --hunleads-enji: #5E1B25;
    --hunleads-enji-ink: #F7F7F5;
    --hunleads-enji-muted: #DCC4C4;
    --hunleads-enji-tint-dark: #1F1013;
    --hunleads-enji-tint-light: #F5ECEB;
    --hunleads-enji-line: #7A2C37;
    --hunleads-nezumi: #B39C99;
    --hunleads-nezumi-text-dark: #B39C99;
    --hunleads-nezumi-text-light: #7D6663;
    --hunleads-stage-seen-dark: #4A403F;
    --hunleads-stage-seen-light: #D6CDCB;
    --hunleads-stage-aim-dark: #B39C99;
    --hunleads-stage-aim-light: #9C8481;
    --hunleads-stage-chase-dark: #F7F7F5;
    --hunleads-stage-chase-light: #0C0A0A;
    --hunleads-stage-caught: var(--hunleads-me);
    --hunleads-lock: var(--hunleads-me);
    --font-body: "Geist", "SF Pro Display", -apple-system, system-ui, sans-serif;
    --font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
    --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
    --font-jp-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-16: 64px;
    --space-32: 128px;
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --color-canvas: var(--hunleads-yoru);
    --color-surface: var(--hunleads-raised-dark);
    --color-surface-raised-2: var(--hunleads-raised-2-dark);
    --color-surface-sunken: var(--hunleads-sunken-dark);
    --color-text: var(--hunleads-hane);
    --color-muted: var(--hunleads-muted-dark);
    --color-border: var(--hunleads-line-strong-dark);
    --color-line: var(--hunleads-line-dark);
    --color-accent: var(--hunleads-enji);
    --color-accent-text: var(--hunleads-nezumi-text-dark);
    --color-link: var(--hunleads-nezumi-text-dark);
    --color-focus: var(--hunleads-hane);
}

[data-theme="light"][data-product="hunleads"] {
    color-scheme: light;
    --color-canvas: var(--hunleads-hane);
    --color-surface: var(--hunleads-raised-light);
    --color-surface-raised-2: var(--hunleads-raised-2-light);
    --color-surface-sunken: var(--hunleads-sunken-light);
    --color-text: var(--hunleads-ink-light);
    --color-muted: var(--hunleads-muted-light);
    --color-border: var(--hunleads-line-strong-light);
    --color-line: var(--hunleads-line-light);
    --color-accent: var(--hunleads-enji);
    --color-accent-text: var(--hunleads-nezumi-text-light);
    --color-link: var(--hunleads-nezumi-text-light);
    --color-focus: var(--hunleads-ink-light);
}

[data-product="pay"] {
    --pay-status-paid: var(--color-text);
    --pay-status-pending: var(--color-muted);
    --pay-status-failed: var(--color-accent-text);
    --pay-status-dispute: var(--color-accent);
    --pay-status-refunded: var(--truyp-gin);
    --pay-chart-current: var(--color-text);
    --pay-chart-previous: var(--truyp-line-strong-dark);
    --pay-amount-negative: var(--color-text);
}

[data-theme="light"][data-product="pay"] {
    --pay-status-paid: var(--color-text);
    --pay-status-pending: var(--color-muted);
    --pay-status-failed: var(--color-accent-text);
    --pay-status-dispute: var(--color-accent);
    --pay-status-refunded: #4A4A4F;
    --pay-chart-current: var(--color-text);
    --pay-chart-previous: #95959A;
    --pay-amount-negative: var(--color-text);
}

[data-product="platform"] {
    --platform-accent: var(--truyp-beni-text-dark);
}

[data-theme="light"][data-product="platform"] {
    --platform-accent: var(--truyp-beni-text-light);
}

[data-product="robots"] {
    --robots-accent: var(--truyp-beni-text-dark);
}

[data-theme="light"][data-product="robots"] {
    --robots-accent: var(--truyp-beni-text-light);
}

:root,
[data-product="truyp"],
[data-product="pay"],
[data-product="hosting"],
[data-product="robots"],
[data-product="platform"] {
    color-scheme: dark;
    --truyp-sumi: #0A0A0B;
    --truyp-raised-dark: #141416;
    --truyp-sunken-dark: #050506;
    --truyp-line-dark: #2A2A2D;
    --truyp-line-strong-dark: #646469;
    --truyp-washi: #F4F3EF;
    --truyp-muted-dark: #8E8E93;
    --truyp-raised-light: #FFFFFF;
    --truyp-sunken-light: #EAE9E4;
    --truyp-line-light: #D8D7D2;
    --truyp-line-strong-light: #85858A;
    --truyp-ink-light: #0A0A0B;
    --truyp-muted-light: #5E5E63;
    --truyp-gin: #B8B8BC;
    --truyp-beni: #E0102F;
    --truyp-beni-text-dark: #FF3B55;
    --truyp-beni-text-light: #C80A27;
    --truyp-beni-soft-dark: #2B0B12;
    --truyp-beni-soft-light: #FBE4E7;
    --truyp-on-beni: #FFFFFF;
    --font-body: "Geist", "SF Pro Display", -apple-system, system-ui, sans-serif;
    --font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
    --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
    --font-jp-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-24: 96px;
    --space-40: 160px;
    --radius-0: 0px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --duration-fast: 160ms;
    --duration-base: 320ms;
    --duration-reveal: 900ms;
    --duration-draw: 1800ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-ink: cubic-bezier(0.7, 0, 0.2, 1);
    --color-canvas: var(--truyp-sumi);
    --color-surface: var(--truyp-raised-dark);
    --color-surface-sunken: var(--truyp-sunken-dark);
    --color-text: var(--truyp-washi);
    --color-muted: var(--truyp-muted-dark);
    --color-border: var(--truyp-line-strong-dark);
    --color-line: var(--truyp-line-dark);
    --color-accent: var(--truyp-beni);
    --color-accent-text: var(--truyp-beni-text-dark);
    --color-accent-soft: var(--truyp-beni-soft-dark);
    --color-on-accent: var(--truyp-on-beni);
    --color-link: var(--truyp-beni-text-dark);
    --color-focus: var(--truyp-washi);
    --color-on-text: var(--truyp-sumi);
}

:root[data-theme="light"],
[data-theme="light"][data-product="truyp"],
[data-theme="light"][data-product="pay"],
[data-theme="light"][data-product="hosting"],
[data-theme="light"][data-product="robots"],
[data-theme="light"][data-product="platform"] {
    color-scheme: light;
    --color-canvas: var(--truyp-washi);
    --color-surface: var(--truyp-raised-light);
    --color-surface-sunken: var(--truyp-sunken-light);
    --color-text: var(--truyp-ink-light);
    --color-muted: var(--truyp-muted-light);
    --color-border: var(--truyp-line-strong-light);
    --color-line: var(--truyp-line-light);
    --color-accent: var(--truyp-beni);
    --color-accent-text: var(--truyp-beni-text-light);
    --color-accent-soft: var(--truyp-beni-soft-light);
    --color-on-accent: var(--truyp-on-beni);
    --color-link: var(--truyp-beni-text-light);
    --color-focus: var(--truyp-ink-light);
    --color-on-text: var(--truyp-washi);
}

:root {
    --font-display: var(--font-jp-serif);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-canvas);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--color-link);
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: var(--space-6);
}

.legal-page {
    width: min(100%, 960px);
    min-height: 100vh;
    margin-inline: auto;
    padding: var(--space-6);
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-line);
}

.legal-header a {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-decoration: none;
}

.theme-toggle {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

.legal-card {
    max-width: 720px;
    margin: clamp(var(--space-8), 10vw, var(--space-16)) auto;
    padding: clamp(var(--space-6), 8vw, var(--space-16));
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.legal-card h1 {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1.05;
}

.legal-card p {
    margin: 0 0 var(--space-4);
}

.legal-meta,
.legal-placeholder {
    color: var(--color-muted);
}

.legal-review {
    color: var(--color-accent-text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.error-card {
    width: min(100%, 480px);
    padding: clamp(var(--space-8), 8vw, var(--space-16));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.brand-mark {
    margin: 0 0 var(--space-6);
    color: var(--color-accent-text);
    font-family: var(--font-display);
    font-size: 2rem;
}

.error-card h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
}

.error-card p {
    margin: 0 0 12px;
}

.error-code,
.error-message,
.retry-message {
    color: var(--color-muted);
}

.error-code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}

.error-link {
    display: inline-block;
    margin-top: 20px;
    text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile polish and consistent page entrance motion. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
picture,
video,
canvas,
iframe,
svg {
    max-inline-size: 100%;
}

.auth-l {
    width: min(100%, 1200px);
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 64px);
}

.auth-l > h1 {
    max-width: 22ch;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.auth-l > p {
    max-width: 68ch;
    color: var(--color-muted);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.auth-l .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-block: 20px;
}

.auth-l .card,
.auth-l .panel {
    min-width: 0;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow-wrap: anywhere;
}

.auth-l :is(nav, form) {
    max-width: 100%;
}

.auth-l nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-block: 12px;
}

.auth-l :is(input, select, textarea, button) {
    max-width: 100%;
    font: inherit;
}

.auth-l :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.auth-l button,
.auth-l .btn {
    min-height: 44px;
}

.auth-l table {
    max-width: 100%;
}

@keyframes truyp-page-enter {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes truyp-nav-enter {
    from { opacity: 0; transform: translate3d(0, -8px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    body > main,
    body > .hl,
    body > .pay,
    body > .legal-page,
    body > .error-page {
        animation: truyp-page-enter .58s cubic-bezier(.16, 1, .3, 1) both;
    }

    body > header.nav {
        animation: truyp-nav-enter .46s cubic-bezier(.16, 1, .3, 1) both;
    }

    body > main.auth-l > * {
        animation: truyp-page-enter .5s cubic-bezier(.16, 1, .3, 1) both;
    }

    body > main.auth-l > :nth-child(2) { animation-delay: .05s; }
    body > main.auth-l > :nth-child(3) { animation-delay: .1s; }
    body > main.auth-l > :nth-child(4) { animation-delay: .15s; }
}

@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
        min-height: 100svh;
        overscroll-behavior-x: none;
    }

    :is(main, section, article, form, nav, header, footer, .wrap, .card, .panel) {
        min-width: 0;
    }

    .wrap {
        width: 100%;
        max-width: 100%;
        padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    }

    .nav .wrap {
        height: auto;
        min-height: 64px;
        padding-block: 10px;
        gap: 12px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-right .btn {
        height: 44px;
        min-height: 44px;
        padding-inline: 14px;
        font-size: 14px;
    }

    .auth {
        grid-template-columns: minmax(0, 1fr);
        min-height: 100vh;
        min-height: 100svh;
    }

    .auth-l {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    }

    .auth-l > h1 {
        font-size: clamp(2rem, 9vw, 3.25rem);
        line-height: 1.04;
    }

    .auth-l > p {
        font-size: clamp(1rem, 4vw, 1.15rem);
    }

    .auth-l table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-page {
        width: 100%;
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }

    .legal-card {
        width: 100%;
        max-width: 100%;
        padding: clamp(20px, 6vw, 32px);
    }

    .error-page {
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }

    .error-card {
        width: 100%;
        max-width: 480px;
        padding: clamp(20px, 6vw, 32px);
    }

    :is(input, select, textarea) {
        max-width: 100%;
        font-size: 16px;
    }

    :is(button, .btn, .icon-btn, input[type="submit"], input[type="button"]) {
        min-height: 44px;
        touch-action: manipulation;
    }

    table {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .ctas {
        width: 100%;
    }

    .ctas .btn {
        justify-content: center;
    }

    .auth-l .grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
    :is(.btn, button, .icon-btn, input[type="submit"]):active {
        transform: scale(.98);
        transition: transform .12s ease-out;
    }
}

@media (max-width: 760px) {
    .nav .wrap {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav .nav-links {
        display: flex;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        gap: 8px 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-block: 4px 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .nav .nav-links a {
        display: inline-flex;
        flex: 0 0 auto;
        min-height: 40px;
        align-items: center;
        white-space: nowrap;
    }
}

/* Shared motion system: scroll reveals, focused interactions, and account art. */
[hidden] {
    display: none !important;
}

.auth-l .top {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.auth-r .copy {
    width: 100%;
    margin-inline: auto;
}

html.motion-enabled .motion-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .62s cubic-bezier(.16, 1, .3, 1), transform .62s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}

html.motion-enabled .motion-item.motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

@keyframes truyp-art-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
    50% { transform: translate(-50%, calc(-50% - 10px)) rotate(1deg); }
}

@keyframes truyp-glow-breathe {
    0%, 100% { opacity: .5; scale: .94; }
    50% { opacity: 1; scale: 1.06; }
}

@keyframes truyp-mark-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: no-preference) {
    .auth-r .sym {
        animation: truyp-art-float 8s ease-in-out infinite;
    }

    .auth-r .glow {
        animation: truyp-glow-breathe 7s ease-in-out infinite;
    }

    .auth-l .ctx .mk,
    .auth-l .ctx-mark {
        animation: truyp-mark-bob 3.5s ease-in-out infinite;
    }

    :is(.btn, button, .icon-btn, .card, .panel, .card-opt > span) {
        transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        :is(.btn, button, .icon-btn):hover {
            transform: translateY(-2px);
        }

        :is(.card, .panel, .card-opt > span):hover {
            transform: translateY(-3px);
            border-color: var(--color-border, var(--line-strong, #646469));
        }
    }

    @media (hover: none) and (pointer: coarse) {
        :is(.btn, button, .icon-btn, input[type="submit"]):active {
            transform: scale(.98);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-item,
    .motion-item.motion-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
