/* =========================================================
   LAEW DESIGN SYSTEM (Clean Pass #1)
   ICOSIEL │ LAEW
========================================================= */

/* -------------------------
   ROOT TOKENS
--------------------------*/
:root {
  --bg: #0f1115;
  --panel: #161a22;
  --panel-soft: #131720;

  --text: #e7eaf0;
  --muted: #818589;
  
  --white: #ffffff;

  --accent: #71797E;
  --border: #2a3140;

  --font-main: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --radius: 10px;

  --max-width: 980px;
  --transition: 0.15s ease;
}

/* -------------------------
   RESET
--------------------------*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* -------------------------
   LAYOUT
--------------------------*/
.container,
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* =========================================================
   HEADER (SINGLE SYSTEM)
=========================================================*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

/* Brand */
.brand-title {
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav a.active {
  color: var(--text);
  background: rgba(122,162,255,0.15); 
  border: 1px solid rgba(122,162,255,0.35);
}

/* =========================================================
   PANELS
=========================================================*/
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  padding: 18px 20px;
  margin-bottom: 18px;
}

.panel.soft {
  background: var(--panel-soft);
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
}

/* =========================================================
   TEXT
=========================================================*/
.muted {
  color: var(--muted);
  font-size: 13px;
}

.small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================
   LINKS
=========================================================*/
a {
  color: var(--accent);
}

a:hover {
  opacity: 0.9;
}

/* =========================================================
   BUTTON (SINGLE SYSTEM)
=========================================================*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  border-radius: 6px;

  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);

  text-decoration: none;
  font-size: 0.9rem;

  transition: var(--transition);
  min-height: 36px;
}

.button:hover {
  background: var(--accent);
  color: white;
}

/* =========================================================
   FORMS
=========================================================*/
input,
textarea {
  width: 100%;
  padding: 10px;

  border-radius: 6px;
  border: 1px solid var(--border);

  background: #0d1016;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(122,162,255,0.5);
}

/* =========================================================
   TAGS
=========================================================*/
.tag {
  font-size: 12px;
  padding: 4px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   STRUCTURED RESEARCH BLOCK
=========================================================*/
.sr-preview {
  margin-top: 2rem;
  padding: 1.5rem;

  border: 1px dashed var(--border);
  border-radius: var(--radius);

  background: var(--panel);
}

/* =========================================================
   FOOTER
=========================================================*/
.site-footer {
  margin-top: 40px;
  padding: 20px;

  border-top: 1px solid var(--border);
  text-align: center;

  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   INTERACTION HELPERS
=========================================================*/
.clickable {
  cursor: pointer;
  transition: var(--transition);
}
.clickable:hover {
  background: rgba(122,162,255,0.15); 
}


/* =========================================================
   RESPONSIVE LAYER (SINGLE CLEAN SYSTEM)
=========================================================*/
@media (max-width: 720px) {

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .page,
  .container {
    padding: 14px;
  }

  .panel {
    padding: 14px;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-subtitle {
    font-size: 13px;
  }
}

@media (max-width: 420px) {

  .brand-title {
    font-size: 24px;
  }

  .panel {
    padding: 12px;
  }
}

.home-link {
  font-size: 14px;
  color: var(--bg);
  background: var(--text);

  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;

  border: 1px solid var(--text);
  transition: 0.15s ease;
}

.home-link:hover {
  background: var(--muted);
  color: var(--bg);
}

.page-hero.compact {
  padding: 16px 0 8px 0;
}

.page-hero.compact h1 {
  font-size: 34px;
}

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 20px 14px 20px;

}

/*
.page-hero h1 {
    font-size: 30px;
}
*/
.card h2 {
    font-size: 22px;
}

.page-hero p {
  margin-top: 6px;
  color: var(--muted);
}

/*
.page-hero.compact {
  padding-top: 14px;
  padding-bottom: 10px;
}
*/

.note {
  margin-top: 12px;
  padding-left: 12px;

  font-size: 0.92rem;
  color: var(--muted);
  opacity: 1.0;
  line-height: 1.5;
}

/* =========================================
   FREE vs SUPPORTER SPLIT LAYOUT
========================================= */

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.decision-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.decision-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.decision-card.free {
  border-left: 3px solid var(--muted);
}

.decision-card.supporter {
  border-left: 3px solid var(--accent);
}

/* MOBILE STACKING */
@media (max-width: 720px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

.payment-link {
  font-size: 14px;
  color: var(--bg);
  background: var(--text);

  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;

  border: 1px solid var(--text);
  transition: 0.15s ease;
}

.payment-link:hover {
  background: var(--muted);
  color: var(--bg);
}

.brand-heading { 
 gap: 10px; 
}

.brand-logo { 
 width: 40px; 
 height: 40px; 
 object-fit: contain;    /* Fine-tuning                  */ 
 margin-left: 5px;       /* Space after "ICOSIEL │ LAEW" */ 
 vertical-align: middle; /* Helps some browsers          */ 
 align-self: center;     /* Ensures flex centering       */ 
 margin-top: -9px;
 }

.brand-logo {
    align-self: center;
}

.contact-link {
  font-size: 14px;
  color: var(--bg);
  background: var(--text);

  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;

  border: 1px solid var(--text);
  transition: 0.15s ease;
}

.contact-link:hover {
  background: var(--muted);
  color: var(--bg);
}

.contact-set {
  padding-top: 15px;
  padding-left: 10px;
}

.exchange-subtitle {
  font-size: 21px;
  color: var(--text);
  padding-left: 2em;
  margin-top: 2px;
}

.exchange-entry {
  /* font-size: 16px;  */
  font-size: 0.94rem;
  color: var(--text);
  padding-left: 3.9em;
  margin-top: 2px;
}

.exchange-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    margin-bottom: 1.2rem;
}

.exchange-toolbar h2 {
    margin: 0;
}

.medallion-card {
  background: var(--panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot {
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center;     /* Vertical */
  height: 400px;           /* Required for vertical centering */
}

.screenshot-small {
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center;     /* Vertical */
  height: 365px;           /* Required for vertical centering */
}

.image-centered {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  margin-top: 12px;
}	

.image-align-left {
  display: flex;
  justify-content: left;   /* horizontal left alignment */
  align-items: center;     /* Centers vertically */
  margin-top: 12px;
}	

.image-align-left-small {
  display: flex;
  justify-content: left;   /* horizontal left alignment */
  align-items: center;     /* Centers vertically */
  margin-top: 5px;
}

.brand-subtitle-logo {	
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  justify-content: left;   /* horizontal left alignment */  
  
}

.image-subtitle-logo {
  display: flex;
  justify-content: left;   /* horizontal left alignment */
  align-items: center;     /* Centers vertically */
  margin-top: 5px;
  margin-left: 72px;
}