/* =============================================================
   PUBLIC — body.public scoped: header, hero, sections, auth, terms
   Breakpoints for public pages included at bottom.
   ============================================================= */

body.public {
    background-color: var(--color-slate-100);
}

/* --- Public header --- */
body.public #pageHeader {
    background: var(--color-navy);
    height: auto;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.public #pageHeader .top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    float: none;
    width: 100%;
    height: auto;
    padding: 0.6rem 1.5rem;
    gap: 0.5rem 1.5rem;
}

body.public #pageHeader .logo {
    float: none;
    display: block;
    height: 2.5rem;
    margin: 0;
    content: url('/resources/images/minbowling_logo_white.png');
    flex-shrink: 0;
    order: 1;
}

/* Logged-in linkarea (profile/logout) — only relevant in app.css but kept here for specificity */
body.public #pageHeader .linkarea {
    display: none;
}

/* Nav links: Hur funkar det, Priser, Hitta klubbar */
body.public #pageHeader .header-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

/* Auth buttons: Logga in, Skapa konto */
body.public #pageHeader .header-auth-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

body.public #pageHeader .linkarea a:link,
body.public #pageHeader .linkarea a:visited,
body.public #pageHeader .header-nav-links a:link,
body.public #pageHeader .header-nav-links a:visited,
body.public #pageHeader .header-auth-links a:link,
body.public #pageHeader .header-auth-links a:visited {
    float: none;
    color: var(--color-slate-400);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s;
}

body.public #pageHeader .header-nav-links a:hover,
body.public #pageHeader .header-auth-links a:hover,
body.public #pageHeader .linkarea a:hover {
    color: var(--color-slate-100);
}

body.public #pageHeader .header-auth-links .loginbutton {
    color: var(--color-slate-200) !important;
    border: 1.5px solid var(--color-slate-700);
    padding: 0.35rem 1rem;
    border-radius: 7px;
    transition: border-color 0.2s, background 0.2s;
}

body.public #pageHeader .header-auth-links .loginbutton:hover {
    border-color: var(--color-slate-500);
    background: rgba(255,255,255,0.05);
    color: var(--color-white) !important;
}

body.public #pageHeader .header-auth-links a[href="/account/create"] {
    background: var(--color-blue);
    color: var(--color-white) !important;
    padding: 0.38rem 1.1rem;
    border-radius: 7px;
    font-weight: 700;
    transition: background 0.2s;
}

body.public #pageHeader .header-auth-links a[href="/account/create"]:hover {
    background: var(--color-blue-dark);
}

body.public #pageHeader .menu {
    display: none;
}

/* --- Public page wrapper & footer --- */
body.public #pageWrapper {
    background: var(--color-slate-100);
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

body.public footer {
    background: var(--color-navy);
    border-top: 1px solid #1e293b;
    height: 1.8em;
    float: left;
    width: 100%;
    text-align: left;
    padding: 0;
}

body.public footer * {
    color: var(--color-slate-500);
    font-size: 0.9em;
    margin: 0.1em;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(150deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
    float: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-slate-50);
}

.hero h1 em {
    color: #60a5fa;
    font-style: normal;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-slate-400);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    color: var(--color-slate-500);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- Features grid --- */
.features-section {
    float: left;
    width: 100%;
    padding: 4rem 2rem;
    background: var(--color-slate-100);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.features-section .section-sub {
    text-align: center;
    color: var(--color-slate-500);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-slate-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-card .f-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-slate-500);
    line-height: 1.65;
    font-size: 0.92rem;
    margin: 0;
}

/* --- CTA strip --- */
.cta-strip {
    float: left;
    width: 100%;
    background: var(--color-navy-mid);
    text-align: center;
    padding: 3.5rem 2rem;
}

.cta-strip h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-slate-50);
    margin-bottom: 0.75rem;
}

.cta-strip p {
    color: var(--color-slate-400);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* --- Pricing section --- */
.pricing-section {
    float: left;
    width: 100%;
    padding: 4rem 2rem;
    background: var(--color-white);
}

.pricing-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.pricing-section .section-sub {
    text-align: center;
    color: var(--color-slate-500);
    margin-bottom: 2.5rem;
}

.pricing-member-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    max-width: 680px;
    text-align: center;
}

.pricing-member-note strong { font-weight: 700; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.pricing-card {
    background: var(--color-slate-50);
    border: 2px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: var(--color-white);
    border-color: var(--color-blue);
    box-shadow: 0 8px 32px rgba(37,99,235,0.12);
    transform: scale(1.02);
}

.pricing-card .badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin: 1.2rem 0 0.25rem;
}

.pricing-card .price .price-from {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-slate-500);
    vertical-align: middle;
}

