/* Sell Your Device Here (sellyourdevicehere.com) — shared styles.
   Same brand system as southatlantawireless.com (red / ink / gray, pill buttons, heavy Nunito Sans)
   so customers recognize the store. Generated pages: tools/build_buyback.rb. */
:root {
  --red: #DC282E; --red-dark: #B91F24; --red-soft: #FFF1F1;
  --ink: #2E2F33; --ink-soft: #55575E; --muted: #6B6D74;
  --line: #E4E3E3; --gray: #F3F2F2; --white: #FFFFFF;
  --green: #1F8A4C; --green-soft: #E9F6EE; --star: #F5A623;
  --on-ink: #D9D9DB; --ink-2: #3A3B40; --ink-line: #4A4B51;
  --radius: 14px; --pill: 30px;
  --shadow: 0 6px 24px rgba(46,47,51,.08); --shadow-lg: 0 18px 48px rgba(46,47,51,.14);
  --max: 1200px;
  --font: "Nunito Sans", Avenir, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--ink); color: var(--white); }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section--gray .eyebrow { color: var(--red-dark); }
.section--dark .eyebrow { color: #FF6B6F; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; }
.section--dark .lead { color: var(--on-ink); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.head > div { min-width: 0; max-width: 700px; }
.head h2 { margin-bottom: .25em; }
.red { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--pill); border: 2px solid transparent;
  font: 800 .95rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(220,40,46,.45); outline-offset: 2px; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(220,40,46,.3); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--on-ink); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar b, .topbar a { color: var(--white); text-decoration: none; }
.topbar__r { display: flex; gap: 18px; flex-wrap: wrap; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.mark__name { font-weight: 900; font-size: 1.32rem; letter-spacing: -.03em; }
.mark__name span { color: var(--red); }
.mark__sub { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.header__cta { display: flex; gap: 10px; margin-left: 8px; }
@media (max-width: 1120px) { .nav { display: none; } .header__cta { margin-left: auto; } }
@media (max-width: 560px) { .header__cta .btn--outline { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--gray) 0%, var(--white) 100%); padding-block: 48px 60px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.hero__grid > * { min-width: 0; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.breadcrumb a { color: var(--ink-soft); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 14px; font-size: .85rem; font-weight: 700; margin-bottom: 18px; box-shadow: var(--shadow); }
.stars { color: var(--star); letter-spacing: 1px; }
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 580px; margin-bottom: 22px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--line); border-radius: var(--pill); padding: 6px 6px 6px 20px; max-width: 600px; box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--red); }
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 600 1rem var(--font); background: transparent; color: var(--ink); padding: 10px 0; }
.search__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; }
.search__results a, .search__results p { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-weight: 700; text-decoration: none; margin: 0; }
.search__results a small { color: var(--muted); font-weight: 600; }
.search__results a:hover, .search__results a:focus-visible { background: var(--gray); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); font-weight: 800; font-size: .9rem; text-decoration: none; }
.chip:hover { border-color: var(--red); color: var(--red); }
.payrow { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.payrow span { display: inline-flex; align-items: center; gap: 8px; }
.payrow i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: inline-grid; place-items: center; font-weight: 900; font-size: .8rem; }

