@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --pearl: #E8E8E5;
  --paper: #FFFFFF;
  --ink: #23282E;
  --sub: #5B636D;
  --line: #E1E3E6;
  --green: #246330;
  --blue: #3947A4;
  --blue-press: #2E3A8C;
  --navy: #182548;
  --navy-press: #0F1A36;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pearl);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  display: flex;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: 22px;
  padding: 32px 24px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
}
.brand { text-align: center; }
.flip {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  cursor: pointer;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}
.flip-inner {
  position: relative;
  display: block;
  aspect-ratio: 7 / 4;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.flip[aria-pressed="true"] .flip-inner { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.12);
}
.face.front { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); }
.face.back { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.flip-hint { margin: 12px 0 0; font-size: 12px; color: var(--sub); }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
.brand img.face { max-width: none; margin: 0; }
.tagline {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.person { text-align: center; margin: 28px 0 24px; }
h1, .tagline, .btn, .services h2 { font-family: "Montserrat", -apple-system, "Segoe UI", sans-serif; }
h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.01em;
}
.title { margin: 6px 0 0; font-size: 16px; color: var(--ink); }
.sub { margin: 4px 0 0; font-size: 14px; color: var(--sub); }

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border-radius: 4px;
  padding: 16px;
  min-height: 52px;
}
.primary { background: var(--navy); color: #fff; }
.primary:active { background: var(--navy-press); }
.primary .arrow { margin-left: 8px; }

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 24px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.action span { color: var(--ink); font-weight: 500; }
.action svg { width: 24px; height: 24px; fill: currentColor; }
.action:active { background: #F4F5F7; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.details { margin: 0; border-top: 1px solid var(--line); }
.details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.details dt { color: var(--sub); }
.details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.details a { color: var(--ink); text-decoration: none; }

.services { margin: 24px 0 0; }
.services h2 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 600;
}
.services p { margin: 0; font-size: 15px; }
.about { margin: 0 0 24px; font-size: 15px; color: var(--sub); text-align: center; }

.licenses {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
  text-align: center;
}
.licenses p { margin: 2px 0; }
.licenses strong { color: var(--ink); font-weight: 600; }
.company { margin-top: 8px !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
