/* ==========================================================================
   NUTITERMO TALLINN - EARLY DESKTOP / OS DIALOG SYSTEM STYLES
   Colors:
   - Chrome gray: #B8C4C4
   - Window beige: #F0EDE4
   - Teal: #3D7A7A
   - Button green: #008000
   - Ink: #000000
   Fonts:
   - Headings/Display: Verdana
   - Body: Arial
   - Status bar: Courier New
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  background-color: #3D7A7A;
  min-height: 100vh;
  padding: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Verdana, Geneva, sans-serif;
  color: #000000;
  font-weight: bold;
}

a {
  color: #000000;
  text-decoration: underline;
}
a:hover {
  background-color: #000000;
  color: #F0EDE4;
  text-decoration: none;
}

/* Desktop container */
.desktop-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Master Window Frame */
.window-frame {
  background-color: #F0EDE4;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
}

/* 1. Window Title Bar */
.window-title-bar {
  background-color: #3D7A7A;
  color: #F0EDE4;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000000;
  user-select: none;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.window-app-icon {
  flex-shrink: 0;
  background-color: #F0EDE4;
  border: 1px solid #000000;
  padding: 1px;
}

.title-bar-text {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.window-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.win-btn {
  width: 20px;
  height: 20px;
  background-color: #B8C4C4;
  border-top: 2px solid #F0EDE4;
  border-left: 2px solid #F0EDE4;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  color: #000000;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.win-btn:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #F0EDE4;
  border-bottom: 2px solid #F0EDE4;
}

/* 2. Menu/Toolbar Strip */
.window-toolbar {
  background-color: #B8C4C4;
  border-bottom: 2px solid #000000;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-cmd {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  padding: 3px 10px;
  background-color: #F0EDE4;
  border-top: 2px solid #F0EDE4;
  border-left: 2px solid #F0EDE4;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.toolbar-cmd:hover {
  background-color: #3D7A7A;
  color: #F0EDE4;
  border-color: #000000;
}

.cmd-key {
  text-decoration: underline;
}

/* Main Content Body */
.window-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inset Panel Motif */
.inset-panel {
  background-color: #F0EDE4;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #F0EDE4;
  border-bottom: 2px solid #F0EDE4;
  box-shadow: inset 1px 1px 0px #000000;
  padding: 16px;
}

/* Panel Caption Bar */
.panel-caption-bar {
  background-color: #B8C4C4;
  color: #000000;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 4px 8px;
  margin: -16px -16px 14px -16px;
  border-bottom: 2px solid #000000;
  letter-spacing: 0.5px;
}

/* 3. Inset Main Panel (Headline / Hero Dialog) */
.main-dialog-panel {
  background-color: #F0EDE4;
}

.dialog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #B8C4C4;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.system-chip {
  background-color: #3D7A7A;
  color: #F0EDE4;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid #000000;
}

.dialog-timestamp {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.dialog-title {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.dialog-lead {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #000000;
}

.badge-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-badge {
  font-size: 0.85rem;
  font-weight: bold;
  background-color: #B8C4C4;
  padding: 4px 8px;
  border: 1px solid #000000;
  width: fit-content;
}

.action-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Chunky Buttons */
.btn {
  display: inline-block;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  padding: 9px 18px;
  cursor: pointer;
  border-top: 3px solid #F0EDE4;
  border-left: 3px solid #F0EDE4;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  text-align: center;
}

.btn:active {
  border-top: 3px solid #000000;
  border-left: 3px solid #000000;
  border-right: 3px solid #F0EDE4;
  border-bottom: 3px solid #F0EDE4;
  transform: translate(1px, 1px);
}

.btn-primary {
  background-color: #008000;
  color: #F0EDE4;
}
.btn-primary:hover {
  background-color: #006400;
  color: #F0EDE4;
}

.btn-secondary {
  background-color: #B8C4C4;
  color: #000000;
}
.btn-secondary:hover {
  background-color: #A3B2B2;
  color: #000000;
}

/* Hero Specs Column */
.spec-box {
  background-color: #B8C4C4;
  border: 2px solid #000000;
  padding: 12px;
}

.spec-header {
  font-family: Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  background-color: #3D7A7A;
  color: #F0EDE4;
  padding: 4px 6px;
  margin-bottom: 10px;
  border: 1px solid #000000;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.spec-list li {
  border-bottom: 1px dashed #3D7A7A;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.spec-list span {
  font-size: 0.75rem;
}

/* 4. Four Nested Panels Grid */
.four-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel-unit {
  display: flex;
  flex-direction: column;
}

.section-heading {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #000000;
}

.panel-desc {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* Panel 1: Services list */
.service-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-steps-list li {
  background-color: #FFFFFF;
  border: 1px solid #000000;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.service-steps-list strong {
  display: block;
  color: #3D7A7A;
  font-family: Verdana, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

/* Panel 2: Pricing */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.price-card {
  background-color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px;
  position: relative;
}

.card-featured {
  background-color: #FAF8F2;
  border: 2px solid #3D7A7A;
  outline: 1px solid #000000;
}

.featured-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #008000;
  color: #F0EDE4;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  font-family: Verdana, sans-serif;
}

.card-title {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
}

.price-sum {
  font-family: Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #008000;
  margin: 3px 0;
}

.price-sub {
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.card-bullets {
  list-style-type: square;
  padding-left: 18px;
  font-size: 0.8rem;
}

/* Panel 3: Accordion / FAQ */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-block {
  background-color: #FFFFFF;
  border: 1px solid #000000;
  padding: 8px;
}

.block-q {
  font-size: 0.85rem;
  color: #3D7A7A;
  margin-bottom: 4px;
}

.block-a {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Panel 4: Terminal Form */
.terminal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: bold;
}

.sys-input {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  padding: 6px 8px;
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
}

.sys-input:focus {
  outline: 2px solid #3D7A7A;
  background-color: #FAF8F2;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.form-feedback-alert {
  display: none;
  padding: 8px;
  background-color: #008000;
  color: #F0EDE4;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  border: 2px solid #000000;
}

/* 5. Status Bar Footer (Courier New) */
.window-status-bar {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  background-color: #B8C4C4;
  border-top: 2px solid #000000;
  padding: 4px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.status-cell {
  background-color: #F0EDE4;
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #F0EDE4;
  border-bottom: 1px solid #F0EDE4;
  padding: 2px 8px;
  white-space: nowrap;
}

.status-ready {
  color: #008000;
  font-weight: bold;
}

.status-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-link {
  color: #3D7A7A;
  font-weight: bold;
}

.status-dialog-link {
  background: none;
  border: none;
  color: #000000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.status-dialog-link:hover {
  background-color: #000000;
  color: #F0EDE4;
}

/* Privacy Policy Modal Window */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
}

.modal-content-scroll {
  max-height: 60vh;
  overflow-y: auto;
  margin: 12px;
  background-color: #FFFFFF;
}

.modal-content-scroll h3 {
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 4px;
  color: #3D7A7A;
}

.modal-content-scroll p,
.modal-content-scroll ul {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.modal-content-scroll ul {
  padding-left: 20px;
}

.modal-footer-bar {
  background-color: #B8C4C4;
  border-top: 2px solid #000000;
  padding: 8px 12px;
  display: flex;
  justify-content: flex-end;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .four-panels-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    padding: 6px;
  }
  .window-frame {
    box-shadow: 3px 3px 0px #000000;
    border-width: 2px;
  }
  .dialog-title {
    font-size: 1.25rem;
  }
  .form-row-duo {
    grid-template-columns: 1fr;
  }
  .window-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .status-cell {
    width: 100%;
  }
}