:root {
  --bg: #f4f7fb;
  --bg-top: #f8fbff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #12263a;
  --text-soft: #526377;
  --text-faint: #6b7c93;

  --brand: #0f4c81;
  --brand-dark: #0b3559;
  --brand-light: #e8f1f8;

  --border: #d9e2ec;
  --border-strong: #bcccdc;

  --warning-bg: #fff7e6;
  --warning-border: #f2d49b;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --pill: 999px;

  --max-width: 1360px;
  --transition: 0.18s ease;
}

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

html {
  font-size: 16px;
}




body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(15, 76, 129, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

/* Header */

.page-header {
  margin-bottom: 1.5rem;
}

.page-header__inner {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.98), rgba(11, 53, 89, 0.98));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.page-header__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.page-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

/* Tool switcher */

.tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-switcher button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--pill);
  padding: 0.82rem 1rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.tool-switcher button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  text-decoration: none;
}

.tool-switcher button.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.tool-switcher button:disabled,
.tool-switcher button.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  opacity: 0.7;
}

.tool-switcher button:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.controls-column,
.preview-column {
  min-width: 0;
}

.controls-column {
  display: grid;
  gap: 1rem;
}

.preview-sticky {
  position: sticky;
  top: 1rem;
}

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.guidance-card,
.preview-card {
  padding: 1.25rem;
}

.form-card {
  overflow: hidden;
  padding: 0;
}

.form-section {
  padding: 1.25rem;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.preview-card h2,
.tool-card h3,
.landing-info__section h3 {
  margin: 0;
  line-height: 1.2;
}

.section-heading p,
.preview-card__title p,
.page-footer,
.tool-card p,
.landing-info__section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Callout */

.callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.callout--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.callout h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.callout ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.7;
}

/* Tool grid */

.tool-grid {
  display: grid;
  gap: 1rem;
}

.tool-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.tool-card__content {
  display: grid;
  gap: 0.5rem;
}

.tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.18);
}

.button--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Preview */

.preview-card {
  overflow: hidden;
}

.preview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-card__title {
  display: grid;
  gap: 0.35rem;
}

.preview-surface {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.landing-info {
  display: grid;
  gap: 1rem;
}

.landing-info__section {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

/* Footer */

.page-footer {
  padding: 0.1rem 0.2rem 0;
  font-size: 0.92rem;
}

/* Responsive */

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .preview-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 1rem;
  }

  .page-header__inner,
  .guidance-card,
  .preview-card {
    padding: 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .tool-switcher {
    flex-direction: column;
  }

  .tool-switcher button {
    width: 100%;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }
}
