/* Planet Phonic — planetphonic.com */

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #F89F5B;      /* brand: Planet Phonic orange */
  --ink: #111111;         /* brand black (logo ink) */
  --paper: #FFFFFF;       /* brand white */
  --ink-72: rgba(0, 0, 0, .72);
  --grey-on-ink: #C4C4C4;
  --grey-on-paper: #3E3E3E;
  --error: #6B1000;
  --rule: rgba(0, 0, 0, .16);

  --hh: 68px;
  --max: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--orange);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.section-ink :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -200px;
  z-index: 100;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--hh); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-plain {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-plain:hover { text-decoration-thickness: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--orange);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }

.bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--hh);
  padding-inline: var(--edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 28px; height: 44px; --pp-a: var(--ink); --pp-b: var(--paper); }
/* Two halves of the φ-planet mark; colours set per placement */
.pp-a { fill: var(--pp-a, #111111); }
.pp-b { fill: var(--pp-b, #F89F5B); }
.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav ul a {
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav ul a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta { min-height: 42px; padding: 0 1.2rem; font-size: .9375rem; white-space: nowrap; }

.langs {
  display: flex;
  gap: .15rem;
}
.langs button {
  min-width: 36px;
  padding: .45rem .4rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-72);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: 0 .25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon {
  position: relative;
  width: 22px;
  height: 12px;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  .menu-toggle { display: inline-flex; }
  .langs { margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--hh) 0 0 0;
    z-index: 49;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 0;
    padding: 2rem var(--gutter) 3rem;
    background: var(--orange);
    border-top: 1px solid rgba(0, 0, 0, .2);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .2s ease;
  }
  .nav ul { flex-direction: column; gap: 1.1rem; }
  .nav ul a { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; }
  .nav-cta { min-height: 52px; padding: 0 1.75rem; font-size: 1.0625rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .bar { gap: .75rem; }
}
@media (max-width: 380px) {
  .langs button { min-width: 32px; padding-inline: .25rem; }
  .menu-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: calc(100svh - var(--hh));
  padding: clamp(1rem, 3vw, 2.5rem) var(--edge) clamp(2.5rem, 6vw, 4.5rem);
  background: var(--orange);
  align-content: center;
}

.hero-planet {
  display: block;
  width: min(62%, 260px);
  height: auto;
  aspect-ratio: 160 / 220;
  overflow: visible;
  --pp-a: var(--ink);
  --pp-b: var(--paper);
}
.pp-tilt {
  transform-box: view-box;
  transform-origin: 120px 120px;
  transform: rotate(23.5deg);
}

.hero-copy { max-width: 34rem; }

.tagline {
  font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
  max-width: 32em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    align-content: stretch;
  }
  .hero-mark { align-self: center; }
  .hero-planet {
    width: min(80%, calc((100svh - var(--hh) - 7rem) * .727));
    margin-inline: auto;
  }
  .hero-copy { padding-bottom: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The two P's meet, then the axis tilts to 23.5° (Earth's tilt). */
  .pp-in-a { animation: pp-from-below 1.1s .25s both cubic-bezier(.16, .84, .3, 1); }
  .pp-in-b { animation: pp-from-above 1.1s .25s both cubic-bezier(.16, .84, .3, 1); }
  .pp-tilt { animation: pp-tilt .9s 1.35s both cubic-bezier(.34, 1.56, .64, 1); }
  .hero-copy {
    animation: rise .8s 1.9s both cubic-bezier(.2, .7, .2, 1);
  }
}

@keyframes pp-from-below { from { transform: translateY(150px); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pp-from-above { from { transform: translateY(-150px); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pp-tilt { from { transform: rotate(0deg); } to { transform: rotate(23.5deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Shared section styles ---------- */

.section-paper,
.section-ink,
.section-orange {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.section-paper { background: var(--paper); color: var(--ink); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-orange { background: var(--orange); color: var(--ink); }

.h2 {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 18ch;
}

/* ---------- About ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}
.statement {
  grid-column: 1 / -1;
  font-size: clamp(2.375rem, 1.2rem + 4.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.about-text {
  grid-column: 1 / -1;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  max-width: 38em;
  color: var(--grey-on-paper);
}
@media (min-width: 900px) {
  .about-text { grid-column: 6 / -1; }
}

/* ---------- Services ---------- */

.services { padding-top: 0; }

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .4rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.service-list h3 {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.service-list p {
  color: var(--grey-on-paper);
  max-width: 44ch;
}
@media (min-width: 800px) {
  .service-list li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: baseline;
    padding-block: 1.9rem;
  }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-bar {
  display: block;
  width: calc(var(--grow) * 100%);
  height: 10px;
  border-radius: 0 6px 6px 0;
  background: var(--orange);
}
.step-num {
  display: block;
  margin-top: 1rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin: .2rem 0 .5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.step p {
  color: var(--grey-on-ink);
  font-size: 1rem;
  max-width: 32ch;
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
  }
  /* Bars rise step by step, like a level meter: every note grows. */
  .step-bar {
    width: 100%;
    height: calc(var(--grow) * 9rem);
    margin-top: calc((1 - var(--grow)) * 9rem);
    border-radius: 8px 8px 0 0;
  }
  .steps { border-bottom: 0; }
}

/* ---------- Demo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.demo-intro p {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}
.demo-intro .note {
  margin-top: 1rem;
  font-size: .9375rem;
  color: var(--ink-72);
}

.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1rem;
}
.field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .9375rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--ink-72); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--paper);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8a8a; }
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--error); }
.error {
  margin-top: .4rem;
  color: var(--error);
  font-size: .875rem;
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: .5rem;
}
.btn-submit { min-height: 52px; padding: 0 2rem; }
.form-status {
  font-weight: 600;
  max-width: 34em;
}
.form-status.is-error { color: var(--error); }

@media (min-width: 640px) {
  .demo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .demo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .demo-intro { position: sticky; top: calc(var(--hh) + 2rem); align-self: start; }
}

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.contact .h2 { margin-bottom: 1rem; }
.contact-text { color: var(--grey-on-ink); max-width: 36em; }
.contact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
.contact-list dt {
  margin-bottom: .35rem;
  color: var(--grey-on-ink);
  font-size: .9375rem;
}
.contact-list dd { margin: 0; }
.contact-list a {
  display: inline-block;
  color: var(--paper);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--orange); }
@media (min-width: 760px) {
  .contact-list { grid-template-columns: repeat(2, max-content); column-gap: clamp(3rem, 8vw, 7rem); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--grey-on-ink);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  position: relative;
  padding-block: 2.25rem 2.5rem;
}
.footer-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, .16);
}
.footer-logo {
  display: block;
  width: auto;
  height: 64px;
}
.footer-meta { font-size: .875rem; text-align: right; }
.footer-meta p + p { margin-top: .25rem; }
.footer-product a {
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-product a:hover { color: var(--orange); }
@media (max-width: 520px) {
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
