/* linecast.store. Colours and type follow the Linecast app's own panel. */

:root {
  --bg: #141416;
  --raised: #1b1b1e;
  --line: #2a2a2f;
  --line-strong: #37373d;
  --text: #edebe8;
  --muted: #a2a2a9;
  --dim: #74747b;
  --accent: #3d7ef0;
  --accent-hover: #4f8bf3;
  --live: #ff5a4e;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;
  --width: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button.plain { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button.plain:hover { background: var(--raised); }
.button[aria-disabled="true"] { background: var(--raised); color: var(--dim); border-color: var(--line); cursor: default; pointer-events: none; }

/* Home: the first screen */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.actions .note { color: var(--dim); font-size: 14px; }
.shots { position: relative; }
.shots .panel { border-radius: 10px; }
.shots .phone { position: absolute; right: -8px; bottom: -28px; width: 30%; border-radius: 14px; }

.frame { border: 1px solid var(--line-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }

/* Feature rows */
.feature { padding: 56px 0; border-top: 1px solid var(--line); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.feature.flip .text { order: 2; }
.feature p { color: var(--muted); }
.feature img { border-radius: 10px; }
.feature .narrow { max-width: 300px; justify-self: center; border-radius: 14px; }

/* Plain sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section.first { border-top: 0; padding-top: 48px; }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 40em; }

/* Tables */
.table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 14px; }
.table td.c, .table th.c { text-align: center; }
.table .yes { color: var(--text); }
.table .no { color: var(--dim); }
.table tr:last-child td { border-bottom: 0; }
.table-box { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); overflow-x: auto; }

.price { font-family: var(--mono); font-size: 17px; }
.save { color: #5bc37a; font-size: 14px; }

/* Lists and steps */
ul.plain { padding-left: 20px; margin: 0 0 16px; }
ul.plain li { margin-bottom: 6px; color: var(--muted); }
ul.plain li strong { color: var(--text); }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; color: var(--muted); }
ol.steps li strong { color: var(--text); }

.faq h3 { font-size: 17px; margin-top: 28px; }
.faq p { color: var(--muted); }

.card { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); padding: 22px 24px; }
.card + .card { margin-top: 16px; }

.about { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 720px; }
.about img { width: 56px; height: 56px; }

/* Legal pages */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: baseline; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot .small { width: 100%; font-size: 13px; }

/* Phones */
@media (max-width: 860px) {
  h1, .hero h1 { font-size: 32px; }
  .hero { padding-top: 40px; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .shots .phone { width: 34%; right: 0; }
  .top .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
  .top nav { margin-left: 0; gap: 16px; }
  .wrap { padding: 0 16px; }
}

.faq .still { margin-top: 28px; }
.card.contact { max-width: 560px; }

/* Admin page */
.admin { padding-top: 24px; padding-bottom: 48px; }
.admin section { margin-bottom: 48px; }
.admin h2 { margin-top: 12px; }
.status { min-height: 24px; color: #5bc37a; }
.status.bad { color: var(--live); }
.admin-table input[type="text"], .admin-table input[type="number"] {
  width: 100%; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.admin-table input.narrow { width: 90px; }
.admin-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.button.small { padding: 7px 12px; font-size: 14px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin #add-plan { margin-top: 4px; }
.picture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.picture-grid .card + .card { margin-top: 0; }
.picture img { width: 100%; height: 170px; object-fit: contain; background: var(--bg); border-radius: 6px; margin-bottom: 12px; }
.picture h3 { font-size: 15px; margin-bottom: 4px; }
.picture p { font-size: 13px; margin-bottom: 10px; }
.picture label.button { cursor: pointer; }
.picture input[type="file"] { display: none; }

/* Account page */
.account-card { max-width: 640px; }
.account-card .actions { margin-top: 16px; }
.gap-top { margin-top: 40px; }
.note-gap { margin-top: 16px; }
.table td .button.small { white-space: nowrap; }
.search-row { display: flex; gap: 10px; margin-bottom: 14px; max-width: 560px; }
.search-row input {
  flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.release-form { max-width: 620px; margin-top: 16px; display: grid; gap: 12px; }
.release-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.release-form input[type="text"], .release-form textarea {
  padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.release-form .button { justify-self: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 600; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: 13px; }
.search-row select, .gift select, .gift input, .detail input {
  padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.users-table tbody tr.pick { cursor: pointer; }
.users-table tbody tr.pick:hover td { background: var(--bg); }
.users-table tbody tr.on td { background: var(--bg); }
.users-table td { white-space: nowrap; font-size: 14px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.detail { margin-top: 24px; }
.detail h3 { font-size: 18px; margin-bottom: 4px; }
.detail h4 { font-size: 15px; margin: 22px 0 8px; }
.detail .table-box { margin-top: 4px; }
.gift { display: grid; gap: 10px; margin-top: 8px; }
.gift .line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gift .line > span { color: var(--muted); font-size: 14px; min-width: 70px; }
.gift input.narrow { width: 80px; }
.gift input.wide { flex: 1; min-width: 200px; }
.gift label { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.admin .more { margin-top: 10px; }
.tag { font-size: 12px; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag.good { color: #5bc37a; border-color: #2f5a3b; }
.tag.bad { color: var(--live); border-color: #6a2e2a; }

/* Buy page */
.buy-card { max-width: 520px; display: grid; gap: 14px; }
.buy-card[hidden] { display: none; }
.buy-card label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.buy-card input {
  padding: 9px 11px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.buy-card .button { justify-self: start; }
.buy-card p { margin: 0; }
.small-print { font-size: 13px; }
