/* Craft Directory AI: public website. One file, no framework. */
:root {
    --green: #04813f;
    --green-deep: #03602f;
    --ink: #10241a;
    --body: #33443a;
    --quiet: #5d6e63;
    --paper: #ffffff;
    --tint: #f1f6ef;
    --leaf: #dff3e3;
    --line: #d5dfd4;
    --sun: #f4b63f;
    --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--body); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--green-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--body); max-width: 56ch; }
.quiet { color: var(--quiet); font-size: .95rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 650; line-height: 1.2; }
.btn-go { background: var(--green); color: #fff; }
.btn-go:hover { background: var(--green-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--leaf); color: var(--ink); }
.more { font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo img { height: 48px; width: auto; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; place-content: center; gap: 5px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding: .5rem 0; }
.nav a { padding: .4rem 0; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .98rem; }
.nav a[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { color: #fff; padding: .6rem 1.1rem; margin-left: .25rem; }

/* Small screens: the links fold behind the menu button (when scripts run). */
@media (max-width: 61.99rem) {
    .js .menu-btn { display: grid; }
    .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; gap: .1rem; }
    .js .nav.open { display: grid; }
    .js .nav a { padding: .7rem 0; font-size: 1.05rem; }
    .js .nav .btn { text-align: center; margin: .6rem 0 0; padding: .8rem 1.35rem; }
    html:not(.js) .top-in { flex-wrap: wrap; padding-bottom: .5rem; }
}

/* Hero */
.hero { background: var(--tint); padding: clamp(2.5rem, 7vw, 5.5rem) 0; overflow: hidden; }
.hero-in { display: grid; gap: 2.5rem; align-items: center; }
.hero-note { color: var(--quiet); font-size: .98rem; margin: 0; }
@media (min-width: 56rem) { .hero-in { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }

/* Chat illustration */
.chat { background: #e9efe6; border-radius: 22px; padding: 1.25rem 1rem; display: grid; gap: .6rem; max-width: 24rem; width: 100%; margin-inline: auto; border: 1px solid var(--line); }
.bubble { position: relative; max-width: 86%; padding: .6rem .75rem; border-radius: 12px; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.bubble.out { justify-self: end; background: var(--leaf); border-top-right-radius: 3px; padding-bottom: 1.3rem; }
.bubble.in { justify-self: start; background: #fff; border-top-left-radius: 3px; }
.bubble p { margin: 0 0 .3rem; }
.bubble dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; padding-bottom: .8rem; }
.bubble dt { color: var(--quiet); }
.bubble dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bubble .time { position: absolute; right: .6rem; bottom: .25rem; font-size: .7rem; color: var(--quiet); }
.paper-card { background: #fff; border-radius: 6px; padding: .9rem 1rem .8rem; display: grid; gap: .1rem; min-width: 13.5rem; box-shadow: 0 1px 0 rgba(16, 36, 26, .15), 0 8px 18px -10px rgba(16, 36, 26, .45); transform: rotate(-2deg); font-family: var(--serif); }
.paper-card strong { font-size: 1.05rem; }
.paper-card span { font-size: .8rem; color: var(--body); }
.paper-card .pc-mark { width: 1.6rem; height: .35rem; background: var(--green); border-radius: 2px; margin-bottom: .4rem; }
.paper-card .pc-small { margin-top: .5rem; font-size: .72rem; color: var(--quiet); font-family: var(--sans); }
.bubble.contact { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .7rem; min-width: 14rem; }
.avatar { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-content: center; font-weight: 700; font-size: .85rem; }
.who { font-weight: 700; }
.save { color: var(--green-deep); font-weight: 650; font-size: .85rem; }
.bubble.note { font-style: italic; color: var(--body); }

@media (prefers-reduced-motion: no-preference) {
    .chat .bubble { opacity: 0; transform: translateY(8px); animation: arrive .45s ease-out forwards; }
    .chat .bubble:nth-child(2) { animation-delay: .7s; }
    .chat .bubble:nth-child(3) { animation-delay: 1.2s; }
    .chat .bubble:nth-child(4) { animation-delay: 1.6s; }
    @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* Sections */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-tint { background: var(--tint); }
.page-head { background: var(--tint); padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; } }

/* Feature lists: plain columns divided by rules, no boxes */
.feature-list { display: grid; gap: 0 3rem; margin: 1.5rem 0 1.5rem; }
.feature-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.feature-list h2, .feature-list h3 { font-size: 1.2rem; margin-bottom: .3em; }
.feature-list p { margin: 0; }
@media (min-width: 40rem) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

/* Steps: a real sequence, so they are numbered */
.steps { counter-reset: step; display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; font-family: var(--serif); font-weight: 700; }
.steps h2, .steps h3 { font-size: 1.2rem; margin-bottom: .25em; }
.steps p { margin: 0; }
@media (min-width: 56rem) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.aside-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 6px; padding: 1.5rem; }
.band .chat + .aside-box { margin-top: 1.5rem; }
.aside-box h2, .aside-box h3 { font-size: 1.25rem; }
.aside-box > :last-child { margin-bottom: 0; }
.ticks { display: grid; gap: .55rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .75rem; height: .4rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 6px; padding: 1.25rem 1.5rem; max-width: none; }

/* Blog */
.post-list { display: grid; gap: 2rem 3rem; margin-top: 1.5rem; }
.post-list h2, .post-list h3 { font-size: 1.3rem; margin-bottom: .35em; }
.post-list h2 a, .post-list h3 a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.post-list p { margin: 0; }
.post-list .quiet { margin-bottom: .3rem; }
@media (min-width: 48rem) { .post-list { grid-template-columns: repeat(3, 1fr); } .post-list-wide { grid-template-columns: repeat(2, 1fr); } }
.article { padding: clamp(2rem, 6vw, 4rem) 0; }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.crumb { margin-bottom: .75rem; font-weight: 650; }
.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: var(--ink); margin-top: 2rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }

/* Events */
.event-list { display: grid; gap: 0; margin-top: 1rem; }
.event-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.event-list time { text-align: center; }
.event-list .day { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.event-list .mon { font-size: .85rem; color: var(--quiet); }
.event-list h3 { margin-bottom: .2em; }
.event-list p { margin-bottom: .4em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: 1.2rem; margin: 0; display: inline; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.6rem; line-height: 1; color: var(--green-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.2rem; margin: 0; }
.after { margin-top: 1.75rem; }

/* Pricing */
.plans { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
@media (min-width: 40rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .plans { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; background: #fff; display: flex; flex-direction: column; }
.plan-free { background: var(--ink); border-color: var(--ink); color: #dfe9e1; }
.plan-free h2, .plan-free .price { color: #fff; }
.plan h2 { font-size: 1.25rem; margin-bottom: .2em; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.1; }
.plan-scans { font-weight: 650; margin: .3rem 0 .8rem; }
.plan p:last-child { margin-bottom: 0; }
.plan .btn { margin-top: auto; text-align: center; }
.plan-free .btn-go { background: #fff; color: var(--ink); }

/* Customers */
.quotes { display: grid; gap: 2rem 3rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quotes blockquote { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); border-left: 4px solid var(--green); padding-left: 1.1rem; }
.by { margin: 0; padding-left: 1.35rem; }
.by span { display: block; color: var(--quiet); font-size: .95rem; }

/* Contact */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form label { font-weight: 650; color: var(--ink); font-size: .98rem; }
.form input, .form textarea { font: inherit; color: var(--ink); padding: .75rem .85rem; border: 1.5px solid #9fb0a4; border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-error { background: #fdecea; border-left: 5px solid #b3261e; color: #5c1410; padding: .8rem 1rem; border-radius: 4px; margin: 0; max-width: none; }
.notice { background: var(--leaf); border-left: 5px solid var(--green); padding: 1.5rem; border-radius: 6px; }
.notice > :last-child { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reach { display: grid; gap: 1rem; }
.reach li { display: grid; gap: .1rem; }
.reach li > span:first-child { font-size: .85rem; color: var(--quiet); }
.reach a { font-weight: 650; overflow-wrap: anywhere; }

/* Closing call to action */
.cta { background: var(--green); color: #e9f6ed; padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.cta-in { display: grid; gap: 1.25rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; }
@media (min-width: 48rem) { .cta-in { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Footer */
.foot { background: var(--ink); color: #c4d2c8; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.foot a { color: #e6efe8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h2 { font-family: var(--sans); font-size: 1.05rem; color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.foot-grid { display: grid; gap: 2.25rem; }
.foot-grid ul { display: grid; gap: .6rem; }
.foot-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.foot-since { color: #9db3a4; margin: 0; }
.foot-contact li { overflow-wrap: anywhere; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }
.offices { margin-top: 2.25rem; }
.offices ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.offices li { border: 1px solid #3a5245; border-radius: 999px; padding: .4rem 1rem; color: #e6efe8; }
.foot-end { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2c4236; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.foot-end p { margin: 0; }
.foot-end ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
