/* Smile Applications - application.smilecorp.co.uk, in the Smile Hosting navy and gold. */

:root {
  --navy: #091424;
  --navy-2: #132846;
  --gold: #f2c200;
  --gold-2: #ffe06b;
  --text: #f3f6fb;
  --muted: #93a5bc;
  --card: rgba(15, 32, 56, .78);
  --card-2: rgba(19, 40, 70, .9);
  --line: rgba(147, 176, 214, .14);
  --line-soft: rgba(147, 176, 214, .14);
  --red: #ff6b6e;
  --radius: 22px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--navy); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(242, 194, 0, .09), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(60, 120, 200, .12), transparent 60%),
    linear-gradient(#091424, #091424);
  background-attachment: fixed;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }

.si { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.sb { display: block; width: 100%; height: 100%; }

/* ---------- header / footer ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 20, 36, .86); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.05; }
.brand-text span { color: var(--gold); }
.brand-text small { display: block; font-family: var(--font); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top-links { display: flex; gap: .3rem; }
.top-links a { text-decoration: none; color: rgba(255, 255, 255, .82); font-size: .88rem; font-weight: 500; padding: .5rem .8rem; border-radius: 999px; }
.top-links a:hover { color: #fff; background: rgba(242, 194, 0, .14); }

.wrap { flex: 1; width: min(760px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.wrap.wide { width: min(1080px, calc(100% - 2rem)); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .8rem;
}

.loading { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 5rem 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(242, 194, 0, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { text-align: center; color: var(--muted); }

/* ---------- cards ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(2, 8, 18, .28);
}

/* ---------- front page ---------- */

.hero { text-align: center; padding: 1.5rem 0 2.2rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(242, 194, 0, .14); border: 1px solid rgba(242, 194, 0, .28); color: var(--gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { margin: .9rem 0 .5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0 auto; max-width: 540px; color: var(--muted); line-height: 1.6; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.app-card {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: rgba(242, 194, 0, .55); box-shadow: 0 22px 46px rgba(2, 8, 18, .38); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; }
.app-card-icon { width: 46px; height: 46px; }
.open-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; background: rgba(242, 194, 0, .15); color: var(--gold); font-size: .74rem; font-weight: 700; }
.open-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 194, 0, .25); }
.app-card h2 { margin: .2rem 0 0; font-size: 1.2rem; }
.app-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; }
.app-card-foot strong { display: inline-flex; align-items: center; gap: .3rem; color: var(--gold); font-weight: 700; }

/* one friendly message in the middle: nothing open, closed, not found, sent */
.state { text-align: center; padding: 2.8rem 1.5rem 2.4rem; }
.state-art { width: 120px; height: 120px; margin: 0 auto 1.2rem; }
.state h1, .state h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.state p { margin: 0 auto; max-width: 480px; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.state .actions { margin-top: 1.5rem; display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 .92rem var(--font); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); box-shadow: 0 14px 30px rgba(242, 194, 0, .22); }
.btn-gold:hover { opacity: .92; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- the application ---------- */

.form-head { overflow: hidden; margin-bottom: 1rem; }
.form-head::before { content: ''; display: block; height: 10px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.form-head-body { padding: 1.6rem 1.7rem 1.4rem; }
.form-head h1 { margin: 0 0 .7rem; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; }
.form-desc { margin: 0; color: rgba(243, 246, 251, .86); line-height: 1.65; white-space: pre-line; }
.form-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; }
.form-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.req-star { color: var(--red); font-weight: 700; }

.progress { position: sticky; top: 64px; z-index: 10; height: 4px; margin: 0 0 1rem; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .25s ease; }

.q { padding: 1.3rem 1.5rem 1.4rem; margin-bottom: .9rem; transition: border-color .15s ease, box-shadow .15s ease; }
.q:focus-within { border-color: rgba(242, 194, 0, .6); }
.q.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 110, .15); }
.q-label { display: block; margin: 0 0 .3rem; font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.q-help { margin: 0 0 .9rem; color: var(--muted); font-size: .86rem; line-height: 1.5; white-space: pre-line; }
.q-error { display: flex; align-items: center; gap: .4rem; margin: .7rem 0 0; color: var(--red); font-size: .84rem; font-weight: 500; }

.section-card { padding: 1.1rem 1.5rem; margin: 1.6rem 0 .9rem; background: linear-gradient(135deg, rgba(242, 194, 0, .16), rgba(242, 194, 0, .05)); border-color: rgba(242, 194, 0, .35); }
.section-card h2 { margin: 0; font-size: 1.2rem; color: var(--gold-2); }
.section-card p { margin: .35rem 0 0; color: rgba(243, 246, 251, .82); font-size: .9rem; line-height: 1.55; white-space: pre-line; }

.input, .textarea, .select {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: rgba(2, 8, 18, .28); color: var(--text);
  font: 400 .95rem var(--font); transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 194, 0, .2); }
