/* Yado Help Center — clean, minimal, text-first design.
   No frameworks, no build step — plain CSS, mobile-first. */

:root {
    --ink:        #1c1f26;
    --ink-soft:   #4a5061;
    --ink-faint:  #7c8296;
    --line:       #e4e6ec;
    --line-soft:  #eef0f4;
    --bg:         #ffffff;
    --bg-tint:    #f8f9fb;
    --accent:     #3454d1;
    --accent-ink: #26399c;
    --accent-tint:#eef1fd;
    --good:       #1f7a4d;
    --good-tint:  #e9f7ef;
    --radius:     8px;
    --max:        780px;
    --max-wide:   1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

.wrap {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

code {
    background: var(--bg-tint);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .1em .35em;
    font-size: .9em;
}

/* ---- Header ---- */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}
.brand span {
    font-weight: 400;
    color: var(--ink-faint);
}
.brand:hover { text-decoration: none; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.main-nav a {
    color: var(--ink-soft);
    font-size: .95rem;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-app-link {
    color: var(--accent) !important;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .4rem .75rem;
    font-size: .9rem;
    color: var(--ink);
    cursor: pointer;
}

.main-nav-mobile[hidden] {display: none;}
.main-nav-mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
    padding: .25rem 1.25rem .75rem;
}
.main-nav-mobile a {
    display: block;
    padding: .65rem 0;
    width: 100%;
}

@media (max-width: 720px) {
    .site-header .main-nav:not(.main-nav-mobile) { display: none; }
    .nav-toggle { display: inline-block; }
}

/* ---- Breadcrumb ---- */
.breadcrumb { padding: .9rem 1.25rem 0; }
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: 0;
    margin: 0;
    font-size: .85rem;
    color: var(--ink-faint);
}
.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: .35rem;
    color: var(--line);
}
.breadcrumb li[aria-current="page"] { color: var(--ink-soft); }

/* ---- Page shell ---- */
main {
    display: block;
}
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}
.page-wide {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}

.lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

/* ---- Callouts ---- */
.callout {
    border: 1px solid var(--line);
    background: var(--bg-tint);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    font-size: .95rem;
}
.callout strong { color: var(--ink); }
.callout-tip     { border-left: 3px solid var(--accent); }
.callout-warning { border-left: 3px solid #b5641f; background: #fdf5ec; }

/* ---- Role badge / state chip (used inline in guides) ---- */
.chip {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    padding: .12rem .55rem;
    border-radius: 99px;
    background: var(--accent-tint);
    color: var(--accent-ink);
    vertical-align: middle;
}
.chip + .chip { margin-left: .4rem; }
.chip-addon { background: var(--good-tint); color: var(--good); }

/* ---- Numbered steps ---- */
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 1.5rem 0; }
.steps > li {
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1.5rem;
    counter-increment: step;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps > li h3 { margin: 0 0 .3rem; }
.steps > li p:last-child { margin-bottom: 0; }

/* ---- Home page ---- */
.hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-tint);
}
.hero .wrap { max-width: var(--max); }
.hero h1 { font-size: 2.15rem; }
.hero p { font-size: 1.1rem; color: var(--ink-soft); }

.search-box {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
}
.search-box input {
    flex: 1;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
}
.search-box button {
    padding: .7rem 1.1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: .95rem;
}
.search-box button:hover { background: var(--accent-ink); }

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 720px) {
    .role-grid { grid-template-columns: 1fr; }
}
.role-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--bg);
    color: var(--ink);
}
.role-card:hover {
    border-color: var(--accent);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(52,84,209,.08);
}
.role-card .role-name { font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: .3rem; }
.role-card .role-desc { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.role-card .role-arrow { color: var(--accent); font-weight: 600; font-size: .85rem; margin-top: .6rem; display: block; }

.role-card-addon:hover { border-color: var(--good); box-shadow: 0 2px 10px rgba(31,122,77,.1); }
.role-card-addon .role-arrow { color: var(--good); }

.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line-soft); }
.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem .1rem;
    color: var(--ink);
    font-weight: 500;
}
.link-list a:hover { color: var(--accent); text-decoration: none; }
.link-list a::after { content: "→"; color: var(--ink-faint); font-weight: 400; }
.link-list a:hover::after { color: var(--accent); }

/* ---- FAQ ---- */
.faq-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0 2rem;
}
.faq-toc a {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: .4rem .9rem;
    font-size: .85rem;
    color: var(--ink-soft);
}
.faq-toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.faq-category { margin-top: 2.5rem; scroll-margin-top: 5rem; }
.faq-category h2 { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }

details.faq-item {
    border-bottom: 1px solid var(--line-soft);
    padding: .9rem 0;
}
details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-answer {
    margin-top: .6rem;
    color: var(--ink-soft);
}
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---- Contact form ---- */
.form-field { margin-bottom: 1.1rem; }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.form-hint { font-size: .82rem; color: var(--ink-faint); margin-top: .3rem; }

.btn {
    display: inline-block;
    border: none;
    border-radius: var(--radius);
    padding: .75rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
}
.btn:hover { background: var(--accent-ink); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.form-status {
    display: none;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    font-size: .92rem;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--good-tint); color: var(--good); border: 1px solid #bfe4cf; }
.form-status.error   { background: #fdecec; color: #a3272c; border: 1px solid #f3c3c3; }

.contact-alt {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    background: var(--bg-tint);
    font-size: .92rem;
    margin-bottom: 2rem;
}

/* ---- Table of contents (guide pages) ---- */
.guide-toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    background: var(--bg-tint);
    margin: 1.5rem 0 2rem;
}
.guide-toc p { margin: 0 0 .5rem; font-weight: 600; font-size: .9rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.guide-toc li { margin-bottom: .25rem; }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-tint);
    margin-top: 3rem;
}
.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
}
@media (max-width: 720px) {
    .site-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-heading {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink-faint);
    margin-bottom: .6rem;
}
.site-footer a {
    display: block;
    color: var(--ink-soft);
    font-size: .9rem;
    padding: .2rem 0;
}
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer p { color: var(--ink-faint); font-size: .88rem; }
.site-footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1rem 1.25rem;
    font-size: .82rem;
    color: var(--ink-faint);
}
