/*
 * B-flexy ROI calculator stylesheet.
 * Palette matches the b-flexy.lt site: azure blue / navy / charcoal / white,
 * with a warm gold accent reserved for money figures.
 */

:root {
  --ink: #181C1F;
  --porcelain: #F5F6F7;
  --blue: #2AA4DA;
  --blue-deep: #155C82;
  --blue-tint: #E3F1F8;
  --blue-tint-line: #C6E1EE;
  --gold: #C9973E;
  --gold-soft: #F1E3C4;
  --profit: #155C82;
  --profit-soft: #E3F1F8;
  --paper-shadow: 0 30px 60px -25px rgba(21, 92, 130, 0.30);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Full-width calculator header */
header.roi-calculator-header {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 88% -10%, #6DCBF2 0%, var(--blue) 38%, var(--blue-deep) 100%);
  color: #fff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

header.roi-calculator-header .rings {
  right: -60px;
  top: -80px;
}

header.roi-calculator-header .rings-2 {
  left: -100px;
  bottom: -120px;
  opacity: 0.25;
}

.wrap.roi-calculator h1 em {
    font-style: italic;
    font-weight: 400;
    color: #F1E3C4;
}
.roi-calculator-header .wrap.roi-calculator h1 {
    position: unset;
    display: inline;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 15ch;
    margin: 0 0 20px;
}

.roi-calculator {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Decorative concentric-ring motif, echoing the device's vacuum technology */
.rings {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

.rings svg {
  display: block;
}

/* ---------- header ---------- */
header {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 88% -10%, #6DCBF2 0%, var(--blue) 38%, var(--blue-deep) 100%);
  color: #fff;
}

header .rings {
  right: -60px;
  top: -80px;
}

header .rings-2 {
  left: -100px;
  bottom: -120px;
  opacity: 0.25;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}

header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin: 0 0 20px;
}

header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

header p.lead {
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: #D6ECF7;
  margin: 0;
}

/* ---------- layout ---------- */
main {
  padding: 56px 0 10px;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- form panels ---------- */
.panel {
  background: #fff;
  border: 1px solid #E4E9E9;
  border-radius: 18px;
  padding: 34px 34px 8px;
  margin-bottom: 26px;
}

.panel h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.panel h2 .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .06em;
}

.panel .hint {
  font-size: 13.5px;
  color: #6B7580;
  margin: 0 0 24px;
  line-height: 1.5;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--ink);
}

.field label .val {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--blue-deep);
  font-size: 13px;
}

input[type="number"] {
  width: 100%;
  border: 1.5px solid #DCE3E8;
  background: var(--porcelain);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  height: 4px;
}

/* Package selector pills */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pill {
  flex: 1;
  min-width: 150px;
  border: 1.5px solid #DCE3E8;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill .name {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 3px;
}

.pill .desc {
  font-size: 12px;
  color: #6B7580;
  display: block;
}

.pill.active {
  border-color: var(--blue);
  background: var(--blue-tint);
}

.pill.active .name {
  color: var(--blue-deep);
}

/* Pay-mode toggle (percentage vs fixed salary) */
.toggle-row {
  display: flex;
  background: var(--porcelain);
  border: 1.5px solid #DCE3E8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}

.toggle-row button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B7580;
  border-radius: 7px;
  cursor: pointer;
}

.toggle-row button.active {
  background: var(--blue);
  color: #fff;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 520px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

hr.div {
  border: none;
  border-top: 1px dashed #DCE3E8;
  margin: 8px 0 26px;
}

/* ---------- results "receipt" ---------- */
.receipt-wrap {
  position: sticky;
  top: 24px;
}

.receipt {
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--paper-shadow);
  position: relative;
  padding: 0 0 6px;
  overflow: hidden;
}

.receipt-top {
  background: var(--blue-deep);
  color: #fff;
  padding: 26px 30px 22px;
  position: relative;
  overflow: hidden;
}

.receipt-top .rings {
  right: -50px;
  top: -40px;
  opacity: 0.35;
}

.receipt-top .brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.receipt-top .headline {
  font-family: 'Fraunces', serif;
  font-size: 15.5px;
  color: #D6ECF7;
  font-weight: 400;
  margin-bottom: 2px;
}

.receipt-body {
  padding: 26px 30px 6px;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  padding: 10px 0;
  border-bottom: 1px dotted #DCE3E8;
}

.line .k {
  color: #6B7580;
}

.line .v {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--ink);
}

.line.neg .v {
  color: #C24B42;
}

.line.pos .v {
  color: var(--profit);
}

.headline-figure {
  margin: 22px 0 6px;
  padding: 22px 24px;
  background: var(--blue-tint);
  border-radius: 14px;
  text-align: center;
}

.headline-figure .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.headline-figure .v {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 40px;
  color: var(--blue-deep);
  line-height: 1;
  letter-spacing: -4px;
}

.headline-figure .v span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0px !important;
}

.headline-figure .sub {
  font-size: 12px;
  color: #3E7EA0;
  margin-top: 6px;
}

/* Simple CSS bar chart, no charting library required */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 74px;
  margin: 24px 0 4px;
  padding: 0 2px;
}

.chart .bar {
  flex: 1;
  background: var(--gold-soft);
  border-radius: 3px 3px 0 0;
  transition: height .3s ease;
}

.chart .bar.profit {
  background: var(--profit);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #8B9AA3;
  margin-bottom: 18px;
}

.perforation {
  height: 22px;
  background:
    radial-gradient(circle at 12px 0, transparent 11px, #fff 12px) top / 24px 22px repeat-x,
    var(--porcelain);
}

.stub {
  padding: 20px 30px 28px;
  font-size: 12px;
  color: #8B9AA3;
  line-height: 1.6;
}

.stub b {
  color: #6B7580;
}

.roi-calculator .cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--profit);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 16px;
  transition: background .15s ease;
  text-decoration: none;
}

.cta:hover {
  background: var(--blue-deep);
}

.note-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--profit-soft);
  border: 1px solid #B9D9EA;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #155C82;
  margin-top: 24px;
}

footer {
  width: 99%;
  text-align: center;
  padding: 40px 0 60px;
  font-size: 12px;
  color: #8B9AA3;
  font-family: 'IBM Plex Mono', monospace;
}
