/* Sierra Clan Portal. Brand gradient: purple, orange, green/teal. No other colors added. */
:root {
  --purple: #7B3FE4;
  --orange: #FF7A1A;
  --teal: #12B5A0;
  --purple-ink: #5A2BB8;
  --purple-deep: #4A23A8;
  --ink: #14121A;
  --ink-soft: #5B5766;
  --line: #E6E2EE;
  --card: #FFFFFF;
  --grad: linear-gradient(90deg, var(--purple), var(--orange), var(--teal));
  --wash: linear-gradient(160deg, #F1EAFF 0%, #FFF1E6 50%, #E4FAF5 100%);
  --head: "Poppins", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--wash); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--purple-ink); }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.sr { position: absolute; left: -9999px; }

/* Brand gradient motion, like sierraclan.com (sc-slide). Off when reduced motion is on. */
@keyframes sc-slide { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.grad-move { background-size: 200% 200%; animation: sc-slide 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .grad-move { animation: none; } }

/* Top bar */
.top { background: var(--grad); color: #fff; padding: 12px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--purple-ink); display: flex; align-items: center; justify-content: center; font: 700 15px var(--head); }
.brand-name { font: 600 18px var(--head); }
.pill { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--purple-ink); font-size: 13px; font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bubble { height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.2); color: #fff; font: 600 13px var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }
.bubble.icon { padding: 0; width: 40px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--purple-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-decoration: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-width: 210px; box-shadow: 0 14px 40px rgba(40,20,80,.16); z-index: 20; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { color: var(--ink); text-decoration: none; padding: 11px 12px; border-radius: 10px; font: 500 14px var(--body); background: none; border: 0; text-align: left; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: #F3EEFF; }

/* Layout */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 28px 48px; flex: 1; }
.cols { display: flex; flex-wrap: wrap; gap: 26px; }
.main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.date { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.hello { font-size: 40px; font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 6px 0 0; color: var(--ink-soft); font-size: 16px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 176px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(90,43,184,.14); }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.g-po { background: linear-gradient(135deg, var(--purple), var(--orange)); }
.g-ot { background: linear-gradient(135deg, var(--orange), var(--teal)); }
.g-pt { background: linear-gradient(135deg, var(--purple), var(--teal)); }
.g-tp { background: linear-gradient(135deg, var(--teal), var(--purple)); }
.g-op { background: linear-gradient(135deg, var(--orange), var(--purple)); }
.g-to { background: linear-gradient(135deg, var(--teal), var(--orange)); }
.tile h2 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag.live { color: #0B6B5E; background: #DDF5F0; }
.tag.building { color: var(--purple-ink); background: #EFE8FC; }
.tag.coming { color: var(--ink-soft); background: #F0EEF4; }
.tag.warn { color: #8A3B00; background: #FFE9D9; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { font-size: 17px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.card.feature { background: linear-gradient(140deg, var(--purple), var(--purple-deep)); color: #fff; border: 0; }
.card.feature p { color: #EDE6FF; }
.card.feature-alt { background: linear-gradient(120deg, var(--purple) 0%, var(--purple-deep) 45%, var(--teal) 100%); color: #fff; border: 0; }
.card.feature-alt p { color: #F4F0FF; }
.big { font: 600 22px var(--head); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons: gradient with dark outline is the move to next step button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.btn.go { background: var(--grad); background-size: 200% 200%; color: #fff; }
.btn.on-color { background: transparent; color: #fff; border-color: #fff; }
.btn.white { background: #fff; color: var(--purple-ink); border-color: #fff; }
.btn.wide { width: 100%; height: 52px; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=url], select { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 15px var(--body); background: #fff; color: var(--ink); width: 100%; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Tables */
.tbl-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th { text-align: left; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 10px 12px; font-weight: 600; }
td { padding: 13px 12px; border-top: 1px solid #EFECF4; vertical-align: middle; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.keybox { flex: 1 1 380px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.4); border-radius: 12px; padding: 15px 18px; font-size: 15px; color: #fff; word-break: break-all; }
.kv { display: flex; justify-content: space-between; border-top: 1px solid #EFECF4; padding-top: 10px; font-size: 14px; gap: 10px; }

.flash { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 18px; box-shadow: inset 4px 0 0 var(--purple); }

/* Sign in */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-brand { flex: 1 1 520px; background: linear-gradient(150deg, var(--purple) 0%, var(--orange) 62%, var(--teal) 100%); background-size: 200% 200%; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; }
.login-brand .orb { position: absolute; width: 620px; height: 620px; right: -220px; bottom: -240px; border-radius: 50%; background: rgba(255,255,255,.14); }
.login-brand h1 { font-size: 52px; line-height: 1.08; max-width: 540px; }
.login-brand p { font-size: 18px; line-height: 1.6; max-width: 520px; margin: 18px 0 0; }
.login-side { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }

/* Module page */
.mod-hero { border-radius: 20px; padding: 36px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.mod-hero h1 { font-size: 44px; }
.mod-hero p { margin: 0; font-size: 17px; max-width: 640px; }
ul.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul.ticks li { padding-left: 28px; position: relative; font-size: 15px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }

.foot { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.foot .heart { color: #E0245E; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-brand { padding: 36px 28px; }
  .login-brand h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  .top { padding: 12px 16px; }
  .brand-name, .hide-sm { display: none; }
  .wrap { padding: 22px 16px 36px; }
  .hello { font-size: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { padding: 16px; min-height: 120px; gap: 10px; }
  .tile p { display: none; }
  .ico { width: 40px; height: 40px; border-radius: 12px; }
  .two { grid-template-columns: 1fr; }
  .mod-hero { padding: 24px; }
  .mod-hero h1 { font-size: 32px; }
  .login-brand { flex-basis: 100%; min-height: 0; gap: 24px; }
  .login-brand .orb { display: none; }
  .login-card { padding: 28px; }
}
