/* v3.css — loaded after app.css + fixes.css.
   Content sections styled after spinwheelify.com's content layout, using the site's own colours and font. */

/* ---------- 1. toolbar moved into the site header ---------- */
.site-header.has-tools { height: auto; }
.site-header.has-tools .header-inner { height: var(--header-h); }
.header-tools {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-muted) 85%, transparent);
}
.header-tools .app-toolbar {
  position: static;
  max-width: 1248px;
  margin: 0 auto;
  min-height: 42px;
  padding: 3px 16px;
  border: 0;
  background: transparent;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.header-tools .tb-btn { padding: 6px 10px; font-size: 0.8rem; }
body:has(.header-tools) { --chrome-h: calc(var(--header-h) + 43px); }
@media (max-width: 640px) {
  .header-tools .app-toolbar { justify-content: space-between; padding: 2px 8px; min-height: 40px; }
  .header-tools .tb-btn { padding: 8px; }
  .header-tools .tb-label { display: none; }
  .header-tools .menu-caret { display: none; }
}

/* ---------- 2. three easy steps: one colour, equal centred circles ---------- */
.easy-step .easy-step-icon,
.easy-tone-1 .easy-step-icon, .easy-tone-2 .easy-step-icon, .easy-tone-3 .easy-step-icon {
  background: #d83a00;
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 58, 0, 0.22);
}
.easy-step { --piece: #d83a00; }
.easy-step:not(:last-child)::after { border-color: #d83a00 !important; opacity: 0.55; }

/* solid device glyphs, no pastel tiles */
.easy-steps-devices .dev-ico {
  width: 28px; height: 28px;
  background: none; border-radius: 0;
  color: #d83a00;
}
.easy-steps-devices .dev-ico svg { width: 26px; height: 26px; }
html[data-theme="dark"] .easy-steps-devices .dev-ico { color: #ff6a33; }

/* ---------- 3. content sections (homepage below "What Is…", and all pages) ---------- */
.below-fold { overflow-x: clip; }
.below-fold .prose,
.below-fold .prose.prose-wide,
.page-home .below-fold .prose-wide { max-width: 1120px; padding: 0 24px; }

.below-fold .content-section {
  position: relative;
  margin: 0;
  padding: 64px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* full-width alternating bands, like the competitor page */
.below-fold .content-section.band-alt {
  background: var(--bg-muted);
  box-shadow: 0 0 0 100vmax var(--bg-muted);
  clip-path: inset(0 -100vmax);
}
.below-fold .content-section.band-alt::before,
.below-fold .content-section.band-alt::after {
  content: ""; position: absolute; left: -100vmax; right: -100vmax; height: 1px; background: var(--border);
}
.below-fold .content-section.band-alt::before { top: 0; }
.below-fold .content-section.band-alt::after { bottom: 0; }

/* headings */
.below-fold .content-section > .section-head,
.below-fold .content-section .section-head { margin: 0 auto 36px; text-align: center; max-width: 820px; }
.below-fold .content-section .section-head h2,
.below-fold .content-section > .section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
  display: block;
}
.below-fold .section-head.qw-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.below-fold .section-head .view-all { font-size: 0.92rem; }

/* body copy */
.below-fold .content-section .section-body { max-width: 1072px; margin: 0 auto; }
.below-fold .content-section p,
.below-fold .content-section li { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }
.below-fold .content-section p { margin: 0 0 14px; }
.below-fold .content-section p:last-child { margin-bottom: 0; }
.below-fold .content-section strong { color: var(--text); }
.below-fold .content-section a:not(.card):not(.btn) { color: var(--accent-hover); text-underline-offset: 3px; }
.below-fold .content-section h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--text); margin: 0 0 8px; }
.below-fold .content-section h3 a { color: var(--text) !important; text-decoration: none; }
.below-fold .content-section h3 a:hover { color: var(--accent-hover) !important; }

/* "What is" / text sections: plain readable column, no box */
.below-fold .split-ibox, .below-fold .split-ibox.split-solo { display: block; max-width: 820px; margin: 0 auto; }
.below-fold .split-ibox .ibox-copy {
  background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
}
.below-fold .split-ibox .ibox-copy > p:first-child { font-size: 1.125rem; color: var(--text); }
.below-fold .split-ibox ul, .below-fold .split-ibox ol { padding-left: 1.2em; margin: 0 0 14px; }
.below-fold .table-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: auto; background: var(--panel); margin: 18px 0; }
.below-fold .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.below-fold .table-wrap th, .below-fold .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.below-fold .table-wrap th { background: var(--bg-muted); color: var(--text); font-weight: 600; }

/* callouts: one clean note card */
.below-fold .callout-ibox {
  display: block;
  max-width: 820px; margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  padding: 26px 30px;
}
.below-fold .content-section:not(.band-alt) .callout-ibox { background: var(--bg-muted); }
.below-fold .callout-ibox .steps { margin: 12px 0 0; padding-left: 1.3em; }