.pricing-card .price-note {
    color: var(--color-slate-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-card .price-yearly {
    font-size: 0.85rem;
    color: var(--color-slate-500);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    min-height: 1.5rem;
}

.pricing-card .price-yearly strong {
    color: var(--color-navy);
    font-weight: 700;
}

.pricing-card .price-saving {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-card ul li {
    padding: 0.45rem 0;
    color: var(--color-slate-700);
    font-size: 0.93rem;
    border-bottom: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: "✓";
    color: var(--color-blue);
    font-weight: 800;
    flex-shrink: 0;
}

/* Icon list overrides for pricing cards */
.pi          { color: var(--color-green); font-style: normal; font-weight: 700; flex-shrink: 0; }
.pi-premium  { color: var(--color-amber); }

.pricing-card .btn-price {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.pricing-card.featured .btn-price {
    background: var(--color-blue);
    color: var(--color-white) !important;
}

.pricing-card.featured .btn-price:hover {
    background: var(--color-blue-dark);
    transform: translateY(-1px);
}

.pricing-card:not(.featured) .btn-price,
.pricing-card .btn-price-secondary {
    background: var(--color-slate-100);
    color: var(--color-slate-700) !important;
    border: 1.5px solid var(--color-slate-200);
}

.pricing-card:not(.featured) .btn-price:hover,
.pricing-card .btn-price-secondary:hover {
    background: var(--color-slate-200);
}

/* --- Club finder --- */
.finder-section {
    float: left;
    width: 100%;
    padding: 4rem 2rem;
    background: var(--color-slate-100);
}

.finder-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.finder-section .section-sub {
    color: var(--color-slate-500);
    margin-bottom: 2rem;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1100px;
}

.club-card {
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.club-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.club-card .club-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.club-card h4 { color: var(--color-navy); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.club-card .club-city { color: var(--color-slate-400); font-size: 0.82rem; margin-bottom: 0.75rem; }

.club-card a {
    display: inline-block;
    background: var(--color-blue);
    color: var(--color-white) !important;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.club-card a:hover { background: var(--color-blue-dark); }

/* --- Role tabs (CSS-only switcher, used on get-started page) --- */
.role-tab-input { display: none; }

.role-tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.role-tab-labels label {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-slate-200);
    background: var(--color-slate-50);
    color: var(--color-slate-700);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.role-tab-labels label:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

#tab-club:checked   ~ .role-tab-labels label[for="tab-club"],
#tab-player:checked ~ .role-tab-labels label[for="tab-player"],
#tab-alley:checked  ~ .role-tab-labels label[for="tab-alley"],
#tab-coach:checked  ~ .role-tab-labels label[for="tab-coach"] {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.role-panel { display: none; }

#tab-club:checked   ~ .role-tab-panels #panel-club,
#tab-player:checked ~ .role-tab-panels #panel-player,
#tab-alley:checked  ~ .role-tab-panels #panel-alley,
#tab-coach:checked  ~ .role-tab-panels #panel-coach {
    display: block;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card { text-align: center; }

.step-num {
    width: 3rem;
    height: 3rem;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 { color: var(--color-navy); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p  { color: var(--color-slate-500); font-size: 0.9rem; line-height: 1.6; }

.coming-soon-banner {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #713f12;
}
.coming-soon-banner a { color: #92400e; font-weight: 600; }

/* --- User types (get-started) --- */
.usertypes-section {
    float: left;
    width: 100%;
    padding: 4rem 2rem;
    background: var(--color-white);
}

.usertypes-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.usertypes-section .section-sub {
    text-align: center;
    color: var(--color-slate-500);
    margin-bottom: 2.5rem;
}

.usertype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.usertype-card {
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.usertype-card .ut-icon  { font-size: 2.2rem; margin-bottom: 0.75rem; }
.usertype-card h3        { font-size: 1.1rem; font-weight: 800; color: var(--color-navy); margin-bottom: 0.25rem; }
.usertype-card .ut-tagline { color: var(--color-blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }

.usertype-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    flex: 1;
}

.usertype-card ul li {
    color: var(--color-slate-700);
    font-size: 0.88rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.usertype-card ul li::before {
    content: "✓";
    color: var(--color-green);
    font-weight: 700;
    flex-shrink: 0;
}

.usertype-card ul li.premium-li {
    color: #92400e;
    font-weight: 600;
}

.usertype-card ul li.premium-li::before {
    content: "★";
    color: var(--color-amber);
}

.usertype-card .ut-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-slate-400);
    font-style: italic;
}

/* --- Auth pages (create account, login) --- */
body.public .auth-page {
    float: left;
    width: 100%;
    min-height: calc(100vh - 5em);
    background: var(--color-slate-100);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 4rem;
}

body.public .auth-card {
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 640px;
}

body.public .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

body.public .auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

body.public .auth-header p {
    color: var(--color-slate-500);
    font-size: 1rem;
}

body.public .auth-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-red);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

body.public .auth-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-slate-400);
    margin: 1.5rem 0 0.75rem;
    border-bottom: 1px solid var(--color-slate-100);
    padding-bottom: 0.4rem;
}

body.public .auth-form .auth-field { margin-bottom: 1rem; }

body.public .auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

body.public .auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

body.public .auth-field label .req      { color: #ef4444; }
body.public .auth-field label .optional { color: var(--color-slate-400); font-weight: 400; font-size: 0.8rem; }

body.public .auth-field input[type="text"],
body.public .auth-field input[type="password"],
body.public .auth-field input[type="email"],
body.public .auth-field input[type="tel"] {
    width: 100%;
    border: 1.5px solid var(--color-slate-200);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.875rem;
    font-size: 0.95rem;
    color: var(--color-navy);
    background: var(--color-slate-50);
    transition: border-color 0.15s, box-shadow 0.15s;
    margin: 0;
}

body.public .auth-field input:focus {
    border-color: var(--color-blue);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    outline: none;
}

body.public .auth-field.has-error input { border-color: #ef4444; }

body.public .auth-field .field-error {
    display: block;
    color: var(--color-red);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

body.public .auth-tou { margin: 1.25rem 0; }

body.public .auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-slate-700);
    font-weight: 400;
}

body.public .auth-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--color-blue);
}

body.public .auth-checkbox-label a {
    color: var(--color-blue);
    text-decoration: underline;
}

body.public .auth-submit {
    width: 100%;
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

body.public .auth-submit:hover {
    background: var(--color-blue-dark);
    transform: translateY(-1px);
}

body.public .auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--color-slate-500);
    font-size: 0.9rem;
}

body.public .auth-footer-link a       { color: var(--color-blue); font-weight: 600; text-decoration: none; }
body.public .auth-footer-link a:hover { text-decoration: underline; }

body.public .auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.public .auth-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-slate-700);
    cursor: pointer;
}

body.public .auth-check-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--color-blue);
}

body.public .auth-forgot       { font-size: 0.85rem; color: var(--color-blue); text-decoration: none; font-weight: 500; }
body.public .auth-forgot:hover { text-decoration: underline; }

body.public .auth-cookie-note {
    font-size: 0.78rem;
    color: var(--color-slate-400);
    text-align: center;
    margin-top: 1rem;
}

/* --- Terms page --- */
body.public .terms-page {
    float: left;
    width: 100%;
    background: var(--color-slate-100);
    padding: 3rem 1.5rem 5rem;
}

body.public .terms-card {
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 3rem 3.5rem;
    max-width: 820px;
    margin: 0 auto;
}

body.public .terms-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

body.public .terms-updated {
    color: var(--color-slate-400);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

body.public .terms-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-slate-100);
}

