@font-face {
  font-family: Vazirmatn;
  src: url("assets/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f9fc;
  --ink: #102943;
  --muted: #465f74;
  --blue: #12629e;
  --ice: #a5e0f6;
  --line: #d5e3ed;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(74rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: clamp(4.75rem, 9vw, 6.5rem);
  aspect-ratio: 1.6;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.brand-mark img {
  position: absolute;
  width: 231%;
  height: auto;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2.5rem);
  color: var(--muted);
  font-weight: 650;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
}

nav a:hover { color: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 29rem;
  padding: clamp(2rem, 5vw, 4.4rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: 2rem;
  color: white;
  background: radial-gradient(ellipse at 12% 51%, #165785 0%, transparent 56%),
    linear-gradient(125deg, #102e50, #0a233d 71%);
}

.hero-copy { position: relative; z-index: 1; }

.hero-kicker {
  color: #c2e7f5;
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: .9rem;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.65rem);
  line-height: 1.19;
  font-weight: 900;
}

h1 em { color: var(--ice); font-style: normal; }

.hero-description {
  max-width: 33rem;
  margin-top: 1.25rem;
  color: #e0eef6;
  font-size: 1.08rem;
  line-height: 1.95;
}

.hero-button, .app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .6rem 1.25rem;
  border-radius: .7rem;
  font-weight: 780;
}

.hero-button { margin-top: 1.6rem; background: #ffad67; color: #182a3c; }
.hero-button:hover { background: #ffc291; }
.hero-button:focus-visible { outline-color: white; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 26rem);
  aspect-ratio: 1.15;
  justify-self: center;
  direction: ltr;
}

.orbit {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid #9adbf24d;
  border-radius: 50%;
}

.orbit-inner { width: 66%; border-style: dashed; }

.art-grid {
  position: relative;
  display: grid;
  width: 63%;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.5rem, 1.5vw, .9rem);
  transform: rotate(-12deg);
}

.art-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #ffffff70;
  border-radius: 23%;
  box-shadow: 0 .65rem 1.3rem #061d3a55, inset 0 1px 0 #ffffff70;
}

.tile-learn { background: #a8dff2; color: #124873; }
.tile-health { background: #ffad67; color: #753000; }
.tile-tools { background: #fff; }
.tile-cloud { background: #176ca9; color: #d3f5ff; }
.tile-tools .brand-mark { width: 79%; }

.book {
  position: relative;
  width: 50%;
  height: 34%;
  background: linear-gradient(to right, currentColor 47%, transparent 47% 53%, currentColor 53%);
  border-radius: 17% 17% 10% 10%;
}

.book::after {
  content: "";
  position: absolute;
  inset: 30% 15% auto;
  height: 8%;
  background: linear-gradient(to right, #a8dff2 35%, transparent 35% 65%, #a8dff2 65%);
  box-shadow: 0 .35rem #a8dff2;
}

.heart { font: normal clamp(1.75rem, 5vw, 3.7rem)/1 Georgia, serif; }

.cloud {
  width: 49%;
  height: 24%;
  border-radius: 3rem;
  background: currentColor;
  position: relative;
  margin-top: 12%;
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  aspect-ratio: 1;
  bottom: 22%;
}

.cloud::before { width: 55%; left: 14%; }
.cloud::after { width: 40%; right: 9%; }

.star { position: absolute; line-height: 1; }
.star-top { top: 5%; right: 14%; color: #ffb072; font-size: 1.9rem; }
.star-bottom { bottom: 5%; left: 12%; color: var(--ice); font-size: 1.6rem; }
.star-side { top: 26%; left: 3%; color: #c3e8fa; font-size: .95rem; }

.catalog { padding-block: clamp(2rem, 5vw, 3.75rem); }

h2 {
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.45;
  font-weight: 850;
}

.catalog h2 { margin-bottom: 1rem; }

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.85rem, 2.5vw, 1.5rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1rem, 2.8vw, 1.85rem);
  box-shadow: 0 .3rem 1.2rem #15395308;
}

.app-card:hover { border-color: #7bb5da; }
.app-card img { width: 4.75rem; height: auto; border-radius: 1.05rem; }
.app-category { color: var(--blue); font-size: .875rem; font-weight: 750; }
.app-details h3 { font-size: 1.6rem; font-weight: 850; }
.app-details h3 span { display: inline-block; color: var(--muted); margin-inline-start: .4rem; font-size: .9rem; font-weight: 600; }
.app-details p, .subscription p { color: var(--muted); }
.app-action { background: #eaf5fc; color: #0d558b; text-align: center; }
.app-card:hover .app-action { background: #d8edf9; }

.subscription {
  background: #e8f3fa;
  border-inline-start: .28rem solid #1a76b3;
  border-radius: 1.15rem;
  padding: clamp(1.35rem, 4vw, 2.75rem);
}

.subscription h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
.subscription p { margin-top: .45rem; max-width: 48rem; }

.site-footer {
  padding-block: 1.7rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer .brand-mark { width: 4.5rem; }

.account-wrap { padding-bottom: 2rem; }
.account-panel {
  max-width: 35rem;
  margin: 1rem auto 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
}
.admin-panel { max-width: 63rem; }
.account-panel h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.account-panel h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.account-panel p { color: var(--muted); }
.account-form { display: grid; gap: .55rem; max-width: 24rem; margin-block: 1rem; }
.account-form label { font-weight: 700; }
.account-form input {
  min-width: 0;
  min-height: 2.9rem;
  width: 100%;
  border: 1px solid #9bb9cd;
  border-radius: .65rem;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: .4rem .75rem;
}
.action-button {
  justify-self: start;
  border: 0;
  border-radius: .65rem;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  padding: .55rem .9rem;
}
.action-button:hover { background: #0c4e83; }
.action-button.quiet { color: #114f7a; background: #e8f3fa; }
.action-button.quiet:hover { background: #d7eaf6; }
.action-button.danger { background: #a52e30; }
.action-button.danger:hover { background: #821f21; }
.account-panel :is(button, input, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.text-link { color: var(--blue); text-decoration: underline; cursor: pointer; }
.account-section { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.account-section details { margin-top: .55rem; }
.account-section details form { margin-top: .6rem; }
.account-panel .notice { background: #e8f3fa; border-radius: .6rem; padding: .55rem .8rem; margin-block: .8rem; }
.account-panel .notice.error { color: #832326; background: #fff0f0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th, td { text-align: start; border-bottom: 1px solid var(--line); padding: .55rem; }
td:last-child { white-space: nowrap; }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.5rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 2rem clamp(1.25rem, 6vw, 2.5rem) 1.1rem;
    border-radius: 1.4rem;
  }
  .hero-art { width: min(70%, 17rem); }
  .app-card { grid-template-columns: auto 1fr; }
  .app-action { grid-column: 1 / -1; }
}

@media (max-width: 24rem) {
  .site-header { gap: .4rem; }
  nav { gap: .6rem; font-size: .875rem; }
  .app-card img { width: 3.5rem; }
}
