/* =====================================================================
   Inner pages in the homepage design. Loaded after home.css on every
   page except the homepage. Light only.
   ===================================================================== */
.tn-kicker { margin: 0 0 18px !important; color: var(--tn-blue); font-size: 15px; font-weight: 600; }

/* Page hero */
.tn-phero { padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.tn-phero h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.045em; line-height: 1.04; animation: tn-focus 1.2s cubic-bezier(.2,.7,.2,1) both; }
html[dir="rtl"] .tn-phero h1 { letter-spacing: 0; line-height: 1.3; }
.tn-plead { max-width: 54ch; margin: 24px auto 0 !important; font-size: clamp(17px, 1.5vw, 19px); }
.tn-phero .tn-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tn-phero-art { padding-bottom: clamp(72px, 9vw, 120px); }

/* Framed product screenshot */
.tn-frame { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; }
.tn-frame::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -50px; width: 95%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, #2563EB1F, transparent); }
.tn-frame img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--tn-line), 0 40px 80px -40px #0B122059; }

/* Card grid */
.tn-cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px !important; }
.tn-cardgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-cardgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tn-cardgrid > * { padding: 32px; border-radius: 24px; background: var(--tn-surface); box-shadow: inset 0 0 0 1px var(--tn-line); }
.tn-mistbg .tn-cardgrid > * { box-shadow: none; }
.tn-cardgrid small { display: block; color: var(--tn-blue); font-weight: 600; font-size: 13px; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.tn-cardgrid h3 { font-size: 20px; margin-bottom: 8px !important; }
.tn-cardgrid p { font-size: 15px; }
.tn-cardgrid a.tn-more { display: inline-block; margin-top: 18px; color: var(--tn-ink); font-weight: 600; font-size: 14.5px; border-bottom: 1.5px solid var(--tn-line2); padding-bottom: 2px; }
.tn-cardgrid a.tn-more:hover { border-color: var(--tn-ink); }
@media (max-width: 1000px) { .tn-cardgrid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tn-cardgrid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tn-cardgrid, .tn-cardgrid.c3, .tn-cardgrid.c4 { grid-template-columns: minmax(0, 1fr); } .tn-cardgrid > * { padding: 26px; } }
.tn-mistbg { background: var(--tn-mist); }

/* Two-column text + dark panel */
.tn-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.tn-split .tn-intro p + p { margin-top: 14px; font-size: 16px; }
.tn-deepcard { padding: clamp(28px, 4vw, 40px); border-radius: 28px; background: var(--tn-deep); color: #A9B4C8; }
.tn-deepcard h3 { color: #fff !important; margin-bottom: 22px !important; font-size: 20px; }
.tn-deepcard ul { display: grid; gap: 14px; }
.tn-deepcard li { display: flex; gap: 12px; color: #E3E8F2; font-size: 15.5px; }
.tn-deepcard li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #8DB1FF; }
@media (max-width: 900px) { .tn-split { grid-template-columns: minmax(0, 1fr); } }

/* Grouped rows (advanced catalogue, FAQ groups) */
.tn-groups { margin-top: 56px; }
.tn-group { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); padding: 44px 0; border-top: 1px solid var(--tn-line2); scroll-margin-top: 90px; }
.tn-group:last-child { border-bottom: 1px solid var(--tn-line2); }
.tn-group > div:first-child h2 { font-size: clamp(24px, 2.6vw, 32px) !important; letter-spacing: -.02em; }
.tn-group > div:first-child p { margin-top: 12px; font-size: 15.5px; max-width: 34ch; }
.tn-group .tn-cardgrid { margin-top: 0 !important; }
.tn-group .tn-faq-list details:first-child { border-top: 0; }
.tn-group .tn-faq-list summary { padding-top: 0; }
.tn-group .tn-faq-list details + details summary { padding-top: 24px; }
@media (max-width: 860px) { .tn-group { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.tn-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.tn-ticks { display: grid; gap: 12px; margin-top: 28px !important; }
.tn-ticks li { display: flex; gap: 10px; color: var(--tn-ink); font-size: 15.5px; }
.tn-ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--tn-blue); }
.tn-formcard { padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--tn-surface); box-shadow: inset 0 0 0 1px var(--tn-line), 0 40px 80px -50px #0B122040; }
.tn-formcard h3 { font-size: 24px; margin-bottom: 8px !important; }
.tn-formcard > p { margin-bottom: 24px !important; font-size: 15px; }
.tn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tn-form-grid .full { grid-column: 1 / -1; }
.tn-form-grid label { display: block; margin-bottom: 6px; color: var(--tn-ink); font-size: 13.5px; font-weight: 600; }
.tn-form-grid input, .tn-form-grid select, .tn-form-grid textarea { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--tn-line2); border-radius: 12px; background: var(--tn-surface); color: var(--tn-ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.tn-form-grid textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.tn-form-grid input:focus, .tn-form-grid select:focus, .tn-form-grid textarea:focus { outline: 0; border-color: var(--tn-blue); box-shadow: 0 0 0 4px #2563EB1F; }
.tn-formcard button.tn-btn { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.tn-alert { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.tn-alert.ok { background: #E8F6EE; color: #146C43; }
.tn-alert.err { background: #FDECEC; color: #B42318; }
.tn-alert ul { margin: 0; padding-inline-start: 18px; list-style: disc; }
.tn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .tn-contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .tn-form-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.tn-page .legal-body { padding: 0 0 clamp(72px, 9vw, 120px); background: none; }
.tn-page .legal-body .container { width: min(1160px, 100% - 40px); max-width: none; margin-inline: auto; padding: 0; }
.tn-page .legal-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tn-page .legal-toc { position: sticky; top: 100px; padding: 24px; border: 0; border-radius: 20px; background: var(--tn-mist); box-shadow: none; }
.tn-page .legal-toc h4, .tn-page .legal-toc strong { display: block; margin-bottom: 12px !important; color: var(--tn-ink); font-size: 14px; }
.tn-page .legal-toc a { display: block; padding: 5px 0; color: var(--tn-text); font-size: 14px; }
.tn-page .legal-toc a:hover { color: var(--tn-ink); }
.tn-page .legal-content { max-width: 72ch; font-size: 16px; border: 0; box-shadow: none; background: none; padding: 0; }
.tn-page .legal-content h2 { margin: 44px 0 14px !important; font-size: 26px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.tn-page .legal-content > h2:first-child, .tn-page .legal-content > section:first-child h2 { margin-top: 0 !important; }
.tn-page .legal-content h3 { margin: 24px 0 8px !important; font-size: 18px; }
.tn-page .legal-content p, .tn-page .legal-content li { margin-bottom: 10px; color: var(--tn-text); }
.tn-page .legal-content ul { list-style: disc; padding-inline-start: 22px; margin-bottom: 14px; }
.tn-page .legal-content a { color: var(--tn-blue); }
.tn-page .legal-updated { display: block; margin-top: 18px !important; color: var(--tn-soft); font-size: 14px; }
@media (max-width: 860px) { .tn-page .legal-wrap { grid-template-columns: 1fr; } .tn-page .legal-toc { position: static; } }

/* Invoice builder host */
.tn-page .gen-host, .tn-page .tn-try { background: var(--tn-mist); padding: clamp(56px, 7vw, 96px) 0; }
.tn-page .tn-try .tn-intro { margin-bottom: 40px; }

/* Live package cards on the pricing page reuse the homepage rules. */
.tn-page .tn-pricing { padding-top: 0; }
.tn-price-note { margin-top: 28px !important; text-align: center; font-size: 14.5px; color: var(--tn-soft); }

/* Closing band needs its own top space after a tinted section. */
.tn-mistbg + .tn-closing, .tn-try + .tn-closing, .gen-host + .tn-closing { padding-top: clamp(72px, 9vw, 120px); }

/* Old legal hero band and date pill. */
.tn-page .legal-hero { background: none !important; border: 0 !important; padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px) !important; }
.tn-page .legal-hero h1 { color: var(--tn-ink); }
.tn-page .legal-hero .legal-updated { display: block; width: auto; max-width: none; margin: 18px auto 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--tn-soft); }