body.public .terms-section:last-of-type { border-bottom: none; }

body.public .terms-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

body.public .terms-section p {
    color: var(--color-slate-700);
    line-height: 1.75;
    font-size: 0.95rem;
}

body.public .terms-field-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.public .terms-field,
body.public .terms-data-item {
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

body.public .terms-field-name,
body.public .terms-data-label {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.public .tf-required,
body.public .terms-required {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.public .tf-optional,
body.public .terms-optional {
    background: #f0fdf4;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.public .terms-field-desc,
body.public .terms-data-item p {
    color: var(--color-slate-700);
    font-size: 0.88rem;
    line-height: 1.7;
}

body.public .terms-field-name code {
    font-family: monospace;
    background: var(--color-slate-100);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.4rem;
    font-size: 0.9rem;
    color: var(--color-navy);
}

body.public .terms-back { margin-top: 2rem; text-align: center; }
body.public .terms-back a       { color: var(--color-blue); font-size: 0.9rem; text-decoration: none; font-weight: 600; }
body.public .terms-back a:hover { text-decoration: underline; }

/* =============================================================
   PUBLIC BREAKPOINTS
   T1 phone:  < 40em  (640px)
   T2 tablet: 40–52em (640–832px)  — compact header
   ============================================================= */

/* T1+T2 — compact header (≤ 52em) */
@media (max-width: 52em) {
    /* Row 1: [logo left]  [auth buttons right]
       Row 2: [nav links centred, full width]   */
    body.public #pageHeader .top {
        padding: 0.5rem 1rem;
        gap: 0;
        row-gap: 0;
    }

    /* Logo: row 1, left */
    body.public #pageHeader .logo {
        height: 2rem;
        order: 1;
        flex: 0 0 auto;
    }

    /* Auth buttons: row 1, pushed to the right */
    body.public #pageHeader .header-auth-links {
        order: 2;
        margin-left: auto;
        gap: 0.4rem;
    }

    /* Nav links: row 2, centred */
    body.public #pageHeader .header-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex: 0 0 100%;
        gap: 0.6rem 1rem;
        padding: 0.35rem 0 0.4rem;
    }

    body.public #pageHeader .header-nav-links a:link,
    body.public #pageHeader .header-nav-links a:visited,
    body.public #pageHeader .header-auth-links a:link,
    body.public #pageHeader .header-auth-links a:visited {
        font-size: 0.85rem;
    }

    body.public .auth-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    body.public .auth-field-row {
        grid-template-columns: 1fr;
    }
}

/* T1 phone only (< 40em) */
@media (max-width: 40em) {
    .hero h1   { font-size: 2.1rem; }
    .hero-sub  { font-size: 1rem; }

    .features-section,
    .pricing-section,
    .finder-section,
    .cta-strip {
        padding: 2.5rem 1rem;
    }

    .pricing-card.featured { transform: none; }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
