/* /faq/: built on landing.css and use-case/use-case.css (hero, table of contents, cards, offer).
   This file adds the search box, the topic cards and tiles, the question list and the search states. */

.faq-page search { display: block; }
.faq-page mark { padding: 0 .08em; border-radius: 3px; color: inherit; background: #e4ff8a; }

/* Hero and search */
.faq-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
.faq-hero h1 span { color: #45582a; }
.faq-search { width: min(720px, 100%); margin-top: 34px; }
.faq-search form { position: relative; display: flex; align-items: center; }
.faq-search-icon { position: absolute; left: 22px; color: #6b7262; pointer-events: none; }
.faq-search input { width: 100%; min-height: 66px; padding: 0 64px 0 60px; border: 1px solid #cfd4c4; border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 1px 0 #fff inset, 0 18px 44px #1d22160f, 0 3px 10px #1d22160a; font: 560 1.1rem/1.2 var(--font); letter-spacing: -.015em; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.faq-search input::placeholder { color: #8b9183; }
.faq-search input:focus { border-color: #8fa44c; outline: none; box-shadow: 0 0 0 5px #daff5980, 0 18px 44px #1d22160f; }
.faq-search input::-webkit-search-cancel-button { margin-right: 6px; cursor: pointer; }
.faq-search-key { position: absolute; right: 20px; display: grid; place-items: center; min-width: 26px; height: 26px; border: 1px solid #c8cdbd; border-bottom-width: 2px; border-radius: 7px; color: #6b7262; background: #fff; font: 650 .82rem var(--font); pointer-events: none; }
.faq-search input:focus ~ .faq-search-key, .faq-search input:not(:placeholder-shown) ~ .faq-search-key { display: none; }
.faq-suggest { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.faq-suggest > span { margin-right: 2px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.faq-suggest button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: #3e4438; background: var(--white); font: 620 .88rem var(--font); cursor: pointer; transition: border-color .2s, background-color .2s; }
.faq-suggest button:hover { border-color: #b9c0ad; background: #fff; }
.faq-suggest button[aria-pressed="true"] { border-color: #9db45a; background: #eef8cf; }
.faq-hero .faq-meta { margin-top: 18px; color: var(--muted); font-size: .86rem; font-weight: 560; }

/* Browse: facts, most asked, topics */
.faq-browse { width: min(1180px, calc(100% - 48px)); margin: clamp(48px, 6vw, 76px) auto 0; }
.faq-facts { width: min(860px, 100%); margin: 0 auto; padding: 24px 28px; border: 1px solid #d8e5b1; border-radius: 22px; background: linear-gradient(180deg, #f2f9dc, #fbfdf3); }
.uc-page .faq-facts h2 { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: .8rem; font-weight: 720; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.faq-facts h2::before { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px #4d612730; content: ""; }
.faq-facts ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.faq-facts li { position: relative; padding-left: 22px; color: var(--ink); font-size: .98rem; line-height: 1.5; letter-spacing: -.01em; }
.faq-facts li::before { position: absolute; top: .5em; left: 2px; width: 8px; height: 8px; border-radius: 2px; background: #1b1e19; content: ""; }

.faq-popular { margin-top: clamp(64px, 7vw, 96px); }
.uc-page .faq-popular h2, .uc-page .faq-topics h2 { margin-top: 10px; color: var(--ink); font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 720; letter-spacing: -.05em; line-height: 1.05; }
.faq-popular ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: pop; }
.faq-popular a { position: relative; display: grid; gap: 4px; height: 100%; padding: 18px 50px 18px 64px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); font-size: 1.04rem; font-weight: 640; letter-spacing: -.02em; line-height: 1.35; counter-increment: pop; transition: border-color .2s, box-shadow .2s, transform .2s; }
.faq-popular a::before { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #171a10; background: var(--lime); font-size: .82rem; font-weight: 760; content: counter(pop); }
.faq-popular a::after { position: absolute; top: 50%; right: 20px; color: #8b9183; content: "→"; transform: translateY(-50%); transition: transform .2s, color .2s; }
.faq-popular a:hover { border-color: #c6cdb9; box-shadow: 0 14px 32px #1d221614; transform: translateY(-2px); }
.faq-popular a:hover::after { color: var(--ink); transform: translate(3px, -50%); }
.faq-popular a span { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.faq-topics { margin-top: clamp(64px, 7vw, 96px); }
.faq-topics .uc-grid { margin-top: 26px; }
.uc-page .faq-topics .faq-topics-sub { margin-top: clamp(40px, 5vw, 56px); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.faq-count { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.faq-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); margin-top: 22px; }
.faq-tile { display: grid; align-content: start; gap: 16px; padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .25s, border-color .25s, box-shadow .25s; }
.faq-tile:hover, .faq-tile:focus-visible { border-color: #c6cdb9; box-shadow: 0 20px 44px #1d22161c; transform: translateY(-3px); }
.faq-tile > span:last-child { display: grid; gap: 6px; padding: 0 4px; }
.faq-tile h3 { color: var(--ink); font-size: 1.12rem; letter-spacing: -.032em; line-height: 1.25; }

/* The emblem used on tiles and topic headers without a screenshot: a dark "screen" with a lime label. */
.faq-emblem { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; color: #f6f8f1; background: radial-gradient(90% 120% at 0% 0%, #2c3622, transparent 62%), #151912; }
.faq-emblem::before, .faq-emblem::after { position: absolute; border-radius: 5px; content: ""; }
.faq-emblem::before { top: 12%; left: 8%; width: 30%; height: 22%; background: #000; box-shadow: 0 0 0 1px #ffffff1a; }
.faq-emblem::after { right: 8%; bottom: 14%; width: 22%; height: 30%; background: #000; box-shadow: 0 0 0 1px #ffffff1a; }
.faq-emblem b { position: relative; z-index: 1; padding: 4px 12px; border-radius: 10px; color: #171a10; background: var(--lime); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 760; letter-spacing: -.04em; }
.faq-emblem span { position: relative; z-index: 1; color: #c9cfc0; font-size: .74rem; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }

/* Questions */
.faq-layout { margin-top: clamp(72px, 8vw, 110px); }
.faq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.faq-status { color: var(--muted); font-size: .92rem; font-weight: 600; }
.faq-expand { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--white); font: 640 .86rem var(--font); cursor: pointer; transition: border-color .2s; }
.faq-expand:hover { border-color: #b9c0ad; }

.faq-group { margin-top: clamp(48px, 5vw, 72px); scroll-margin-top: 96px; }
.faq-group:first-of-type { margin-top: 36px; }
.faq-group-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 28px; }
.uc-page .faq-group-head h2 { margin-top: 10px; color: var(--ink); font-size: clamp(1.85rem, 3.3vw, 2.55rem); font-weight: 720; letter-spacing: -.05em; line-height: 1.06; text-wrap: balance; }
.faq-group-head > div > p:last-child { margin-top: 10px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.faq-group-art { overflow: hidden; border-radius: 13px; background: #000; box-shadow: 0 0 0 1px #1d221614, 0 14px 30px #1d22161a; }
.faq-group-art img { display: block; width: 100%; height: auto; }
.faq-group-art.faq-emblem { aspect-ratio: 16 / 10; }

.faq-items { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-q { border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.faq-q summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: #eceee5; font-size: 1.1rem; font-weight: 500; line-height: 1; content: "+"; transition: transform .25s, background-color .25s; }
.faq-q[open] summary::after { background: var(--lime); transform: rotate(45deg); }
.faq-q summary:hover h3 { color: #3d5016; }
.faq-q h3 { font-size: 1.08rem; letter-spacing: -.022em; line-height: 1.38; }
.faq-a { padding: 0 46px 22px 0; }
.faq-a p { color: #3c4136; line-height: 1.66; }
.faq-a p + p { margin-top: .8em; }
.faq-a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: .9rem; }
.uc-article .faq-a-foot a { color: #3d5016; font-weight: 640; text-decoration: none; }
.uc-article .faq-a-foot a:hover { text-decoration: underline; text-underline-offset: .2em; }
.uc-article .faq-a-foot .faq-link { margin-left: auto; color: #7a8072; font-weight: 600; }
.faq-q:target, .faq-q.is-flash { animation: faq-flash 1.6s ease-out; }
@keyframes faq-flash { 0% { background: #eef8cf; } 100% { background: transparent; } }

.faq-empty { margin-top: 30px; padding: 26px 28px; border: 1px dashed #c8cdbd; border-radius: 20px; background: var(--white); }
.uc-page .faq-empty h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.faq-empty p { margin-top: 8px; color: var(--muted); line-height: 1.6; }

.faq-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 26px; margin-top: clamp(56px, 6vw, 80px); padding: 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.uc-page .faq-ask h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.faq-ask p { max-width: 440px; margin-top: 6px; color: var(--muted); line-height: 1.55; }

/* While searching: hide the browse area and anything that doesn't match. */
.faq-page.is-searching .faq-browse { display: none; }
.faq-page.is-searching .faq-layout { margin-top: 40px; }
.faq-page.is-searching .faq-group-art { display: none; }
.faq-page.is-searching .faq-group-head { grid-template-columns: 1fr; }
.faq-page.is-searching .faq-group { margin-top: 36px; }
.faq-page .faq-q[hidden], .faq-page .faq-group[hidden] { display: none; }

@media (max-width: 1040px) {
  .faq-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .faq-popular ol, .faq-facts ul { grid-template-columns: 1fr; }
  .faq-group-head { grid-template-columns: 1fr; }
  .faq-group-art { display: none; }
}
@media (max-width: 560px) {
  .faq-browse { width: calc(100% - 28px); }
  .faq-search input { min-height: 58px; padding-right: 18px; border-radius: 18px; font-size: 1rem; }
  .faq-search-key { display: none; }
  .faq-facts { padding: 20px; }
  .faq-popular a { padding: 16px 40px 16px 58px; font-size: .98rem; }
  .faq-popular a::before { left: 16px; }
  .faq-topics .uc-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq-topic { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .faq-topic .uc-card-shot { flex: none; width: 40%; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .faq-topic .uc-card-copy { align-content: center; gap: 4px; padding: 12px 14px; }
  .faq-topic h3, .faq-tile h3 { font-size: 1rem; }
  .faq-topic .uc-card-text, .faq-tile .uc-card-text, .faq-tile .faq-emblem span { display: none; }
  .faq-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .faq-tile { gap: 10px; padding: 10px 10px 14px; border-radius: 16px; }
  .faq-tile .faq-emblem { border-radius: 10px; }
  .faq-tile .faq-emblem b { font-size: 1.05rem; }
  .faq-a { padding-right: 0; }
  .uc-article .faq-a-foot .faq-link { margin-left: 0; }
  .faq-ask .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-tile, .faq-popular a, .faq-q summary::after { transition: none; }
  .faq-q:target, .faq-q.is-flash { animation: none; }
}