.input::placeholder, .textarea::placeholder { color: rgba(147, 165, 188, .7); }
.input.short { max-width: 420px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select { max-width: 420px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.select option { background: var(--navy); color: var(--text); }
.count { margin-top: .35rem; text-align: right; color: var(--muted); font-size: .74rem; }

.options { display: grid; gap: .45rem; }
.opt {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: rgba(2, 8, 18, .18); cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.opt:hover { border-color: rgba(242, 194, 0, .45); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--muted); display: grid; place-items: center; transition: all .12s ease; }
.opt .mark.round { border-radius: 50%; }
.opt .mark.square { border-radius: 6px; }
.opt .mark .si { width: 14px; height: 14px; opacity: 0; color: var(--navy); stroke-width: 3.2; }
.opt input:checked + .mark { border-color: var(--gold); background: var(--gold); }
.opt input:checked + .mark.round { background: transparent; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 10px var(--gold); }
.opt input:checked + .mark .si { opacity: 1; }
.opt input:focus-visible + .mark { box-shadow: 0 0 0 3px rgba(242, 194, 0, .35); }
.opt:has(input:checked) { border-color: rgba(242, 194, 0, .6); background: rgba(242, 194, 0, .09); }

.scale { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.scale-label { color: var(--muted); font-size: .84rem; }
.scale-points { display: flex; gap: .4rem; flex-wrap: wrap; }
.scale-point { position: relative; }
.scale-point input { position: absolute; opacity: 0; }
.scale-point span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-soft); background: rgba(2, 8, 18, .18); font-weight: 700; transition: all .12s ease;
}
.scale-point span:hover { border-color: rgba(242, 194, 0, .5); }
.scale-point input:checked + span { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); border-color: var(--gold); }
.scale-point input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 194, 0, .35); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.submit-row .note { color: var(--muted); font-size: .82rem; }
.form-error { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(255, 107, 110, .12); border: 1px solid rgba(255, 107, 110, .4); color: #ffd1d2; font-size: .9rem; }
.linkish { background: none; border: none; color: var(--muted); font: 500 .84rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.linkish:hover { color: var(--text); }

@media (max-width: 600px) {
  .top-links { display: none; }
  .form-head-body, .q { padding-left: 1.15rem; padding-right: 1.15rem; }
  .scale-point span { width: 38px; height: 38px; }
  .submit-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Smile Hosting theme (matches smilehosting.tech) ---- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
.topnav, .site-header, .buy-header { background: rgba(9, 20, 36, .78) !important; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(147, 176, 214, .14); box-shadow: none; }
.btn-primary, .nav-cta { background: linear-gradient(180deg, #ffd84d, #f2c200); color: #1c1600; box-shadow: 0 8px 20px rgba(242, 194, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .35); }
.panel, .card, .plan { border-color: rgba(147, 176, 214, .14); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(242, 194, 0, .22); }

/* ==========================================================================
   Smile Hosting parity - header, footer, corners and buttons exactly as on
   smilehosting.tech (Hosting Website/assets/css/styles.css).
   ========================================================================== */
:root { --radius: 16px; --radius-sm: 10px; --border-2: rgba(147, 176, 214, .26); --text-2: #d3dce8; --faint: #677c96; }
body { font-size: 15px; line-height: 1.6; }
h1, h2 { font-weight: 800; }
.container { width: min(1200px, calc(100% - 2.5rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 20, 36, .78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.site-header .brand, .footer .brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); white-space: nowrap; }
.site-header .brand-mark, .footer .brand-mark { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; }
.brand-text { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text b { color: var(--gold); font-weight: 800; }
.brand-text small { font-size: .62rem; letter-spacing: .14em; margin-top: .1rem; }
.nav-links { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border-radius: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color 140ms ease, background 140ms ease; }
.nav-links a:hover { color: var(--text); background: rgba(147, 176, 214, .08); }
.nav-spacer { flex: 1; }
.nav-links a.nav-dash {
  flex: none; padding: .55rem 1rem; border-radius: 9px;
  background: linear-gradient(180deg, #ffd84d, var(--gold)); color: #1c1600; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 18px rgba(242, 194, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nav-links a.nav-dash:hover { color: #1c1600; background: linear-gradient(180deg, #ffe066, #ffd84d); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-dash) { display: none; }
  .navbar { gap: .8rem; }
}

.footer { margin-top: 2rem; padding: 3.5rem 0 2rem; color: var(--muted); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 13, 25, .4), rgba(6, 13, 25, .9)); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer h3 { font-family: var(--font); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 .9rem; }
.footer p { margin: 0 0 .55rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* buttons: Hosting's 10px corners rather than pills (status pills stay round) */
.btn { border-radius: 10px; }

/* Discord-style formatting in application text (apply.js md()) */
#app strong { font-weight: 700; color: var(--text); }
#app u { text-underline-offset: 3px; }
#app code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .88em; padding: .08em .4em; border-radius: 5px; background: rgba(147, 176, 214, .12); border: 1px solid var(--line); }
#app a:not(.btn):not(.card) { color: var(--gold); text-underline-offset: 3px; }
#app .spoiler { border-radius: 4px; background: #1d2a3d; color: transparent; cursor: pointer; transition: color .15s, background .15s; }
#app .spoiler * { color: transparent; }
#app .spoiler.shown, #app .spoiler:focus-visible { background: rgba(147, 176, 214, .14); color: inherit; }
#app .spoiler.shown * { color: inherit; }

/* Staff preview (panel -> Preview): a strip across the top so nobody mistakes it for the live page */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; flex-wrap: wrap; padding: .6rem clamp(1rem, 3vw, 2.5rem); background: linear-gradient(180deg, #ffd84d, var(--gold)); color: #1c1600; font-size: .88rem; box-shadow: 0 6px 18px rgba(2, 8, 18, .35); }
.preview-bar__tabs { display: inline-flex; gap: .25rem; padding: .2rem; border-radius: 10px; background: rgba(28, 22, 0, .12); }
.preview-bar__tabs button { border: 0; border-radius: 8px; padding: .35rem .75rem; background: transparent; color: #1c1600; font: 600 .82rem var(--font); cursor: pointer; }
.preview-bar__tabs button:hover { background: rgba(28, 22, 0, .1); }
.preview-bar__tabs button.on { background: #1c1600; color: #ffd84d; }
body.is-preview .site-header { top: 0; position: relative; }
