/* Inter, self-hosted (one variable file covers weights 100-900; no request to Google). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('../fonts/inter-latin-var.woff2') format('woff2-variations'), url('../fonts/inter-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('../fonts/inter-latin-ext-var.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext-var.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body { background: #ffffff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.65; }
.ft-page { padding: 40px 20px 80px; }
.ft-hero { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.ft-hero h1 { font-size: 52px; line-height: 1.1; font-weight: 800; margin-bottom: 12px; }
.ft-sub { color: var(--gray); font-size: 18px; }
.ft-attempts { text-align: center; font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.ft-attempts a { font-weight: 600; }

.ft-marketing h2, .ft-faq h2 { font-size: 40px; line-height: 1.2; font-weight: 700; }
.ft-block-title, .ft-empty-title, .ft-loading-title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.ft-faq summary { font-size: 18px; }
.btn-primary, .btn-secondary { font-size: 16px; font-weight: 600; }
@media (max-width: 700px) {
    .ft-hero h1 { font-size: 34px; }
    .ft-marketing h2, .ft-faq h2 { font-size: 28px; }
}

.ft-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ft-wrap { grid-template-columns: 1fr; } }

.ft-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .ft-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ft-hub-grid { grid-template-columns: 1fr; } }
.ft-hub-card { display: flex; flex-direction: column; justify-content: center; min-height: 140px; border: 2px solid var(--red); border-radius: 12px; padding: 20px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ft-hub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230, 0, 35, 0.12); text-decoration: none; }
.ft-hub-card-title { font-weight: 700; font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.ft-hub-card-desc { font-size: 13px; color: var(--gray); line-height: 1.4; }

.ft-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.ft-panel-left { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ft-panel-right { padding: 18px; min-height: 480px; }

.ft-block { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ft-block-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px; }
.ft-toggle { cursor: pointer; }
.ft-block-icon { font-size: 18px; line-height: 1; }
.ft-block-title { font-weight: 600; font-size: 14px; }
.ft-block-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.ft-chevron { margin-left: auto; color: var(--gray); transition: transform .15s; }
.ft-collapsible[data-open="0"] .ft-block-body { display: none; }
.ft-collapsible[data-open="0"] .ft-chevron { transform: rotate(-90deg); }
.ft-block-body { padding: 0 14px 14px; }

#ftUrl, .ft-panel-left textarea, .ft-panel-left input[type=text] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.ft-panel-left { padding-top: 18px; }
.ft-panel-left > .ft-block:first-child input { width: calc(100% - 28px); margin: 0 14px 14px; }

.ft-label { display: block; font-size: 12px; font-weight: 600; margin: 6px 0 6px; }
.ft-tone-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ft-tone-btn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.ft-tone-btn.active { border-color: var(--red); color: var(--red); background: #fff5f6; }
.ft-panel-left textarea { resize: vertical; }

.ft-template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ft-template-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; }
.ft-template-chip input { margin: 0; }

.ft-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ft-switch-label { font-size: 13px; font-weight: 600; }
.ft-switch-sub { font-size: 12px; color: var(--gray); }
.ft-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.ft-switch input { opacity: 0; width: 0; height: 0; }
.ft-switch span { position: absolute; inset: 0; background: var(--border); border-radius: 22px; transition: .15s; }
.ft-switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.ft-switch input:checked + span { background: var(--red); }
.ft-switch input:checked + span::before { transform: translateX(16px); }

.ft-generate-btn { width: 100%; padding: 13px; font-size: 15px; }

.ft-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ft-tab { border: none; background: none; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: default; }
.ft-tab.active { background: var(--light); color: var(--red); }
.ft-results-actions { display: flex; gap: 8px; }

.ft-empty, .ft-loading { text-align: center; padding: 60px 20px; color: var(--gray); }
.ft-empty-icon { font-size: 34px; margin-bottom: 10px; }
.ft-empty-title, .ft-loading-title { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.ft-empty-sub, .ft-loading-sub { font-size: 13px; max-width: 360px; margin: 0 auto; }
.ft-spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; margin: 0 auto 16px; animation: ft-spin 0.8s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

.ft-pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .ft-pin-grid { grid-template-columns: repeat(2, 1fr); } }
.ft-pin-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ft-pin-img-wrap { position: relative; background: var(--light); }
.ft-pin-img-wrap img { width: 100%; display: block; aspect-ratio: 2 / 3; object-fit: cover; }
.ft-pin-select { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px; line-height: 0; }
.ft-pin-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.ft-pin-style { font-size: 12px; color: var(--gray); }
.ft-pin-actions { display: flex; gap: 6px; }
.ft-pin-mini-btn { border: 1px solid var(--border); background: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--dark); cursor: pointer; font-size: 13px; }

.ft-start-free-btn { width: 100%; margin-top: 18px; padding: 13px; font-size: 15px; }

.ft-marketing { background: #fff5f6; border-radius: 16px; padding: 40px; text-align: center; margin-top: 56px; }
.ft-marketing-badge { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px; }
.ft-marketing h2 { font-size: 28px; margin: 0 0 12px; }
.ft-marketing p { color: var(--gray); max-width: 560px; margin: 0 auto 20px; }
.ft-marketing-cta { padding: 12px 28px; font-size: 15px; }
.ft-marketing-note { font-size: 12px; color: var(--gray); margin-top: 10px; }

.ft-faq { max-width: 720px; margin: 56px auto 0; }
.ft-faq h2 { text-align: center; margin-bottom: 20px; }
.ft-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.ft-faq summary { cursor: pointer; font-weight: 600; }
.ft-faq p { color: var(--gray); margin: 10px 0 0; font-size: 14px; }

/* Homepage preview widget */
.ft-preview-widget { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-top: 28px; max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
.ft-preview-widget .ft-preview-label { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; margin-bottom: 8px; }
.ft-preview-widget form { display: flex; gap: 8px; margin-top: 12px; }
.ft-preview-widget input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 24px; font-size: 14px; }