/* Stacks widget slot */
.offer { background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 90px; }
.offer__top { background: var(--ink); color: var(--white); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer__top small { color: var(--on-ink); font-weight: 700; }
.offer__body { padding: 20px 22px 22px; }
.offer__fallback { display: grid; gap: 14px; }
.offer__fallback p { margin: 0; color: var(--ink-soft); }
.offer__fallback strong { font-size: 1.5rem; font-weight: 900; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 20px; }
.strip div { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: .95rem; min-width: 0; }
.strip small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
.strip svg { flex: none; color: var(--red); }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .strip .wrap { grid-template-columns: 1fr; } }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.cat:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat__ico { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.cat h3 { margin: 2px 0 0; }
.cats > .cat:last-child:nth-child(3n+2) { grid-column: span 2; }
@media (max-width: 900px) { .cats > .cat:last-child:nth-child(3n+2) { grid-column: auto; } .cats > .cat:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 560px) { .cats > .cat:last-child:nth-child(odd) { grid-column: auto; } }
.cat p { margin: 0; color: var(--muted); font-size: .9rem; }
.cat .go { font-weight: 800; color: var(--red); font-size: .86rem; }

/* Brand tabs + model links */
.tabs { display: inline-flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; border-radius: var(--pill); padding: 10px 18px; font: 800 .92rem var(--font); color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tabs + .models, .models--spaced { margin-top: 22px; }
.model { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; display: grid; gap: 4px; transition: border-color .15s, transform .15s; }
.model:hover { border-color: var(--red); transform: translateY(-2px); }
.model b { font-size: .98rem; font-weight: 800; }
.model span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.model em { font-style: normal; font-size: .86rem; font-weight: 800; color: var(--red); margin-top: 4px; }
.also { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Console band */
.consoles { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.consoles > * { min-width: 0; }
@media (max-width: 900px) { .consoles { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.section--dark .ticks li { color: var(--on-ink); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .cgrid { grid-template-columns: 1fr; } }
.cbox { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 18px; text-decoration: none; display: block; }
.cbox:hover { border-color: #FF6B6F; }
.cbox h3 { color: var(--white); margin-bottom: 10px; font-size: 1.05rem; }
.cbox ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--on-ink); }
.cbox li { border-top: 1px solid var(--ink-line); padding-top: 6px; }

/* Two-column feature + panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; min-width: 0; }
.panel h3 { font-size: 1.3rem; }
.panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-soft); }

/* Steps */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; margin: 0; padding: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
.how li { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; counter-increment: s; }
.how li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 900; margin-bottom: 14px; }
.how p { color: var(--muted); margin: 0; font-size: .93rem; }

/* Condition guide */
.grades { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.grades table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .93rem; }
.grades th, .grades td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.grades thead th { border-top: 0; background: var(--gray); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.grades td:first-child { font-weight: 900; white-space: nowrap; }
.pill { display: inline-block; border-radius: var(--pill); padding: 3px 10px; font-size: .78rem; font-weight: 800; }
.pill--g { background: var(--green-soft); color: var(--green); }
.pill--y { background: #FFF4DE; color: #8A5A00; }
.pill--r { background: var(--red-soft); color: var(--red-dark); }

/* Prep checklist + compare */
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.check li b { display: block; }
.check li span { color: var(--muted); font-size: .92rem; }
.check svg { color: var(--green); margin-top: 2px; }
.compare { overflow-x: auto; }
.compare table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; background: var(--white); border: 1px solid var(--line); }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: .82rem; }
.compare thead th.us { background: var(--red); color: var(--white); }
.compare td.us { background: var(--red-soft); font-weight: 800; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--muted); }

/* Factors list (category + model pages) */
.factors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.factor { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.factor h3 { font-size: 1.02rem; margin-bottom: 6px; }
.factor p { margin: 0; color: var(--muted); font-size: .93rem; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }

/* Visit */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.visit > * { min-width: 0; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
.visit img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 1000 / 666; object-fit: cover; }
.facts { display: grid; gap: 14px; margin: 18px 0 24px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

/* Areas served */
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas a { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--pill); text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--white); }
.areas a:hover { border-color: var(--red); color: var(--red); }

/* Repair band */
.repair { background: var(--red); color: var(--white); border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.repair h2 { margin-bottom: .2em; }
.repair p { margin: 0; color: #FFE1E2; max-width: 560px; }
@media (max-width: 700px) { .repair { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: 0 0 16px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink); padding-block: 48px 28px; font-size: .9rem; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__cols { grid-template-columns: 1fr; } }
.footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .mark__name { color: var(--white); }
.footer .op { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.footer .op img { height: 30px; width: auto; background: var(--white); border-radius: 8px; padding: 4px 8px; }
.legal { border-top: 1px solid var(--ink-line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Phone width */
@media (max-width: 560px) {
  .topbar__r span { display: none; }
  .header .wrap { gap: 12px; }
  .mark__name { font-size: 1.12rem; }
  .mark__sub { display: none; }
  .search { padding-left: 14px; }
  .search .btn { padding: 12px 16px; }
}
