@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}
:root {
  --font-mono: 'Rubik', Arial, sans-serif;
  --page-min-width: 20rem;
  --page-max-width: 75rem;
  --radius: 0.33em;
  --radius-sm: 0.25em;
  --border-width: 0.0625rem;
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1rem;
  --gap-ml: 1.25rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
  --primary: #263040;
  --medium-primary: color-mix(in srgb, var(--primary) 80%, white 20%);
  --light-primary: #69c9c1;
  --accent: #266963;
  --accent-hover: #318780;
  --light-accent: #8fb83d;
  --bg: #f8fafc;
  --text: #222;
  --muted: #6c7789;
  --surface: #fff;
  --surface-strong: #f6f5f3;
  --border: #d9d3cf;
  --border-strong: #bcb6b2;
  --border-focus: #9f9893;
  --brand-mark: var(--light-accent);
  --success: #2f8a5b;
  --warning: #9e7422;
  --danger: #a13d34;
  --focus-ring: #78716c;
}

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

[x-cloak] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

html {
  min-width: var(--page-min-width);
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: var(--font-mono);
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 300;
}

main,
footer {
  width: min(90%, var(--page-max-width));
  margin-inline: auto;
}

main {
  padding-block: var(--gap-lg) var(--gap-xl);
}

/* Form reset */
form {
  margin: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

label {
  cursor: pointer;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

input[type=text],
input[type=email],
input[type=password],
input[type=search],
input[type=url],
input[type=tel],
input[type=number],
select,
textarea {
  padding: 0.45rem 0.85rem;
  border: var(--border-width) solid var(--border-strong);
  background-color: var(--surface);
  line-height: 1;
}

button,
input,
select,
textarea {
  margin: 0;
  border-radius: 0;
}

button,
select {
  text-transform: none;
}

button,
input[type=button],
input[type=submit],
input[type=reset] {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

textarea {
  resize: vertical;
}

:where(input, button, select, textarea, .button):focus,
:where(input, button, select, textarea, .button):focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--border-focus);
}

.button {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--primary);
  font: inherit;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--surface-strong);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

header {
  background: var(--primary);
  padding: 2em 0;
  text-align: center;
}

h1 {
  font-size: 1.45rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--light-primary);
  line-height: 1;
}

.logo {
  color: var(--brand-mark);
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: -0.2em;
}

.hero {
  margin: 3rem 0 2.5rem;
  text-align: center;
}

.hero h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.1;
  font-family: var(--font-mono);
  font-size: 1.6rem;
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  width: 90%;
  max-width: 580px;
  margin: 0 auto;
}

.features {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  margin: 0 0 1.5rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.feature-card p {
  color: #444;
  font-size: 0.9rem;
  margin: 0;
}

.cta {
  text-align: center;
  margin: 2rem 0;
}

.cta a {
  background-color: var(--accent);
  color: #fff;
  padding: 1rem 2rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 178, 137, 0.08);
  transition: background-color 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-transform: uppercase;
  line-height: 1;
}

.cta a:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(0, 178, 137, 0.13);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2em 0;
}

@media screen and (min-width: 768px) {
  header {
    padding: 3em 0;
  }
  h1 {
    font-size: 1.95rem;
  }
  .logo {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .features {
    flex-direction: row;
    justify-content: space-between;
  }
  .feature-card {
    width: 47.5%;
    margin: 1em 0;
  }
  .feature-card h3 {
    font-size: 1.1rem;
  }
  .feature-card p {
    font-size: 1rem;
  }
  footer {
    font-size: 0.9rem;
  }
}
@media screen and (min-width: 1024px) {
  .hero h2 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.2rem;
    max-width: 640px;
  }
  .feature-card {
    width: 30%;
  }
}