/* Shared styles for pashaaksoy.com.
   Colors and fonts are all set here in :root, so they're easy to change.
   Mobile first: base rules are for phones, media queries add the wider layouts. */

:root {
  color-scheme: dark;

  --bg: #0f1114;
  --bg-clear: rgba(15, 17, 20, 0); /* --bg at zero opacity, for the photo fades */
  --surface: #181b20;
  --surface-hover: #21252b;
  --line: #2b3036;
  --line-strong: #68717c;
  --text: #f5f6f7;
  --muted: #aeb5bd;
  --link: #7cc0ff;

  /* System fonts only: nothing to download, so pages show up right away. */
  --heading: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

h1,
h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.75rem, 11.5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header and footer ---------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wordmark {
  padding: 6px 0;
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 0;
  margin-right: 16px;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:last-child {
  margin-right: 0;
}

.site-nav a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer a {
  padding: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  padding: 8px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
  color: var(--bg);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

/* ---------- Home: hero ---------- */

.hero-photo {
  position: relative;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* The photo fades into the page instead of ending in a hard edge. */
.hero-photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, var(--bg-clear) 78%, var(--bg) 100%);
}

.hero-copy {
  position: relative;
  padding: 0 var(--gutter) 24px;
}

.lede {
  max-width: 30em;
  margin: 16px 0 24px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* Wide enough that the phone number never breaks onto two lines. */
.hero .actions {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 440px;
}

.hero-support {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-support a {
  display: inline-block;
  padding: 4px 0;
}

/* ---------- Home: sections ---------- */

.section {
  padding: 48px 0;
}

.section h2 {
  margin-bottom: 24px;
}

.statement {
  font-size: clamp(2.25rem, 8.6vw, 3.5rem);
  line-height: 1.08;
}

.statement span {
  display: block;
  color: var(--muted);
}

.prose {
  max-width: 36em;
}

.prose > :last-child {
  margin-bottom: 0;
}

.services {
  display: grid;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}

.services p {
  margin: 6px 0 0;
  color: var(--muted);
}

.prices {
  display: grid;
  gap: 12px;
}

.price-card {
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: var(--surface);
}

.price {
  margin: 8px 0 8px;
  font-family: var(--heading);
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price .price-words {
  color: var(--text);
  font-family: var(--heading);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.price-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.callout {
  max-width: 46em;
  margin: 24px 0 0;
  color: var(--muted);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Reviews are hidden in index.html until there are real ones to show. */
.reviews {
  display: grid;
  gap: 12px;
}

.review {
  margin: 0;
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
}

.review p {
  margin: 0;
}

.review .review-by {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.reviews-more {
  margin: 20px 0 0;
}

/* ---------- Home: contact ---------- */

.contact-intro {
  margin-top: -8px;
}

.contact-phone {
  margin-bottom: 28px;
}

.phone {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--heading);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.phone:hover {
  color: var(--link);
}

.contact-phone .actions {
  max-width: 440px;
}

.contact-facts {
  margin: 0 0 32px;
}

.contact-facts div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-facts dt {
  color: var(--muted);
  font-size: 1rem;
}

.contact-facts dd {
  margin: 0;
}

.contact-form {
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--surface);
}

.field {
  display: block;
  margin-top: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 500;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Spam trap: real visitors never see this field, so only bots fill it in. */
.form-trap {
  position: absolute;
  left: -9999px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 20px;
  font-family: inherit;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  min-height: 1.6em;
  margin: 12px 0 0;
}

/* ---------- Remote Support page ---------- */

.notice {
  background: var(--text);
  color: var(--bg);
}

.notice .wrap {
  padding-top: 18px;
  padding-bottom: 20px;
}

.notice p {
  max-width: 52em;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.45;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.support-top {
  padding: 32px 0 44px;
}

.support-top h1 {
  font-size: clamp(2.5rem, 9vw, 3.5rem);
}

.support-top p {
  margin: 8px 0 0;
}

.version {
  min-height: 1.6em;
  color: var(--muted);
}

.downloads {
  display: grid;
  gap: 16px 24px;
  margin-top: 24px;
}

.download {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.download:hover {
  border-color: var(--text);
  background: var(--surface-hover);
  color: var(--text);
}

.download-icon {
  flex: none;
  width: 34px;
  height: 34px;
  margin-right: 16px;
  fill: currentColor;
}

.download-arrow {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: auto;
  padding-left: 4px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-label {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.download-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 1rem;
}

/* The button for the visitor's own computer. Added by js/support.js. */
.download.is-suggested {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.download.is-suggested:hover {
  background: #fff;
  color: var(--bg);
}

.download.is-suggested .download-detail {
  color: inherit;
}

.download-small {
  min-height: 56px;
  margin-top: 12px;
  padding: 8px 18px;
  background: none;
}

.download-small .download-label {
  font-size: 1.0625rem;
}

.download-small .download-arrow {
  width: 22px;
  height: 22px;
}

.download-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.steps-section {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.steps-section h2 {
  margin-bottom: 16px;
}

.steps {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--line);
  counter-increment: step;
  font-size: 1.25rem;
  line-height: 1.45;
}

.steps > li:first-child {
  border-top: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}

.steps p {
  margin: 0 0 0.5em;
}

.steps p:last-child {
  margin-bottom: 0;
}

.fallback {
  max-width: 760px;
  margin: 12px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .prices,
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .downloads {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }

  body {
    font-size: 1.1875rem;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .site-nav a {
    margin-right: 24px;
    font-size: 1.0625rem;
  }

  /* Photo runs off the left edge, facing the text. Text ends at the page column's right edge. */
  .hero {
    display: grid;
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, 640px)
      minmax(0, 480px)
      minmax(var(--gutter), 1fr);
    grid-template-rows: minmax(clamp(480px, 46vw, 680px), auto);
    align-items: center;
  }

  .hero-photo {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: stretch;
  }

  .hero-photo img {
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }

  .hero-photo::after {
    background:
      linear-gradient(to right, var(--bg-clear) 62%, var(--bg) 100%),
      linear-gradient(to bottom, var(--bg) 0, var(--bg-clear) 12%, var(--bg-clear) 82%, var(--bg) 100%);
  }

  .hero-copy {
    grid-column: 3;
    grid-row: 1;
    padding: 24px 0 48px;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    margin-bottom: 32px;
  }

  .about {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 72px;
    align-items: start;
  }

  .about .statement {
    margin-bottom: 0;
  }

  .about .prose {
    padding-top: 10px;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .services li:last-child {
    grid-column: auto;
  }

  .price-card {
    padding: 26px 26px 28px;
  }

  .price {
    font-size: 4rem;
  }

  .contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 72px;
    align-items: start;
  }

  .contact-facts {
    margin-bottom: 0;
  }

  .contact-form {
    padding: 28px 32px 24px;
  }

  .notice .wrap {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .support-top {
    padding-top: 40px;
  }

  .steps-section {
    padding: 56px 0 64px;
  }
}