/* generic info-box cards (features, why, uses, steps) */
.below-fold .ibox:not(.ibox-copy):not(.callout-ibox) {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.below-fold .content-section:not(.band-alt) .ibox:not(.ibox-copy):not(.callout-ibox) { background: var(--bg-muted); }
.below-fold .ibox:not(.ibox-copy):not(.callout-ibox):hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.below-fold .ibox .ibox-text p { font-size: 0.94rem; line-height: 1.65; }

.below-fold .ibox-grid-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.below-fold .section-why .ibox-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.below-fold .section-why .ibox { text-align: center; }
.below-fold .ibox-grid-uses, .below-fold .ibox-grid-auto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.below-fold .ibox-use { position: relative; padding-right: 48px !important; }
.below-fold .ibox-use .ibox-arrow { position: absolute; top: 24px; right: 20px; color: var(--accent-hover); }

/* how-to steps: centred cards with a small square number */
.below-fold .step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.below-fold .step-grid::before, .below-fold .step-grid::after,
.below-fold .step-ibox::before, .below-fold .step-ibox::after { display: none !important; }
.below-fold .step-ibox { text-align: center; display: block; }
.below-fold .step-ibox .step-num,
.below-fold .ibox-tone-1 .step-num, .below-fold .ibox-tone-2 .step-num, .below-fold .ibox-tone-3 .step-num {
  width: 36px; height: 36px; border-radius: 4px;
  margin: 0 auto 16px;
  background: #d83a00; color: #fff;
  font-weight: 700; font-size: 1rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(216, 58, 0, 0.25);
}
.below-fold .step-ibox .ibox-text p { text-align: center; }

/* link-card grids (explore, guides, related, templates) */
.below-fold .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.below-fold .card-grid > li { margin: 0; }
.below-fold .card-grid .card {
  height: 100%;
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.below-fold .content-section:not(.band-alt) .card-grid .card { background: var(--bg-muted); }
.below-fold .card-grid .card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07); transform: translateY(-1px); }
.below-fold .card-grid .card-icon { width: 36px; height: 36px; border-radius: 8px; flex: 0 0 36px; }
.below-fold .card-grid .card-icon svg { width: 18px; height: 18px; }
.below-fold .card-grid .card-copy strong { display: block; font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.below-fold .card-grid .card-copy span { display: block; font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary); }

/* "more tools" text list as a tidy grid */
.below-fold .ibox-lead { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.below-fold .text-link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.below-fold .text-link-item { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.below-fold .content-section:not(.band-alt) .text-link-item { background: var(--bg-muted); }
.below-fold .text-link-item .ibox-text p { font-size: 0.92rem; line-height: 1.6; }

/* article (blog) sections */
.below-fold .section-article .section-body { max-width: 760px; }
.below-fold .section-article .section-head { max-width: 760px; }
.below-fold .section-article .section-body p, .below-fold .section-article .section-body li { font-size: 1.05rem; }
.below-fold .section-article .section-body h3 { margin: 26px 0 10px; }
.below-fold .section-article .section-body ul, .below-fold .section-article .section-body ol { padding-left: 1.3em; margin: 0 0 16px; }
.below-fold .post-cover { max-width: 820px; margin: 24px auto 0; }

/* FAQ accordion */
.below-fold .faq.content-section .faq-list,
.below-fold .faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.below-fold .faq-item,
.below-fold .faq-item[open] {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.below-fold .faq-item summary { padding: 18px 20px; min-height: 0; }
.below-fold .faq-item .faq-q { font-size: 0.98rem; font-weight: 600; }
.below-fold .faq-item .faq-plus,
.below-fold .faq-item[open] .faq-plus {
  width: 22px; height: 22px; border: 0; background: none; border-radius: 0;
  color: #d83a00; transform: none;
}
.below-fold .faq-item .faq-plus svg { width: 18px; height: 18px; transition: transform .2s; }
.below-fold .faq-item[open] .faq-plus svg { transform: rotate(180deg); }
.below-fold .faq-item .faq-a { border-top: 1px solid var(--border); padding: 16px 20px 18px; }
.below-fold .faq-item .faq-a p { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); }

/* CTA banner */
.below-fold section.home-cta {
  margin: 64px auto; max-width: 1000px;
  padding: 56px 32px;
  border-radius: 12px;
  background: linear-gradient(120deg, #d83a00 0%, #ff4500 55%, #ff7a3d 100%);
  box-shadow: 0 24px 50px rgba(216, 58, 0, 0.22);
  clip-path: none;
}
.below-fold section.home-cta .section-head { margin-bottom: 14px; }
.below-fold section.home-cta .section-head h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.below-fold section.home-cta .section-body p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }
.below-fold section.home-cta .btn, .below-fold section.home-cta .btn-primary {
  border-radius: 6px; background: #fff; color: #1e293b; border-color: #fff; font-weight: 600; padding: 0 24px; min-height: 46px; margin-top: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* small print */
.below-fold .help { text-align: center; max-width: 820px; margin: 24px auto; font-size: 0.85rem; }

@media (max-width: 900px) {
  .below-fold .ibox-grid-4, .below-fold .section-why .ibox-grid-4, .below-fold .text-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .below-fold .step-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .below-fold .content-section { padding: 44px 0; }
  .below-fold .content-section .section-head { margin-bottom: 24px; }
  .below-fold .ibox-grid-4, .below-fold .section-why .ibox-grid-4, .below-fold .ibox-grid-uses, .below-fold .ibox-grid-auto, .below-fold .text-link-list { grid-template-columns: 1fr; }
  .below-fold .callout-ibox { padding: 20px; }
  .below-fold section.home-cta { margin: 40px 0; padding: 40px 20px; }
  .below-fold .prose, .below-fold .prose.prose-wide { padding: 0 16px; }
}

/* ---------- 4. Google sign-in (dialog, /login page, header user menu) ---------- */
dialog.auth-dialog { width: min(440px, calc(100vw - 24px)); border-radius: 10px; background: var(--panel); border: 1px solid var(--border); }
.auth-card { padding: 0; }
.auth-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.auth-head h2 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.auth-head-ico { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); flex: 0 0 32px; }
.auth-head-ico svg { width: 18px; height: 18px; }
.auth-head .modal-close { position: static; margin: 0; }
.auth-body { padding: 18px; background: var(--bg-muted); display: grid; gap: 14px; }
.auth-lead { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color .15s, box-shadow .15s;
}
.auth-google:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); color: var(--text); }
.auth-google.is-disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.auth-google[hidden] { display: none; }
.auth-status { margin: 0; font-size: 0.86rem; line-height: 1.5; padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); }
.auth-status.is-error { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); color: var(--danger); }
.auth-status[hidden] { display: none; }
.auth-fine { margin: 0; font-size: 0.78rem; color: var(--text-secondary); text-align: center; }
.auth-fine a { color: var(--accent-hover); }
.auth-actions { display: flex; gap: 10px; justify-content: center; }
.auth-foot { padding: 12px 18px; border-top: 1px solid var(--border); }
.auth-skip { display: block; width: 100%; text-align: center; min-height: 40px; line-height: 38px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer; text-decoration: none; }
.auth-skip:hover { border-color: var(--accent); color: var(--accent-hover); }
.login-page { padding: 56px 16px 80px; background: var(--bg-stage); }
.login-wrap { max-width: 440px; margin: 0 auto; }
.auth-card-page { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }

.login-btn[hidden] { display: none !important; }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.user-btn:hover { border-color: var(--accent); }
.user-avatar { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--accent-hover); color: #fff; display: grid; place-items: center; flex: 0 0 28px; }
.user-initials { font-size: 0.72rem; font-weight: 700; }
.user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .user-name { display: none; } .user-btn { padding: 0 3px; } }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-hover); padding: 6px; z-index: 60; }
.user-dropdown[hidden] { display: none; }
.user-id { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; gap: 2px; }
.user-id strong { font-size: 0.88rem; color: var(--text); }
.user-id span { font-size: 0.78rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; }
.user-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer; }
.user-item:hover { background: var(--bg-muted); color: var(--accent-hover); }
.user-logout { color: var(--danger); }

/* refinements */
.below-fold .ibox-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.below-fold .ibox-grid-uses { display: flex; flex-wrap: wrap; justify-content: center; }
.below-fold .ibox-grid-uses > .ibox { flex: 0 1 calc(50% - 10px); }
.below-fold .faq-list > .faq-item { margin: 0 !important; }
.below-fold section.related.content-section { padding: 64px 0 !important; margin: 0 auto !important; max-width: 1072px; }
.below-fold > section.related.content-section { max-width: 1120px; padding: 64px 24px !important; }
.below-fold section.related .try-wrap, .below-fold section.related > p { text-align: center; margin-top: 24px; }
.below-fold .callout-ibox .steps { list-style: none; padding: 0; display: grid; gap: 10px; }
.below-fold .callout-ibox .steps > li { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: none; }
@media (max-width: 900px) { .below-fold .ibox-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .below-fold .ibox-grid-4 { grid-template-columns: 1fr; } .below-fold .ibox-grid-uses > .ibox { flex-basis: 100%; } .below-fold section.related.content-section { padding: 44px 16px !important; } }
.below-fold .faq-item { padding: 0 !important; }
@media (max-width: 640px) {
  .header-tools .app-toolbar > .tb-btn, .header-tools .app-toolbar > .tb-menu > .tb-btn { min-width: 38px; min-height: 38px; padding: 6px; justify-content: center; }
  .header-tools .app-toolbar { gap: 0; }
}
@media (max-width: 370px) {
  .header-tools .app-toolbar > .tb-btn, .header-tools .app-toolbar > .tb-menu > .tb-btn { min-width: 34px; padding: 4px; }
}
.header-tools .app-toolbar { overflow: visible !important; }
.auth-skip { display: flex; align-items: center; justify-content: center; line-height: 1.2; }
