/* ═══════════════════════════════════════════════════════════
   Tanaoroshi LP — Custom Styles
   Colors: primary #0365E5, dark #061933, bg #F7F7F8
   ═══════════════════════════════════════════════════════════ */

/* ── Global typography & spacing ───────────────────────── */
.tanaoroshi-lp {
    letter-spacing: 0.02em;
    line-height: 1.9;
    overflow-wrap: break-word;
    overflow-x: hidden;
    max-width: 100vw;
}

.tanaoroshi-lp h1,
.tanaoroshi-lp h2,
.tanaoroshi-lp h3 {
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.tanaoroshi-lp p {
    line-height: 2;
}

@media (max-width: 639px) {
    .tanaoroshi-lp p {
        font-size: 14px;
    }

    .tanaoroshi-lp .tn-disclaimer {
        font-size: 12px;
    }
}

/* ── Fade-in animation ─────────────────────────────────── */
.tn-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tn-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── FAQ accordion ─────────────────────────────────────── */
.tn-faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tn-faq-toggle {
    transition: transform 0.3s ease;
}

.tn-faq-item.is-open .tn-faq-toggle {
    transform: rotate(180deg);
}

/* ── CTA form tabs ─────────────────────────────────────── */
.tn-tab-button {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tn-tab-panel {
    display: none;
}

.tn-tab-panel.is-active {
    display: block;
}

/* ── Checklist custom marker ───────────────────────────── */
.tn-checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.tn-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230365E5'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ── Step connector line ───────────────────────────────── */
.tn-step-connector {
    position: relative;
}

.tn-step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #CBD5E1;
}

.tn-step-connector:last-child::after {
    display: none;
}

/* ── Highlight (full background) ───────────────────────── */
.tn-highlight {
    background-color: #0365E5;
    color: #fff;
    padding: 0.1em 0.35em;
    border-radius: 0.25em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ── Logo symbol background ────────────────────────────── */
#tn-symbol-wrapper {
    position: relative;
}

.tn-symbol-bg {
    position: sticky;
    top: 0;
    height: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: -1;
}

.tn-symbol-img {
    position: absolute;
    top: 40vh;
    transform: translateY(-50%) scale(1);
    width: 90vw;
    max-width: 1000px;
    opacity: 0;
    will-change: transform, opacity;
}

#tn-symbol-wrapper > section {
    position: relative;
}

/* ── Background arc decorations ────────────────────────── */
.tn-bg-arcs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    max-width: 100vw;
}

.tn-bg-arcs-svg {
    width: 100%;
    height: 400vh;
    position: absolute;
    top: 0;
    left: 0;
}

.tn-arc {
    fill: none;
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: tn-arc-draw 6s ease-out forwards;
}

.tn-arc-1 {
    animation-delay: 0.3s;
    animation-duration: 6s;
}

.tn-arc-2 {
    animation-delay: 1.2s;
    animation-duration: 5s;
}

@keyframes tn-arc-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── Header (floating pill) ────────────────────────────── */
.tn-header {
    pointer-events: none;
}

.tn-header > div > div,
.tn-header > div > nav {
    pointer-events: auto;
}

/* ── Mobile menu ───────────────────────────────────────── */
.tn-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.tn-mobile-nav.is-open {
    max-height: 500px;
}

/* ── Hero curve ────────────────────────────────────────── */
.tn-hero-curve svg {
    min-width: 1440px;
}

/* ── Form styles ───────────────────────────────────────── */
.tn-form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tn-form-input:focus {
    border-color: #0365E5;
    box-shadow: 0 0 0 3px rgba(3, 101, 229, 0.1);
}

select.tn-form-input {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.tn-form-message {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tn-form-message.is-visible {
    opacity: 1;
}

.tn-input-error {
    border-color: #f87171 !important;
}

/* ── Floating CTA bar ──────────────────────────────────── */
.tn-floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.tn-floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Privacy Policy typography ─────────────────────────── */
.tn-privacy-policy h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #061933;
}

.tn-privacy-policy h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #061933;
}

.tn-privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #404040;
}

.tn-privacy-policy ul,
.tn-privacy-policy ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.tn-privacy-policy ul {
    list-style-type: disc;
}

.tn-privacy-policy ol {
    list-style-type: decimal;
}

.tn-privacy-policy li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #404040;
}

.tn-privacy-policy a {
    color: #0365E5;
    text-decoration: underline;
}

.tn-privacy-policy a:hover {
    color: #0250B8;
}

/* ── Responsive ────────────────────────────────────────── */

/* Prevent iOS auto-zoom on form inputs */
@media (max-width: 767px) {
    .tn-form-input,
    .tn-form-input:focus,
    select.tn-form-input {
        font-size: 16px;
    }

    select.tn-form-input {
        padding-right: 2.5rem;
    }

    .tn-form-input::placeholder {
        font-size: 14px;
    }

    select.tn-form-input option:first-child {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .tn-step-connector::after {
        display: none;
    }

    .tn-floating-cta {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .tn-floating-cta .flex {
        gap: 0.5rem;
        padding: 0.75rem;
    }
}

/* Extra small screens (< 375px) */
@media (max-width: 374px) {
    .tanaoroshi-lp {
        font-size: 14px;
    }

    .tn-floating-cta {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
}
